OSDN Git Service

* arm.c (pcs_attribute_args): Comment out unsupported attribute
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
2
3         * arm.c (pcs_attribute_args): Comment out unsupported attribute
4         variants.
5
6 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7
8         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
9         warning ().
10
11 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
12
13         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
14
15 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
16
17         Merge ARM/hard_vfp_branch to trunk.
18
19         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
20
21         * arm.c (libcall_eq): New function.
22         (libcall_hash): New function.
23         (add_libcall): New function.
24         (arm_libcall_uses_aapcs_base): New function.
25         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
26         libcalls using the base PCS.
27         (arm_init_cumulative_args): Likewise.
28
29         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
30
31         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
32         Use base ABI for conversion libfuncs between HFmode and SFmode.
33
34         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
35
36         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
37         V4SImode as representatives of all 64-bit and 128-bit vector
38         types.  Allow vector types without vector modes.
39         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
40         without vector modes like BLKmode.
41         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
42         BLKmode.  Avoid unsupported vector modes or TImode moves for
43         non-TARGET_NEON.
44         (aapcs_vfp_allocate_return_reg): Likewise.
45         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
46         V8QImode if TARGET_NEON || TARGET_IWMMXT.
47
48         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
49
50         * config/arm/arm.c (arm_handle_pcs_attribute): New.
51         (arm_get_pcs_model): Pass attribute arguments to
52         arm_pcs_from_attribute.
53         (arm_init_cumulative_args): Use base AAPCS for conversions from
54         floating-point types to DImode.
55         (arm_attribute_table): Add pcs attribute.
56         (arm_handle_pcs_attribute): New.
57         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
58         conversions from floating-point types to DImode, also declare them
59         to use base AAPCS and declare functions they call to use base
60         AAPCS and their RTABI names.
61
62         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
63
64         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
65         -mfloat-abi=hard not being supported for VFP.
66
67         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
68
69         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
70         SYMBOL_REF to hard_libcall_value.
71
72         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
73             Richard Earnshaw  <rearnsha@arm.com>
74
75         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
76         has been put on the stack, all remaining co-processory arguments for
77         that co-processor also go on the stack.
78
79         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
80
81         * config/arm/arm.c (arm_return_in_memory): Handle returning
82         vectors of suitable size in registers also for AAPCS case.
83
84         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
85
86         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
87
88         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
89
90         ARM Hard-VFP calling convention
91         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
92         * target.h (gcc_target): Add libcall_value to table of call hooks.
93         * targhooks.h (default_libcall_value): Default implementation.
94         * targhooks.c (default_libcall_value): Likewise.
95         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
96         * optabs.c (expand_unop): Use it.
97         * expr.h (hard_libcall_value): Pass the function RTX through.
98         * calls.c (emit_library_call_value_1): Update call to 
99         hard_libcall_value.
100         * explow.c (hard_libcall_value): Use new target hook.
101         * testsuite/lib/target-supports.exp
102         (check_effective_target_arm_hard_vfp_ok): New hook.
103         (check_effective_target_arm_neon_ok): Improve test for neon
104         availability.
105         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
106         * config/arm/arm.c: Include cgraph.h
107         (TARGET_FUNCTION_VALUE): Override default hook.
108         (arm_pcs_default): New variable.
109         (arm_override_options): Don't fault hard calling convention with VFP.
110         Add support for AAPCS variants.
111         (arm_function_value): Make static.  Handle AAPCS variants.
112         (arm_libcall_value): New function.
113         (arm_apply_result_size): Handle VFP registers in results.
114         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
115         conventions.
116         (pcs_attribute_args): New variable.
117         (arm_pcs_from_attribute): New function.
118         (arm_get_pcs_model): New function.
119         (aapcs_vfp_cum_init): New function.
120         (aapcs_vfp_sub_candidate): New function.
121         (aapcs_vfp_is_return_candidate): New function.
122         (aapcs_vfp_is_call_candidate): New function.
123         (aapcs_vfp_allocate): New function.
124         (aapcs_vfp_allocate_return_reg): New function.
125         (aapcs_vfp_advance): New function.
126         (aapcs_cp_arg_layout): New variable.
127         (aapcs_select_call_coproc): New function.
128         (aapcs_select_return_coproc): New function.
129         (aapcs_allocate_return_reg): New function.
130         (aapcs_libcall_value): New function.
131         (aapcs_layout_arg): New function.
132         (arm_init_cumulative_args): Initialize AAPCS args data.
133         (arm_function_arg): Handle AAPCS variants using new interface.
134         (arm_arg_parital_bytes): Likewise.
135         (arm_function_arg_advance): New function.
136         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
137         calling conventions.
138         (arm_setup_incoming_varargs): Handle new AAPCS args data.
139         * arm.h (NUM_VFP_ARG_REGS): Define.
140         (LIBCALL_VALUE): Update.
141         (FUNCTION_VALUE): Delete.
142         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
143         (arm_pcs): New enum.
144         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
145         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
146         (FUNCTION_ARG_REGNO_P): Add VFP regs.
147         * arm-protos.h (arm_function_arg_advance): Add.
148         (aapcs_libcall_value): Add.
149         (arm_function_value): Delete.
150
151 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
152             H.J. Lu  <hongjiu.lu@intel.com>
153
154         PR target/40957
155         * config/i386/i386.c (standard_sse_mode_p): Remove.
156         (standard_sse_constant_p): Return 2 for integer mode
157         vector_all_ones_operand when SSE2 is enabled.
158         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
159         (ix86_expand_vector_move): Do not check for negative values from
160         standard_sse_constant_p.
161
162 2009-08-06  Richard Guenther  <rguenther@suse.de>
163
164         * tree-ssa.c (useless_type_conversion_p_1): Make function and
165         array type comparisons frontend independent.
166         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
167         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
168         out array reference lower bound and element size operands.
169         (ao_ref_init_from_vn_reference): Properly compute the offset
170         for ARRAY_RANGE_REF.
171         (vn_reference_fold_indirect): Fill out array reference lower
172         bound and element size operands.
173         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
174         a non gimple valued reference operand which can happen for
175         array reference lower bound or element size.
176         (create_component_ref_by_pieces_1): Properly generate the
177         element size operand for array references.
178
179 2009-08-06  Richard Guenther  <rguenther@suse.de>
180
181         PR tree-optimization/40964
182         * tree.c (iterative_hash_host_wide_int): Export.
183         * tree.h (iterative_hash_host_wide_int): Declare.
184         * tree-ssa-structalias.c (heapvar_map): New struct.
185         (heapvar_map_eq): New function.
186         (heapvar_map_hash): Likewise.
187         (heapvar_lookup): Adjust.
188         (heapvar_insert): Likewise.
189         (make_constraint_from_heapvar): Allow multiple heap variables
190         per decl at different offsets.
191         (init_alias_heapvars): Adjust.
192
193 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
194
195         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
196         * mips_output_sync_loop (mips_output_sync_loop): Only emit
197         trailing sync if TARGET_SYNC_AFTER_SC.
198
199 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
200
201         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
202         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
203         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
204         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
205         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
206         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
207         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
208         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
209         test_and_set_12): Rewrite calls to mips_output_sync_loop.
210         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
211         the prototype declaration match the definition.
212         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
213         instructions explicitly.  Add barrier_before and operands
214         parameters.
215         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
216         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
217         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
218         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
219         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
220         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
221
222 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
223
224         * tree-ssa-alias.c: Fix intervals to use [) syntax.
225
226 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
227             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
228
229         PR target/40906
230         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
231         source operand.
232
233 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
234
235         PR rtl-optimization/40924
236         * dse.c (canon_address): Before calling cselib_expand_value_rtx
237         make sure canon_rtx (mem_address) isn't simpler than
238         canon_rtx (expanded_mem_address).
239
240 2009-08-05  Li Feng  <nemokingdom@gmail.com>
241
242         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
243         for each poly_bb_p.
244         (build_scop_drs): Build alias set for each SCoP.
245
246 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
247
248         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
249         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
250         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
251         (MIPS_ARCH_FLOAT_SPEC): Likewise.
252         (BASE_DRIVER_SELF_SPECS): Likewise.
253
254 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
255
256         * tree-ssa-alias.c: Fix some comment typos.
257
258 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
259
260         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
261         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
262
263 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
264
265         PR c/39902
266         * simplify-rtx.c (simplify_binary_operation_1): Disable
267         simplifications for decimal float operations.
268
269 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
270
271         PR middle-end/40943
272         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
273         operand of INDIRECT_REF.
274
275 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
276
277         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
278         constants referencing TLS symbols.
279
280 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
281
282         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
283         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
284
285 2009-08-03  Richard Guenther  <rguenther@suse.de>
286
287         * tree.c (make_vector_type): Build a main variant first,
288         get the canonical one and then build the variant.
289         * tree-ssa.c (useless_type_conversion_p_1): Handle
290         fixed-point types.
291         (useless_type_conversion_p): Conversions to pointers to
292         incomplete record types are useless.
293
294 2009-08-03  Richard Guenther  <rguenther@suse.de>
295
296         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
297         file will be created.
298         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
299         * toplev.c (compile_file): Adjust comment.
300
301 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
302
303         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
304         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
305         (TARGET_PROMOTE_FUNCTION_MODE): Define.
306         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
307         (sh_promote_function_mode): Fix typo.
308
309 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
310
311         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
312
313 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
314
315         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
316         declaration arguments.
317
318 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
319
320         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
321         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
322         (ix86_split_ashl): Ditto.
323         (ix86_expand_vector_init_one_nonzero): Ditto.
324         (ix86_expand_vector_set): Ditto.
325         (ix86_expand_reduc_v4sf): Ditto.
326
327 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
328
329         * explow.c (promote_function_mode): Remove assert.
330         * config/sh/sh.c (sh_promote_function_mode): Declare.
331
332 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
333
334         * config/pa/pa.c (pa_promote_function_mode): Declare.
335         Change to static.  Fix promote_mode call.
336
337         * gthr-dce.h (CONST_CAST2): Define if not defined.
338         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
339
340         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
341
342 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
343
344         * expr.c (store_constructor): Use promote_decl_mode.  Remove
345         now write-only variable unsignedp.
346         (expand_expr_real_1): Use promote_decl_mode.
347         * expr.h (promote_function_mode, promote_decl_mode): New.
348         (promote_mode): Remove last argument.
349         * function.c (assign_temp): Drop last argument of promote_mode.
350         (assign_parm_find_data_types): Use promote_function_mode.
351         (assign_parm_setup_reg): Likewise.
352         (expand_function_end): Use promote_function_mode.
353         * calls.c (initialize_argument_information): Use promote_function_mode.
354         (precompute_arguments): Use promote_mode instead of checking if
355         only PROMOTE_FUNCTION_MODE is defined.
356         (expand_call): When making sibcall decisions, use promote_function_mode.
357         Below, remove an if for targetm.calls.promote_function_return and
358         and use promote_function_mode.
359         (emit_library_call_value_1): Use promote_function_mode, fix bug
360         where promote_mode was passed FOR_CALL == 0 for a return value in an
361         assertion.
362         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
363         * explow.c (promote_function_mode, promote_decl_mode): New.
364         (promote_mode): Keep only the FOR_CALL == 0 case.
365         * combine.c (setup_incoming_promotion): Remove test of
366         promote_function_args.  Use promote_function_mode.
367         * stmt.c (expand_value_return): Use promote_decl_mode.
368         (expand_decl): Use promote_decl_mode.
369
370         * expr.c (store_constructor): Use promote_decl_mode.  Remove
371         now write-only variable unsignedp.
372         (expand_expr_real_1): Use promote_decl_mode.
373         * expr.h (promote_function_mode, promote_decl_mode): New.
374         (promote_mode): Remove last argument.
375         * function.c (assign_temp): Drop last argument of promote_mode.
376         (assign_parm_find_data_types): Use promote_function_mode.
377         (assign_parm_setup_reg): Likewise.
378         (expand_function_end): Use promote_function_mode.
379         * calls.c (initialize_argument_information): Use promote_function_mode.
380         (precompute_arguments): Use promote_mode instead of checking if
381         only PROMOTE_FUNCTION_MODE is defined.
382         (expand_call): When making sibcall decisions, use promote_function_mode.
383         Below, remove an if for targetm.calls.promote_function_return and
384         and use promote_function_mode.
385         (emit_library_call_value_1): Use promote_function_mode, fix bug
386         where promote_mode was passed FOR_CALL == 0 for a return value in an
387         assertion.
388         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
389         * explow.c (promote_function_mode, promote_decl_mode): New.
390         (promote_mode): Keep only the FOR_CALL == 0 case.
391         * combine.c (setup_incoming_promotion): Remove test of
392         promote_function_args.  Use promote_function_mode.
393         * stmt.c (expand_value_return): Use promote_decl_mode.
394         (expand_decl): Use promote_decl_mode.
395
396         * explow.c (promote_function_mode): Just call the target hook.
397         * targhooks.c (default_promote_function_mode,
398         default_promote_function_mode_always_promote): New.
399         * targhooks.h (default_promote_function_mode,
400         default_promote_function_mode_always_promote): Declare.
401         * target.h (promote_function_args, promote_function_return): Remove.
402         (promote_function_mode): New.
403         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
404         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
405         (TARGET_PROMOTE_FUNCTION_MODE): New.
406         (TARGET_CALLS): Adjust.
407         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
408         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
409
410         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
411         * config/s390/s390.c (s390_promote_function_mode): ... here,
412         with pointer handling.
413         (TARGET_PROMOTE_FUNCTION_MODE): Define.
414         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
415
416         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
417         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
418         with pointer handling.
419         (TARGET_PROMOTE_FUNCTION_MODE): Define.
420         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
421         
422         * config/sh/sh-protos.h (sh_promote_function_mode): New.
423         * config/sh/sh.c (sh_promote_function_mode): New.
424         (TARGET_PROMOTE_FUNCTION_MODE): Define.
425         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
426
427         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
428         * config/cris/cris.c (cris_promote_function_mode): ... here.
429         (TARGET_PROMOTE_FUNCTION_MODE): Define.
430         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
431
432         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
433         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
434         (TARGET_PROMOTE_FUNCTION_MODE): Define.
435         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
436
437         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
438         * config/arm/arm.c (arm_promote_function_mode): ... here, without
439         complex type handling.
440         (TARGET_PROMOTE_FUNCTION_MODE): Define.
441         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
442
443         * config/pa/pa.c (pa_promote_function_mode): New.
444         (TARGET_PROMOTE_FUNCTION_MODE): Define.
445         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
446
447         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
448         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
449         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
450         * config/xtensa/xtensa.c: Likewise.
451         * config/stormy16/stormy16.c: Likewise.
452         * config/iq2000/iq2000.c: Likewise.
453         * config/rs6000/rs6000.c: Likewise.
454         * config/picochip/picochip.c: Likewise.
455         * config/arc/arc.c: Likewise.
456         * config/mcore/mcore.c: Likewise.
457         * config/score/score.c: Likewise.
458         * config/mips/mips.c: Likewise.
459         * config/bfin/bfin.c: Likewise.
460         * config/ia64/ia64.c: Likewise (disabled though).
461
462         * config/frv/frv.h: Remove pointless remark.
463
464         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
465         TARGET_PROMOTE_FUNCTION_ARGS,
466         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
467         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
468
469 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
470
471         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
472         -floop-parallelize-all.
473         * toplev.c (process_options): Rename flag_graphite_force_parallel to
474         flag_loop_parallelize_all.
475         * tree-ssa-loop.c (gate_graphite_transforms): Same.
476         * graphite.c (graphite_transform_loops): Same.
477         * common.opt: Same.
478         * graphite-poly.c (apply_poly_transforms): Same.
479
480 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
481
482         PR tree-optimization/40914
483         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
484         if set, then check the delta field of the PMF record.
485         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
486         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
487         call is stored in the delta.
488
489 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
490
491         * config/mips/mips.md (*clear_upper32_dext): New pattern.
492
493 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
494
495         * config/i386/bsd.h (ASM_BYTE): New define.
496         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
497         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
498         .byte.  Use fputs or putc instead of fprintf where appropriate.
499         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
500         fputs or putc instead of fprintf where appropriate.
501         * config/i386/i386elf.h: Ditto.
502         * config/i386/sysv4.h: Ditto.
503         
504         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
505         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
506         (*tls_global_dynamic_64): Ditto.
507
508 2009-07-31  Christian Bruel  <christian.bruel@st.com>   
509
510         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
511         
512 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
513
514         * config/arm/arm.c (arm_arm_address_cost): Fix typo. 
515         Remove dead code for MINUS.
516
517 2009-07-31  Anthony Green  <green@moxielogic.com>
518
519         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
520         $r12 in prologue.
521         (moxie_expand_epilogue): Ditto for epilogue.
522         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
523         incoming arguments.
524         (moxie_function_arg): Ditto.
525         (moxie_pass_by_reference): Ditto.
526         (moxie_arg_partial_bytes): Ditto.
527         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
528         (FUNCTION_ARG_ADVANCE) Ditto.
529         (REG_PARM_STACK_SPACE) Ditto.
530         (FUNCTION_ARG_REGNO_P) Dito.
531
532         * config.gcc: Add moxie linux config support.
533         * gcc/config/moxie/uclinux.h: New file.
534
535 2009-07-31  DJ Delorie  <dj@redhat.com>
536
537         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
538         (UNSPECV_SP_SWITCH_E): New.
539         (sp_switch_1): Change to an unspec.
540         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
541         replace $r15.
542         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
543         reference the new stack's address
544
545 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
546
547         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
548         graphite-clast-to-gimple.o, graphite-dependences.o,
549         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
550         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
551         (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): New.
555         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
556         * cfgloop.h (struct loop): Add can_be_parallel field.
557         * common.opt (fgraphite-identity): Moved up.
558         (fgraphite-force-parallel): New flag.
559         * graphite.c: Rewrite.
560         * graphite.h: Rewrite.
561         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
562         after Graphite.
563         * toplev.c (graphite_out_file): New file descriptor.
564         (graphite_in_file): New.
565         (process_options): flag_graphite_force_parallel cannot be used without
566         Graphite.
567         * tree-ssa-loop.c: Include toplev.h.
568         (gate_graphite_transforms): Enable flag_graphite for
569         flag_graphite_force_parallel.
570
571 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
572
573         * ChangeLog.graphite: New.
574         * graphite-blocking.c: New.
575         * graphite-clast-to-gimple.c: New.
576         * graphite-clast-to-gimple.h: New.
577         * graphite-dependences.c: New.
578         * graphite-dependences.h: New.
579         * graphite-interchange.c: New.
580         * graphite-poly.c: New.
581         * graphite-poly.h: New.
582         * graphite-ppl.c: New.
583         * graphite-ppl.h: New.
584         * graphite-scop-detection.c: New.
585         * graphite-scop-detection.h: New.
586         * graphite-sese-to-poly.c: New.
587         * graphite-sese-to-poly.h: New.
588         * sese.c: New.
589         * sese.h: New.
590
591 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
592
593         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
594         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
595
596 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
597
598         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
599         (scev_is_linear_expression): Return false if the evolution is not
600         affine multivariate.
601
602 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
603
604         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
605         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
606
607 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
608
609         * tree-data-ref.c (debug_data_references): New.
610         (debug_data_reference): New.
611         * tree-data-ref.h (debug_data_references): Declared.
612         (debug_data_reference): Declared.
613
614 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
615
616         * tree-data-ref.c (stmt_simple_memref_p: Removed.
617         * tree-data-ref.h (scop_p): Removed.
618         (struct data_reference): Remove field scop.
619         (DR_SCOP): Removed.
620         (stmt_simple_memref_p): Removed.
621
622 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
623
624         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
625         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
626         basic block empty.
627
628 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
629
630         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
631
632 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
633
634         * doc/invoke.texi (-fgraphite-identity): Documented.
635
636 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
637
638         * tree-scalar-evolution.c: Fix comment.
639         (instantiate_scev_1): Return unknow from scev instantiation if the
640         result is not above instantiate_below.
641
642 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
643
644         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
645         static anymore.  Instantiate the symbols that may have been introduced
646         by chrec_apply.
647         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
648         Declared.
649
650 2009-07-30  DJ Delorie  <dj@redhat.com>
651
652         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
653         .vliw directive to VLIW sections.
654
655 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
656
657         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
658         New variables.
659         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
660         (AUTOHEADER): New variable.
661         ($(srcdir)/cstamp-h.in): Use it.
662
663 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
664             Pat Haugen  <pthaugen@us.ibm.com>
665             Revital Eres <ERES@il.ibm.com>
666
667         * config/rs6000/vector.md (VEC_F): Add VSX support.
668         (VEC_A): Ditto.
669         (VEC_N): Ditto.
670         (mov<mode>): Ditto.
671         (vector_load_<mode>): Ditto.
672         (vector_store_<mode>): Ditto.
673         (vector GPR move split): Ditto.
674         (vec_reload_and_plus_<mptrsize>): Ditto.
675         (vec_reload_and_reg_<mptrsize>): Ditto.
676         (add<mode>3): Ditto.
677         (sub<mode>3): Ditto.
678         (mul<mode>3): Ditto.
679         (neg<mode>2): Ditto.
680         (abs<mode>2): Ditto.
681         (smin<mode>3): Ditto.
682         (smax<mode>3): Ditto.
683         (vector_eq<mode>): Ditto.
684         (vector_gt<mode>): Ditto.
685         (vector_ge<mode>): Ditto.
686         (vector_gtu<mode>): Ditto.
687         (vector_select_<mode>_uns): Ditto.
688         (vector_eq_<mode>_p): Ditto.
689         (vector_gt_<mode>_p): Ditto.
690         (vector_ge_<mode>_p): Ditto.
691         (vector_gtu_<mode>_p): Ditto.
692         (cr6_test_for_zero): Ditto.
693         (cr6_test_for_zero_reverse): Ditto.
694         (cr6_test_for_lt): Ditto.
695         (cr6_test_for_lt_reverse): Ditto.
696         (xor<mode>3): Ditto.
697         (ior<mode>3): Ditto.
698         (and<mode>3): Ditto.
699         (one_cmpl<mode>2): Ditto.
700         (nor<mode>2): Ditto.
701         (andc<mode>2): Ditto.
702         (float<VEC_int<mode>2): Ditto.
703         (unsigned_float<VEC_int><mode>2): Ditto.
704         (fix_trunc<mode><VEC_int>2): Ditto.
705         (fixuns_trunc<mode><VEC_int>2): Ditto.
706         (vec_init<mode>):
707         (vec_set<mode>): Ditto.
708         (vec_extract<mode>): Ditto.
709         (vec_interleave_highv4sf): Ditto.
710         (vec_interleave_lowv4sf): Ditto.
711         (vec_realign_load_<mode>): Ditto.
712         (vec_shl_<mode>): Ditto.
713         (vec_shr_<mode>): Ditto.
714         (div<mode>3): New patterns for VSX.
715         (vec_interleave_highv2df): Ditto.
716         (vec_interleave_lowv2df): Ditto.
717         (vec_pack_trunc_v2df): Ditto.
718         (vec_pack_sfix_trunc_v2df): Ditto.
719         (vec_pack_ufix_trunc_v2df): Ditto.
720         (vec_unpacks_hi_v4sf): Ditto.
721         (vec_unpacks_lo_v4sf): Ditto.
722         (vec_unpacks_float_hi_v4si): Ditto.
723         (vec_unpacku_float_lo_v4si): Ditto.
724         (vec_unpacku_float_hi_v4si): Ditto.
725         (vec_unpacks_float_lo_v4si): Ditto.
726         (movmisalign<mode>): Ditto.
727         (vector_ceil<mode>2): New patterns for vectorizing math library.
728         (vector_floor<mode>2): Ditto.
729         (vector_btrunc<mode>2): Ditto.
730         (vector_copysign<mode>3): Ditto.
731
732         * config/rs6000/predicates.md (easy_vector_constant_msb): New
733         predicate for setting the high bit in each word, used for copysign.
734
735         * config/rs6000/ppc-asm.h (f19): Whitespace.
736         (f32-f63): Define if VSX.
737         (v0-v31): Define if Altivec.
738         (vs0-vs63): Define if VSX.
739
740         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
741
742         * config/rs6000/power7.md: New file, provide tuning parameters for
743         -mcpu=power7.
744
745         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
746         (rs6000_cpu_cpp_builtins): Ditto.
747         (altivec_overloaded_builtins): Ditto.
748         (altivec_resolve_overloaded_builtin): Ditto.
749
750         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
751         debug switch to disable vectorizing simple math builtin
752         functions.
753
754         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
755         Vectorize simple math builtin functions.
756         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
757         hook to vectorize math builtins.
758         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
759         (rs6000_builtin_conversion): Add VSX/power7 support.
760         (rs6000_builtin_vec_perm): Ditto.
761         (vsplits_constant): Add support for loading up a vector constant
762         with just the high bit set in each part.
763         (rs6000_expand_vector_init): Add VSX/power7 support.
764         (rs6000_expand_vector_set): Ditto.
765         (rs6000_expand_vector_extract): Ditto.
766         (rs6000_emit_move): Ditto.
767         (bdesc_3arg): Ditto.
768         (bdesc_2arg): Ditto.
769         (bdesc_1arg): Ditto.
770         (rs6000_expand_ternop_builtin): Ditto.
771         (altivec_expand_builtin): Ditto.
772         (rs6000_expand_unop_builtin): Ditto.
773         (rs6000_init_builtins): Ditto.
774         (altivec_init_builtins): Ditto.
775         (builtin_function_type): Ditto.
776         (rs6000_common_init_builtins): Ditto.
777         (rs6000_handle_altivec_attribute); Ditto.
778         (rs6000_mangle_type): Ditto.
779         (rs6000_vector_mode_supported_p): Ditto.
780         (rs6000_mode_dependent_address): Altivec addresses with AND -16
781         are mode dependent.
782
783         * config/rs6000/vsx.md: New file for VSX support.
784
785         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
786         identifing values with just the most significant bit set.
787         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
788         vectorized builtins.
789
790         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
791         (UNSPEC_VRFIM): Delete.
792         (splitter for loading up vector with most significant bit): New
793         splitter for vectorizing copysign.
794         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
795         vectorizing simple math functions.
796         (altivec_vrfip): Add support for vectorizing simple math functions.
797         (altivec_vrfim): Ditto.
798         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
799
800         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
801         (power7.md, vsx.md): Include for power7 support.
802         (copysigndf3): Use VSX instructions if -mvsx.
803         (negdf2_fpr): Ditto.
804         (absdf2_fpr): Ditto.
805         (nabsdf2_fpr): Ditto.
806         (adddf3_fpr): Ditto.
807         (subdf3_fpr): Ditto.
808         (muldf3_fpr): Ditto.
809         (divdf3_fpr): Ditto.
810         (fix_truncdfdi2_fpr): Ditto.
811         (cmpdf_internal1): Ditto.
812         (fred, fred_fpr): Convert into expander/insn to add VSX support.
813         (btruncdf2, btruncdf2_fpr): Ditto.
814         (ceildf2, ceildf2_fpr): Ditto.
815         (floordf2, floordf2_fpr): Ditto.
816         (floatdidf2, floatdidf2_fpr): Ditto.
817         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
818         (fmsubdf4_fpr): Ditto.
819         (fnmadddf4_fpr_1): Ditto.
820         (fnmadddf4_fpr_2): Ditto.
821         (fnmsubdf4_fpr_1): Ditto.
822         (fnmsubdf4_fpr_2): Ditto.
823         (fixuns_truncdfdi2): Add expander for VSX support.
824         (fix_truncdfdi2): Ditto.
825         (fix_truncdfsi2): Ditto.
826         (ftruncdf2): Ditto.
827         (btruncsf2): Whitespace.
828         (movdf_hardfloat32): Add support for VSX registers.
829         (movdf_softfloat32): Ditto.
830         (movdf_hardfloat64): Ditto.
831         (movdf_hardfloat64_mfpgpr): Ditto.
832         (movdf_softfloat64): Ditto.
833         (movti splitters): Add check for vector registers supporting
834         TImode in the future.
835         (bpermd): Add power7 bpermd instruction.
836
837         * config/rs6000/altivec.h (vec_div): Define if VSX.
838         (vec_mul): Ditto.
839         (vec_msub): Ditto.
840         (vec_nmadd): Ditto.
841         (vec_nearbyint): Ditto.
842         (vec_rint): Ditto.
843         (vec_sqrt): Ditto.
844         (all predicates): Use the generic builtin function, and not the V4SF
845         specific function so that the predicates will work with VSX's V2DF.
846         (vec_all_*): Ditto.
847         (vec_any_*): Ditto.
848
849         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
850         Document new VSX functions and types.
851
852         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
853         switches.
854
855         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
856         "wa", and "j" constraints.  Modify "v" to talk about Altivec
857         instead of just vector.
858
859 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
860
861         PR debug/26475
862         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
863         location for phi arguments.
864         (rewrite_update_phi_arguments): Find locations for reaching defs.
865         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
866         Add location to add_phi_arg calls.
867         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
868         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
869         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
870         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
871         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
872         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
873         * tree-phinodes.c (make_phi_node): Initialize location.
874         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
875         (add_phi_arg): Add location parameter.
876         (remove_phi_arg_num): Move location when moving phi argument.
877         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
878         location.
879         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
880         slpeel_update_phi_nodes_for_guard1,
881         slpeel_update_phi_nodes_for_guard2,
882         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
883         vect_loop_versioning): Set locations.
884         * tree-parloops.c (create_phi_for_local_result,
885         transform_to_exit_first_loop, create_parallel_loop): Add locations.
886         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
887         * tree-vect-loop.c (get_initial_def_for_induction,
888         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
889         locations.
890         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
891         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
892         (gimple_phi_arg_set_location): New.  Set locus.
893         (gimple_phi_arg_has_location): New.  Check for locus.
894         (redirect_edge_var_map_location): New.  Return locus from var_map.
895         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
896         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
897         combining PHI arguments.
898         (cond_store_replacement): Set location.
899         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
900         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
901         scop_add_exit_phis_edge): Add locations.
902         * tree-cfgcleanup.c (remove_forwarder_block,
903         remove_forwarder_block_with_phi): Add locations.
904         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
905         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
906         locations.
907         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
908         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
909         flush_pending_stmts): Add source location.
910         * lambda-code.c (perfect_nestify): Maintain location stack with argument
911         stack to preserve locations.
912         * tree-vect-stmts.c (vectorizable_load): Add location.
913         * tree-inline.c (copy_phis_for_bb): Copy locus.
914         (setup_one_parameter): Add call locus to inlined parameter stmts.
915         (initialize_inlined_parameters): Pass in call location as parameter
916         assignment locus.
917         (tree_function_versioning): Pass location to setup_one_parameter.
918         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
919         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
920         copy and edge lists.
921         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
922         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
923         locus parameter and override the stmt default if provided.
924         (new_elim_graph, clear_elim_graph, delete_elim_graph,
925         elim_graph_add_edge, elim_graph_remove_succ_edge,
926         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
927         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
928         eliminate_phi):  Add locus info in elimination graph for each edge and
929         value copy.
930         (insert_backedge_copies): Copy locus if present.
931         * tree-flow.h (struct _edge_var_map): Add locus field.
932         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
933         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
934         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
935         locations.
936         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
937         
938 2009-07-30  Martin Jambor  <mjambor@suse.cz>
939
940         PR tree-optimization/40570
941         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
942         use inlining loops.
943
944 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
945
946         * ssa-loop-manip.c: Include langhooks.h.
947         (rewrite_phi_with_iv): New.
948         (rewrite_all_phi_nodes_with_iv): New.
949         (canonicalize_loop_ivs): Move here from tree-parloops.c.
950         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
951         * tree-parloops.c (loop_parallel_p): Move out all conditions
952         except dependency check.
953         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
954         (gen_parallel_loop): Call canonicalize_loop_ivs without
955         reduction_list argument.
956         (build_new_reduction): New.
957         (gather_scalar_reductions): New.
958         (try_get_loop_niter): New.
959         (try_create_reduction_list): New.
960         (parallleize_loops): Change the parallel conditions check.
961         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
962         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
963
964 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
965
966         * opt-functions.awk (opt_args): Allow argument to be enclosed in
967         curly braces.
968         * doc/options.texi (Option properties):  Mention new quoting syntax.
969
970 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
971
972         * config/alpha/alpha.c (alpha_start_function):
973         Handle VMS_DEBUG_MAIN_POINTER
974         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
975         * doc/invoke.texi: Document -mdebug-main switch.
976
977 2009-07-29  Richard Henderson  <rth@redhat.com>
978
979         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
980         (cgraph_create_edge_including_clones): Likewise.
981         * tree-inline.c (copy_bb): Operate on the correct edges
982         when updating the callgraph.
983
984 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
985
986         * config/alpha/vms-cc.c: Deleted.
987         * config/alpha/vms-ld.c: Deleted.
988         * config/alpha/t-vms64: Moved to config/vms
989         * config/alpha/vms-crt0-64.c: Moved to config/vms
990         * config/alpha/vms-crt0.c: Moved to config/vms
991         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
992         * config/alpha/vms-psxcrt0.c: Moved to config/vms
993         * config/alpha/xm-vms.h: Moved to config/vms
994         * config/alpha/x-vms: Moved to config/vms
995         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
996         config/vms/t-vms.
997         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
998         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
999         (version): Set.
1000         * config/vms/t-vms64: Moved here from config/alpha
1001         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
1002         (argc,argv,envp): Enforce 32bit malloc'ing.
1003         * config/vms/vms-psxcrt0-64.c: Likewise.
1004         * config/vms/vms-crt0.c: Moved here from config/alpha.
1005         * config/vms/vms-psxcrt0.c: Likewise.
1006         * config/vms/vms-crtl-64.h: New file.
1007         * config/vms/vms-crtl.h: New file.
1008         * config/vms/vms.opt: New file.
1009         * config/vms/xm-vms64.h: New file.
1010         * config/vms/xm-vms.h: Moved here from config/alpha.
1011         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
1012         Set.
1013         * config/vms/x-vms: Moved here from config/alpha.
1014         (version, VMS_EXTRA_PARTS): Moved to t-vms.
1015         (vms-ld.o, vms-cc.o): Removed.
1016         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
1017
1018 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1019
1020         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
1021         correct stack (obvious VMS fix).
1022
1023 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
1024
1025         * dwarf2out.c (output_file_names): Output VMS style file name, size,
1026         date, version info if VMS_DEBUGGING_INFO defined.
1027         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
1028         size, date calculating code moved here.
1029
1030 2009-07-29  Paul Brook  <paul@codesourcery.com>
1031
1032         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
1033         do_push/do_pop.
1034
1035 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
1036
1037         PR target/40577
1038         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
1039         to DImode when generating insq_le insn.
1040
1041 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1042
1043         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
1044         New macro set for VMS_DEBUGGGING_INFO.
1045         (AT_string_form): Use it.
1046
1047 2009-07-28  DJ Delorie  <dj@redhat.com>
1048
1049         * config/mep/mep.c (vtext_section): New.
1050         (vftext_section): New.
1051         (ftext_section): New.
1052         (mep_select_section): Add support for functions.
1053         (mep_unique_section): Likewise.
1054         (mep_asm_init_sections): Likewise.
1055         (mep_encode_section_info): Remove it from here.
1056
1057         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
1058
1059 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
1060
1061         * tree.h (TREE_DEPRECATED): Document it is used for types too.
1062         (TYPE_VECTOR_OPAQUE): Use default_def_flag
1063
1064 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
1065
1066         * dwarf2out.c (output_file_names): Test new macro
1067         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
1068         (add_comp_dir_attribute): Likewise.
1069
1070 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
1071
1072         * config/i386/mingw-w64.h (LINK_SPEC): Add
1073         separating space between commands.
1074
1075 2009-07-28  Jan Hubicka  <jh@suse.cz>
1076
1077         PR tree-optimization/40759
1078         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
1079         for renaming.
1080
1081 2009-07-27  DJ Delorie  <dj@redhat.com>
1082
1083         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
1084         types are dword-aligned.
1085         (mep_expand_va_start): Likewise.
1086
1087 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1088             Douglas B Rupp  <rupp@gnat.com>
1089
1090         * convert.c (convert_to_pointer): Don't assume the target
1091         pointer type is POINTER_SIZE long. Fetch its precision instead.
1092
1093 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
1094
1095         * system.h (fopen): Undefine if macro.
1096
1097 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
1098
1099         * dwarf2out.c (output_cfi_p): Removed.
1100         (output_cfis): New function.
1101         (output_fde): New function, split from output_call_frame_info.
1102         (output_call_frame_info): Use it.
1103         (dwarf2out_switch_text_section): Use output_cfis.
1104
1105 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1106
1107         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
1108         TARGET_BI_ARCH is specified without enabling SJLJ.
1109         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
1110         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
1111
1112 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
1113
1114         * arm.md (negdi2): Use DImode if forcing a value into a register.
1115
1116 2009-07-26  Ira Rosen  <irar@il.ibm.com>
1117
1118         PR tree-optimization/40801
1119         * tree-vect-stmts.c (vectorizable_call): Get previous copy
1120         of vector operand from the previous copy of vector statement.
1121         Pass the correct definition type value to
1122         vect_get_vec_def_for_stmt_copy().
1123
1124 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1125
1126         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
1127         const char ** conversion.
1128
1129 2009-07-25 David Daney <ddaney@caviumnetworks.com>
1130
1131         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
1132         fancy_abort() if !ENABLE_ASSERT_CHECKING.
1133         (gcc_unreachable): Invoke __builtin_unreachable() if
1134         !ENABLE_ASSERT_CHECKING.
1135
1136 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1137
1138         PR rtl-optimization/40445
1139         * emit-rtl.c (next_nonnote_insn_bb): New function.
1140         * rtl.h (next_nonnote_insn_bb): Declare new function.
1141         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
1142         with no successors that is the successor of the ENTRY_BLOCK.
1143         Continue from the top after removing an empty fallthrough block.
1144         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
1145         of next_nonnote_insn.
1146
1147 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
1148
1149         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
1150         
1151 2009-07-25  Martin Jambor  <mjambor@suse.cz>
1152
1153         * c-common.c (c_common_attribute_table): New element for noclone.
1154         (handle_noclone_attribute): New function. Forward-declare.
1155         * tree-inline.c (tree_versionable_function_p): Check for noclone
1156         attribute.
1157         * doc/extend.texi (Labels as Values): Document need for noclone.
1158         (Function Attributes): Document noclone attribute.
1159
1160 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
1161
1162         PR rtl-optimization/34999
1163         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
1164         and dw_fde_switched_cold_to_hot fields.
1165         (output_cfi_p): New function.
1166         (output_call_frame_info): If fde->dw_fde_switched_sections,
1167         output 2 FDEs instead of one with corrupted header.
1168         (dwarf2out_do_cfi_startproc): New function.
1169         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
1170         and fde->dw_fde_switched_cold_to_hot.
1171         (dwarf2out_switch_text_section): Compute
1172         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
1173         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
1174         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
1175         Otherwise, compute fde->dw_fde_switch_cfi.
1176
1177 2009-07-24  Cary Coutant  <ccoutant@google.com>
1178
1179         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
1180
1181 2009-07-24  Cary Coutant  <ccoutant@google.com>
1182
1183         * cfghooks.c (split_block): Copy discriminator to new block.
1184         * tree-cfg.c (assign_discriminator): Check location of last
1185         instruction in block as well as first.
1186
1187 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
1188
1189         * config/i386/linux.c: Use fputs or putc instead of fprintf
1190         where appropriate.
1191         * config/i386/gas.h: Ditto.
1192         * config/i386/x86-64.h: Ditto.
1193         * config/i386/att.h: Ditto.
1194
1195 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1196
1197         * expmed.c (emit_store_flag): Use a recursive call to optimize the
1198         xor case.
1199
1200 2009-07-24  Martin Jambor  <mjambor@suse.cz>
1201
1202         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
1203         (ipa_push_func_to_list_1): Declare.
1204         (ipa_push_func_to_list): New function.
1205
1206         * ipa-prop.c (ipa_push_func_to_list_1): New function.
1207         (ipa_init_func_list): Call ipa_push_func_to_list_1.
1208         (ipa_push_func_to_list): Removed.
1209         (ipa_pop_func_from_list): Clear node_enqueued flag.
1210
1211 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
1212         
1213         * config/s390/s390.c (override_options): Default
1214         max-unrolled-insns to 100 for z10 tuning.
1215
1216 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1217
1218         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
1219         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
1220         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
1221         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
1222         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
1223         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
1224         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
1225
1226 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
1227
1228         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
1229         use default set in mingw32.h header.
1230         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
1231         64-bit /mingw/include path.
1232         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
1233         path.
1234
1235 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
1236
1237         PR rtl-optimization/40209
1238         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
1239
1240 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1241
1242         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
1243         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
1244         with the rest of string where appropriate.  Use fputs or putc
1245         instead of fprintf where appropriate.
1246
1247 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
1248             Pat Haugen  <pthaugen@us.ibm.com>
1249             Revital Eres <ERES@il.ibm.com>
1250
1251         * config/rs6000/vector.md: New file.  Move most of the vector
1252         expander support here from altivec.md to allow for the VSX vector
1253         unit in the future.  Add support for secondary_reload patterns.
1254         Rewrite the patterns for vector comparison, and vector comparison
1255         predicate instructions so that the RTL expresses the desired
1256         behavior, instead of using unspec.
1257
1258         * config/rs6000/constraints.md ("f" constraint): Use
1259         rs6000_constraints to hold the precalculated register class.
1260         ("d" constraint): Ditto.
1261         ("wd" constraint): New constraint for VSX.
1262         ("wf" constraint): Ditto.
1263         ("ws" constraint): Ditto.
1264         ("wa" constraint): Ditto.
1265         ("wZ" constraint): Ditto.
1266         ("j" constraint): Ditto.
1267
1268         * config/rs6000/predicates.md (vsx_register_operand): New
1269         predicate for VSX.
1270         (vfloat_operand): New predicate for vector.md.
1271         (vint_operand): Ditto.
1272         (vlogical_operand): Ditto.
1273         (easy_fp_constant): If VSX, 0.0 is an easy constant.
1274         (easy_vector_constant): Add VSX support.
1275         (altivec_indexed_or_indirect_operand): New predicate for
1276         recognizing Altivec style memory references with AND -16.
1277
1278         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
1279         for vector secondary reload support.
1280         (rs6000_vector_reg_class): Delete, replacing it with
1281         rs6000_constraints.
1282         (rs6000_vsx_reg_class): Ditto.
1283         (rs6000_constraints): New array to hold the register classes of
1284         each of the register constraints that can vary at runtime.
1285         (builtin_mode_to_type): New static array for builtin function type
1286         creation.
1287         (builtin_hash_table): New static hash table for builtin function
1288         type creation.
1289         (TARGET_SECONDARY_RELOAD): Define target hook.
1290         (TARGET_IRA_COVER_CLASSES): Ditto.
1291         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
1292         registers are 128 bits if VSX memory reference instructions are used.
1293         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
1294         unit is being used.
1295         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
1296         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
1297         Print several of the scheduling related parameters.
1298         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
1299         rs6000_constraints instead of rs6000_vector_reg_class.  Move
1300         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
1301         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
1302         Altivec.  Add VSX support.  Setup for secondary reload support on
1303         Altivec/VSX registers.
1304         (rs6000_override_options): Make power7 set the scheduling groups
1305         like the power5.  Add support for new debug switches to override
1306         the scheduling defaults.  Temporarily disable -mcpu=power7 from
1307         setting -mvsx.  Add support for debug switches -malways-hint,
1308         -msched-groups, and -malign-branch-targets.
1309         (rs6000_buitlin_conversion): Add support for returning unsigned
1310         vector conversion functions to fix regressions due to stricter
1311         type checking.
1312         (rs6000_builtin_mul_widen_even): Ditto.
1313         (rs6000_builtin_mul_widen_odd): Ditto.
1314         (rs6000_builtin_vec_perm): Ditto.
1315         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
1316         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
1317         to zero a register.
1318         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
1319         generated upstream.
1320         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
1321         VSX types for bit operations.  Changes to accomidate vector.md.
1322         (bdesc_2arg): Ditto.
1323         (bdesc_1arg): Ditto.
1324         (struct builtin_description_predicates): Rewrite predicate
1325         handling so that RTL describes the operation, instead of passing
1326         the instruction to be used as a string argument.
1327         (bdesc_altivec_preds): Ditto.
1328         (altivec_expand_predicate_builtin): Ditto.
1329         (altivec_expand_builtin): Ditto.
1330         (rs6000_expand_ternop_builtin): Use a switch instead of an if
1331         statement for vsldoi support.
1332         (altivec_expand_ld_builtin): Change to use new names from vector.md.
1333         (altivec_expand_st_builtin): Ditto.
1334         (paired_expand_builtin): Whitespace changes.
1335         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
1336         builtin_mode_to_type table for secondary reload.  Call
1337         builtin_function_type to build random builtin functions.
1338         (altivec_init_builtins): Change to use builtin_function_type to
1339         create builtin function types dynamically as we need them.
1340         (builtin_hash_function): New support for hashing the tree types
1341         for builtin function as we need it, rather than trying to build
1342         all of the trees that we need.  Add initial preliminary VSX support.
1343         (builtin_function_type): Ditto.
1344         (builtin_function_eq): Ditto.
1345         (builtin_hash_struct): Ditto.
1346         (rs6000_init_builtins): Ditto.
1347         (rs6000_common_init_builtins): Ditto.
1348         (altivec_init_builtins): Ditto.
1349         (rs6000_common_init_builtins): Ditto.
1350         (enum reload_reg_type): New enum for simplifing reg classes.
1351         (rs6000_reload_register_type): Simplify register classes into GPR,
1352         Vector, and other registers.  Altivec and VSX addresses in reload.
1353         (rs6000_secondary_reload_inner): Ditto.
1354         (rs6000_ira_cover_classes): New target hook, that returns the
1355         appropriate cover classes, based on -mvsx being used or not.
1356         (rs6000_secondary_reload_class): Add VSX support.
1357         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
1358         (get_vsel_insn): Ditto.
1359         (rs6000_emit_vector_compare): Rewrite vector conditional support
1360         so that where we can, we use RTL operators, instead of blindly use
1361         UNSPEC.
1362         (rs6000_emit_vector_select): Ditto.
1363         (rs6000_emit_vector_cond_expr): Ditto.
1364         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
1365         (create_TOC_reference): Add -mdebug=addr support.
1366         (emit_frame_save): VSX loads/stores need register indexed addressing.
1367
1368         * config/rs6000/rs6000.md: Include vector.md.
1369
1370         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
1371
1372         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1373         support for V2DI, V2DF in logical, permute, select operations.
1374
1375         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
1376         switch for vsx/power7.
1377         (-mvsx-scalar-memory): Ditto.
1378         (-mvsx-align-128): Ditto.
1379         (-mallow-movmisalign): Ditto.
1380         (-mallow-df-permute): Ditto.
1381         (-msched-groups): Ditto.
1382         (-malways-hint): Ditto.
1383         (-malign-branch-targets): Ditto.
1384         
1385         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
1386         hook instead.
1387         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
1388         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
1389         (rs6000_vector_reg_class): Delete.
1390         (rs6000_vsx_reg_class): Ditto.
1391         (enum rs6000_reg_class_enum): New enum for the constraints that
1392         vary based on target switches.
1393         (rs6000_constraints): New array to hold the register class for all
1394         of the register constraints that vary based on the switches used.
1395         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
1396         (enum rs6000_builtins): Add unsigned varients for the builtin
1397         declarations returned by target hooks for expanding multiplies,
1398         select, and permute operations.  Add VSX builtins.
1399         (enum rs6000_builtin_type_index): Add entries for VSX.
1400         (V2DI_type_node): Ditto.
1401         (V2DF_type_node): Ditto.
1402         (unsigned_V2DI_type_node): Ditto.
1403         (bool_long_type_node): Ditto.
1404         (intDI_type_internal_node): Ditto.
1405         (uintDI_type_internal_node): Ditto.
1406         (double_type_internal_node): Ditto.
1407
1408         * config/rs6000/altivec.md (whole file): Move all expanders to
1409         vector.md from altivec.md.  Rename insn matching functions to be
1410         altivec_foo.
1411         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
1412         (altivec_vcmp*): Ditto.
1413         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
1414         (VM): New iterator for moves that includes the VSX types.
1415         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
1416         (altivec_vperm_<mode>_uns): New, for unsigned types.
1417         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
1418         (altivec_eq<mode>): Ditto.
1419         (altivec_gt<mode>): Ditto.
1420         (altivec_gtu<mode>): Ditto.
1421         (altivec_eqv4sf): Ditto.
1422         (altivec_gev4sf): Ditto.
1423         (altivec_gtv4sf): Ditto.
1424         (altivec_vcmpbfp_p): Ditto.
1425
1426 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
1427
1428         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
1429         unsigned HWI.
1430
1431 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1432
1433         PR target/40832
1434         * config/i386/i386.c (output_387_ffreep): Rewrite to use
1435         ASM_SHORT instead of .word.
1436         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
1437         instead of .word in asm template.
1438
1439 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
1440
1441         PR target/37488
1442         * ira-lives.c (bb_has_abnormal_call_pred): New function.
1443         (process_bb_node_lives): Use it.
1444
1445         * ira.c (setup_cover_and_important_classes): Don't setup
1446         ira_important_class_nums.  Add cover classes to the end of
1447         important classes.
1448         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
1449         New.
1450         (find_reg_class_closure): Use reorder_important_classes.
1451
1452         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
1453
1454         * config/i386/i386.c (i386_ira_cover_classes): New function.
1455         (TARGET_IRA_COVER_CLASSES): Redefine.
1456
1457         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
1458         importance of order of cover classes in the array.
1459         
1460 2009-07-22  Diego Novillo  <dnovillo@google.com>
1461
1462         * tree-pass.h (TDF_EH): Define.
1463         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
1464         contains TDF_EH, print the EH region number holding GS.
1465         * tree-dump.c (dump_options): Add "eh".
1466         * doc/invoke.texi: Document it.
1467
1468 2009-07-22  Doug Kwan  <dougkwan@google.com>
1469
1470         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
1471
1472 2009-07-22  Michael Matz  <matz@suse.de>
1473
1474         PR tree-optimization/35229
1475         PR tree-optimization/39300
1476
1477         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
1478         (inhibit_phi_insertion): New function.
1479         (insert_into_preds_of_block): Call it for REFERENCEs.
1480         (init_pre): Initialize and finalize scalar evolutions.
1481         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
1482
1483 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
1484
1485         * config/i386/predicates.md (zero_extended_scalar_load_operand):
1486         Use CONST_VECTOR_NUNITS to determine number of elements.
1487
1488 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
1489
1490         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
1491         (U, W): Constraints are now deprecated and will be removed if we
1492         run out of letters.     
1493         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
1494         the file.
1495         ("prefetch"): Add the stcmh instruction for prefetching.
1496         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
1497         changes.
1498         (s390_short_displacement): Return always true if compiling for
1499         machines not providing the long displacement facility.
1500         (s390_mem_constraint): Support the new constraint letter Z.
1501         (s390_check_qrst_address): New function.
1502
1503 2009-07-21  DJ Delorie  <dj@redhat.com>
1504
1505         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
1506         alone too.
1507
1508 2009-07-21  Jason Merrill  <jason@redhat.com>
1509
1510         * c-common.c (max_tinst_depth): Increase default to 1024.
1511
1512 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1513
1514         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1515         (vec_unpacku_float_lo_v4si): Ditto.
1516
1517 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1518
1519         PR target/40811
1520         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1521         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1522         (builtin_description): Add __builtin_ia32_cvtudq2ps.
1523         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1524
1525 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
1526
1527         PR tree-optimization/40813
1528         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1529         it.
1530
1531 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1532
1533         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1534         with a NOP_EXPR if needed.
1535
1536 2009-07-21  Paul Brook <paul@codesourcery.com>
1537
1538         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1539         Terminate debug dump with newline.
1540
1541 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1542
1543         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1544         Cast "1" to unsigned HOST_WIDE_INT.
1545         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
1546         deposit length to the maximum length - lsb.  Extend length if
1547         HOST_BITS_PER_WIDE_INT is 32.
1548
1549 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
1550
1551         * cgraph.h (constant_pool_htab): New function.
1552         (constant_descriptor_tree): Move from varasm.c.
1553         * varasm.c (constant_pool_htab): New function.
1554         (constant_descriptor_tree): Move to cgraph.h.
1555
1556 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
1557
1558         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
1559
1560 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
1561
1562         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1563         $(VARRAY_H).
1564
1565 2009-07-20  Xinliang David Li  <davidxl@google.com>
1566
1567         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1568
1569 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1570
1571         * config/mips/mips.md (move_type): Add arith.
1572         (type): Handle arith.
1573         (zero_extendsidi2): Rename this into ...
1574         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
1575         (zero_extendsidi2): New expander.
1576         (*zero_extendsidi2_dext): New pattern.
1577
1578 2009-07-20  Nick Clifton  <nickc@redhat.com>
1579
1580         * config.gcc (mips64-*-*): Add definition of tm_defines in order
1581         to set MIPS_ABI_DEFAULT.
1582         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1583
1584 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
1585
1586         * tree-object-size.c (addr_object_size): Handle unions with
1587         array in it as last field of structs in __bos (, 1) as __bos (, 0).
1588
1589         PR tree-optimization/40792
1590         * tree.c (build_function_type_skip_args): Remove bogus assert.
1591
1592 2009-07-20  Jan Hubicka  <jh@suse.cz>
1593             Martin Jambor  <mjambor@suse.cz>
1594
1595         * cgraph.h (combined_args_to_skip): New field.
1596         * cgraph.c (cgraph_create_virtual_clone): Properly handle
1597         combined_args_to_skip and args_to_skip.
1598         * tree-inline.c (update_clone_info): New function.
1599         (tree_function_versioning): Call update_clone_info.
1600         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1601         functions.
1602         (cgraph_materialize_all_clones): More extensive dumping, working
1603         with combined_args_to_skip rather than args_to_skip.
1604
1605 2009-07-20  Ira Rosen  <irar@il.ibm.com>
1606
1607         * tree-vectorizer.h (vectorizable_condition): Add parameters.
1608         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1609         (get_initial_def_for_reduction): Likewise.
1610         (vectorizable_reduction): Skip the check of first operand in case
1611         of COND_EXPR. Add check that it is outer loop vectorization if
1612         nested cycle was detected. Call vectorizable_condition() for 
1613         COND_EXPR. If reduction epilogue cannot be created do not fail for
1614         nested cycles (if it is not double reduction). Assert that there
1615         is only one type in the loop in case of COND_EXPR. Call
1616         vectorizable_condition() to vectorize COND_EXPR.
1617         * tree-vect-stmts.c (vectorizable_condition): Update comment.
1618         Add parameters. Allow nested cycles if called from 
1619         vectorizable_reduction(). Use reduction vector variable if provided.
1620         (vect_analyze_stmt): Call vectorizable_reduction() before
1621         vectorizable_condition().
1622         (vect_transform_stmt): Update call to vectorizable_condition().
1623
1624 2009-07-20  Christian Bruel  <christian.bruel@st.com>
1625         
1626         * config/sh/sh.opt (-mfmovd): Resurrect and document.
1627         * doc/invoke.texi (-mfmovd): Likewise.
1628         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1629         
1630 2009-07-20  Jan Hubicka  <jh@suse.cz>
1631
1632         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1633         when handling SSA name.
1634
1635 2009-07-19  Jan Hubicka  <jh@suse.cz>
1636
1637         PR tree-optimization/40676
1638         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1639         virtual PHIs in empty BBs.
1640
1641 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1642
1643         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1644         re-expanded the compound use gen_lowpart instead to convert to the
1645         desired mode.
1646
1647 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1648
1649         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1650         OUTER_CONST arguments.
1651         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1652         the new wider mode will be masked off.
1653         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1654
1655 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1656
1657         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1658         high-order bits are zero.
1659
1660 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1661
1662         * combine.c (simplify_shift_const_1): Split code to determine
1663         shift_mode into ...
1664         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
1665         new bits shifted in are identical to the old sign bit.
1666
1667 2009-07-18  Richard Guenther  <rguenther@suse.de>
1668
1669         PR c/40787
1670         * gimplify.c (gimplify_call_expr): Reject code using results from
1671         functions returning void.
1672
1673 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1674
1675         * doc/md.texi: Document the new PowerPC "es" constraint.
1676         Document that "m" can include automodified addresses on this target,
1677         and explain how %U must be used.  Extend the "Q" and "Z" documentation
1678         to suggest "es" as well as "m".
1679         * config/rs6000/constraints.md (es): New memory constraint.
1680         (Q, Z): Update strings to match new documentation.
1681
1682 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1683
1684         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1685         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1686         * config/rs6000/predicates.md (volatile_mem_operand): Use
1687         offsettable_nonstrict_memref_p.
1688         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1689         (*floatunssidf2_internal): Likewise.
1690         (*fix_truncdfsi2_internal): Likewise.
1691         (*fix_trunctfsi2_internal): Likewise.
1692
1693 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
1694
1695         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1696         atmega32u2 devices.
1697         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1698
1699 2009-07-17  Richard Guenther  <rguenther@suse.de>
1700
1701         PR c/40401
1702         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1703         (pass_warn_unused_result): Likewise.
1704         (TODO_set_props): Remove.
1705         * omp-low.c (diagnose_omp_structured_block_errors): Change to
1706         run as a pass.
1707         (pass_diagnose_omp_blocks): Define.
1708         * c-decl.c (pop_file_scope): Do not finalize the CU here.
1709         (c_gimple_diagnostics_recursively): Remove.
1710         (finish_function): Do not call it.
1711         (c_write_global_declarations): Continue after errors.
1712         Finalize the CU here.
1713         * c-gimplify.c (c_genericize): Do not gimplify here.
1714         * c-common.c (c_warn_unused_result): Move ...
1715         * tree-cfg.c (do_warn_unused_result): ... here.
1716         (run_warn_unused_result): New function.
1717         (gate_warn_unused_result): New function.
1718         (pass_warn_unused_result): New pass.
1719         * c-common.h (c_warn_unused_result): Remove.
1720         * flags.h (flag_warn_unused_result): Declare.
1721         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1722         * opts.c (flag_warn_unused_result): Initialize to false.
1723         * toplev.c (compile_file): Add comment.
1724         * omp-low.c (create_omp_child_function): Do not register
1725         the function with the frontend.
1726         (diagnose_omp_structured_block_errors): Prepare to be
1727         called as optimization pass.
1728         (gate_diagnose_omp_blocks): New function.
1729         (pass_diagnose_omp_blocks): New pass.
1730         * cgraph.h (cgraph_optimize): Remove.
1731         (cgraph_analyze_function): Likewise.
1732         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1733         * cgraphunit.c (cgraph_lower_function): Lower nested functions
1734         before their parents here.
1735         (cgraph_finalize_function): Not here.
1736         (cgraph_analyze_function): Gimplify functions here.
1737         (cgraph_finalize_compilation_unit): Continue after errors.
1738         Optimize the callgraph from here.
1739         (cgraph_optimize): Make static.
1740         * langhooks.c (write_global_declarations): Finalize the CU.
1741         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1742         (gimplify_function_tree): Assert we gimplify only once.
1743         Set PROP_gimple_any property.
1744         * tree-nested.c (gimplify_all_functions): New function.
1745         (lower_nested_functions): Gimplify all nested functions.
1746         * gimple.h (diagnose_omp_structured_block_errors): Remove.
1747         * passes.c (init_optimization_passes): Add pass_warn_unused_result
1748         and pass_diagnose_omp_blocks after gimplification.  Do not
1749         set TODO_set_props on all_lowering_passes.
1750         (execute_one_pass): Do not handle TODO_set_props.
1751         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1752         (gimplify.o): Add tree-pass.h dependency.
1753         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1754         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1755         (unsave_r): Likewise.
1756         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1757         temporary variable.
1758
1759 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
1760
1761         * doc/service.texi (Service): Restore previously removed link,
1762         which isn't broken after all.
1763
1764 2009-07-17  Richard Guenther  <rguenther@suse.de>
1765
1766         PR tree-optimization/40321
1767         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1768         PHI nodes to the maximal set.
1769         (make_values_for_phi): Add PHI arguments to the maximal set.
1770         (execute_pre): Dump PHI_GEN and the maximal set.
1771
1772 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
1773
1774         PR c++/40780
1775         * gimplify.c (gimplify_conversion): Don't change non-conversions into
1776         VIEW_CONVERT_EXPR.
1777
1778 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1779
1780         * doc/extend.texi (Nested Functions): Replace broken link with
1781         textual reference.
1782         * doc/service.texi (Service): Remove broken link.
1783
1784 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1785
1786         PR bootstrap/40781
1787         * builtins.c (expand_builtin_memcmp): Use loc instead of
1788         EXPR_LOCATION (exp).
1789         (expand_builtin_strncmp): Likewise.
1790
1791 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
1792             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1793
1794         PR 40435 
1795         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1796         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1797         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1798         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1799         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1800         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1801         tree-inline.c, c-common.c, c-common.h, gimple.c,
1802         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1803         convert.c: Add location argument to fold_{unary,binary,ternary},
1804         fold_build[123], build_call_expr, build_size_arg,
1805         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1806         fold_build1_initializer, fold_build2_initializer,
1807         fold_build3_initializer, fold_build_call_array,
1808         fold_build_call_array_initializer, fold_single_bit_test,
1809         omit_one_operand, omit_two_operands, invert_truthvalue,
1810         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1811         combine_comparisons, fold_builtin_*, fold_call_expr,
1812         build_range_check, maybe_fold_offset_to_address, round_up,
1813         round_down.
1814
1815 2009-07-16  Jason Merrill  <jason@redhat.com>
1816
1817         PR libstdc++/37907
1818         * c-common.c (c_common_reswords): Add __is_standard_layout
1819         and __is_trivial.
1820         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1821         * doc/implement-cxx.texi: New.
1822         * doc/gcc.texi: Include it.
1823
1824 2009-07-16  DJ Delorie  <dj@redhat.com>
1825
1826         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1827         compares that may be indirectly affected by previous instructions.
1828
1829 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1830
1831         * builtins.c (do_mpc_arg2): New.
1832         (fold_builtin_2): Fold builtin cpow.
1833         * real.h (HAVE_mpc_pow): New.
1834
1835 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
1836
1837         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1838         comparison to skip unprofitable schedule
1839
1840 2009-07-16  Simon Baldwin  <simonb@google.com>
1841
1842         * gcc.c (option_map): New flag -no-canonical-prefixes.
1843         * (display_help): Print help text for new flag.
1844         * (process_command): Move options translation and language specifics
1845         and handle new flag early.  Use it to set a function pointer to a
1846         prefix builder.  Replace make_relative_prefix calls with calls to
1847         the function pointed to.  Ignore new flag in regular options handling.
1848         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1849
1850 2009-07-15  DJ Delorie  <dj@redhat.com>
1851
1852         * config/mep/mep.md (sibcall_internal): Change register to avoid
1853         argument registers.
1854         (sibcall_value_internal): Likewise.
1855
1856 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1857
1858         PR rtl-optimization/40710
1859         * resource.c (mark_target_live_regs): Reset DF problem to LR.
1860
1861 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
1862
1863         * config/mips/mips.md (*extenddi_truncate<mode>,
1864         *extendsi_truncate<mode>): Change type attribute to move_type
1865         with shift_shift.  Split out code handling exts from here ...
1866         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1867         pattern.
1868         (*extendhi_truncateqi): Change type attribute to move_type with
1869         shift_shift.  Split out code handling exts from here ...
1870         (*extendhi_truncateqi_exts): ... to this new pattern.
1871
1872 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
1873
1874         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
1875         instead of "and" with inverted sign bit mask value.  Use
1876         "nonimmediate_operand" for operand 1 and operand 2 predicate.
1877         Allocate registers only for operand 4 and operand 5.
1878
1879 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
1880
1881         PR middle-end/40747
1882         * fold-const.c (fold_cond_expr_with_comparison): When folding
1883         < and <= to MIN, make sure the MIN uses the same type as the
1884         comparison's operands.
1885
1886 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
1887
1888         * arm.md (ior_xor): New code iterator.
1889         (split for ior/xor with shift and zero-extend): New split pattern.
1890         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
1891
1892 2009-07-15  Richard Guenther  <rguenther@suse.de>
1893
1894         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
1895         offset member.
1896
1897 2009-07-15  Richard Guenther  <rguenther@suse.de>
1898
1899         PR middle-end/40753
1900         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
1901
1902 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1903
1904         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
1905         handle 2.6.30 kernel.
1906
1907 2009-07-15  DJ Delorie  <dj@redhat.com>
1908
1909         * config/mep/mep.md (sibcall_internal): Change register to allow
1910         for 24-bit addresses.
1911         (sibcall_value_internal): Likewise.
1912
1913 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1914         
1915         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
1916         that are enabled/disabled by the flags introduced by a previous patch.
1917         
1918 2009-07-14  DJ Delorie  <dj@redhat.com>
1919
1920         * config/mep/mep.md (sibcall_internal): Include non-toggling
1921         non-jmp case.
1922         (sibcall_value_internal): Likewise.
1923
1924 2009-07-14  Taras Glek  <tglek@mozilla.com>
1925             Rafael Espindola  <espindola@google.com>
1926
1927         * doc/sourcebuild.texi: Document install-plugin target.
1928         * configure.ac: Added install-plugin target to language makefiles.
1929         * configure: Regenerate.
1930         * Makefile.in: (install-plugin): Install more headers,
1931         depend on lang.install-plugin.
1932
1933 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1934
1935         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
1936         translation.
1937         
1938 2009-07-14  DJ Delorie  <dj@redhat.com>
1939
1940         * config/mep/mep.c (mep_vliw_jmp_match): New function.
1941         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
1942         * config/mep/mep.md (sibcall_internal): Change test from
1943         mep_vliw_mode_match to mep_vliw_jmp_match.
1944         (sibcall_value_internal): Likewise.
1945
1946 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
1947
1948         * config/i386/sse.md (copysign<mode>3): New expander.
1949         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
1950         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
1951         Use ix86_build_const_vector.
1952         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
1953         IX86_BUILTIN_CPYSGNPD.
1954         (builtin_description): Add __builtin_ia32_copysignps and
1955         __builtin_ia32_copysignpd.
1956         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
1957         and BUILT_IN_COPYSIGNF.
1958
1959 2009-07-13  Jason Merrill  <jason@redhat.com>
1960
1961         * builtins.c (can_trust_pointer_alignment): New fn.
1962         (get_pointer_alignment): Factor it out from here.
1963         * tree.h: Declare it.
1964
1965 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
1966
1967         * config/rs6000/predicates.md (offsettable_mem_operand): Test
1968         RTX_AUTOINC class.
1969
1970 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
1971
1972         PR debug/40705
1973         PR c++/403057
1974         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
1975
1976 2009-07-14  Richard Guenther  <rguenther@suse.de>
1977             Andrey Belevantsev <abel@ispras.ru>
1978
1979         PR middle-end/40745
1980         * cfgexpand.c (partition_stack_vars): Do not bother to update
1981         alias information when not optimizing.
1982
1983 2009-07-14  Richard Guenther  <rguenther@suse.de>
1984             Andrey Belevantsev <abel@ispras.ru>
1985
1986         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
1987         (pt_solution_set): Likewise.
1988         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
1989         * tree-ssa-structalias.c (pt_solution_set): New function.
1990         * final.c (rest_of_clean_state): Free SSA data structures.
1991         * print-rtl.c (print_decl_name): Remove.
1992         (print_mem_expr): Implement in terms of print_generic_expr.
1993         * alias.c (ao_ref_from_mem): New function.
1994         (rtx_refs_may_alias_p): Likewise.
1995         (true_dependence): Query alias-export info.
1996         (canon_true_dependence): Likewise.
1997         (write_dependence_p): Likewise.
1998         * tree-dfa.c (get_ref_base_and_extent): For void types leave
1999         size unknown.
2000         * emit-rtl.c (component_ref_for_mem_expr): Remove.
2001         (mem_expr_equal_p): Use operand_equal_p.
2002         (set_mem_attributes_minus_bitpos): Do not use
2003         component_ref_for_mem_expr.
2004         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
2005         (update_alias_info_with_stack_vars): Likewise.
2006         (partition_stack_vars): Call update_alias_info_with_stack_vars.
2007         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
2008         explicitly nor clear stmt operands.
2009         Free the decl-to-pointer map.
2010         * tree-optimize.c (execute_free_datastructures): Do not free
2011         SSA data structures here.
2012         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
2013         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
2014         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
2015         dependencies.
2016         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
2017
2018 2009-07-13  DJ Delorie  <dj@redhat.com>
2019
2020         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
2021         unrolling at the right iteration count.
2022
2023         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
2024         calculations.
2025
2026 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
2027         
2028         * haifa-sched.c (rank_for_schedule): Introduced flags to
2029         enable/disable individual scheduling heuristics.
2030         * common.opt: Introduced flags to enable/disable individual
2031         heuristics in the scheduler.    
2032         * doc/invoke.texi: Introduced flags to enable/disable individual
2033         heuristics in the scheduler.
2034         
2035 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
2036
2037         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
2038         config/i386/mingw-tls.c.
2039         * config/i386/mingw-tls.c: Removed.
2040
2041 2009-07-13  Ira Rosen  <irar@il.ibm.com>
2042
2043         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
2044         checks access only relevant statements.
2045         (vectorizable_reduction): Likewise.
2046
2047 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
2048
2049         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
2050         just for 32-bit case.
2051
2052 2009-07-12  Jan Hubicka  <jh@suse.cz>
2053
2054         PR tree-optimization/40585
2055         * except.c (expand_resx_expr): When there already is resume
2056         instruction, produce linked list.
2057         (build_post_landing_pads): Assert that resume is empty.
2058         (connect_post_landing_pads): Handle resume lists.
2059         (dump_eh_tree): Dump resume list.
2060
2061 2009-07-12  Ira Rosen  <irar@il.ibm.com>
2062
2063         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
2064         with additional argument.
2065         * tree-vectorizer.h (enum vect_def_type): Add
2066         vect_double_reduction_def.
2067         (vect_is_simple_reduction): Add argument.
2068         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
2069         indentation.
2070         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
2071         vect_is_simple_reduction with additional argument.
2072         (vect_analyze_loop_operations): Handle exit phi nodes in case of
2073         double reduction.
2074         (reduction_code_for_scalar_code): Handle additional codes by
2075         returning ERROR_MARK for them. Fix comment and indentation.
2076         (vect_is_simple_reduction): Fix comment, add argument to specify
2077         double reduction. Detect double reduction.
2078         (get_initial_def_for_induction): Fix indentation.
2079         (get_initial_def_for_reduction): Fix comment and indentation.
2080         Handle double reduction. Create initial definitions that do not
2081         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
2082         (vect_create_epilog_for_reduction): Fix comment, add argument to
2083         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
2084         epilogue result extraction. Create double reduction phi node and
2085         replace relevant uses.
2086         (vectorizable_reduction): Call vect_is_simple_reduction with
2087         additional argument. Fix indentation. Update epilogue code treatment
2088         according to the changes in reduction_code_for_scalar_code. Check
2089         for double reduction. Call vect_create_epilog_for_reduction with
2090         additional argument.
2091         * tree-vect-stmts.c (process_use): Handle double reduction, update
2092         documentation.
2093         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
2094         (vect_get_vec_def_for_operand): Likewise.
2095
2096 2009-07-12  Danny Smith  <dansmister@gmail.com>
2097
2098         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
2099         dllexport if !TREE_PUBLIC.
2100         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
2101
2102 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
2103
2104         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
2105         (avr_extra_arch_macro) Remove declatation.
2106         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
2107         (avr_extra_arch_macro) Declare as static.
2108         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
2109
2110 2009-07-11  Jan Hubicka  <jh@suse.cz>
2111
2112         PR middle-end/48388
2113         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
2114
2115 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
2116
2117         PR debug/40713
2118         * dwarf2out.c (dw_fde_struct): Add in_std_section and
2119         cold_in_std_section bits.
2120         (dwarf2out_begin_prologue): Initialize them.
2121         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
2122         if already covered by text_section or cold_text_section range.
2123
2124         PR rtl-optimization/40667
2125         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
2126         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
2127         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
2128         * config/i386/i386.c (ix86_minimum_alignment): New function.
2129         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
2130         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
2131         * emit-rtl.c (gen_reg_rtx): Likewise.
2132         * function.c (assign_parms): Likewise.  If nominal_type needs
2133         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
2134         rather than passed_type's alignment.
2135
2136         PR target/40668
2137         * function.c (assign_parm_setup_stack): Adjust
2138         MEM_OFFSET (data->stack_parm) if promoted_mode is different
2139         from nominal_mode on big endian.
2140
2141 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
2142
2143         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
2144
2145 2009-07-10  DJ Delorie  <dj@redhat.com>
2146
2147         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
2148
2149 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
2150
2151         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
2152         attribute.
2153         (thumb2_cbnz): Likewise.
2154
2155 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
2156
2157         PR target/39079
2158         * config.gcc (supported_defaults): Add synci.
2159         (with_synci): Add validation.
2160         (all_defaults): Add synci.
2161         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
2162         ISA_HAS_SYNCI.
2163         (synci): Same.
2164         * config/mips/mips.opt (msynci): New option.
2165         * config/mips/mips.c (mips_override_options): Warn on use of
2166         -msynci for targets that do now support it.
2167         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2168         msynci.
2169         * gcc/doc/invoke.texi (-msynci): Document the new option.
2170         * doc/install.texi (--with-synci): Document the new option.
2171
2172 2009-07-10  Richard Guenther  <rguenther@suse.de>
2173
2174         PR tree-optimization/40496
2175         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
2176         the PHI result with a compatible type.
2177
2178 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2179
2180         PR 25509
2181         PR 40614
2182         * c.opt (Wunused-result): New.
2183         * doc/invoke.texi: Document it.
2184         * c-common.c (c_warn_unused_result): Use it.
2185
2186 2009-07-09  DJ Delorie  <dj@redhat.com>
2187
2188         * targhooks.c (default_target_can_inline_p): Rename from
2189         default_target_option_can_inline_p.
2190         * targhooks.h (default_target_can_inline_p): Likewise.
2191         * target-def.h (TARGET_CAN_INLINE_P): Rename from
2192         TARGET_OPTION_CAN_INLINE_P.
2193         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
2194         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
2195         (mep_target_can_inline_p): Rename from
2196         mep_target_option_can_inline_p.
2197
2198         PR target/40626
2199         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
2200         registers used to pass vectors.
2201
2202         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
2203
2204 2009-07-09  Tom Tromey  <tromey@redhat.com>
2205
2206         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
2207         * config/mmix/mmix.c: Include dwarf2.h.
2208         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
2209         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
2210         * config/sh/sh.c: Include dwarf2.h.
2211         * config/i386/i386.c: Include dwarf2.h.
2212         * Makefile.in (DWARF2_H): Remove 'elf'.
2213         * except.c: Include dwarf2.h.
2214         * unwind-dw2.c: Include dwarf2.h.
2215         * dwarf2out.c: Include dwarf2.h.
2216         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
2217         * unwind-dw2-fde.c: Include dwarf2.h.
2218         * dwarf2asm.c: Include dwarf2.h.
2219
2220 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2221
2222         * haifa-sched.c (insn_finishes_cycle_p): New static function.
2223         (max_issue): Use it.
2224         * sched-int.h (struct sched_info: insn_finishes_block_p): New
2225         scheduler hook.
2226         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
2227         (region_sched_info): Update.
2228         * sched-ebb.c (ebb_sched_info): Update.
2229         * modulo-sched.c (sms_sched_info): Update.
2230         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
2231
2232 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2233
2234         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
2235
2236 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
2237
2238         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
2239
2240 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
2241
2242         PR middle-end/40692
2243         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
2244         arg1 with arg01 if arg1 is already INTEGER_CST.
2245
2246 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2247
2248         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
2249         Transform (and (truncate)) into (truncate (and)).
2250
2251 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
2252
2253         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
2254         creating LHS paradoxical subregs.  Fix surrounding returns to
2255         use NULL_RTX rather than 0.
2256
2257 2009-07-08  DJ Delorie  <dj@redhat.com>
2258
2259         * config/mep/mep.c: (mep_option_can_inline_p): New.
2260         (TARGET_OPTION_CAN_INLINE_P): Define.
2261
2262 2009-07-08  Mark Wielaard  <mjw@redhat.com>
2263
2264         PR debug/40659
2265         * dwarf2out.c (add_data_member_location_attribute): When we have
2266         only a constant offset don't emit a new location description using
2267         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
2268         dwarf_version > 2.
2269
2270 2009-07-08  Richard Henderson  <rth@redhat.com>
2271
2272         PR target/38900
2273         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
2274         (enum reg_class): Add CLOBBERED_REGS.
2275         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2276         * config/i386/i386.c (ix86_conditional_register_usage): Moved
2277         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
2278         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
2279         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
2280         force 64-bit sibcalls into R11.
2281         * config/i386/constraints.md (U): New constraint.
2282         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
2283         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
2284         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
2285
2286 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
2287
2288         * basic-block.h (dump_regset, debug_regset): Remove duplicate
2289         prototypes.
2290         * c-objc-common.h (c_initialize_diagnostics): Ditto.
2291         * ebitmap.h (dump_ebitmap): Ditto.
2292         * optabs.h (optab_libfunc): Ditto.
2293         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
2294         * tree-flow.h (vect_can_force_dr_alignment_p,
2295         get_vectype_for_scalar_type): Ditto.
2296         (vectorize_loops): Move prototype to ...
2297         * tree-vectorizer.h: ... here. Also, adjust comment.
2298         (vect_set_verbosity_level): Remove duplicate prototype.
2299         * tree-ssa-loop.c: Include tree-vectorizer.h.
2300         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
2301
2302 2009-07-08  Nick Clifton  <nickc@redhat.com>
2303
2304         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
2305         forward slash.
2306
2307 2009-07-08  DJ Delorie  <dj@redhat.com>
2308
2309         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
2310         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
2311         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
2312         written to.
2313         * config/mep/intrinsics.md: Regenerated.
2314         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
2315         registers when asm() or calls are detected.
2316
2317 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2318
2319         PR c++/31246
2320         * gimplify.c (gimplify_expr): Propagate no_warning flag when
2321         gimplifying.
2322         * gimple (gimple_build_call_from_tree): Likewise.
2323         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
2324         no_warning flag before warning.
2325
2326 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2327
2328         * tree.c (set_expr_locus): Remove.
2329         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
2330         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
2331         EXPR_LOCATION.
2332         * gimplify.c (internal_get_tmp_var): Likewise.
2333         (gimplify_call_expr): Likewise.
2334         (gimplify_one_sizepos): Likewise.
2335
2336 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2337
2338         PR debug/40666
2339         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
2340         to variables for debugging purposes.
2341
2342 2009-06-23  Mark Loeser  <mark@halcy0n.com>
2343
2344         PR build/40010
2345         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
2346
2347 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2348
2349         * pretty-print.c (pp_base_format): Remove %J.
2350         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2351         gcc_cxxdiag_char_table): Likewise.
2352         (init_dynamic_diag_info): Likewise.
2353
2354 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2355
2356         * pretty-print.c (pp_base_format): Remove %H.
2357         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2358         gcc_cxxdiag_char_table): Likewise.
2359         (init_dynamic_diag_info): Likewise.
2360         * config/mep/mep.c (mep_select_section): Likewise.
2361
2362 2009-07-07  Duncan Sands  <baldrick@free.fr>
2363
2364         * final.c (pass_clean_state): Give the pass a name.
2365         * passes.c (pass_rest_of_compilation): Likewise.
2366         * tree-optimize.c (pass_all_optimizations): Likewise.
2367
2368 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2369
2370         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
2371         an extra 'decl' for error_at.
2372
2373 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
2374
2375         PR middle-end/40669
2376         * tree-tailcall.c (adjust_return_value_with_ops,
2377         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
2378         if it has complex or vector type.
2379
2380 2009-07-07  Olivier Hainque  <hainque@adacore.com>
2381
2382         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
2383         pthread symbols.
2384
2385 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
2386
2387         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
2388
2389 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2390
2391         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
2392         * c-decl.c: Likewise.
2393         * function.c: Likewise.
2394         * varasm.c: Likewise.
2395         * tree-ssa.c: Likewise.
2396         * c-common.c: Likewise.
2397         * tree-cfg.c: Likewise.
2398         * config/spu/spu.c: Likewise.
2399         * config/ia64/ia64.c: Likewise.
2400         * config/v850/v850.c: Likewise.
2401
2402 2009-07-06  DJ Delorie  <dj@redhat.com>
2403
2404         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
2405         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
2406         unspecified accesses to control registers.
2407         * config/mep/intrinsics.md: Regenerate.
2408         * config/mep/intrinsics.h: Regenerate.
2409         * config/mep/mep-intrin.h: Regenerate.
2410
2411 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2412
2413         * c-lex.c: Replace %H by an explicit location. Update all calls.
2414         * c-common.c: Likewise.
2415         * c-decl.c: Likewise.
2416         * c-typeck.c: Likewise.
2417         * fold-const.c: Likewise.
2418         * gimplify.c: Likewise.
2419         * stmt.c: Likewise.
2420         * tree-cfg.c: Likewise.
2421         * tree-ssa-loop-niter.c: Likewise.
2422         * tree-vrp.c: Likewise.
2423         * value-prof.c: Likewise.
2424
2425 2009-07-06  Diego Novillo  <dnovillo@google.com>
2426
2427         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
2428         if it has one.  Handle cases where VAR does not have an
2429         annotation or cfun is NULL.
2430
2431 2009-07-06  Diego Novillo  <dnovillo@google.com>
2432
2433         * tree.c: Include debug.h.
2434         (initialize_tree_contains_struct): New.
2435         (init_ttree): Call it.
2436         (tree_node_structure_for_code): Factor out of ...
2437         (tree_node_structure): ... here.
2438         * treestruct.def (TS_PHI_NODE): Remove.
2439         (TS_GIMPLE_STATEMENT): Remove.
2440
2441 2009-07-06  Diego Novillo  <dnovillo@google.com>
2442
2443         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
2444         (debug_tree_chain): Handle cycles.
2445
2446 2009-07-06  Nick Clifton  <nickc@redhat.com>
2447             DJ Delorie  <dj@redhat.com>
2448
2449         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2450         __FMOVD_ENABLED__ is defined.
2451         * config/sh/sh.h
2452         (TARGET_FMOVD): Provide a default definition.
2453         (MASK_FMOVD): Likewise.
2454         (TARGET_CPU_CPP_BUILTINS): Define
2455         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2456         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2457         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
2458         (split for DF load from memory into register): Also handle
2459         MEMs which consist of REG+DISP addressing.
2460         (split for DF store from register to memory): Likewise.
2461         (movsf_ie): Always use single fp_mode.
2462         * config/sh/sh.c (sh_override_options): Do not automatically
2463         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2464         that to the -mfmovd command line switch.
2465         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
2466         (fldi_ok): Always allow.
2467         * config/sh/sh.opt (mfmovd): Remove this switch.
2468         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2469
2470 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
2471             Kaz Kojima  <kkojima@gcc.gnu.org>
2472
2473         PR rtl-optimization/30807
2474         * postreload.c (reload_combine): For every new use of REG_SUM,
2475         record the use of BASE.
2476
2477 2009-07-06  Jan Hubicka  <jh@suse.cz>
2478
2479         * params.def: Revert my accidental commit at 2009-06-30.
2480
2481 2009-07-04  Ian Lance Taylor  <iant@google.com>
2482
2483         PR target/40636
2484         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
2485         EXPORTED_CONST.
2486         (mingw_format_attribute_overrides): Likewise.
2487
2488 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
2489
2490         PR debug/40596
2491         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
2492         don't check cfa.reg.  Instead of cfa.indirect use
2493         fde && fde->drap_reg != INVALID_REGNUM test.
2494
2495 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2496
2497         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
2498
2499 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
2500
2501         PR target/40587
2502         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
2503
2504 2009-07-03  Richard Guenther  <rguenther@suse.de>
2505
2506         PR tree-optimization/40640
2507         * tree-switch-conversion.c (build_arrays): Perform arithmetic
2508         in original type.
2509
2510 2009-07-03  Jan Hubicka  <jh@suse.cz>
2511
2512         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2513         for size, reduce amount of inlining.
2514
2515 2009-07-03  Richard Guenther  <rguenther@suse.de>
2516
2517         PR middle-end/34163
2518         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2519         if t +- x is known to not overflow and the conversion widens the
2520         operation.
2521         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2522
2523 2009-07-03  Jan Hubicka  <jh@suse.cz>
2524
2525         * ipa-pure-const.c (analyze): Update loop optimizer init.
2526         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2527         try_remove_empty_loop, remove_empty_loops): Remove.
2528         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2529         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2530         to mark regular loops as neccesary.
2531         (degenerate_phi_p): New function.
2532         (propagate_necessity, remove_dead_phis): Use it.
2533         (forward_edge_to_pdom): Likewise.
2534         (eliminate_unnecessary_stmts): Take care to remove uses of results of
2535         virtual PHI nodes that became unreachable.
2536         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2537         * tree-flow.h (remove_empty_loops): Remove.
2538         * passes.c (init_optimization_passes): Remove.
2539
2540 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
2541
2542         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2543         can_create_pseudo_p.
2544         (*fix_trunc<mode>_i387_1): Ditto.
2545         (*floathi<mode>2_1): Ditto.
2546         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2547         (*fistdi2_1): Ditto.
2548         (*fist<mode>2_1): Ditto.
2549         (frndintxf2_floor): Ditto.
2550         (*fist<mode>2_floor_1): Ditto.
2551         (frndintxf2_ceil): Ditto.
2552         (*fist<mode>2_ceil_1): Ditto.
2553         (frndintxf2_trunc): Ditto.
2554         (frndintxf2_mask_pm): Ditto.
2555         (fxam<mode>2_i387_with_temp): Ditto.
2556         * config/i386/sse.md (mulv16qi3): Ditto.
2557         (*sse2_mulv4si3): Ditto.
2558         (mulv2di3): Ditto.
2559         (sse4_2_pcmpestr): Ditto.
2560         (sse4_2_pcmpistr): Ditto.
2561
2562 2009-07-03  Jan Hubicka  <jh@suse.cz>
2563
2564         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2565         (mark_stmt_necessary): Set it.
2566         (mark_operand_necessary): Set it.
2567         (mark_control_dependent_edges_necessary): Set it.
2568         (mark_virtual_phi_result_for_renaming): New function.
2569         (get_live_post_dom): New function.
2570         (forward_edge_to_pdom): New function.
2571         (remove_dead_stmt): Fix handling of control dependences.
2572         (tree_dce_init): Init new bitmap.
2573         (tree_dce_done): Free it.
2574
2575 2009-07-02  Richard Guenther  <rguenther@suse.de>
2576
2577         PR bootstrap/40617
2578         * tree-ssa-structalias.c (new_var_info): Initialize
2579         is_restrict_var.
2580
2581 2009-07-02  Jan Hubicka  <jh@suse.cz>
2582
2583         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2584         local.
2585
2586 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
2587
2588         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2589         instead of recomputing it.  Adjust calls.
2590         (emit_store_flag): Adjust recursive calls.
2591
2592 2009-07-02  Richard Guenther  <rguenther@suse.de>
2593
2594         * tree-ssa-live.c (remove_unused_locals): Do not remove
2595         heap variables.
2596         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2597         of DECL_EXTERNAL for HEAP variables.
2598         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2599         HEAP variables.  Do not adjust RESTRICT vars.
2600         (find_what_var_points_to): Nobody cares if something
2601         points to READONLY.
2602
2603 2009-07-02  Ben Elliston  <bje@au.ibm.com>
2604
2605         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2606         pc_low and pc_high declarations to the top of the function.
2607
2608 2009-07-01  DJ Delorie  <dj@redhat.com>
2609
2610         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2611         registers as fixed.
2612         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
2613         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2614         unspecified accesses to control registers.
2615         * config/mep/intrinsics.md: Regenerate.
2616         * config/mep/intrinsics.h: Regenerate.
2617         * config/mep/mep-intrin.h: Regenerate.
2618
2619 2009-07-01  Anthony Green  <green@moxielogic.com>
2620
2621         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2622         instruction when possible.
2623         (moxie_expand_prologue): Ditto.  Also, save an instruction and
2624         some complexity by popping off of $r12 instead of $sp.
2625         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
2626         operands.
2627
2628 2009-07-01  Richard Henderson  <rth@redhat.com>
2629
2630         PR bootstrap/40347
2631         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2632         contained no insns, reposition note before last insn.
2633
2634 2009-07-01  Richard Henderson  <rth@redhat.com>
2635
2636         PR debug/40431
2637         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2638         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2639
2640 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2641
2642         PR bootstrap/40558
2643         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2644         darwin9 for printing reg addresses with %y.
2645
2646 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2647
2648         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
2649         truncation from operands in binary operations.
2650
2651 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2652
2653         Revert:
2654         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
2655         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2656         subreg of op0 to the original op0.
2657
2658         * expmed.c (store_bit_field_1): Use a temporary as the destination
2659         instead of a paradoxical subreg when we need to truncate the result.
2660
2661 2009-07-01  DJ Delorie  <dj@redhat.com>
2662
2663         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2664         names to VLIW variants.
2665         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2666         * config/mep/intrinsics.md: Regenerate.
2667         * config/mep/intrinsics.h: Regenerate.
2668         * config/mep/mep-intrin.h: Regenerate.
2669
2670 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
2671
2672         PR debug/40462
2673         * jump.c (returnjump_p): Revert last patch.
2674         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2675
2676 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2677
2678         PR target/40575
2679         * pa.md (casesi32p): Use jump table label to determine the offset
2680         of the jump table.
2681         (casesi64p): Likewise.
2682
2683         * pa.c (forward_branch_p): Return bool type.  Use instruction
2684         addresses when available.  Assert that INSN has a jump label.
2685         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2686         have a jump label.
2687
2688 2009-07-01  Richard Guenther  <rguenther@suse.de>
2689
2690         PR tree-optimization/19831
2691         * tree-ssa-dce.c (propagate_necessity): Calls to functions
2692         that only act as barriers do not make any previous stores necessary.
2693         * tree-ssa-structalias.c (handle_lhs_call): Delay making
2694         HEAP variables global, do not add a constraint from nonlocal.
2695         (find_func_aliases): Handle escapes through return statements.
2696         (compute_points_to_sets): Make escaped HEAP variables global.
2697
2698 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2699
2700         PR bootstrap/40597
2701         * expmed.c (emit_store_flag): Perform a conversion if necessary,
2702         after reducing a DImode cstore to SImode.
2703
2704 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2705
2706         * expr.c (expand_expr_real_1): Reinstate fallthrough to
2707         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2708
2709 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
2710
2711         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
2712         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
2713         to 0.
2714         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2715         and umod_optab if TARGET_BSD_DIVMOD.
2716         * config/vax/lib1funcs.asm: New file.
2717         * config/vax/t-linux: New file.
2718         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2719
2720 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
2721
2722         PR c++/40566
2723         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2724         to type arguments that have void type.
2725
2726         PR debug/40573
2727         * dwarf2out.c (gen_formal_parameter_die): Call
2728         equate_decl_number_to_die if node is different from origin.
2729
2730 2009-06-30  Anthony Green  <green@moxielogic.com>
2731
2732         Clean up moxie port for --enable-build-with-cxx.
2733         * config/moxie/moxie.c (moxie_function_value): First two
2734         parameters are const_tree, not tree.
2735         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2736         (REG_CLASS_NAMES): Ditto.
2737         (REGNO_REG_CLASS): Ditto.
2738         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2739         (moxie_function_value): Fix constyness of arguments.
2740
2741 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2742
2743         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2744         finalize_size_functions before further processing.
2745         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2746         (variable_size): Call self_referential_size on size expressions
2747         that contain a PLACEHOLDER_EXPR.
2748         (size_functions): New static variable.
2749         (copy_self_referential_tree_r): New static function.
2750         (self_referential_size): Likewise.
2751         (finalize_size_functions): New global function.
2752         * tree.c: Include tree-inline.h.
2753         (push_without_duplicates): New static function.
2754         (find_placeholder_in_expr): New global function.
2755         (substitute_in_expr) <tcc_declaration>: Return the replacement object
2756         on equality.
2757         <tcc_expression>: Likewise.
2758         <tcc_vl_exp>: If the replacement object is a constant, try to inline
2759         the call in the expression.
2760         * tree.h (finalize_size_functions): Declare.
2761         (find_placeholder_in_expr): Likewise.
2762         (FIND_PLACEHOLDER_IN_EXPR): New macro.
2763         (substitute_placeholder_in_expr): Update comment.
2764         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2765         is true.
2766         (copy_tree_body_r): Likewise.
2767         (copy_tree_body): New static function.
2768         (maybe_inline_call_in_expr): New global function.
2769         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2770         (maybe_inline_call_in_expr): Declare.
2771         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2772         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2773         GIMPLE_H.
2774
2775 2009-06-30  Richard Guenther  <rguenther@suse.de>
2776
2777         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2778         continue walking.
2779         (propagate_necessity): Do not mark reaching defs of stores
2780         as necessary.
2781
2782 2009-06-30  Jan Hubicka  <jh@suse.cz>
2783
2784         * cfgloopanal.c (check_irred): Move into ...
2785         (mark_irreducible_loops): ... here; return true if ireducible
2786         loops was found.
2787         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2788         (analyze_function): Try to prove loop finiteness.
2789         * cfgloop.h (mark_irreducible_loops): Update prototype.
2790         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2791
2792 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
2793
2794         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2795
2796 2009-06-30  Ira Rosen  <irar@il.ibm.com>
2797
2798         PR tree-optimization/40542
2799         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
2800         types.
2801
2802 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2803
2804         PR tree-optimization/40582
2805         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2806         than useless_type_conversion_p.
2807         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2808         proper place.
2809
2810 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2811
2812         PR middle-end/40554
2813         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2814
2815 2009-06-30  Richard Guenther  <rguenther@suse.de>
2816
2817         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2818         use ao_ref references.
2819         (walk_aliased_vdefs): Likewise.
2820         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2821         * tree-ssa-dce.c (struct ref_data): Remove.
2822         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2823         (mark_aliased_reaching_defs_necessary): Adjust.
2824         (mark_all_reaching_defs_necessary_1): Likewise.
2825
2826 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
2827
2828         PR boostrap/40597
2829         * expmed.c (emit_cstore): New name of emit_store_flag_1.
2830         (emit_store_flag_1): Extract from emit_store_flag, adjust
2831         calls to (what now is) emit_cstore.
2832         (emit_store_flag): Call emit_store_flag_1 and also use it
2833         for what used to be recursive calls.
2834
2835 2009-06-30  Wei Guozhi  <carrot@google.com>
2836
2837         PR/40416
2838         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2839         if the target bb post dominates from bb.
2840         * config/i386/i386.c (memory_address_length): Check existence of base
2841         register before using it.
2842
2843 2009-06-30  Nick Clifton  <nickc@redhat.com>
2844             DJ Delorie  <dj@redhat.com>
2845
2846         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2847         __FMOVD_ENABLED__ is defined.
2848         * config/sh/sh.h
2849         (TARGET_FMOVD): Provide a default definition.
2850         (MASK_FMOVD): Likewise.
2851         (TARGET_CPU_CPP_BUILTINS): Define
2852         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2853         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2854         two fmov instructions depending upon whether TARGET_FMOVD is
2855         enabled.
2856         (split for DF load from memory into register): Also handle
2857         MEMs which consist of REG+DISP addressing.
2858         (split for DF store from register to memory): Likewise.
2859         * config/sh/sh.opt (mfmovd): Remove this switch.
2860         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2861         * config/sh/sh.c (sh_override_options): Do not automatically
2862         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2863         that to the -mfmovd command line switch.
2864
2865         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2866         the SH4 and SH4A.
2867         (fldi_ok): Always allow.
2868         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2869
2870 2009-06-29  DJ Delorie  <dj@redhat.com>
2871
2872         * doc/install.texi (mep-x-elf): Correct chip's full name.
2873
2874 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2875
2876         * doc/extend.texi: Fix typo.
2877
2878 2009-06-29  Tom Tromey  <tromey@redhat.com>
2879
2880         * dwarf2.h: Remove.
2881         * Makefile.in (DWARF2_H): New variable.
2882         (except.o): Use it.
2883         (dwarf2out.o): Likewise.
2884         (dwarf2asm.o): Likewise.
2885         * config/i386/t-i386: Use DWARF2_H.
2886         * except.c: Include elf/dwarf2.h.
2887         * unwind-dw2.c: Include elf/dwarf2.h.
2888         * dwarf2out.c: Include elf/dwarf2.h.
2889         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
2890         <dtprel>: New field.
2891         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
2892         (size_of_loc_descr): Likewise.
2893         (output_loc_operands_raw): Likewise.
2894         (output_loc_operands): Handle new dtprel field.
2895         (loc_checksum): Update.
2896         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
2897         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
2898         * unwind-dw2-fde.c: Include elf/dwarf2.h.
2899         * dwarf2asm.c: Include elf/dwarf2.h.
2900         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
2901         * config/mmix/mmix.c: Include elf/dwarf2.h.
2902         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
2903         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
2904         * config/sh/sh.c: Include elf/dwarf2.h.
2905         * config/i386/i386.c: Include elf/dwarf2.h.
2906
2907 2009-06-29  DJ Delorie  <dj@redhat.com>
2908
2909         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
2910
2911         * doc/extend.texi: Add MeP attributes and pragmas.
2912         * doc/invoke.text: Add MeP Options.
2913         * doc/contrib.texi: Add MeP contribution.
2914         * doc/md.texi: Add MeP constraints.
2915         * doc/install.texi: Add MeP target.
2916
2917 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
2918
2919         * target.h (struct gcc_target): Add frame_pointer_required field.
2920         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
2921         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
2922         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
2923         hook.
2924         * reload1.c (update_eliminables): (Ditto.).
2925         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
2926         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2927         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
2928
2929         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
2930
2931         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
2932         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2933         (arm_frame_pointer_required): New function.
2934
2935         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
2936         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2937         (avr_frame_pointer_required_p): Declare as static.
2938         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
2939
2940         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
2941         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2942         (bfin_frame_pointer_required): Make as static, change return type
2943         to bool.
2944         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
2945
2946         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
2947         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2948         (cris_frame_pointer_required): New function.
2949         
2950         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
2951
2952         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
2953         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2954         (fr30_frame_pointer_required): New function.
2955         
2956         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
2957         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2958         (frv_frame_pointer_required): Make as static, change return type
2959         to bool.
2960         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
2961
2962         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
2963         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2964         (ix86_frame_pointer_required): Make as static, change return type to
2965         bool.
2966         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
2967
2968         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
2969         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2970
2971         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
2972
2973         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
2974         
2975         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
2976
2977         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
2978         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2979         (mips_frame_pointer_required): Make as static.
2980         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
2981         
2982         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
2983         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2984         (mmix_frame_pointer_required): Mew function.
2985
2986         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
2987         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2988
2989         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
2990
2991         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
2992
2993         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
2994
2995         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
2996         (CAN_ELIMINATE): Redefine.
2997         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2998         (sparc_frame_pointer_required): New function.
2999         (sparc_can_eliminate): New function.
3000         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
3001
3002         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
3003         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3004
3005         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
3006         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
3007         (xtensa_frame_pointer_required): Make as static, change return type
3008         to bool.
3009         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
3010         Remove.
3011
3012 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
3013
3014         * doc/plugins.texi: Document PLUGIN_START_UNIT.
3015         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
3016         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
3017         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
3018         (register_callback): Handle PLUGIN_START_UNIT.
3019         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
3020
3021 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3022
3023         * tree.c (process_call_operands): Propagate TREE_READONLY from the
3024         operands.
3025         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
3026         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
3027
3028 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
3029
3030         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
3031         move cost.
3032
3033 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
3034
3035         * doc/extend.texi (Additional Floating Types): __float128 is also
3036         supported on i386 targets.
3037
3038 2009-06-29  Richard Guenther  <rguenther@suse.de>
3039
3040         PR middle-end/14187
3041         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
3042         flag.
3043         (pt_solutions_same_restrict_base): Declare.
3044         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
3045         flag.
3046         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
3047         (make_constraint_from, make_copy_constraint): Move earlier.
3048         (make_constraint_from_heapvar): New function.
3049         (make_constraint_from_restrict): Likewise.
3050         (handle_lhs_call): Use it.
3051         (find_func_aliases): Use it to track conversions to restrict
3052         qualified pointers.
3053         (struct fieldoff): Add only_restrict_pointers flag.
3054         (push_fields_onto_fieldstack): Initialize it.
3055         (create_variable_info_for): Track global restrict qualified pointers.
3056         (intra_create_variable_infos): Use make_constraint_from_heapvar.
3057         Track restrict qualified pointer arguments.
3058         (set_uids_in_ptset): Use varinfo is_global_var flag.
3059         (find_what_var_points_to): Set the vars_contains_restrict flag.
3060         Always create the points-to solution for sets including restrict tags.
3061         (pt_solutions_same_restrict_base): New function.
3062         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
3063         qualified pointers use pt_solutions_same_restrict_base as
3064         additional source for disambiguation.
3065
3066 2009-06-29  Richard Guenther  <rguenther@suse.de>
3067
3068         PR middle-end/38212
3069         * alias.c (find_base_decl): Remove.
3070         (get_deref_alias_set_1): Remove restrict handling.
3071         * c-common.c (c_apply_type_quals_to_decl): Do not set
3072         DECL_POINTER_ALIAS_SET.
3073         * gimplify.c (find_single_pointer_decl_1): Remove.
3074         (find_single_pointer_decl): Likewise.
3075         (internal_get_tmp_var): Remove restrict handling.
3076         (gimple_regimplify_operands): Likewise.
3077         * omp-low.c (expand_omp_atomic_pipeline): Do not set
3078         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
3079         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
3080         * tree.c (restrict_base_for_decl): Remove.
3081         (init_ttree): Do not allocate it.
3082         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
3083         LABEL_DECL_UID for label decls.
3084         (copy_node_stat): Do not copy restrict information.
3085         (decl_restrict_base_lookup): Remove.
3086         (decl_restrict_base_insert): Likewise.
3087         (print_restrict_base_statistics): Likewise.
3088         (dump_tree_statistics): Do not call print_restrict_base_statistics.
3089         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
3090         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
3091         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
3092         (LABEL_DECL_UID): Adjust.
3093         (DECL_BASED_ON_RESTRICT_P): Remove.
3094         (DECL_GET_RESTRICT_BASE): Likewise.
3095         (SET_DECL_RESTRICT_BASE): Likewise.
3096         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
3097
3098         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
3099         instead of DECL_POINTER_ALIAS_SET.
3100         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3101         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
3102         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
3103
3104 2009-06-29  Richard Guenther  <rguenther@suse.de>
3105
3106         PR tree-optimization/40579
3107         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
3108         the IL to simplify has constants that overflowed.
3109
3110 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
3111
3112         PR tree-optimization/40550
3113         * tree-vect-generic.c (expand_vector_operations_1): Compute in
3114         vector_compute_type only when the size of vector_compute_type is
3115         less than the size of type.
3116
3117 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
3118
3119         * fold-const.c (contains_label_1): Fix comments.
3120         (contains_label_p): Do not walk trees multiple time.
3121
3122 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3123
3124         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
3125         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
3126         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
3127         ix86_fp_comparison_operator.
3128         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
3129         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
3130         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
3131         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
3132         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
3133         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
3134         (related splits): Change predicate to ix86_fp_comparison_operator.
3135         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
3136         instead of ix86_fp_comparison_codes.
3137         (ix86_trivial_fp_comparison_operator,
3138         ix86_fp_comparison_operator): New.
3139         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
3140         (ix86_expand_compare): Eliminate last two parameters.
3141         (ix86_fp_jump_nontrivial_p): Kill.
3142         * config/i386/i386.c (put_condition_code): Eliminate call to
3143         ix86_fp_comparison_codes and subsequent assertion.
3144         (ix86_fp_comparison_codes): Eliminate.
3145         (ix86_fp_swap_condition): New.
3146         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
3147         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
3148         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
3149         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
3150         and ix86_fp_swap_condition.
3151         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
3152         Use ix86_fp_comparison_strategy.
3153         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
3154         (ix86_fp_jump_nontrivial_p): Eliminate.
3155         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
3156         call to ix86_expand_compare.
3157         (ix86_split_fp_branch, ix86_expand_setcc,
3158         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
3159         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
3160
3161 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3162
3163         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
3164         related to jump_clobbers.
3165         * config/arm/arm.md (conds): Remove jump_clob case.
3166         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
3167         splits): Change comparison_operator to arm_comparison_operator.
3168         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
3169         Eliminate.
3170
3171 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3172
3173         * dojump.c (do_compare_rtx_and_jump): Try swapping the
3174         condition for floating point modes.
3175         * expmed.c (emit_store_flag_1): Move here a bigger part
3176         of emit_store_flag.
3177         (emit_store_flag): Try swapping the condition for floating point
3178         modes.
3179         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
3180
3181 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3182
3183         * expr.c (expand_expr_real_1): Just use do_store_flag.
3184         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
3185         emit_store_flag_force.
3186         * expmed.c (emit_store_flag_force): Copy here trick
3187         previously in expand_expr_real_1.  Try reversing the comparison.
3188         (emit_store_flag_1): Work if target is NULL.
3189         (emit_store_flag): Work if target is NULL, using the result mode
3190         from the comparison.  Use split_comparison, restructure final part
3191         to simplify conditionals.
3192
3193 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
3194
3195         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
3196         * dojump.c (do_jump): Change handling of floating-point
3197         ops to use just do_compare_and_jump.
3198         (split_comparison): New.
3199         (do_compare_rtx_and_jump): Add here logic coming previously
3200         in do_jump, using split_comparison.
3201
3202 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
3203
3204         PR target/40489
3205         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
3206
3207 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3208
3209         * tree-ssa-alias.c: Fix unintentional commit.
3210
3211 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3212
3213         * passes.c (execute_one_pass): Fix unintentional commit.
3214
3215 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3216
3217         * df-problems.c (df_set_seen, df_unset_seen): Delete.
3218         (df_rd_local_compute, df_md_local_compute): Inline them.
3219
3220         (df_md_scratch): New.
3221         (df_md_alloc, df_md_free): Allocate/free it.
3222         (df_md_local_compute): Only include live registers in init.
3223         (df_md_transfer_function): Prune the in-set computed by
3224         the confluence function, and the gen-set too.
3225
3226 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3227
3228         PR rtl-optimization/26854
3229         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
3230         * df-problems.c (df_rd_add_problem): Fix comment.
3231         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
3232         df_md_simulate_artificial_defs_at_top,
3233         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
3234         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
3235         df_md_transfer_function, df_md_init, df_md_confluence_0,
3236         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
3237         problem_MD, df_md_add_problem): New.
3238         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
3239         df_md_get_bb_info): New.
3240         (DF_LAST_PROBLEM_PLUS1): Adjust.
3241
3242         * Makefile.in (fwprop.o): Include domwalk.h.
3243         * fwprop.c: Include domwalk.h.
3244         (reg_defs, reg_defs_stack): New.
3245         (bitmap_only_bit_between): Remove.
3246         (process_defs): New.
3247         (process_uses): Use reg_defs and local_md instead of
3248         bitmap_only_bit_between and local_rd.
3249         (single_def_use_enter_block): New, from build_single_def_use_links.
3250         (single_def_use_leave_block): New.
3251         (build_single_def_use_links): Remove code moved to
3252         single_def_use_enter_block, invoke domwalk.
3253         (use_killed_between): Adjust comment.
3254
3255 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3256
3257         * bitmap.h (bitmap_ior_and_into): New.
3258         * bitmap.c (bitmap_ior_and_into): New.
3259
3260 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
3261
3262         * domwalk.h (struct dom_walk_data): Remove all callbacks except
3263         before_dom_children_before_stmts and after_dom_children_after_stmts.
3264         Rename the two remaining callbacks to just before_dom_children and 
3265         after_dom_children. Remove other GIMPLE statement walking bits.
3266         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
3267         * graphite.c: Do not include domwalk.h.
3268         * tree-into-ssa.c (interesting_blocks): New global.
3269         (struct mark_def_sites_global_data): Remove it and names_to_rename.
3270         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
3271         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
3272         now that they're not domwalk callbacks.
3273         (rewrite_initialize_block): Rename to...
3274         (rewrite_enter_block): ... this, place after called functions.  Test
3275         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
3276         (rewrite_finalize_block): Rename to...
3277         (rewrite_leave_block): ... this, place after called functions.
3278         (rewrite_update_init_block): Rename to...
3279         (rewrite_update_enter_block): ... this, place after called functions.
3280         Test interesting_blocks, call rewrite_update_stmt and 
3281         rewrite_update_phi_arguments.
3282         (rewrite_update_fini_block): Rename to...
3283         (rewrite_leave_block): ... this, place after called functions.
3284         (rewrite_blocks): Remove last argument, simplify initialization of
3285         walk_data.
3286         (mark_def_sites_initialize_block): Rename to...
3287         (mark_def_sites_block): ... this, call mark_def_sites.
3288         (mark_def_sites_blocks): Remove argument, simplify initialization of
3289         walk_data.
3290         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
3291         (update_ssa): Likewise.
3292         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
3293         callback.
3294         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
3295         (dom_opt_initialize_block): Rename to...
3296         (dom_opt_enter_block): ... this, place after called functions.  Walk
3297         statements here, inline propagate_to_outgoing_edges.
3298         (dom_opt_finalize_block): Rename to...
3299         (dom_opt_leave_block): ... this, place after called functions.
3300         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
3301         domwalk callback.
3302         (dse_enter_block, dse_record_phi): New.
3303         (dse_record_phis): Delete.
3304         (dse_finalize_block): Rename to...
3305         (dse_leave_block): ... this.
3306         (tree_ssa_dse): Simplify initialization of walk_data.
3307         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
3308         Adjust initialization of walk_data.
3309         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
3310         * tree-ssa-loop-phiopt.c (get_non_trapping):
3311         Adjust initialization of walk_data.
3312         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
3313         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
3314         it's not a domwalk callback.
3315         (uncprop_initialize_block): Rename to...
3316         (dse_enter_block): ... this, call uncprop_into_successor_phis.
3317         (dse_finalize_block): Rename to...
3318         (dse_leave_block): ... this.
3319         (tree_ssa_uncprop): Simplify initialization of walk_data.
3320         * Makefile.in: Adjust dependencies.
3321
3322 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
3323
3324         * arm.md (casesi): Fix test for Thumb1.
3325         (thumb1_casesi_internal_pic): Likewise.
3326         (thumb1_casesi_dispatch): Likewise.
3327
3328 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
3329
3330         * config/arm/arm-cores.def: Added core cortex-m0.
3331         * config/arm/arm-tune.md: Regenerated.
3332         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
3333
3334 2009-06-26  DJ Delorie  <dj@redhat.com>
3335
3336         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
3337
3338         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
3339         the scheduler doesn't tag jump insns.
3340
3341 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3342
3343         * c-decl.c (merge_decls): Re-indent.
3344
3345 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
3346
3347         PR c/39902
3348         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3349         Special-case decimal float constants.
3350
3351 2009-06-26  Richard Henderson  <rth@redhat.com>
3352
3353         * function.h (struct function): Add cannot_be_copied_reason,
3354         and cannot_be_copied_set.
3355         * tree-inline.c (has_label_address_in_static_1): Rename from
3356         inline_forbidden_p_2; don't set inline_forbidden_reason here.
3357         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
3358         don't set inline_forbidden_reason.
3359         (copy_forbidden): New function, split out of inline_forbidden_p.
3360         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
3361         (inline_forbidden_p): Use copy_forbidden.
3362         (tree_versionable_function_p): Likewise.
3363         (inlinable_function_p): Merge into tree_inlinable_function_p.
3364         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
3365         * ipa-cp.c (ipcp_versionable_function_p): New function.
3366         (ipcp_cloning_candidate_p): Use it.
3367         (ipcp_node_modifiable_p): Likewise.
3368
3369 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
3370
3371         * builtins.c (expand_builtin_alloca): Handle builtin alloca
3372         that is marked not to be inlined. Remove flag_mudflap use.
3373         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
3374         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
3375
3376 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
3377
3378         PR bootstrap/40338
3379         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
3380         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
3381
3382 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
3383
3384         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
3385         shared libgcc.
3386         (__mingwthr_remove_key_dtor): Likewise.
3387
3388 2009-06-26  Richard Guenther  <rguenther@suse.de>
3389
3390         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
3391
3392 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3393
3394         PR middle-end/40525
3395         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
3396         try the non-cond_exec path also.
3397
3398 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3399
3400         PR target/40468
3401         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
3402         (output_cbranch): Use new functions.
3403         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
3404         Likewise.
3405
3406 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3407             Pat Haugen  <pthaugen@us.ibm.com>
3408             Revital Eres <ERES@il.ibm.com>
3409
3410         * config/rs6000/rs6000.c (print_operand): Correct lossage message
3411         for %c error.  Add %x support to print VSX registers as a unified
3412         register set, instead of separate float and altivec registers.
3413         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
3414         %y case, and add support for VSX pre-modify addresses.
3415         (output_toc): Add assert for CONST containing an integer constant
3416         in the PLUS case.
3417         (rs6000_adjust_cost): Add POWER7 support.
3418         (insn_must_be_first_in_group): Ditto.
3419         (insn_must_be_last_in_group): Ditto.
3420         (rs6000_emit_popcount): Ditto.
3421         (rs6000_vector_mode_supported_p): Ditto.
3422
3423         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
3424         Change some of the functions called by macros to being called
3425         through a pointer, so debug functions can be inserted if
3426         -mdebug=addr or -mdebug=cost. 
3427         (rs6000_preferred_reload_class_ptr): Ditto.
3428         (rs6000_secondary_reload_class_ptr): Ditto.
3429         (rs6000_secondary_memory_needed_ptr): Ditto.
3430         (rs6000_cannot_change_mode_class_ptr): Ditto.
3431         (rs6000_secondary_reload_inner): Ditto.
3432         (rs6000_legitimize_reload_address): Ditto.
3433         (rs6000_legitimize_reload_address_ptr): Ditto.
3434         (rs6000_mode_dependent_address): Ditto.
3435         (rs6000_mode_dependent_address_ptr): Ditto.
3436
3437         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
3438         function to return true if the mode allows reg + integer
3439         addresses.
3440         (virtual_stack_registers_memory_p): New function to return true if
3441         the address refers to a virtual stack register.
3442         (rs6000_legitimate_offset_address_p): Move code to say whether a
3443         mode supports reg+int addressing to reg_offset_addressing_ok_p and
3444         call it.
3445         (rs6000_legitimate_address_p): Add checks for modes that only can
3446         do reg+reg addressing.  Start adding VSX support.
3447         (rs6000_legitimize_reload_address): Ditto.
3448         (rs6000_legitimize_address): Ditto.
3449         (rs6000_debug_legitimate_address_p): New debug functions for
3450         -mdebug=addr and -mdebug=cost.
3451         (rs6000_debug_rtx_costs): Ditto.
3452         (rs6000_debug_address_costs): Ditto.
3453         (rs6000_debug_adjust_cost): Ditto.
3454         (rs6000_debug_legitimize_address): Ditto.
3455         (rs6000_legitimize_reload_address_ptr): Point to call normal
3456         function or debug function.  Make functions called via pointer
3457         static.
3458         (rs6000_mode_dependent_address_ptr): Ditto.
3459         (rs6000_secondary_reload_class_ptr): Ditto.
3460         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
3461         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
3462         into a friendlier error.
3463         (rs6000_init_builtins): Add initial VSX support.
3464         (rs6000_adjust_cost): Fix some spacing issues.
3465
3466         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
3467         (REG_CLASS_NAMES): Ditto.
3468         (REG_CLASS_CONTENTS): Ditto.
3469         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
3470         pointer, to add -mdebug=addr support.
3471         (CANNOT_CHANGE_MODE_CLASS): Ditto.
3472         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
3473         -mdebug=addr support.
3474         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
3475         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
3476         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
3477
3478         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
3479         16-bit values.
3480         (bswapsi*): Set attribute types for load/store.  Add combiner
3481         patterns to eliminate zero extend on 64-bit.
3482         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
3483         stdbrx if the hardware supports those instructions.
3484
3485 2009-06-25  Ian Lance Taylor  <iant@google.com>
3486
3487         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
3488         (Link Options): Document -static-libstdc++.
3489
3490 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3491
3492         PR target/38731
3493         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
3494         DATA_ALIGNMENT instead.
3495
3496 2009-06-25  Richard Guenther  <rguenther@suse.de>
3497
3498         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
3499         indirect references against the callused/escaped solutions.
3500         (call_may_clobber_ref_p_1): Likewise.
3501
3502 2009-06-25  Martin Jambor  <mjambor@suse.cz>
3503
3504         PR tree-optimization/40493
3505         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
3506         (enum unscalarized_data_handling): New type.
3507         (handle_unscalarized_data_in_subtree): Return what has been done.
3508         (load_assign_lhs_subreplacements): Handle left flushes differently.
3509         (sra_modify_assign): Use unscalarized_data_handling, simplified
3510         condition determining whether to remove the statement.
3511
3512 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3513
3514         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3515         excerpt - @ should be doubled for texinfo.
3516
3517 2009-06-24  Ian Lance Taylor  <iant@google.com>
3518
3519         * config/arc/arc.c: Include "df.h".
3520         (arc_attribute_table): Make static.  Move higher in file.
3521         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3522         (output_shift): Initialize n later to avoid warning.
3523         * config/arm/arm.c (arm_attribute_table): Make static.  Move
3524         higher in file.
3525         * config/avr/avr.c (avr_attribute_table): Make static.  Move
3526         higher in file.
3527         (reg_class_tab): Change array type from int to enum reg_class.
3528         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3529         LABEL_REF.
3530         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3531         (lshrhi3_out): Likewise.
3532         (class_likely_spilled_p): Change return type to bool.
3533         (avr_rtx_costs): Use local code variable with enum type.
3534         * config/avr/avr.md (movmemhi): Use add_reg_note.
3535         (andhi3, andsi3): Don't use AS2 with "and".
3536         (iorhi3, iorsi3): Don't use AS2 with "or".
3537         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
3538         * config/crx/crx.c: Include "df.h".
3539         (crx_attribute_table): Make static.
3540         * config/m32r/m32r.c: Include "df.h".
3541         (m32r_attribute_table): Make static.  Move higher in file.
3542         (pop): Use add_reg_note.
3543         (block_move_call): Change 0 to LCT_NORMAL in function call.
3544         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3545         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3546         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3547         declare, not just when TREE_CODE is defined.
3548         * config/m68hc11/m68hc11.c: Include "expr.h".
3549         (m68hc11_attribute_table): Make static.  Move higher in file.
3550         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3551         function call.
3552         (m68hc11_register_indirect_p): Likewise.
3553         (m68hc11_function_arg_padding): Change return type to enum
3554         direction.
3555         (emit_move_after_reload): Use add_reg_note.
3556         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3557         (m68hc11_split_logical): Likewise.
3558         (m68hc11_rtx_costs): Add local code_and outer_code variables with
3559         enum type.
3560         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3561         to VOIDmode in function call.
3562         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3563         tree is defined.
3564         (m68hc11_split_logical): Update declaration.
3565         (m68hc11_function_arg_padding): Update declaration.
3566         * config/mcore/mcore.c (regno_reg_class): Change form array of int
3567         to array of enum reg_class.
3568         (mcore_attribute_table): Make static.  Move higher in file.
3569         (mcore_rtx_costs): Add cast to enum type.
3570         * config/mcore/mcore.h (regno_reg_class): Update declaration.
3571         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3572         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
3573         in file.
3574         * config/sh/predicates.md (trapping_target_operand): Rename and to
3575         and_expr.
3576         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
3577         higher in file.
3578         * config/spu/spu.c (spu_attribute_table): Make static.  Move
3579         higher in file.
3580         * config/v850/v850.c (v850_attribute_table): Make static.  Move
3581         higher in file.
3582         (v850_rtx_costs): Use local code with enum type.
3583         (expand_epilogue): Add cast.
3584         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3585
3586 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
3587
3588         PR target/40515
3589         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3590         -m2a-single-only and -m2a-nofpu.
3591         * config/sh/sh.opt: Document m2a generates FPU code.  
3592
3593 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
3594
3595         * defaults.h (CAN_ELIMINATE): Provide default.
3596         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3597         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3598         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3599         * config/spu/spu.h (CAN_ELIMINATE): Delete.
3600         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3601         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3602         * config/cris/cris.h (CAN_ELIMINATE): Delete.
3603         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3604         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3605         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3606
3607 2009-06-24  DJ Delorie  <dj@redhat.com>
3608
3609         * mep-ext-cop.cpu: Fix copyright notice.
3610         * mep-default: Fix copyright notice.
3611         * mep-core: Fix copyright notice.
3612         * mep: Fix copyright notice.
3613         * mep-ivc2: Fix copyright notice.
3614         * mep-c5: Fix copyright notice.
3615
3616 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
3617
3618         * doc/contrib.texi (Contributors): 
3619
3620 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3621         
3622         PR middle-end/40501
3623         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3624         src and dst operands if necessary.
3625
3626 2009-06-23  DJ Delorie  <dj@redhat.com>
3627
3628         Add MeP port.
3629         * config.gcc: Add mep support.
3630         * recog.c: Resurrect validate_replace_rtx_subexp().
3631         * recog.h: Likewise.
3632         * config/mep/: Add new port:
3633         * config/mep/constraints.md: New file.
3634         * config/mep/default.h: New file.
3635         * config/mep/intrinsics.h: New file.
3636         * config/mep/intrinsics.md: New file.
3637         * config/mep/ivc2-template.h: New file.
3638         * config/mep/mep-c5.cpu: New file.
3639         * config/mep/mep-core.cpu: New file.
3640         * config/mep/mep-default.cpu: New file.
3641         * config/mep/mep-ext-cop.cpu: New file.
3642         * config/mep/mep-intrin.h: New file.
3643         * config/mep/mep-ivc2.cpu: New file.
3644         * config/mep/mep-lib1.asm: New file.
3645         * config/mep/mep-lib2.c: New file.
3646         * config/mep/mep-pragma.c: New file.
3647         * config/mep/mep-protos.h: New file.
3648         * config/mep/mep-tramp.c: New file.
3649         * config/mep/mep.c: New file.
3650         * config/mep/mep.cpu: New file.
3651         * config/mep/mep.h: New file.
3652         * config/mep/mep.md: New file.
3653         * config/mep/mep.opt: New file.
3654         * config/mep/predicates.md: New file.
3655         * config/mep/t-mep: New file.
3656
3657 2009-06-23  Ian Lance Taylor  <iant@google.com>
3658
3659         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
3660         from loose_warn into c_loose_warn and from strict_warn into
3661         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
3662         --enable-build-with-cxx.  Set and substitute
3663         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
3664         * Makefile.in (CXXFLAGS): New variable.
3665         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3666         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
3667         the default is the same as $(STRICT_WARN).
3668         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3669         (CXX): New variable.
3670         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3671         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3672         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3673         (HOST_LIBS): New variable.
3674         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3675         (ALL_CXXFLAGS): New variable.
3676         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3677         * doc/install.texi (Configuration): Document
3678         --enable-build-with-cxx, --with-stage1-ldflags,
3679         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3680         * configure: Rebuild.
3681
3682 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3683
3684         * config/arm/arm.c (arm_override_options): Fix braces and formatting
3685         from previous commit.
3686
3687 2009-06-23  Ian Lance Taylor  <iant@google.com>
3688
3689         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3690
3691 2009-06-23  Ian Lance Taylor  <iant@google.com>
3692
3693         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3694         with ATTRIBUTE_UNUSED.
3695
3696 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3697             Pat Haugen  <pthaugen@us.ibm.com>
3698             Revital Eres  <eres@il.ibm.com>
3699
3700         * config.in (HAVE_AS_POPCNTD): Add default definition.
3701         (HAVE_AS_LWSYNC): Ditto.
3702
3703         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3704         release number.
3705         (gcc_cv_as_powerpc_cmpb): Ditto.
3706         (gcc_cv_as_powerpc_dfp): Ditto.
3707         (gcc_cv_as_powerpc_vsx): Ditto.
3708         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3709         supporting the popcntd/lwsync instructions.
3710         (gcc_cv_as_powerpc_lwsync): Ditto.
3711         * configure: Regenerate.
3712
3713         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3714         -mcpu=native and -mcpu=power7.
3715         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3716
3717         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3718         a variable instead of a mask to reduce the number of mask bits.
3719         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3720         (-mbit-word): Ditto.
3721         (-mregnames): Ditto.
3722         * config/rs6000/rs6000.opt (-mupdate): Ditto.
3723         (-mfused-madd): Ditto.
3724
3725         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3726         2.06 instructions.
3727         (-mvsx): New switch for VSX instructions.
3728         (-misel): Move from a variable to a mask to allow it to be set by
3729         -mcpu=.
3730
3731         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3732         function declaration to an array declaration.
3733         (rs6000_hard_regno_nregs): New external array declaration.
3734
3735         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3736         files included by rs6000.md.
3737
3738         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3739         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3740
3741         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3742         a target mask.
3743         (rs6000_debug_reg): New -mdebug= variables.
3744         (rs6000_debug_addr): Ditto.
3745         (rs6000_debug_cost): Ditto.
3746         (rs6000_pmode): New variable to hold Pmode.
3747         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3748         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3749         calculated at compiler start.
3750         (rs6000_hard_regno_nregs): Change function to an array which holds
3751         HARD_REGNO_NREGS calculated at compiler start.
3752         (rs6000_explicit_options): Delete isel field.
3753         (rs6000_vector_unit): New array to hold which vector unit
3754         supports arithmetic options for a given type.
3755         (rs6000_vector_mem): New array to hold which vector unit supports
3756         memory reference operations for a given type.
3757         (rs6000_vector_align): New array to given the alignment of each
3758         vector type.
3759         (power7_cost): New basic costs for power7.
3760         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3761         (rs6000_hard_regno_nregs_internal): New function, moved from
3762         HARD_REGNO_NREGS, to calculate the number of registers each hard
3763         register takes for each type.
3764         (rs6000_debug_reg_print): New function for -mdebug=reg support.
3765         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
3766         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3767         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3768         unit information here so it is calculated once at compiler startup
3769         time.
3770         (rs6000_override_options): Make -misel a target mask.  Add more
3771         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
3772         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
3773         -mdebug=cost.
3774         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3775         (rs6000_handle_option): Move -misel from variable to target mask.
3776         (rs6000_builtin_mask_for_load): Add VSX support.
3777         (rs6000_conditional_register_usage): Ditto.
3778         (USE_ALTIVEC_FOR_ARG_P): Ditto.
3779         (function_arg_boundary): Ditto.
3780         (rs6000_expand_builtin): Ditto.
3781         (def_builtin): Make abort message a little friendlier.
3782         (rs6000_emit_int_cmove): Add support for 64-bit isel.
3783
3784         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3785         assembler support the popcntd instruction instead of a vsx
3786         instruction to enable power7 support.
3787         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3788         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3789         option to the assembler if -mcpu=native.
3790         (ASM_CPU_NATIVE_SPEC): Ditto.
3791         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3792         ISA 2.06 features.
3793         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3794         the lwsync instruction.
3795         (enum processor_type): Add PROCESSOR_POWER7.
3796         (rs6000_debug_reg): New -mdebug= options.
3797         (rs6000_debug_addr): Ditto.
3798         (rs6000_debug_cost): Ditto.
3799         (rs6000_isel): Delete.
3800         (enum rs6000_vector): New enum to say what vector unit we have.
3801         (VECTOR_UNIT_*): New macros to say which vector unit has
3802         arithmetic operations for a given type.
3803         (VECTOR_MEM_*): New macros to say which vector unit has memory
3804         operations for a given type.
3805         (TARGET_LDBRX): Whether the machine supports the ldbrx
3806         instruction.
3807         (TARGET_ISEL): Delete, -misel moved to be a mask.
3808         (TARGET_ISEL64): New macro for 64-bit isel support.
3809         (UNITS_PER_VSX_WORD): New macro.
3810         (POINTER_SIZE): Move to be an external variable, rather than
3811         calculating whether we are generating 32 ot 64-bit code.
3812         (Pmode): Ditto.
3813         (STACK_BOUNDARY): Add VSX support.
3814         (LOCAL_ALIGNMENT): Ditto.
3815         (SLOW_UNALIGNED_ACCESS): Ditto.
3816         (VSX_REGNO_P): New macro for VSX support.
3817         (VFLOAT_REGNO_P): Ditto.
3818         (VINT_REGNO_P): Ditto.
3819         (VLOGICAL_REGNO_P): Ditto.
3820         (VSX_VECTOR_MODE): Ditto.
3821         (VSX_SCALAR_MODE): Ditto.
3822         (VSX_MODE): Ditto.
3823         (VSX_MOVE_MODE): Ditto.
3824         (VSX_REG_CLASS_P): Ditto.
3825         (HARD_REGNO_NREGS): Instead of calling a function, use an array
3826         lookup.
3827         (UNITS_PER_SIMD_WORD): Add VSX support.
3828         (MODES_TIEABLE_P): Ditto.
3829         (STARTING_FRAME_OFFSET): Ditto.
3830         (STACK_DYNAMIC_OFFSET): Ditto.
3831         (EPILOGUE_USES): Ditto.
3832         (REGNO_REG_CLASS): Move to array lookup.
3833         (CLASS_MAX_NREGS): Ditto.
3834         (rs6000_vector_reg_class): Add declaration.
3835         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3836         overlap with the floating point and Altivec registers.
3837
3838         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3839
3840         * config/rs6000/driver-rs6000.c (asm_names): New static array to
3841         give the appropriate asm switches if -mcpu=native.
3842         (host_detect_local_cpu): Add support for "asm".
3843         (host_detect_local_cpu): Follow GNU code guidelines for name.
3844
3845         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3846         -mbit-word to a variable instead of being a target mask.
3847
3848         * config/rs6000/sync.md (lwsync): If the assembler supports it,
3849         emit the lwsync instruction instead of emitting the instruction as
3850         an integer constant.
3851
3852         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3853         fixuns_trundfsi2, move expander into rs6000.md.
3854
3855         * config/rs6000/rs6000.md (cpu): Add power7.
3856         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3857         (logical predicate patterns): Change the single instruction
3858         primitives that set CR0 to be fast_compare instead of compare.
3859         (norsi*): Ditto.
3860         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3861         (popcntddi2): Ditto.
3862         (popcount<mode>): Ditto.
3863         (floating multiply/add insns): Name the floating point
3864         multiply/add insns.
3865         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3866         (isel_unsigned_<mode>): Ditto.
3867         (fixuns_trundfsi2): Move expander here from spe.md.
3868         (smindi3): Define if we have -misel on 64-bit systems.
3869         (smaxdi3): Ditto.
3870         (umindi3): Ditto.
3871         (umaxdi3): Ditto.
3872
3873 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
3874
3875         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
3876         extra_objs.
3877         * config/avr/avr.c (avr_current_device): New variable.
3878         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
3879         (avr_arch, mcu_type_s): Move to avr.h.
3880         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
3881         default_data_section_start fields.
3882         (avr_arch): Moved from avr.c.
3883         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
3884         library_name fields.
3885         (avr_current_device, avr_mcu_types, avr_arch_types,
3886         avr_device_to_arch, avr_device_to_data_start,
3887         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
3888         (EXTRA_SPEC_FUNCTIONS): Define.
3889         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
3890         options mapping. Use device_to_arch and device_to_data_start insted.
3891         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
3892         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
3893         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
3894         * config/avr/driver-avr.c: New file.
3895         * config/avr/avr-devices.c: New file.
3896
3897 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
3898
3899         * var-tracking.c (unshare_variable): Force initialized to
3900         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
3901         (set_variable_part): Likewise.
3902         (struct variable_union_info): Remove pos_src field.
3903         (vui_vec, vui_allocated): New variables.
3904         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
3905         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
3906         == 1 use a simpler sorting algorithm.  Compute pos field right
3907         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
3908         Avoid quadratic comparison if !flag_var_tracking_uninit.
3909         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
3910         unshare_variable unconditionally.   
3911         (dataflow_set_different_2): Removed.
3912         (dataflow_set_different): Don't traverse second hash table.
3913         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
3914         unconditionally to var_reg_set or var_mem_set.
3915         (emit_notes_in_bb): Likewise.
3916         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
3917         unshare_variable.
3918         (emit_note_insn_var_location): Don't set initialized to
3919         VAR_INIT_STATUS_INITIALIZED early.
3920         (vt_finalize): Free vui_vec if needed, clear vui_vec and
3921         vui_allocated.
3922         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
3923
3924         * tree-object-size.c (addr_object_size): Instead of checking
3925         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
3926         are no FIELD_DECLs following it.
3927
3928 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3929
3930         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
3931         order to match bswaps with signed source operands.
3932
3933 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3934
3935         * sdbout.c (sdbout_one_type): Fix braces in switch.
3936
3937 2009-06-23  Richard Guenther  <rguenther@suse.de>
3938
3939         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
3940         member.
3941         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
3942         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
3943         var_callused, callused_tree, var_storedanything, storedanything_tree,
3944         var_integer, integer_tree): Remove global variables.
3945         (new_var_info): Do not pass new id, append the new var to the
3946         global variable vector.
3947         (do_ds_constraint): Use is_global_var member of the variable-info.
3948         (new_scalar_tmp_constraint_exp): Adjust.
3949         (create_function_info_for): Likewise.
3950         (create_variable_info_for): Likewise.
3951         (find_what_var_points_to): Remove dead code.
3952         (init_base_vars): Simplify.
3953         (compute_points_to_sets): Adjust.
3954
3955 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3956
3957         * combine.c (try_combine): Dump information about the insns we're
3958         combining.
3959
3960 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3961
3962         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
3963         check when calling force_to_mode on TRUNCATE's operand.
3964
3965 2009-06-22  Ian Lance Taylor  <iant@google.com>
3966
3967         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
3968
3969 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3970
3971         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
3972
3973 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3974
3975         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
3976         override library linkage flags such as -static-libgcc or
3977         -shared-libgcc.
3978
3979 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3980
3981         * config/m68k/m68k-devices.def: Add line for MCF5221x.
3982
3983 2009-06-22  Ian Lance Taylor  <iant@google.com>
3984
3985         * config/linux.opt: Put mglibc ahead of muclibc.
3986
3987         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
3988         for duplicate decls.
3989
3990 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3991
3992         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
3993
3994 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3995
3996         PR objc/28050
3997         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
3998         instead of NULL if a parser error occurs.
3999
4000 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4001
4002         * dwarf2out.c (dwarf2_debug_hooks): Initialize
4003         non-DWARF2_DEBUGGING_INFO version.
4004
4005 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
4006
4007         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
4008         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4009
4010         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
4011         (LIBGCC2_TF_CEXT): Define.
4012         (TF_SIZE): Define.
4013
4014 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4015
4016         PR target/40463
4017         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
4018
4019 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4020
4021         * config/arm/arm.c (arm_override_options): Disable
4022         -mcaller-super-interworking and -mcallee-super-interworking.
4023         * doc/invoke.texi (ARM Options): Document this.
4024
4025 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
4026
4027         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
4028         * config/arm/constraints.md (j): New constraint for movw operands.
4029         (N): Remove thumb2 meaning.
4030         * config/arm/arm.md (*arm_movw): Delete.
4031         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
4032         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
4033         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
4034
4035 2009-06-22  Martin Jambor  <mjambor@suse.cz>
4036
4037         PR tree-optimization/40492
4038         * tree-sra.c (sra_modify_assign): Pass zero offsets to
4039         build_ref_for_offset.
4040
4041 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
4042
4043         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
4044         JUMP_TABLE_DATA_P predicates where applicable.
4045         * auto-inc-dec.c: Ditto.
4046         * builtins.c: Ditto.
4047         * caller-save.c: Ditto.
4048         * calls.c: Ditto.
4049         * cfgcleanup.c: Ditto.
4050         * cfglayout.c: Ditto.
4051         * cfgrtl.c: Ditto.
4052         * combine.c: Ditto.
4053         * combine-stack-adj.c: Ditto.
4054         * cse.c: Ditto.
4055         * cselib.c: Ditto.
4056         * dbxout.c: Ditto.
4057         * df-scan.c: Ditto.
4058         * dse.c: Ditto.
4059         * dwarf2asm.c: Ditto.
4060         * dwarf2out.c: Ditto.
4061         * emit-rtl.c: Ditto.
4062         * except.c: Ditto.
4063         * explow.c: Ditto.
4064         * expmed.c: Ditto.
4065         * expr.c: Ditto.
4066         * final.c: Ditto.
4067         * function.c: Ditto.
4068         * fwprop.c: Ditto.
4069         * gcse.c: Ditto.
4070         * genpreds.c: Ditto.
4071         * genrecog.c: Ditto.
4072         * ifcvt.c: Ditto.
4073         * ira-costs.c: Ditto.
4074         * ira-lives.c: Ditto.
4075         * jump.c: Ditto.
4076         * loop-iv.c: Ditto.
4077         * lower-subreg.c: Ditto.
4078         * modulo-sched.c: Ditto.
4079         * optabs.c: Ditto.
4080         * postreload.c: Ditto.
4081         * print-rtl.c: Ditto.
4082         * recog.c: Ditto.
4083         * reginfo.c: Ditto.
4084         * regmove.c: Ditto.
4085         * reload1.c: Ditto.
4086         * reload.c: Ditto.
4087         * reorg.c: Ditto.
4088         * rtlanal.c: Ditto.
4089         * rtl.c: Ditto.
4090         * sched-vis.c: Ditto.
4091         * sdbout.c: Ditto.
4092         * sel-sched-ir.c: Ditto.
4093         * simplify-rtx.c: Ditto.
4094         * targhooks.c: Ditto.
4095         * var-tracking.c: Ditto.
4096         * vmsdbgout.c: Ditto.
4097
4098 2009-06-22  Matthias Klose  <doko@ubuntu.com>
4099
4100         * Makefile.in (install-plugin): Always use DESTDIR.
4101
4102 2009-06-22  Olivier Hainque  <hainque@adacore.com>
4103         
4104         * config/pa/pa.c (output_call): Don't optimize post call jumps
4105         into return address adjustments if the call may throw.
4106
4107 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
4108
4109         * arm.c (thumb1_output_casesi): New function.
4110         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
4111         optimizing for size or PIC.
4112         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
4113         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
4114         (casesi): Handle Thumb-1 when optimizing for size or PIC.
4115         (thumb1_casesi_internal_pic): New expand rule.
4116         (thumb1_casesi_dispatch): New pattern.
4117         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
4118         thumb-1 mode.
4119         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
4120         in the text seciton when PIC or optimizing for size.
4121         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
4122         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
4123         preservation properties of code.
4124         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
4125         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
4126         (__gnu_thumb1_case_si): New function.
4127         * t-arm (LIB1ASMSRC): Define here.
4128         (LIB1ASMFUNCS): Add some common functions.
4129         * t-arm-elf (LIB1ASMSRC): Delete.
4130         (LIB1ASMFUNCS): Append to existing set.
4131         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4132         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4133         * t-symbian (LIB1ASMFUNCS): Likewise.
4134         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4135         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
4136
4137 2009-06-21  Richard Guenther  <rguenther@suse.de>
4138
4139         PR tree-optimization/38729
4140         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
4141         to loops with a single exit if -fno-expensive-optimizations.
4142
4143 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
4144
4145         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
4146         (dataflow_set): Change vars type from htab_t to shared_hash.
4147         (shared_hash_pool, empty_shared_hash): New variables.
4148         (vars_clear): Removed.
4149         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
4150         shared_hash_find_slot_unshare, shared_hash_find_slot,
4151         shared_hash_find_slot_noinsert, shared_hash_find): New
4152         static inlines.
4153         (shared_hash_unshare, shared_hash_destroy): New functions.
4154         (unshare_variable): Unshare set->vars if shared, use
4155         shared_hash_htab.
4156         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
4157         (get_init_value, find_src_set_src, dump_dataflow_set,
4158         clobber_variable_part, emit_notes_for_differences): Use
4159         shared_hash_htab.
4160         (dataflow_set_init): Remove second argument, set vars to
4161         empty_shared_hash instead of creating a new htab.
4162         (dataflow_set_clear): Call shared_hash_destroy and set vars
4163         to empty_shared_hash instead of calling vars_clear.
4164         (dataflow_set_copy): Don't call vars_copy, instead just share
4165         the src htab with dst.
4166         (variable_union): Use shared_hash_*, use initially NO_INSERT
4167         lookup if set->vars is shared.  Don't keep slot cleared before
4168         calling unshare_variable.  Unshare set->vars if needed.
4169         Even ->refcount == 1 vars must be unshared if set->vars is shared
4170         and var needs to be modified.
4171         (variable_canonicalize): New function.
4172         (dataflow_set_union): If dst->vars is empty, just share src->vars
4173         with dst->vars and traverse with variable_canonicalize to canonicalize
4174         and unshare what is needed.
4175         (dataflow_set_different): If old_set and new_set use the same shared
4176         htab, they aren't different.  If number of htab elements is different,
4177         htabs are different.  Use shared_hash_*.
4178         (dataflow_set_destroy): Call shared_hash_destroy instead of
4179         htab_delete.
4180         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
4181         second argument to dataflow_set_init.
4182         (vt_initialize): Likewise.  Initialize shared_hash_pool and
4183         empty_shared_hash, move bb in/out initialization afterwards.
4184         Use variable_htab_free instead of NULL as changed_variables del hook.
4185         (variable_was_changed): Change type of second argument to pointer to
4186         dataflow_set.  When inserting var into changed_variables, bump
4187         refcount.  Unshare set->vars if set is shared htab and slot needs to
4188         be cleared.
4189         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
4190         lookup if set->vars is shared.  Unshare set->vars if needed.
4191         Even ->refcount == 1 vars must be unshared if set->vars is shared
4192         and var needs to be modified.  Adjust variable_was_changed caller.
4193         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
4194         vars must be unshared if set->vars is shared and var needs to be
4195         modified.  Adjust variable_was_changed caller.
4196         (emit_note_insn_var_location): Don't pool_free var.
4197         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
4198         instead of 1.
4199         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
4200         free_alloc_pool on shared_hash_pool.
4201
4202 2009-06-20  Anthony Green  <green@moxielogic.com>
4203
4204         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
4205         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
4206
4207 2009-06-20  Richard Guenther  <rguenther@suse.de>
4208
4209         * tree-ssa-structalias.c (find_func_aliases): For memset use
4210         a constraint from NULL if we memset to zero.
4211         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
4212         we explicitly handle that do not read from memory.
4213         (call_may_clobber_ref_p_1): Properly handle builtins that may
4214         set errno.
4215
4216 2009-06-20  Richard Guenther  <rguenther@suse.de>
4217
4218         PR tree-optimization/40495
4219         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
4220         (new_scalar_tmp_constraint_exp): New function.
4221         (process_constraint): Do not create temporary decls.
4222         (process_all_all_constraints): Likewise.
4223         (handle_const_call): Likewise.
4224         (create_function_info_for): Do not set decl.
4225
4226 2009-06-19  Ian Lance Taylor  <iant@google.com>
4227
4228         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
4229         (rs6000_attribute_table): Make static; move before use.
4230
4231 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4232
4233         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
4234         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
4235         Propagate the TREE_READONLY flag without overwriting it.
4236         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
4237         Propagate the TREE_READONLY flag onto the result.
4238         (process_call_operands): Move around.  Use correct constant value.
4239
4240 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4241
4242         PR target/40482
4243         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
4244         * config/arm/arm.md: Likewise.
4245
4246 2009-06-19  Ian Lance Taylor  <iant@google.com>
4247
4248         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
4249         to GIMPLE_ERROR_MARK.
4250
4251         * c-typeck.c (build_conditional_expr): Add op1_original_type and
4252         op2_original_type parameters.  Warn about using different enum types.
4253         * c-parser.c (c_parser_conditional_expression): Pass original
4254         types to build_conditional_expr.
4255         * c-tree.h (build_conditional_expr): Update declaration.
4256
4257 2009-06-19  Ian Lance Taylor  <iant@google.com>
4258
4259         * config/i386/i386.c (ix86_function_specific_save): Test that
4260         fields match values, rather than testing the values are in a
4261         certain range.
4262
4263 2009-06-19  Richard Guenther  <rguenther@suse.de>
4264
4265         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4266         ADDR_EXPR pointers.
4267         (ptr_derefs_may_alias_p): Likewise.
4268         (ptr_deref_may_alias_ref_p_1): New function.
4269         (ptr_deref_may_alias_ref_p): Likewise.
4270         (ref_maybe_used_by_call_p_1): Handle builtins that are not
4271         covered by looking at the ESCAPED solution.
4272         (call_may_clobber_ref_p_1): Likewise.
4273         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
4274         Handle NULL_TREE offset.  Do not produce redundant constraints.
4275         (process_all_all_constraints): New helper function.
4276         (do_structure_copy): Use it.
4277         (handle_lhs_call): Likewise.
4278         (find_func_aliases): Handle some builtins with pointer arguments
4279         and/or return values explicitly.
4280
4281 2009-06-19  Ian Lance Taylor  <iant@google.com>
4282
4283         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
4284
4285 2009-06-19  Ian Lance Taylor  <iant@google.com>
4286
4287         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
4288
4289 2009-06-19  Ian Lance Taylor  <iant@google.com>
4290
4291         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
4292         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
4293         version.
4294
4295         * c-decl.c (finish_decl): If -Wc++-compat, warn about
4296         uninitialized const.
4297
4298 2009-06-19  Ian Lance Taylor  <iant@google.com>
4299
4300         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
4301         all uses.
4302
4303         * c-decl.c (in_struct, struct_types): Remove.
4304         (struct c_binding): Add in_struct field.
4305         (c_binding_ptr): Define type, along with VEC.
4306         (struct c_struct_parse_info): Define.
4307         (struct_parse_info): New static variable.
4308         (bind): Initialize in_struct field.
4309         (start_struct): Remove enclosing_in_struct and
4310         enclosing_struct_types parameters.  Add
4311         enclosing_struct_parse_info parameter.  Change all callers.  Set
4312         struct_parse_info rather than in_struct and struct_types.
4313         (grokfield): If -Wc++-compat and there is a symbol binding for the
4314         field name, set the in_struct flag and push it on the
4315         struct_parse_info->fields vector.
4316         (warn_cxx_compat_finish_struct): New static function.
4317         (finish_struct): Remove enclosing_in_struct and
4318         enclosing_struct_types parameters.  Add
4319         enclosing_struct_parse_info parameter.  Change all callers.  Don't
4320         set C_TYPE_DEFINED_IN_STRUCT here.  Call
4321         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
4322         parameter.  Only push on struct_types if warn_cxx_compat.
4323         (finish_enum): Only push on struct_types if warn_cxx_compat.
4324         (declspecs_add_type): Add loc parameter.  Change all callers.
4325         Change all error calls to error_at.  Pass loc, not input_location,
4326         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
4327         defined in a struct.  If -Wc++-compat and parsing a struct, record
4328         that a typedef name was used.
4329         * c-parser.c (c_parser_declspecs): Get location to pass to
4330         declspecs_add_type.
4331         (c_parser_struct_or_union_specifier): Update calls to start_struct
4332         and finish_struct.
4333         * c-tree.h (struct c_struct_parse_info): Declare.
4334         (finish_struct, start_struct): Update declarations.
4335         (declspecs_add_type): Update declaration.
4336
4337 2009-06-19  Ian Lance Taylor  <iant@google.com>
4338
4339         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
4340         variable with an anonymous type.
4341
4342 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4343
4344         * see.c: Remove for real.
4345
4346 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4347
4348         * optabs.h (enum optab_index): Add new OTI_significand.
4349         (significand_optab): Define corresponding macro.
4350         * optabs.c (init_optabs): Initialize significand_optab.
4351         * genopinit.c (optabs): Implement significand_optab using
4352         significand?f2 patterns.
4353         * builtins.c (expand_builtin_mathfn): Handle
4354         BUILT_IN_SIGNIFICAND{,F,L}.
4355         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
4356         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4357
4358         * config/i386/i386.md (significandxf2, significand<mode>2): New
4359         expanders to implement significandf, significand and significandl
4360         built-ins as inline x87 intrinsics.
4361
4362 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
4363
4364         * config/avr/avr.c (avr_override_options): Remove setting value of
4365         PARAM_INLINE_CALL_COST.
4366
4367 2009-06-18  Richard Henderson  <rth@redhat.com>
4368
4369         PR 40488
4370         * tree-pass.h (TDF_ASMNAME): New.
4371         * tree-dump.c (dump_options): Add asmname.
4372         * doc/invoke.texi: Document it.
4373
4374         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
4375         (dump_decl_name): ...here.
4376         (dump_function_name): New flags arg; mind TDF_ASMNAME.
4377         (dump_generic_node): Update dump_function_name calls.
4378         (print_call_name): New flags arg; update all dump calls.
4379         * diagnostic.h (print_call_name): Update.
4380         * gimple-pretty-print.c (dump_gimple_call): Update.
4381
4382 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4383
4384         PR target/40470
4385         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
4386
4387 2009-06-18  Diego Novillo  <dnovillo@google.com>
4388
4389         * doc/plugins.texi: Document plugin_is_GPL_compatible.
4390         * plugin.c (str_license): Declare.
4391         (try_init_one_plugin): Assert that the symbol
4392         'plugin_is_GPL_compatible' exists.
4393
4394 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
4395
4396         * see.c: Remove.
4397         * Makefile.in (OBJS-common): Remove see.o.
4398         (see.o): Remove.
4399         * common.opt (fsee): Mark as preserved for backward compatibility.
4400         * opts.c (common_handle_option): Add OPT_fsee to the backward 
4401         compatibility section.
4402         * passes.c (init_optimization_passes, pass_see): Remove pass.
4403         * timevar.def (TV_SEE): Remove.
4404         * tree-pass.h (pass_see): Remove declaration.
4405         * doc/invoke.texi (-fsee): Remove documentation.
4406         
4407 2009-06-18  Martin Jambor  <mjambor@suse.cz>
4408
4409         * tree-sra.c: Include statistics.h
4410         (sra_stats): New variable.
4411         (sra_initialize): Clear sra_stats.
4412         (create_access_replacement): Increment sra_stats.replacements.
4413         (get_access_replacement): Do not return twice.
4414         (analyze_all_variable_accesses): Increment statistics counter by the
4415         number of scalarized aggregates.
4416         (generate_subtree_copies): Increment sra_stats.subtree_copies.
4417         (sra_modify_expr): Increment sra_stats.exprs.
4418         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
4419         (sra_modify_assign): Increment sra_stats.exprs,
4420         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
4421         (perform_intra_sra): Update statistics counters.
4422         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
4423
4424 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4425
4426         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
4427         (arm_scalar_mode_supported_p): New function.
4428
4429 2009-06-18  Paul Brook  <paul@codesourcery.com>
4430             Sandra Loosemore  <sandra@codesourcery.com>
4431
4432         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
4433         (__extendhfsf2, __truncsfhf2): Define.
4434         * config/arm/fp16.c: New file.
4435         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
4436         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
4437
4438 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4439
4440         * doc/extend.texi (Half-Precision): New section.
4441         * doc/invoke.texi (Option Summary): List -mfp16-format.
4442         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
4443         * config/arm/arm.opt (mfp16-format=): New.
4444         * config/arm/arm.c: Include intl.h.
4445         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
4446         (TARGET_INVALID_RETURN_TYPE): Redefine.
4447         (TARGET_PROMOTED_TYPE): Redefine.
4448         (TARGET_CONVERT_TO_TYPE): Redefine.
4449         (arm_fp16_format): Define.
4450         (all_fpus): Add entry for neon-fp16.
4451         (fp_model_for_fpu): Likewise.
4452         (struct fp16_format): Declare.
4453         (all_fp16_formats): Define.
4454         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
4455         functions.
4456         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
4457         and no ldrh.
4458         (arm_legitimate_index_p): Treat HFmode like HImode.
4459         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
4460         (coproc_secondary_reload_class): Special-case HFmode.
4461         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
4462         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
4463         (arm_init_fp16_builtins): New.
4464         (arm_init_builtins): Call it.
4465         (arm_invalid_parameter_type): New.
4466         (arm_invalid_return_type): New.
4467         (arm_promoted_type): New.
4468         (arm_convert_to_type).
4469         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
4470         format.
4471         (arm_emit_fp16_const): New function.
4472         (arm_mangle_type): Mangle __fp16 as "Dh".
4473         * config/arm/arm.h (TARGET_VFPD32): Make it know about
4474         FPUTYPE_NEON_FP16.
4475         (TARGET_NEON_FP16): New.
4476         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
4477         (enum fputype): Add FPUTYPE_NEON_FP16.
4478         (enum arm_fp16_format_type): Declare.
4479         (arm_fp16_format): Declare.
4480         (LARGEST_EXPONENT_IS_NORMAL): Define.
4481         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
4482         * config/arm/arm-modes.def (HFmode): Define.
4483         * config/arm/vfp.md: (*movhf_vfp): New.
4484         (extendhfsf2): New.
4485         (truncsfhf2): New.
4486         * config/arm/arm.md: (fpu): Add neon_fp16.
4487         (floatsihf2, floatdihf2): New.
4488         (fix_trunchfsi2, fix_trunchfdi2): New.
4489         (truncdfhf2): New.
4490         (extendhfdf2): New.
4491         (movhf): New.
4492         (*arm32_movhf): New.
4493         (*thumb1_movhf): New.
4494         (consttable_2): Add check for HFmode constants.
4495         (consttable_4): Handle HFmode constants.
4496
4497 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
4498
4499         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
4500
4501 2009-06-17  Olivier Hainque  <hainque@adacore.com>
4502
4503         * collect2.c (main): Use CONST_CAST2 to perform char ** to
4504         const char ** conversion in AIX specific section.
4505         
4506 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
4507
4508         * config/i386/i386.c (ix86_special_builtin_type): Remove
4509         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
4510         (bdesc_special_args): Updated.
4511         (ix86_init_mmx_sse_builtins): Likewise.
4512         (ix86_expand_special_args_builtin): Likewise.
4513
4514 2009-06-17  Richard Henderson  <rth@redhat.com>
4515
4516         * tree-pretty-print.c (maybe_dump_asm_name): New.
4517         (dump_decl_name): Use it.
4518         (PRINT_FUNCTION_NAME): Merge into...
4519         (dump_function_name): ... here.  Use maybe_dump_asm_name.
4520
4521 2009-06-17  Cary Coutant  <ccoutant@google.com>
4522
4523         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
4524         Change caller.
4525         * debug.c (struct gcc_debug_hooks): Change placeholder for
4526         source_line hook.
4527         (debug_nothing_int_charstar_int): Replaced by...
4528         (debug_nothing_int_charstar_int_bool): ...this.
4529         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
4530         source_line prototype.
4531         (debug_nothing_int_charstar_int): Replaced by...
4532         (debug_nothing_int_charstar_int_bool): ...this.
4533         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
4534         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
4535         Output is_stmt operand when necessary.
4536         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
4537         (notice_source_line): Add is_stmt parameter.
4538         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
4539         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
4540         Change callers.
4541         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
4542         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
4543
4544 2009-06-17  Ian Lance Taylor  <iant@google.com>
4545
4546         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
4547         Change all uses.
4548         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
4549         call uses.
4550
4551 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
4552
4553         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
4554         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
4555         tree_strip_sign_nop_conversions and
4556         tree_ssa_strip_useless_type_conversions rather than stripping
4557         the operations here.
4558         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
4559         Declare them.
4560         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
4561         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
4562         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
4563         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
4564         functions.
4565
4566 2009-06-17  Michael Eager  <eager@eagercon.com>
4567
4568         * config/rs6000/constraints.md (register_constraint "d"): New.
4569         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
4570         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4571         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
4572         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
4573         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4574         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
4575         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
4576         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
4577         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
4578         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
4579         __fctiwz): Same.
4580         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
4581         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
4582         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
4583         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
4584         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4585         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
4586         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
4587         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
4588         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
4589         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
4590         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
4591         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
4592         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
4593         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
4594
4595 2009-06-16  Ian Lance Taylor  <iant@google.com>
4596
4597         * profile.c (total_num_never_executed): Don't define.
4598         (compute_branch_probabilities): Don't count or print
4599         num_never_executed.
4600         (init_branch_prob): Don't set total_num_never_executed.
4601         (end_branch_prob): Don't print total_num_never_executed.
4602
4603 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
4604
4605         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
4606
4607 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
4608
4609         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
4610         (nabstd2_fpr): Same.
4611
4612 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
4613
4614         * expr.c (expand_assignment): Change complex type check.
4615
4616 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
4617
4618         * doc/plugins.texi (Building GCC plugins): Added new section. 
4619
4620 2009-06-17  Ian Lance Taylor  <iant@google.com>
4621
4622         * c-pch.c (get_ident): Don't set size of templ array.
4623         (pch_init): Don't set size of partial_pch array.
4624
4625         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
4626         string constant to intialize an array whose size is the length of
4627         the string.
4628
4629 2009-06-17  Richard Guenther  <rguenther@suse.de>
4630
4631         PR tree-optimization/40389
4632         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
4633         to addressable types.
4634         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
4635
4636 2009-06-17  Richard Guenther  <rguenther@suse.de>
4637
4638         PR middle-end/40460
4639         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
4640         if there is no evolution of left in the loop bail out.
4641         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
4642         chrec_fold_multiply.
4643
4644 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
4645             Janis Johnson  <janis187@us.ibm.com>
4646
4647         PR target/39254
4648         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
4649         for the symbol ref of a constant that is the source of a move
4650         - nor for any other not-obvious-label-ref constants.
4651
4652 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
4653
4654         * plugin.c (position_pass): Skip newly inserted pass during list
4655         traversal to avoid repeated insertion.
4656
4657 2009-06-16  Ian Lance Taylor  <iant@google.com>
4658
4659         * vec.h (VEC_stack_alloc): Define different version if
4660         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
4661         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
4662         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
4663         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
4664
4665 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4666
4667         * config.gcc (extra_headers): Add ia32intrin.h for x86.
4668
4669         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
4670         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
4671         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
4672         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
4673         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
4674         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4675         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4676         (bdesc_special_args): Add __builtin_ia32_rdtsc and
4677         __builtin_ia32_rdtscp.
4678         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
4679         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
4680         and __builtin_ia32_rorhi.
4681         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
4682         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4683         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4684         (ix86_expand_args_builtin): Likewise.
4685         (ix86_expand_special_args_builtin): Likewise.
4686
4687         * config/i386/i386.md (UNSPECV_RDTSCP): New.
4688         (UNSPECV_RDTSC): Likewise.
4689         (UNSPECV_RDPMC): Likewise.
4690         (*bsr): Renamed to ...
4691         (bsr): This
4692         (*bsr_rex64): Renamed to ...
4693         (bsr_rex64): This.
4694         (rdpmc): New.
4695         (*rdpmc): Likewise.
4696         (*rdpmc_rex64): Likewise.
4697         (rdtsc): Likewise.
4698         (*rdtsc): Likewise.
4699         (*rdtsc_rex64): Likewise.
4700         (rdtscp): Likewise.
4701         (*rdtscp): Likewise.
4702         (*rdtscp_rex64): Likewise.
4703
4704         * config/i386/ia32intrin.h: New.
4705
4706         * config/i386/x86intrin.h: Include <ia32intrin.h>.
4707
4708 2009-06-16  Ian Lance Taylor  <iant@google.com>
4709
4710         * ira-build.c (copy_info_to_removed_store_destinations):
4711         Initialize parent_a.
4712
4713 2009-06-16  Ian Lance Taylor  <iant@google.com>
4714
4715         * c-decl.c (grokdeclarator): Change size_varies to bool.
4716
4717 2009-06-16  Ian Lance Taylor  <iant@google.com>
4718
4719         * sel-sched.c: Make forward declarations of move_op_hooks and
4720         fur_hooks explicitly extern.
4721
4722 2009-06-16  Ian Lance Taylor  <iant@google.com>
4723
4724         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
4725         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
4726
4727 2009-06-16  Ian Lance Taylor  <iant@google.com>
4728
4729         * resource.c (mark_referenced_resources): Change
4730         include_delayed_effects parameter to bool.  Change all callers.
4731         (mark_end_of_function_resources): Likewise.
4732         * reorg.c (insn_references_resource_p): Likewise.
4733         (insn_sets_resource_p): Likewise.
4734         * resource.h (mark_referenced_resources): Update declaration.
4735         (mark_end_of_function_resources): Update declaration.
4736
4737 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4738
4739         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
4740
4741 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4742
4743         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
4744         GCC can bootstrap on AIX with GNU Binutils 2.20.
4745
4746 2009-06-16  Ian Lance Taylor  <iant@google.com>
4747
4748         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
4749
4750 2009-06-16  Ian Lance Taylor  <iant@google.com>
4751
4752         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
4753         inline, not extern inline.
4754         (exact_log2): Likewise.
4755         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
4756         test CLZ_HWI.
4757         (exact_log2): Likewise, but don't test CTZ_HWI.
4758
4759 2009-06-16  Ian Lance Taylor  <iant@google.com>
4760
4761         * bitmap.c (bitmap_clear): Don't declare as inline.
4762         * gimple.c (gimplify_assign): Likewise.
4763         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4764         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
4765         (sched_scan_info): Remove duplicate definition.
4766
4767 2009-06-16  Ian Lance Taylor  <iant@google.com>
4768
4769         * c-common.c (skip_evaluation): Don't define.
4770         (c_inhibit_evaluation_warnings): Define global variable.
4771         (overflow_warning): Check c_inhibit_evaluation_warnings rather
4772         than skip_evaluation.
4773         (convert_and_check, warn_for_div_by_zero): Likewise.
4774         * c-common.h (skip_evaluation): Don't declare.
4775         (c_inhibit_evaluation_warnings): Declare.
4776         * c-parser.c (c_parser_typeof_specifier): Set
4777         c_inhibit_evaluation_warnings rather than skip_evaluation.
4778         (c_parser_conditional_expression): Likewise.
4779         (c_parser_binary_expression): Likewise.
4780         (c_parser_sizeof_expression): Likewise.
4781         (c_parser_alignof_expression): Likewise.
4782         * c-typeck.c (build_indirect_ref): Check
4783         c_inhibit_evaluation_warnings rather than skip_evaluation.
4784         (build_conditional_expr, build_binary_op): Likewise.
4785
4786 2009-06-16  Richard Guenther  <rguenther@suse.de>
4787
4788         * tree-ssa-alias.c (is_escape_site): Remove.
4789         * tree-ssa-alias.h (enum escape_type): Remove.
4790         (is_escape_site): Likewise.
4791         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
4792         via casts and asms without deferring to is_escape_site.
4793
4794 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
4795
4796         PR middle-end/40446
4797         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
4798         use gen_lowpart if op0 has complex mode.
4799
4800 2009-06-16  Richard Guenther  <rguenther@suse.de>
4801
4802         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
4803         variables add them to ESCAPED.
4804         (find_func_aliases): Do not make all indirectly stored values escaped.
4805
4806 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
4807
4808         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
4809         make_decl_one_only.
4810
4811 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4812
4813         PR tree-optimization/40432
4814         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
4815         check whether we need to force gimple register operand.
4816
4817 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4818
4819         PR tree-optimization/40413
4820         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
4821         build_ref_for_offset.
4822         (propagate_subacesses_accross_link): Fix a typo in a comment.
4823
4824 2009-06-16  Ira Rosen  <irar@il.ibm.com>
4825
4826         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
4827         with additional parameter.
4828         * tree-vectorizer.h (enum vect_def_type): Add new value
4829         vect_nested_cycle.
4830         (enum vect_relevant): Add comments.
4831         (vect_is_simple_reduction): Add new argument.
4832         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
4833         Detect nested cycles.
4834         (vect_is_simple_reduction): Update documentation, add an argument to
4835         distinguish inner-loop reduction from nested cycle, detect nested
4836         cycles, fix printings and indentation, don't swap operands in case
4837         of nested cycle.
4838         (get_initial_def_for_reduction): Handle subtraction.
4839         (vect_create_epilog_for_reduction): Add new argument to specify
4840         reduction variable.
4841         (vect_finalize_reduction): Handle subtraction, fix comments.
4842         (vectorizable_reduction): Handle nested cycles. In case of nested
4843         cycle keep track of the reduction variable position. Call 
4844         vect_is_simple_reduction with additional parameter. Use original
4845         statement code in reduction epilogue for nested cycle. Call
4846         vect_create_epilog_for_reduction with additional parameter.
4847         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
4848         inner-loop vectorization.
4849         (vect_recog_widen_sum_pattern): Likewise.
4850         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
4851         and reductions.
4852         (vect_mark_stmts_to_be_vectorized): Likewise.
4853         (vect_get_vec_def_for_operand): Handle nested cycles.
4854
4855 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4856
4857         * doc/invoke.texi (Debugging Options): Fix option index entries
4858         for -fdump-statistics, -frandom-seed add entries for
4859         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
4860         (FRV Options): Fix entries for -mTLS, -mtls.
4861         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
4862         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
4863         (M68hc1x Options): Fix @itemx for -mnominmax.
4864         (MCore Options): Fix entry for -mno-lsim.
4865         (MMIX Options): Fix entry for -mabi=mmixware.
4866         (PDP-11 Options): Fix entry for -mbcopy-builtin.
4867
4868 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
4869
4870         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
4871         Mention the plugin mode of gengtype.
4872         * doc/gty.texi (Source Files Containing Type Information): Likewise.
4873         * gengtype.c: Updated copyright.
4874         (plugin_files, nb_plugin_files) Added new static variables.
4875         (measure_input_list) Care about plugin_files.
4876         (write_rtx_next): Added early return in plugin mode.
4877         (create_file): Updated copyright year in generated file. Added
4878         asserts.
4879         (oprintf): Added early return if NULL outf.
4880         (get_output_file_with_visibility): Care of plugin_files.
4881         (get_output_file_name): May return null.
4882         (write_local): Added early return.
4883         (put_mangled_filename): Ditto.
4884         (finish_root_table): Added check for base_files.
4885         (write_roots): Care about null when plugins.
4886         (main): Added plugin mode.
4887
4888 2009-06-15  Ian Lance Taylor  <iant@google.com>
4889
4890         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
4891         * gcov.c (read_count_file): Add braces around variables declared
4892         before label.
4893
4894         * c.opt (Wjump-misses-init): New warning.
4895         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
4896         -Wall and -Wc++-compat if not already set.
4897         (c_common_post_options): Clear warn_jump_misses_init if it was not
4898         set.
4899         * c-decl.c (struct c_binding): Change type field to a union with
4900         new label field.  Make it the first field in the struct.  Update
4901         references to type to use u.type instead.
4902         (struct c_spot_bindings): Define.
4903         (struct c_goto_bindings): Define.
4904         (c_goto_bindings_p): Define, along with VECs.
4905         (struct c_label_vars): Define.
4906         (struct c_scope): Add has_label_bindings field.
4907         (bind_label, set_spot_bindings): New static functions.
4908         (decl_jump_unsafe, update_spot_bindings): New static functions.
4909         (update_label_decls): New static function.
4910         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
4911         Update binding u.label field to shadowed field.
4912         (c_binding_start_stmt_expr): New function.
4913         (c_binding_end_stmt_expr): New function.
4914         (pushdecl): Don't call c_begin_vm_scope.
4915         (make_label): Add defining and p_label_vars parameters.  Change
4916         all callers.
4917         (lookup_label): Correct test for whether a label has not yet been
4918         defined.  Call bind_label rather than bind.
4919         (warn_about_goto): New static function.
4920         (lookup_label_for_goto): New function.
4921         (declare_label): Call bind_label rather than bind.
4922         (check_earlier_gotos): New static function.
4923         (define_label): Don't give errors about jumping into statement
4924         expressions or scopes of variably modified types.  Call
4925         set_spot_bindings and check_earlier_gotos.  Call bind_label
4926         instead of bind.  Don't set label_context_stack_se or
4927         label_context_stack_vm.
4928         (c_get_switch_bindings): New function.
4929         (c_release_switch_bindings): New function.
4930         (c_check_switch_jump_warnings): New function.
4931         (start_function): Don't set label_context_stack_se or
4932         label_context_stack_vm.
4933         (finish_function): Likewise.
4934         * c-typeck.c (label_context_stack_se): Don't define.
4935         (label_context_stack_vm): Don't define.
4936         (c_finish_goto_label): Call lookup_label_for_goto rather than
4937         lookup_label.  Don't give errors about jumping into a statement
4938         expression or the scope of a variably modified type.  Don't set
4939         label_context_stack_se or label_context_stack_vm.
4940         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
4941         fields.  Add bindings field.
4942         (c_start_case): Don't set deleted fields.  Set bindings field.
4943         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
4944         or blocked_vm.  Call c_check_switch_jump_warnings.
4945         (c_finish_case): Don't test blocked_stmt_expr field.  Call
4946         c_release_switch_bindings.
4947         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
4948         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4949         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
4950         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
4951         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4952         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
4953         (c_begin_vm_scope, c_end_vm_scope): Don't define.
4954         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
4955         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
4956         (C_DECL_UNJUMPABLE_VM): Don't define.
4957         (C_DECL_UNDEFINABLE_VM): Don't define.
4958         (struct c_label_list): Don't define.
4959         (struct c_label_context_se): Don't define.
4960         (struct c_label_context_vm): Don't define.
4961         (struct c_spot_bindings): Declare.
4962         (c_bindings_start_stmt_expr): Declare.
4963         (c_bindings_end_stmt_expr): Declare.
4964         (lookup_label_for_goto): Declare.
4965         (c_get_switch_bindings, c_release_switch_bindings): Declare.
4966         (c_check_switch_jump_warnings): Declare.
4967         (label_context_stack_se, label_context_stack_vm): Don't declare.
4968         (c_finish_goto_label): Update declaration.
4969         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
4970         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
4971         (Warning Options): Document -Wjump-misses-init.
4972
4973 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
4974
4975         * tree-object-size.c (addr_object_size): Fix a pasto in the last
4976         change.
4977
4978 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4979
4980         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
4981
4982 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4983
4984         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
4985
4986 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4987
4988         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
4989
4990 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4991
4992         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
4993         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4994         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
4995         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
4996         * dwarf2asm.c (dw2_force_const_mem): Update call to
4997         make_decl_one_only.
4998         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
4999         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
5000         * langhooks.c (lhd_comdat_group): Remove.
5001         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
5002         * tree.h (DECL_COMDAT_GROUP): New.
5003         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
5004         (tree_decl_with_vis): Add comdat_group. Remove one_only.
5005         (make_decl_one_only): Change signature.
5006         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
5007         make_decl_one_only.
5008         (make_decl_one_only): Change signature.
5009         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
5010
5011 2009-06-15  Richard Guenther  <rguenther@suse.de>
5012
5013         PR middle-end/40439
5014         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
5015
5016 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5017
5018         * tree-ssa-math-opts.c: Remove extra divide.
5019
5020 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5021
5022         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
5023
5024 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5025
5026         * passes.c: Add bswap pass.
5027         * tree-pass.h: Add pass_optimize_bswap declaration.
5028         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
5029         Include rtl.h, expr.h and optabs.h for optab_handler check.
5030         (struct symbolic_number, pass_optimize_bswap): New definition.
5031         (do_shift_rotate, verify_symbolic_number_p): New functions.
5032         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
5033         (gate_optimize_bswap): New function.
5034         * tree.c (widest_int_cst_value): New function.
5035         * tree.h (widest_int_cst_value): Prototype added.
5036
5037 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
5038
5039         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
5040         REG_EQUAL/REG_EQUIV notes.
5041
5042 2009-06-14  Richard Guenther  <rguenther@suse.de>
5043
5044         PR middle-end/40389
5045         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
5046         has its address taken if NRV was applied and it is addressable.
5047         * tree-ssa-structalias.c (get_constraint_for_address_of): New
5048         function split out from ...
5049         (get_constraint_for_1): ... here.
5050         (handle_rhs_call): Use it to mark the return slot escaped if
5051         it is addressable and NRV was applied.
5052
5053 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
5054
5055         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
5056         Change first argument type to location_t.
5057         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
5058         Do not set input_location.
5059         Use loc instead of input_location throughout.
5060
5061 2009-06-13  Richard Guenther  <rguenther@suse.de>
5062
5063         PR tree-optimization/40421
5064         * tree-predcom.c (should_unroll_loop_p): Remove.
5065         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
5066
5067 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
5068
5069         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5070         Add location argument.
5071
5072 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
5073
5074         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
5075         build_decl.
5076         * config/s390/s390.c (s390_build_builtin_va_list): Same.
5077         (s390_gimplify_va_arg): Pass location to create_artificial_label.
5078         * config/spu/spu-protos.h: Add location to
5079         spu_resolve_overloaded_builtin.
5080         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
5081         spu_build_builtin_va_list.
5082         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
5083         argument.  Pass location to build_function_call_vec.
5084         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
5085         build_decl.
5086         (emit_fpu_switch): Same.
5087         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
5088         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
5089         to build_decl and create_artificial_label.
5090         (xtensa_gimplify_va_arg_expr): Same.
5091         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
5092         (xstormy16_gimplify_va_arg_expr): Same.
5093         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
5094         * config/arm/arm.c (arm_build_builtin_va_list): Same.
5095         * config/mips/mips.c (mips_build_builtin_va_list): Same.
5096         (mips16_build_function_stub): Same.
5097         (mips16_build_call_stub): Same.
5098
5099 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
5100
5101         PR target/40327
5102         * arm/constraints.md (Pa, Pb): New constraints.
5103         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
5104         split pattern to deal with them.
5105
5106 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
5107
5108         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
5109         fix index entry for -Xpreprocessor.
5110
5111 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
5112
5113         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5114         Add location argument to build_decl call.
5115         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
5116         (rs6000_init_builtins): Same.
5117         (spe_init_builtins): Same.
5118         (rs6000_gimplify_va_arg): Add location argument to
5119         create_artificial_label call.
5120
5121 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
5122
5123         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
5124         * combine-stack-adj.c (pass_stack_adjustments): Use it.
5125         * Makefile.in: Fix GGC dependency for gcse.o.
5126
5127 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
5128
5129         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
5130         * gimple-pretty-print.c (dump_gimple_stmt): Same.
5131         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
5132         created.
5133         * c-parser.c (c_parser_binary_expression): Use current column while
5134         building binary operations.
5135         * common.opt (fshow-column): Enable by default.
5136         * tree-vrp.c (check_array_ref): Use warning_at.
5137         (check_array_bounds): Use location from call back if expr has no
5138         location.
5139         * tree.h: Add location argument to maybe_fold_*.
5140         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
5141         (maybe_fold_offset_to_array_ref): Add location argument and use it.
5142         (maybe_fold_offset_to_component_ref): Same.
5143         (maybe_fold_offset_to_reference): Same.
5144         (maybe_fold_offset_to_address): Same.
5145         (maybe_fold_stmt_indirect): Same.
5146         (maybe_fold_stmt_addition): Same.
5147         (fold_stmt_r): Pass location to maybe_fold_*.
5148         (fold_gimple_assign): Same.
5149         * c-tree.h: Add location argument to finish_decl,
5150         default_function_array_conversion, store_init_value.
5151         * c-decl.c (define_label): Use error_at.
5152         (c_make_fname_decl): Pass location to finish_decl.
5153         (finish_decl): New location argument.
5154         (build_compound_literal): Pass location to store_init_value.
5155         (grokdeclarator): Pass location to finish_decl.
5156         (grokfield): Same.
5157         * c-typeck.c (array_to_pointer_conversion): New location argument.
5158         (function_to_pointer_conversion): Same.
5159         (default_function_array_conversion): Same.
5160         (parser_build_unary_op): Pass location to overflow_warning.
5161         (parser_build_binary_op): Same.  Use warning_at.
5162         (build_unary_op): Pass location to array_to_pointer_conversion.
5163         (build_c_cast): Pass location to digest_init.
5164         (build_modify_expr): New location argument.
5165         (convert_for_assignment): Same.
5166         (store_init_value): Same.
5167         (digest_init): Same.
5168         (output_init_element): Pass location to digest_init and
5169         array_to_pointer_conversion.
5170         (c_finish_return): Pass location to convert_for_assignment.
5171         * gimplify.c (gimplify_conversion): Pass location to
5172         maybe_fold_offset_to_address.
5173         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
5174         to maybe_fold_stmt_addition.
5175         * c-omp.c (c_finish_omp_atomic): Pass new location to
5176         build_modify_expr.
5177         (c_finish_omp_for): Same.
5178         * c-common.c (overflow_warning): New argument.
5179         * c-common.h: New argument to build_modify_expr, overflow_warning.
5180         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
5181         finish_decl.
5182         (c_parser_initializer): Pass location to
5183         default_function_array_conversion.
5184         (c_parser_initelt): Same.
5185         (c_parser_initval): Same.
5186         (c_parser_asm_operands): Same.
5187         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
5188         (c_parser_conditional_expression): Same.
5189         (c_parser_binary_expression): Add location info to stack.  Use it.
5190         (c_parser_unary_expression): Pass location to
5191         default_function_array_conversion, parser_build_unary_op,
5192         build_indirect_ref, c_parser_postfix_expression_after_primary.
5193         (c_parser_postfix_expression_after_primary): New location argument.
5194         Use it.
5195         (c_parser_expression_conv): Pass location to
5196         default_function_array_conversion.
5197         (c_parser_expr_list): Same.
5198         (c_parser_omp_atomic): Same.
5199         (c_parser_omp_for_loop): Same.
5200         * c-tree.h: (struct c_declarator): Add comment to id_loc.
5201         (build_array_declarator): New argument.
5202         * c-decl.c (build_array_declarator): Add location argument.
5203         (grokdeclarator): Set id_loc for cdk_array.
5204         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
5205         build_array_declarator.
5206         * tree.c (build_omp_clause): Add location argument.
5207         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
5208         (OMP_CLAUSE_LOCATION): New macro.
5209         (struct tree_omp_clause): Add location field.
5210         (build_omp_clause): Add argument.
5211         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
5212         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
5213         build_omp_clause.
5214         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
5215         (cp_parser_omp_clause_collapse): Same.
5216         (cp_parser_omp_clause_default): Same.
5217         (cp_parser_omp_clause_if): Same.
5218         (cp_parser_omp_clause_nowait): Same.
5219         (cp_parser_omp_clause_num_threads): Same.
5220         (cp_parser_omp_clause_ordered): Same.
5221         (cp_parser_omp_clause_schedule): Same.
5222         (cp_parser_omp_clause_untied): Same.
5223         (cp_parser_omp_for_loop): Same.
5224         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5225         * c-tree.h (c_start_case): Add location argument.
5226         (c_process_expr_stmt): Same.
5227         (c_finish_goto_*): Same.
5228         * tree-parloops.c (initialize_reductions): Pass location to
5229         build_omp_clause.
5230         (create_parallel_loop): Same.
5231         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
5232         (gfc_trans_omp_reduction_list): Same.
5233         (gfc_trans_omp_clauses): Same.
5234         (gfc_trans_omp_do): Same.
5235         * c-typeck.c (c_finish_goto_label): Same.
5236         (c_finish_goto_ptr): New location argument.
5237         (c_start_case): Same.
5238         (emit_side_effect_warnings): Same.
5239         (c_process_expr_stmt): Same.
5240         (c_finish_stmt_expr): Same.
5241         (c_finish_omp_clauses): Use error_at instead of error.
5242         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
5243         build_omp_clause.
5244         * c-omp.c (c_split_parallel_clauses): New location argument.
5245         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
5246         to build_omp_clause.
5247         (convert_local_reference_stmt): Same.
5248         (convert_gimple_call): Same.
5249         * c-common.h (c_split_parallel_clauses): New argument.
5250         * c-parser.c (c_parser_statement_after_labels): Pass location to
5251         c_finish_goto_label.
5252         (c_parser_switch_statement): Pass location to c_start_case.
5253         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
5254         and c_process_expr_stmt.
5255         (c_parser_omp_variable_list): Add location argument.
5256         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
5257         (c_parser_omp_clause_default): Same.
5258         (c_parser_omp_clause_if): Same.
5259         (c_parser_omp_clause_num_threads): Same.
5260         (-c_parser_omp_clause_ordered): Same.
5261         (c_parser_omp_clause_reduction): Pass location to
5262         c_parser_omp_variable_list.
5263         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
5264         (c_parser_omp_clause_untied): Same.
5265         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
5266         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5267
5268         * c-tree.h (check_for_loop_decls, undeclared_variable,
5269         build_component_ref, build_array_ref, build_external_ref,
5270         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
5271         build_conditional_expr, build_compound_expr, c_cast_expr,
5272         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
5273         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
5274         argument.
5275         * c-semantics.c (build_stmt): Same.
5276         (build_case_label): Same.
5277         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
5278         (undeclared_variable): New argument.
5279         (make_label): Same.
5280         (lookup_label): Pass location on down.
5281         (define_label): Same.
5282         (finish_decl): Same.
5283         (build_compound_literal): Same.
5284         (finish_struct): Same.
5285         (finish_function): Do not set location here.
5286         (check_for_loop_decls): New argument.
5287         * tree.c (save_expr): Set location.
5288         (build_empty_stmt): New argument.
5289         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
5290         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
5291         * builtins.c (gimplify_va_arg_expr): Use locations.
5292         (expand_builtin_sync_operation): Same.
5293         * c-typeck.c (build_component_ref): New argument.
5294         (build_array_ref): Same.
5295         (build_external_ref): Same.
5296         (c_expr_sizeof_expr): Same.
5297         (c_expr_sizeof_type): Same.
5298         (parser_build_unary_op): Same.
5299         (build_conditional_expr): Same.
5300         (build_compound_expr): Pass location on down.
5301         (build_compound_expr): New argument.
5302         (build_c_cast): Same.
5303         (c_cast_expr): Same.
5304         (build_asm_expr): Same.
5305         (c_finish_return): Same.
5306         (c_process_expr_stmt): Pass location on down.
5307         (c_finish_stmt_expr): New argument.
5308         (push_clenaup): Same.
5309         (c_finish_omp_parallel): Same.
5310         (c_finish_omp_task): Same.
5311         * gimplify.c (gimplify_call_expr): Pass location on down.
5312         * c-omp.c (c_finish_omp_master): New argument.
5313         (c_finish_omp_critical): Same.
5314         (c_finish_omp_ordered): Same.
5315         (c_finish_omp_barrier): Same.
5316         (-c_finish_omp_taskwait): Same.
5317         (c_finish_omp_atomic): Same.
5318         (c_finish_omp_flush): Same.
5319         * tree-inline.c (copy_tree_body_r): Pass location on down.
5320         (inline_forbidden_p): Remove use of input_location.
5321         * c-gimplify.c (c_build_bind_expr): New argument.
5322         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
5323         (c_sizeof_or_alignof_type): New argument.
5324         (c_alignof_expr): Same.
5325         (build_va_arg): Same.
5326         (c_add_case_label): Same.
5327         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
5328         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
5329         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
5330         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
5331         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
5332         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
5333         New argument.
5334         * stub-objc.c (objc_build_selector_expr): Same.
5335         (objc_build_throw_stmt): Same.
5336         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
5337         (c_parser_initelt): Same.
5338         (c_parser_compound_statement): Same.
5339         (c_parser_compound_statement_nostart): Same.
5340         (c_parser_label): Same.
5341         (c_parser_statement_after_labels): Same.
5342         (c_parser_if_body): Same.
5343         (c_parser_else_body): Same.
5344         (c_parser_if_statement): Same.
5345         (c_parser_switch_statement): Same.
5346         (c_parser_while_statement): Same.
5347         (c_parser_do_statement): Same.
5348         (c_parser_for_statement): Same.
5349         (c_parser_asm_statement): Same.
5350         (c_parser_conditional_expression): Same.
5351         (c_parser_binary_expression): Same.
5352         (c_parser_cast_expression): Same.
5353         (c_parser_unary_expression): Same.
5354         (c_parser_sizeof_expression): Same.
5355         (c_parser_alignof_expression): Same.
5356         (c_parser_postfix_expression): Same.
5357         (c_parser_expression): Same.
5358         (c_parser_objc_receiver): Same.
5359         (c_parser_omp_variable_list): Same.
5360         (c_parser_omp_structured_block): Same.
5361         (c_parser_omp_atomic): New argument.
5362         (c_parser_omp_barrier): Same.
5363         (c_parser_omp_critical): Same.
5364         (c_parser_omp_flush): Pass location on down.
5365         (c_parser_omp_for_loop): New argument.
5366         (c_parser_omp_for): Same.
5367         (c_parser_omp_master): Same.
5368         (c_parser_omp_ordered): Same.
5369         (c_parser_omp_sections_scope): Same.
5370         (c_parser_omp_sections): Same.
5371         (c_parser_omp_parallel): Same.
5372         (c_parser_omp_single): Same.
5373         (c_parser_omp_task): Same.
5374         (c_parser_omp_taskwait): Pass location on down.
5375         (c_parser_omp_construct): Same.
5376         (c_parser_omp_threadprivate): Same.
5377         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
5378         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
5379         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
5380         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
5381         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
5382         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
5383         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
5384         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
5385         config/i386/i386.c, stmt.c:
5386         Add location argument to the following function definitions and/or
5387         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
5388         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
5389         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
5390         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
5391         do_case, c_finish_bc_stmt, build_compound_literal,
5392         build_function_call.
5393         * c-decl.c (build_compound_literal): Add location argument.
5394         Make all diagnostic calls use location.
5395         (start_struct): Same.
5396         (finish_struct): Same.
5397         (start_enum): Same.
5398         (build_enumerator): Same.
5399         (start_function): Same.
5400         (grokdeclarator): Make all diagnostic calls use location.
5401         (store_parm_decls_oldstyle): Same.
5402         * c-typeck.c (build_function_call): Add location argument.
5403         Make all diagnostic calls use location.
5404         (do_case): Same.
5405         (c_finish_bc_stmt): Same.
5406         * tree-nested.c (get_trampoline_type): Add argument.
5407         Pass location to build_decl.
5408         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
5409         * rtl.h (RTL_LOCATION): New.
5410         * c-common.c (c_add_case_label): Add location argument.
5411         Make all diagnostic calls use location.
5412         * c-common.h: Add location argument to make_fname_decl, do_case,
5413         c_add_case_label, build_function_call, resolve_overloaded_builtin.
5414         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
5415         Set it appropriately for every case.  Pass enum_loc to start_enum
5416         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
5417         parser_xref_tag.
5418         (c_parser_struct_or_union_specifier): Save location.  Use it for
5419         start_struct, finish_struct, and parser_xref_tag.
5420
5421 2009-06-12  Ian Lance Taylor  <iant@google.com>
5422
5423         * fold-const.c (fold_unary): Rename local variable and to and_expr.
5424
5425         * c-opts.c (c_common_handle_option): For -Wc++-compat set
5426         cpp_opts->warn_cxx_operator_names.
5427
5428 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5429
5430         PR tree-opt/38865
5431         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
5432         is returns NULL and OP is a VCE, look through the VCE.
5433
5434 2009-06-12  Ian Lance Taylor  <iant@google.com>
5435
5436         PR bootstrap/40430
5437         * collect2.c (main): Use CONST_CAST2 in code inside #if
5438         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
5439
5440 2009-06-12  Joey Ye  <joey.ye@intel.com>
5441
5442         PR middle-end/39146
5443         * cfgexpand.c (get_decl_align_unit): Update
5444         max_used_stack_slot_alignment with align instead of
5445         stack_alignment_needed.
5446
5447         * function.c (assign_stack_local_1): Update
5448         max_used_stack_slot_alignment with alignment_in_bits instead
5449         of stack_alignment_needed.
5450         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
5451         here.
5452
5453 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
5454
5455         * dwarf2out.c (last_var_location_insn): New variable.
5456         (dwarf2out_end_epilogue): Clear last_var_location_insn.
5457         (dwarf2out_var_location): Don't record anything after last real
5458         insn.  Only change labels if there were any real instructions
5459         in between last note and this one, or if changed sections.
5460
5461 2009-06-11  Richard Henderson  <rth@redhat.com>
5462
5463         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
5464         note when storing the frame pointer in a register.
5465         (FRP): Don't redefine to nothing for epilogue.
5466         (alpha_expand_epilogue): Mark register and sp restores.
5467         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
5468
5469         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
5470         when gen_lowpart is needed.
5471
5472 2009-06-11  Richard Henderson  <rth@redhat.com>
5473
5474         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
5475
5476         * dwarf2out.c (need_data_align_sf_opcode): New.
5477         (div_data_align): Move earlier.
5478         (def_cfa_1, reg_save): Use it.
5479
5480 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
5481
5482         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
5483         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
5484         (ix86_handle_option): Handle OPT_mcrc32.
5485         (ix86_target_string): Add -mcrc32.
5486         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
5487
5488         * config/i386/i386.h (TARGET_CRC32): New.
5489
5490         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
5491         (sse4_2_crc32di): Likewise.
5492
5493         * config/i386/i386.opt (mcrc32): New.
5494
5495         * doc/invoke.texi: Document -mcrc32.
5496
5497 2009-06-11  Richard Henderson  <rth@redhat.com>
5498
5499         * common.opt (gdwarf-): Accept a version number.
5500         * doc/invoke.texi (gdwarf-): Update docs.
5501         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
5502         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
5503         version level, and record it.
5504
5505         * dwarf2.h (DW_CIE_VERSION): Remove.
5506         * dwarf2out.c (DWARF_VERSION): Remove.
5507         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
5508         (output_call_frame_info): Use CIE version 3 for dwarf3,
5509         or if the return register column is out of range for version 1.
5510         (dwarf_stack_op_name): Add all dwarf3 values.
5511         (DEBUG_PUBTYPES_SECTION): New.
5512         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
5513         encoding change for dwarf3.
5514         (output_die) [dw_val_class_die_ref]: Likewise.
5515         (output_compilation_unit_header): Emit correct version for dwarf3.
5516         (output_line_info): Likewise.
5517         (output_pubnames): Update for DWARF_VERSION removal.
5518         (output_aranges): Likewise.
5519         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
5520         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
5521         (dwarf2out_finish): Likewise.
5522
5523 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5524
5525         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
5526         in r148403.
5527
5528 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5529
5530         PR c/39252
5531         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
5532         * builtins.c (expand_builtin_unreachable): New function.
5533         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
5534         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
5535         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
5536         successors.
5537         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
5538         searching for missing barriers.
5539
5540 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5541
5542         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
5543         when -fprofile-generate* was passed.
5544         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
5545
5546 2009-06-11  Anthony Green  <green@moxielogic.com>
5547
5548         * config/moxie/moxie.md: Define length attribute for all instructions.
5549         (rCC): Define.
5550         (*b<cond:code>): Support limited branch ranges for new PC-relative
5551         branch instructions.
5552         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
5553
5554 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
5555
5556         * config/i386/i386.c (min_insn_size): Use get_attr_length
5557         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
5558         For __asm return 0.
5559
5560         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
5561         instead of emit_insn_before.
5562
5563 2009-06-10  Ian Lance Taylor  <iant@google.com>
5564
5565         PR bootstrap/40408
5566         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
5567         GIMPLE_SWITCH.
5568
5569 2009-06-10  Revital Eres  <eres@il.ibm.com>
5570
5571         * passes.c (init_optimization_passes): Reschedule
5572         predictive-commoning pass before complete unroll pass.
5573
5574 2009-06-10  Martin Jambor  <mjambor@suse.cz>
5575
5576         * cgraph.c (cgraph_node_can_be_local_p): New function.
5577         (cgraph_make_node_local): New function.
5578         * cgraph.h (cgraph_node_can_be_local_p): Declare.
5579         (cgraph_make_node_local): Declare.
5580
5581 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
5582
5583         * tree.h (tree_base): Add packed_flag and user_align fields.
5584         Decrease size of spare field.
5585         (TYPE_USER_ALIGN): Use user_align from tree_base.
5586         (DECL_USER_ALIGN): Likewise.
5587         (TYPE_PACKED): Use packed_flag from tree_base.
5588         (DECL_PACKED): Likewise.
5589         (tree_type): Delete packed_flag and user_align fields.  Widen
5590         precision field.  Widen mode field and shuffle fields to align
5591         mode on an 8-bit boundary.
5592         (tree_decl_common): Delete decl_flag_1 and user_align fields.
5593         Renumber decl_flag_* fields.  Fix comments.  Widen
5594         decl_common_unused field.
5595         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
5596         (DECL_EXTERNAL): Likewise.
5597         (DECL_BIT_FIELD): Likewise.
5598         (DECL_NONADDRESSABLE_P): Likewise.
5599         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
5600         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
5601
5602 2009-06-10  Ian Lance Taylor  <iant@google.com>
5603
5604         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
5605         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
5606         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
5607         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
5608         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
5609         DEF_VEC_ALLOC_FUNC_P.
5610         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
5611         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
5612         DEF_VEC_ALLOC_FUNC_O.
5613         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
5614         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
5615         DEF_VEC_ALLOC_FUNC_I.
5616         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
5617         (vec_stack_p_reserve_exact_1): Declare.
5618         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
5619         (vec_stack_free): Declare.
5620         (VEC_stack_alloc): Define.
5621         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
5622         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
5623         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
5624         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
5625         for void_p.
5626         (stack_vecs): New static variable.
5627         (vec_stack_p_reserve_exact_1): New function.
5628         (vec_stack_o_reserve_1): New static function.
5629         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
5630         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
5631         (vec_stack_free): New function.
5632         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
5633         (VEC_df_ref_stack_alloc): Define.
5634         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
5635         DEF_VEC_ALLOC_P_STACK.
5636         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
5637         (struct df_collection_rec): Change _vec fields to VEC.  Remove
5638         _use fields.
5639         (df_free_collection_rec): Adjust for new fields.
5640         (df_insn_rescan): Use new df_collection_rec fields.
5641         (df_notes_rescan, df_canonize_collection_rec): Likewise.
5642         (df_ref_create_structure, df_ref_record): Likewise.
5643         (df_get_conditional_uses, df_get_call_refs): Likewise.
5644         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
5645         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
5646         (df_record_exit_block_uses, df_bb_verify): Likewise.
5647         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
5648         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
5649         Remove count parameter.  Change return type to void.  Change all
5650         callers.
5651         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
5652         Remove count parameter.  Change return type to void.  Change all
5653         callers.
5654         (df_install_refs): Change old_vec parameter to VEC.  Remove count
5655         parameter.  Change all callers.
5656         (df_install_mws): Change old_vec parameter to VEC.  Remove count
5657         parameter.  Change all callers.
5658         (df_refs_verify): Change new_rec parameter to VEC.  Change call
5659         callers.
5660         (df_mws_verify): Likewise.
5661
5662 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
5663
5664         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
5665
5666 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
5669
5670 2009-06-10  Anthony Green  <green@moxielogic.com>
5671
5672         * config/moxie/crti.asm: New file.
5673         * config/moxie/crtn.asm: New file.
5674         * config/moxie/moxie.c: New file.
5675         * config/moxie/moxie.h: New file.
5676         * config/moxie/sfp-machine.h: New file.
5677         * config/moxie/moxie-protos.h: New file.
5678         * config/moxie/t-moxie: Created.
5679         * config/moxie/t-moxie-softfp: Created.
5680         * config/moxie/moxie.md: Created.
5681         * config/moxie/constraints.md: Created.
5682         * config.gcc: Add moxie support.
5683         * doc/md.texi (Machine Constraints): Add moxie constraints.
5684         * doc/contrib.texi (Contributors): Mention moxie port.
5685         * doc/install.texi (Specific): Mention the moxie port.
5686
5687 2009-06-09  Ian Lance Taylor  <iant@google.com>
5688
5689         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
5690         compiling with C++.
5691         * optabs.c (optab_table): Only use designated initializers if
5692         HAVE_DESIGNATED_INITIALIZERS is defined.
5693         (convert_optab_table): Likewise.
5694         (init_optabs): Always call init_insn_codes if
5695         HAVE_DESIGNATED_INITIALIZERS is not defined.
5696
5697 2009-06-09  Ian Lance Taylor  <iant@google.com>
5698
5699         * targhooks.c (default_builtin_vectorized_function): Change fn
5700         parameter to unsigned int.
5701         (default_builtin_vectorized_conversion): Change code parameter to
5702         unsigned int.
5703         (default_builtin_reciprocal): Change fn parameter to unsigned int.
5704         * targhooks.h: Update declarations.
5705         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
5706         parameter to unsigned int.
5707
5708         * c-typeck.c (comptypes_check_enum_int): New static function.
5709         (comptypes_internal): Add enum_and_int_p parameter.  Change all
5710         callers.
5711         (comp_target_types): Add location parameter.  Change all callers.
5712         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
5713         Change all callers.
5714         (function_types_compatible_p, type_lists_compatible_p): Likewise.
5715         (build_conditional_expr): Add colon_loc parameter.  Change all
5716         callers.
5717         (convert_for_assignment): Add location parameter.  Change all callers.
5718         * c-parser.c (c_parser_conditional_expression): Pass location of
5719         colon to build_conditional_expr.
5720         * c-tree.h (build_conditional_expr): Update declaration.
5721
5722 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5723
5724         * graphite.c: Revert previous patch.
5725
5726 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5727
5728         PR bootstrap/40103
5729         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
5730
5731 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5732
5733         * tree-ssa-loop-prefetch.c
5734         (loop_prefetch_arrays): Fixed a portability problem in printf format
5735         string.
5736
5737 2009-06-09  Martin Jambor  <mjambor@suse.cz>
5738
5739         PR tree-optimization/40351
5740         * tree-sra.c (propagate_subacesses_accross_link): Check that a
5741         refrence to a potential artifical subaccess can be constructed.
5742
5743 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5744
5745         * config/sh/sh-protos.h (sh_optimization_options): Declare.
5746         (sh_override_options): Likewise.
5747         * config/sh/sh.c: Include params.h.
5748         (sh_optimization_options): New.
5749         (sh_override_options): Likewise.
5750         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
5751         (OVERRIDE_OPTIONS): Use sh_override_options.
5752
5753 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5754
5755         * dwarf2out.c (emit_cfa_remember): New variable.
5756         (add_fde_cfi): If emit_cfa_remember, recurse to add
5757         DW_CFA_remember_state first.
5758         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
5759         instead just set emit_cfa_remember.
5760
5761 2009-06-08  Jan Hubicka  <jh@suse.cz>
5762
5763         PR debug/40126
5764         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
5765
5766 2009-06-08  Jan Hubicka  <jh@suse.cz>
5767
5768         PR middle-end/39834
5769         * cgraphunit.c (save_inline_function_body): Do not copy transform
5770         hooks for saved inline bodies.
5771         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
5772         for given function.
5773
5774 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
5775
5776         * jump.c (returnjump_p): Handle delayed branches.  Add missing
5777         function comment.
5778
5779 2009-06-08  Jan Hubicka  <jh@suse.cz>
5780
5781         PR middle-end/40102
5782         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
5783         original node might've been modified.
5784         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
5785
5786 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5787
5788         * tree-object-size.c (addr_object_size): Add OSI argument.
5789         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
5790         (compute_builtin_object_size, expr_object_size): Adjust callers.
5791         (plus_stmt_object_size): Call addr_object_size instead of
5792         compute_builtin_object_size.
5793
5794 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5795             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5796         
5797         * tree-ssa-loop-prefetch.c 
5798         (gather_memory_references): Introduced a counter for the number of 
5799         memory references.
5800         (anything_to_prefetch_p): Introduced a counter for the number of 
5801         prefetches.
5802         (is_loop_prefetching_profitable): New function with a cost model 
5803         for prefetching.
5804         (loop_prefetch_arrays): Use the new cost model to determine if 
5805         prefetching is profitable.
5806         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
5807         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5808         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
5809         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5810         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
5811         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5812         
5813 2009-06-08  Michael Matz  <matz@suse.de>
5814
5815         PR debug/40012
5816         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
5817         partitions use the same.
5818         (expand_one_var): Deal with DECL_RTL sometimes begin set also
5819         for basevars of SSA_NAMEs.
5820         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
5821         to not expand them twice.
5822         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
5823         multiple places.
5824
5825 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5826
5827         * common.opt (fcompare-debug=, fcompare-debug-second): New.
5828         (fdump-final-insns=, gtoggle): New.
5829         * doc/invoke.texi: Document them.
5830         * final.c (rest_of_clean_state): Dump final insn stream.
5831         * gcc.c (invoke_as): Hook in -fcompare-debug.
5832         (static_spec_functions): Add compare-debug-dump-opt,
5833         compare-debug-self-opt and compare-debug-auxbase-opt.
5834         (compare_debug, compare_debug_second, compare_debug_opt): New.
5835         (switches_debug_check, n_switches_debug_check): New.
5836         (debug_auxbase_opt, debug_check_temp_file): New.
5837         (process_command): Handle -fno-compare-debug, -fcompare-debug and
5838         -fcompare-debug=*.
5839         (do_self_spec): Handle arguments after switches.
5840         (do_spec_1): Add .gk extension to temp file basenames for compare.
5841         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
5842         (cc1_options): Use it instead of normal auxbase computation for
5843         the second compare-debug compilation.
5844         (compare_files): New.
5845         (main): Set up and implement compare debug mode.
5846         (compare_debug_dump_opt_spec_function): New.
5847         (compare_debug_self_opt_spec_function): New.
5848         (compare_debug_auxbase_opt_spec_function): New.
5849         * toplev.c (process_options): Handle flag_gtoggle,
5850         flag_dump_final_insns.
5851         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
5852         during -fcompare-debug-second compilation.
5853
5854 2009-06-07  Ian Lance Taylor  <iant@google.com>
5855
5856         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
5857         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
5858
5859         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
5860         with no default node.  Change warning with %H to warning_at.
5861         Don't clear warn_switch around case checking.
5862         * doc/invoke.texi (Warning Options): Clarify distinction between
5863         -Wswitch and -Wswitch-enum.
5864
5865 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5866
5867         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
5868
5869 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5870
5871         * gbl-ctors.h: Add header guard.
5872
5873 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5874
5875         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
5876         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
5877         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
5878         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
5879         prototypes for removed functions.
5880         (expressions_equal_p): Move to ...
5881         * tree-ssa-sccvn.h: ... here and ...
5882         * matrix-reorg.c: ... adjust includes.
5883
5884 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5885
5886         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
5887
5888 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5889
5890         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
5891         (finish_function): Remove erroneous whitespace.
5892
5893 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5894
5895         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
5896         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
5897
5898 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5899
5900         * errors.c (internal_error): Commentary typo fix.
5901         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
5902         * tree-ssa-pre.c: Ditto.
5903
5904 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5905
5906         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
5907         them is supposed to hold actual statements.
5908
5909 2009-06-06  Ian Lance Taylor  <iant@google.com>
5910
5911         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
5912         empty statements can now have attributes.
5913
5914 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
5915
5916         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
5917         * config/mips/mips.md: Ditto.
5918
5919 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5920
5921         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
5922         _RELOCATABLE.
5923         (__eabi_uconvert): Likewise.
5924
5925 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5926
5927         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
5928         CFI_* definitions with IN_GCC.
5929
5930 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
5931
5932         * xcoffout.h (xcoffout_source_line): Update prototype.
5933
5934 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5935
5936         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
5937         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
5938
5939 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5940
5941         PR middle-end/40340
5942         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5943         inlined_function_outer_scope_p blocks for artificial inlines
5944         even at -g0/-g1.
5945         * tree.c (tree_nonartificial_location): Rewrite using
5946         block_nonartificial_location.
5947
5948 2009-06-05  Revital Eres  <eres@il.ibm.com>
5949             Leehod Baruch  <leehod@il.ibm.com>
5950
5951         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
5952         (expand_expr_real_1): Remove comment.
5953         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5954         Vectorize misaligned access when the target supports it.
5955         (vect_supportable_dr_alignment): Check for unaligned access support.
5956         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
5957         and remove asset.
5958
5959 2009-06-05  Julian Brown  <julian@codesourcery.com>
5960
5961         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
5962         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
5963
5964 2009-06-05  Richard Guenther  <rguenther@suse.de>
5965
5966         PR bootstrap/40350
5967         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
5968         as possibly unused.
5969
5970 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5971
5972         * config/s390/s390.c (global_not_special_regno_p): New static inline.
5973         (save_gprs): Don't tell unwinder when a global register is saved.
5974         (s390_emit_epilogue): Emit needed epilogue unwind info.
5975
5976 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5977
5978         * dwarf2out.c (deferred_asm_name): New.
5979         (add_name_and_src_coords_attributes): Defer creation of
5980         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
5981         computed yet.
5982         (move_linkage_attr): New.
5983         (dwarf2out_finish): Revisit deferrals and emit attributes at the
5984         right place.
5985
5986 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5987
5988         * tree-nested.c (finalize_nesting_tree_1): Declare the
5989         frame_decl in the binding tree.
5990
5991 2009-06-04  Cary Coutant  <ccoutant@google.com>
5992
5993         * basic-block.h (struct basic_block_def): Add discriminator field.
5994         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
5995         callers.
5996         * debug.c (do_nothing_debug_hooks): Add additional entry.
5997         (debug_nothing_int_charstar_int): New function.
5998         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
5999         (debug_nothing_int_charstar_int): New declaration.
6000         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
6001         discriminator value in .loc directive.
6002         * final.c (last_discriminator): New variable.
6003         (discriminator): New variable.
6004         (final_start_function): Initialize above variables, pass current
6005         discriminator to debug hook.
6006         (notice_source_line): Check for discriminator change.
6007         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
6008         * sdbout.c (sdbout_source_line): New parameter.
6009         * tree-cfg.c (struct locus_discrim_map): New structure type.
6010         (discriminator_per_locus): New hash table.
6011         (build_gimple_cfg): Allocate and free discriminator hash table.
6012         (make_edges): Call assign_discriminator.
6013         (locus_map_hash): New function.
6014         (locus_map_eq): New function.
6015         (next_discriminator_for_locus): New function.
6016         (same_line_p): New function.
6017         (assign_discriminator): New function.
6018         (make_cond_expr_edges): Call assign_discriminator.
6019         (make_gimple_switch_edges): Likewise.
6020         (first_non_label_stmt): New function.
6021         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
6022         all callers.
6023         * xcoffout.c (xcoffout_source_line): Add new parameter.
6024
6025         * configure.ac (gcc_cv_as_discriminator): New configury check for
6026         gas support for discriminator.
6027         * configure: Regenerate.
6028         * config.in: Regenerate.
6029
6030 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6031
6032         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
6033         val after checking for integers.
6034
6035 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
6036
6037         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
6038         X64_REGPARM_MAX.
6039         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
6040         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
6041         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
6042         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
6043         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
6044         X64_SSE_REGPARM_MAX.
6045         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
6046         X64_SSE_REGPARM_MAX.
6047
6048 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6049
6050         * gcc.c (report_times_to_file): New.
6051         (execute): Implement it.
6052         (process_command): Support -time=.
6053         * doc/invoke.texi: Document it.
6054
6055 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6056
6057         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
6058         that have value exprs.
6059
6060 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
6061
6062         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
6063         declarations for constants until...
6064         (dw2_output_indirect_constant_1): ... this point.
6065
6066 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
6067
6068         PR target/10242
6069         * arm.md (arm_addsi3): Don't try to split an add with an
6070         eliminable register until after reload has completed.
6071
6072 2009-06-03  Ian Lance Taylor  <iant@google.com>
6073
6074         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
6075         * genattrtab.c (write_length_unit_log): Likewise.
6076         * genchecksum.c (dosum): Likewise.
6077         * gengtype.c (write_rtx_next): Likewise.
6078         (finish_root_table, write_roots): Likewise.
6079         * gimple.c (gimple_ops_offset_): Likewise.
6080         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
6081         * config/arc/arc.c (arc_attribute_table): Likewise.
6082         * config/arm/arm.c (arm_attribute_table): Likewise.
6083         * config/avr/avr.c (avr_attribute_table): Likewise.
6084         * config/crx/crx.c (crx_attribute_table): Likewise.
6085         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
6086         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
6087         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
6088         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
6089         * config/sh/sh.c (sh_attribute_table): Likewise.
6090         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
6091         * config/spu/spu.c (spu_attribute_table): Likewise.
6092         * config/v850/v850.c (v850_attribute_table): Likewise.
6093
6094         * config/alpha/alpha.c (vms_attribute_table): Make static.
6095         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
6096         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
6097         * config/mips/mips.c (mips_attribute_table): Likewise.
6098
6099         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
6100         $(SYSTEM_H).
6101         (cc1-checksum.o): Likewise.
6102
6103 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
6104
6105         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
6106
6107 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
6108
6109         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
6110         insn if it is changing sp.  Use gen_add3_insn instead of
6111         conditionally gen_addsi3 and gen_adddi3.
6112         (offset_below_red_zone_p): New static inline function.
6113         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
6114         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
6115         * config/rs6000/ppc-asm.h: Include auto-host.h.
6116         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
6117         CFI_RESTORE): Define.
6118         * config/rs6000/crtresxgpr.asm: Add unwind info.
6119         * config/rs6000/crtresxfpr.asm: Likewise.
6120         * config/rs6000/crtresgpr.asm: Likewise.
6121         * config/rs6000/crtresfpr.asm: Likewise.
6122         * config/rs6000/crtsavgpr.asm: Likewise.
6123         * config/rs6000/crtsavfpr.asm: Likewise.
6124
6125         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
6126         argument of DWARF2_FRAME_REG_OUT macros.
6127
6128 2009-06-03  Julian Brown  <julian@codesourcery.com>
6129
6130         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
6131         words or less (including TImode) in core registers.
6132
6133 2009-06-03  Richard Guenther  <rguenther@suse.de>
6134
6135         PR middle-end/40328
6136         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
6137
6138 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
6139
6140         * statistics.c (statistics_counter_event): Do not record event 
6141         in pass dump if its number == -1.
6142         (curr_statistics_hash): Add assert that we never get passes 
6143         with static number == -1.
6144
6145 2009-06-03  Richard Guenther  <rguenther@suse.de>
6146             Andrey Belevantsev  <abel@ispras.ru>
6147
6148         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
6149         non-BLKmode arrays addressable.
6150
6151 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
6152
6153         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
6154         * config/m68k/m68k.h: ... here.
6155         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
6156         m68k and fido.
6157
6158 2009-06-03  Martin Jambor  <mjambor@suse.cz>
6159
6160         PR tree-optimization/40323
6161         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
6162         assignment.
6163
6164 2009-06-03  Richard Guenther  <rguenther@suse.de>
6165
6166         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6167         consistently.
6168
6169 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
6170
6171         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
6172         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
6173         JUMP_TABLE_DATA_P where applicable.
6174         * config/sh/sh.c: Ditto.
6175         * config/sh/sh.h: Ditto.
6176         * config/sh/sh.md: Ditto.
6177         * config/sh/symbian.c: Ditto.
6178
6179 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
6180
6181         * config/i386/driver-i386.c (describe_cache): Optimize
6182         concatenation of strings.  Use snprintf instead of sprintf.
6183         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
6184         target when not compiling with GCC.
6185
6186 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6187
6188         * config/sh/sh.c: Revert last change.
6189         (sh_expand_epilogue): Emit a blockage insn before the frame
6190         pointer adjustment unconditionally.
6191
6192 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6193
6194         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
6195         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
6196         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
6197         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
6198         to COLLECT_GCC_OPTIONS.
6199
6200 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6201
6202         * collect2.c (target_system_root): New variable.
6203         (main): Handle --sysroot=.
6204         (ignore_library): Strip the sysroot from the library path.
6205
6206 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6207
6208         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
6209         (collect2.o): Depend on collect2-aix.h.
6210         (collect2-aix.o): New rule.
6211         * collect2-aix.h: New file.
6212         * collect2-aix.c: Likewise.
6213         * collect2.c: Include collect2-aix.h.  Don't undefine
6214         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
6215         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
6216         Use TARGET_AIX_VERSION instead of _AIX51.
6217         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
6218         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
6219         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
6220         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
6221         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
6222
6223 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6224
6225         * collect2.c (ignore_library): Avoid premature post-increment
6226         and null deference.
6227
6228 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
6229
6230         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
6231         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
6232         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
6233         CROSS_DIRECTORY_STRUCTURE too.
6234         (LINK_LIBG_SPEC): Likewise.
6235         (LIB_SPEC): Add %R to sysroot paths.
6236         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
6237         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
6238         * config/rs6000/aix51.h: As for aix43.h.
6239         * config/rs6000/aix52.h: Likewise.
6240         * config/rs6000/aix53.h: Likewise.
6241         * config/rs6000/aix61.h: Likewise.
6242         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
6243         to the beginning of sysroot paths.
6244
6245 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6246
6247         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
6248         INSN_LISTs that are out of the REG_NOTE range.
6249
6250 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6251
6252         * loop-unroll.c (struct iv_to_split): Add pointer to next.
6253         (struct var_to_expand): Likewise.
6254         (struct opt_info): Add head and tail for linked lists of the above.
6255         (analyze_insn_to_expand_var): Initialize next.
6256         (analyze_iv_to_split_insn): Likewise.
6257         (analyze_insns_in_loop): Create linked lists.
6258         (allocate_basic_variable): Simplify for use without hash table.
6259         (insert_var_expansion_initialization): Likewise, make it type-safer.
6260         (combine_var_copies_in_loop_exit): Likewise.
6261         (apply_opt_in_copies): Walk lists rather than hash tables.
6262         (release_var_copies): Simplified and inlined by hand into...
6263         (free_opt_info): ... this function.
6264
6265 2009-06-02  Richard Guenther  <rguenther@suse.de>
6266
6267         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6268         for field decls.
6269
6270 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6271
6272         * cfgexpand.c (gimple_expand_cfg): Discard the source location
6273         only for builtins that are not overridden.
6274
6275 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6276
6277         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
6278         label string.
6279
6280 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6281
6282         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
6283
6284 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6285
6286         * combine.c (move_deaths): Compare LUIDs within the same BB only.
6287
6288 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6289
6290         * common.opt (fdump-unnumbered-links): New.
6291         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
6292         * print-rtl.c (flag_dump_unnumbered_links): New.
6293         (print_rtx): Test it.
6294
6295 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
6296
6297         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
6298         push/pop multiple to 8-byte alignment.
6299
6300 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
6301
6302         * config/i386/i386.c (queued_cfa_restores): New static variable.
6303         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
6304         functions.
6305         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
6306         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
6307         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
6308         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
6309         note unconditionally.
6310         (ix86_emit_restore_regs_using_mov): Likewise.
6311         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6312         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
6313         it through to ix86_emit_restore_reg_using_pop.
6314         (ix86_emit_leave): Add RED_OFFSET argument.  Call
6315         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
6316         instead of adding REG_CFA_OFFSET note unconditionally.
6317         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
6318         the above functions.  Call ix86_add_queued_cfa_restore_notes when
6319         needed.
6320
6321         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
6322         force output of the label even for dwarf2out_do_cfi_asm.
6323         (add_fde_cfi): If -g2 and above and cfi might change CFA,
6324         force creation of CFI label and chain DW_CFA_set_loc jumping to it
6325         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
6326         caller.
6327         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
6328         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
6329         dwarf2out_cfi_label callers.
6330         * tree.h (dwarf2out_cfi_label): Adjust prototype.
6331         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
6332         Adjust dwarf2out_cfi_label callers.
6333         * config/vax/vax.c (vax_output_function_prologue): Likewise.
6334
6335         * config/i386/i386.h (struct machine_cfa_state,
6336         struct machine_function): Guard with ifndef USED_FOR_TARGET
6337         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
6338
6339         PR other/40024
6340         * emutls.c (__emutls_get_address): Change arr->size to mean number
6341         of allocated arr->data entries instead of # of slots + 1.
6342
6343         PR middle-end/40316
6344         * recog.c (peep2_reinit_state): New function.
6345         (peephole2_init_state): Use it at the end of a basic block and also
6346         when seeing a RTX_FRAME_RELATED_P insn.
6347
6348 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
6349
6350         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
6351         fixuns_truncrfdi2): New.
6352         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
6353         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
6354         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
6355         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
6356         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
6357         *recip_approx): Remove.
6358         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
6359         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
6360         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
6361         move to div.md.
6362         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
6363         setf_exp_rf): New.
6364
6365 2009-06-01  Ian Lance Taylor  <iant@google.com>
6366
6367         * attribs.c (register_attribute): Use CONST_CAST.
6368         * collect2.c (main): Use CONST_CAST2.
6369         (scan_prog_file): Likewise.
6370         * gcc.c (process_command, main): Likewise.
6371         * toplev.c (toplev_main): Likewise.
6372
6373         * c-typeck.c (handle_warn_cast_qual): New static function,
6374         partially broken out of build_c_cast.
6375         (build_c_cast): Call handle_warn_cast_qual.
6376         * doc/invoke.texi (Warning Options): Document new effect of
6377         -Wcast-qual.
6378
6379 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
6380
6381         * diagnostic.c (diagnostic_build_prefix): Always print columns.
6382         (diagnostic_report_current_module): Print columns.
6383         * common.opt (flag_show_column): Enable by default.
6384
6385 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
6386
6387         * alias.c (find_base_term): Check for NULL term before returning.
6388
6389 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6390
6391         Revert due to PR40320:
6392         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6393         * calls.c (emit_library_call_value_1): Don't force_operand for move
6394         and push insns.
6395
6396 2009-06-01  Olivier Hainque  <hainque@adacore.com>
6397             Eric Botcazou  <ebotcazou@adacore.com>
6398
6399         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
6400         to be processed as a bitfield for constructor output purposes.
6401         * output.h (initializer_constant_valid_for_bitfield_p): Declare
6402         new function.
6403         * varasm.c (oc_local_state): New type, output_constructor
6404         local state to support communication with helpers.
6405         (oc_outer_state): New type, output_constructor outer state of
6406         relevance in recursive calls.
6407         (output_constructor_array_range): New output_constructor helper,
6408         extracted code for an array range element.
6409         (output_constructor_regular_field): New output_constructor helper,
6410         extracted code for an element that is not a bitfield.
6411         (output_constructor_bitfield): New output_constructor helper,
6412         extracted code for a bitfield element.  Accept an OUTER state
6413         argument for recursive processing.  Recurse on record or array
6414         CONSTRUCTOR values, possibly past noop conversions.
6415         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
6416         VALUE is a valid constant-valued expression for use in a static
6417         bit-field initializer.
6418         (output_constructor): Rework to use helpers.  Accept and honor an
6419         OUTER state argument for recursive calls.  Return total size.  Be
6420         prepared for nested constructors initializing bitfields.
6421         (output_constant): Feed OUTER in calls to output_constructor.
6422
6423 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6424
6425         * calls.c (emit_library_call_value_1): Don't force_operand for move
6426         and push insns.
6427
6428 2009-06-01  Nick Clifton  <nickc@redhat.com>
6429
6430         * doc/invoke.texi (IA-64 Options): Fix typo.
6431
6432 2009-06-01  Ira Rosen  <irar@il.ibm.com>
6433
6434         PR tree-optimization/39129
6435         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
6436         printed message.
6437         (vect_do_peeling_for_loop_bound): Use
6438         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6439         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6440         (vect_loop_versioning): Likewise.
6441         (vect_create_cond_for_alias_checks): Fix indentation.
6442         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
6443         macros.
6444         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
6445         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
6446         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
6447         "control flow in loop".
6448         (vect_estimate_min_profitable_iters): Use
6449         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6450         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6451         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6452         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
6453         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
6454         statement belongs to a group of strided accesses with the exact code
6455         check.
6456         (vectorizable_load): Likewise.
6457         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
6458         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
6459
6460 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
6461
6462         * config/freebsd-stdint.h: New file.
6463         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
6464         Add freebsd-stdint.h to tm_file.
6465
6466 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
6467
6468         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
6469         (thumb2_extendhidi2): Likewise.
6470
6471 2009-05-31  Ian Lance Taylor  <iant@google.com>
6472
6473         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
6474
6475 2009-05-31  Ian Lance Taylor  <iant@google.com>
6476
6477         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
6478         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
6479         (ipa-reference.o): Depend upon gt-ipa-reference.h.
6480
6481 2009-05-31  Jason Merrill  <jason@redhat.com>
6482
6483         * tree-pretty-print.c (print_call_name): Take the callee, not the
6484         call itself.  Make non-static.  Use dump_function_name for functions.
6485         (dump_generic_node): Adjust.
6486         * diagnostic.h: Declare print_call_name.
6487         * gimple-pretty-print.c (dump_gimple_call): Use it.
6488
6489 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6490
6491         * config/sh/sh.md (ashldi3_std): New define_expand.
6492         (ashldi3): Use it.
6493
6494 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6495
6496         PR target/40313
6497         * config/sh/sh.c: Include debug.h.
6498         (sh_expand_epilogue): Emit a blockage insn before the frame
6499         pointer adjustment also when dwarf2out_do_frame returns true.
6500
6501 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
6502
6503         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
6504         (thumb2_extendqidi2): New pattern.
6505
6506 2009-05-31  Ira Rosen  <irar@il.ibm.com>
6507
6508         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
6509         mark phis for renaming.
6510         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
6511         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
6512         Call mark_sym_for_renaming.
6513         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
6514         * tree-vect-loop.c (vect_transform_loop): Remove
6515         vect_memsyms_to_rename initialization and a call to
6516         mark_set_for_renaming.
6517
6518 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
6519
6520         PR middle-end/40304
6521         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
6522         frame related even if !set_cfa && style < 0.
6523
6524 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
6525
6526         * config/i386/mingw-tls.c: New file.
6527         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
6528         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
6529         defining _WIN32 but not __CYGWIN__.
6530
6531 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6532
6533         * configure.ac: Add MPC support.
6534         
6535         * config.in, configure: Regenerate.     
6536
6537 2009-05-29  Richard Henderson  <rth@redhat.com>
6538
6539         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
6540         NOTE_INSN_BASIC_BLOCK.
6541         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
6542         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
6543         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
6544         to be deleted.
6545         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
6546         add in_use field.
6547         (add_cfi): Disable check redefining cfa away from drap.
6548         (lookup_cfa_1): Add remember argument; handle remember/restore.
6549         (lookup_cfa): Pass remember argument.
6550         (cfa_remember): New.
6551         (compute_barrier_args_size_1): Remove sibcall check.
6552         (dwarf2out_frame_debug_def_cfa): New.
6553         (dwarf2out_frame_debug_adjust_cfa): New.
6554         (dwarf2out_frame_debug_cfa_offset): New.
6555         (dwarf2out_frame_debug_cfa_register): New.
6556         (dwarf2out_frame_debug_cfa_restore): New.
6557         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
6558         (dwarf2out_begin_epilogue): New.
6559         (dwarf2out_frame_debug_restore_state): New.
6560         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
6561         DW_CFA_restore_state.
6562         (output_cfi_directive): Likewise.
6563         (convert_cfa_to_fb_loc_list): Likewise.
6564         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
6565         * dwarf2out.h: Update.
6566         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
6567         (copy_insn_1): Early out for null.
6568         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
6569         and dwarf2out_frame_debug_restore_state.
6570         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
6571         (prologue_insn_hash, epilogue_insn_hash): New.
6572         (free_after_compilation): Adjust freeing accordingly.
6573         (record_insns): Create hash table if needed; push insns into
6574         hash instead of array.
6575         (maybe_copy_epilogue_insn): New.
6576         (contains): Search hash table instead of array.
6577         (sibcall_epilogue_contains): Remove.
6578         (thread_prologue_and_epilogue_insns): Split eh_return insns
6579         and mark them as epilogues.
6580         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
6581         scanning in terms of basic blocks.
6582         * insn-notes.def (CFA_RESTORE_STATE): New.
6583         * jump.c (returnjump_p_1): Accept EH_RETURN.
6584         (eh_returnjump_p_1, eh_returnjump_p): New.
6585         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
6586         CFA_REGISTER, CFA_RESTORE): New.
6587         * rtl.def (EH_RETURN): New.
6588         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
6589
6590         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
6591         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
6592
6593         * config/i386/i386.c (gen_push): Update cfa state.
6594         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
6595         add a CFA_ADJUST_CFA note.
6596         (ix86_dwarf_handle_frame_unspec): Remove.
6597         (ix86_expand_prologue): Update cfa state.
6598         (ix86_emit_restore_reg_using_pop): New.
6599         (ix86_emit_restore_regs_using_pop): New.
6600         (ix86_emit_leave): New.
6601         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
6602         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
6603         * config/i386/i386.h (struct machine_cfa_state): New.
6604         (ix86_cfa_state): New.
6605         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
6606         (eh_return_internal): Merge from eh_return_<mode>,
6607         use eh_return rtx, split w/ epilogue.
6608
6609 2009-05-29  Ian Lance Taylor  <iant@google.com>
6610
6611         * builtins.c (validate_gimple_arglist): Don't use va_arg with
6612         enum type.
6613         * calls.c (emit_library_call_value_1): Likewise.
6614
6615         * c-typeck.c (c_build_va_arg): New function.
6616         * c-tree.h (c_build_va_arg): Declare.
6617         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
6618         instead of build_va_arg.
6619
6620 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6621
6622         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
6623         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
6624         (ptr_difference_cost): Use affine combinations to compute it.
6625         (difference_cost): Likewise.
6626         (get_computation_cost_at): Compute more accurate cost for addresses
6627         if the ratio is a multiplier allowed in addresses.
6628         For non-addresses, consider that an additional offset or symbol is
6629         added only once.
6630
6631 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6632
6633         * config/i386/i386.c (ix86_decompose_address): Avoid useless
6634         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
6635
6636         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
6637         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
6638         (prefix_rex): For UNIT_MMX don't imply the prefix by default
6639         if MODE_DI.
6640         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
6641         to 1 for TYPE_SSE{IADD1,CVT1}.
6642         (prefix_vex_imm8): Removed.
6643         (length_vex): Only pass 1 as second argument to
6644         ix86_attr_length_vex_default if prefix_extra is 0.
6645         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
6646         (length): For prefix vex computation use length_immediate
6647         attribute instead of prefix_vex_imm8.
6648         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
6649         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
6650         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
6651         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
6652         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
6653         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
6654         a space in between the operands.
6655         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
6656         if one operand is 0xff and the other one si, di, bp or sp.
6657         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
6658         other one si, di, bp or sp.
6659         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
6660         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
6661         type and mode attributes.
6662         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
6663         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
6664         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
6665         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
6666         prefix_data16 attribute iff MODE_DF.
6667         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
6668         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
6669         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
6670         constm128_operand in length_immediate computation.
6671         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
6672         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
6673         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
6674         length_immediate attribute to 1.
6675         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
6676         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
6677         for certain alternatives.
6678         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
6679         prefix_data16 attribute if MODE_V1DF.
6680         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
6681         length_immediate to 1.
6682         (set_got_rex64, set_rip_rex64): Remove length attribute, set
6683         length_address to 4, set mode attribute to MODE_DI.
6684         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
6685         (fxam<mode>2_i387): Set length attribute to 4.
6686         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
6687         *prefetch_3dnow_rex): Override length_address attribute.
6688         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
6689         attributes.
6690         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
6691         (constm128_operand): Removed.
6692         * config/i386/i386.c (memory_address_length): For
6693         disp && !index && !base in 64-bit mode account for SIB byte if
6694         print_operand_address can't optimize disp32 into disp32(%rip)
6695         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
6696         for fs: or gs: segment.
6697         (ix86_attr_length_immediate_default): When checking if shortform
6698         is possible, truncate immediate to the length of the non-shortened
6699         immediate.
6700         (ix86_attr_length_address_default): Ignore MEM_P operands
6701         with X constraint.
6702         (ix86_attr_length_vex_default): Only check for DImode on
6703         GENERAL_REG_P operands.
6704         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
6705         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
6706         (sse_cvttps2pi): Clear prefix_rep attribute.
6707         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
6708         attribute.
6709         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
6710         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
6711         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
6712         iff operand 2 is const_int_operand.
6713         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
6714         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
6715         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
6716         instead of vex.
6717         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
6718         prefix_data16.
6719         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
6720         prefix_data16 attribute for movlpd and movhpd instructions.
6721         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
6722         length_immediate for shufpd instruction.
6723         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
6724         (avx_cmpp<avxmodesuffixf2c><mode>3,
6725         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
6726         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
6727         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
6728         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
6729         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
6730         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
6731         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
6732         prefix_data16 attribute for the first alternative to 1.
6733         (*avx_loadlps): Override length_immediate for the first alternative.
6734         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
6735         attributes for second alternative.
6736         (*vec_concatv2sf_sse4_1): Override length_immediate and
6737         prefix_data16 attributes for second alternative.
6738         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
6739         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
6740         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
6741         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
6742         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
6743         prefix_data16 and length_immediate to 1.
6744         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
6745         to 1.
6746         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
6747         prefix_extra attribute for variants that don't have 0f prefix alone.
6748         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
6749         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
6750         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
6751         *sse4_1_pextrd): Set length_immediate to 1.
6752         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
6753         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
6754         to 1.
6755         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
6756         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
6757         length_immediate to 1 for second alternative.
6758         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
6759         prefix_extra and length_immediate attributes for the first
6760         alternative.
6761         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
6762         first alternative.
6763         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
6764         to 1 for the first and third alternative.
6765         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
6766         alternative.
6767         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
6768         attribute.
6769         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
6770         attribute to 0.
6771         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
6772         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
6773         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
6774         *avx_psign<mode>3): Set prefix_extra attribute to 1.
6775         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
6776         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
6777         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
6778         ssse3_psign<mode>3): Override prefix_rex attribute.
6779         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
6780         (ssse3_palignrti): Override length_immediate to 1.
6781         (ssse3_palignrdi): Override length_immediate to 1, override
6782         prefix_rex attribute.
6783         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
6784         (sse4a_extrqi): Override length_immediate to 2.
6785         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
6786         (sse4a_insertq): Override prefix_data16 to 0.
6787         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
6788         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
6789         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
6790         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
6791         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
6792         and length_immediate to 1.
6793         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
6794         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
6795         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
6796         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
6797         and length_immediate to 1.
6798         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
6799         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
6800         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
6801         avx_ptest256): Override prefix_extra to 1.
6802         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
6803         Override prefix_data16 and length_immediate to 1.
6804         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
6805         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
6806         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
6807         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
6808         prefix_data16 to 0 and prefix_extra to 2.
6809         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
6810         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
6811         attribute.
6812         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
6813         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
6814         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
6815         and prefix_extra to 2.
6816         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
6817         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
6818         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
6819         avx_vpermilvar<mode>3,
6820         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
6821         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
6822         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
6823         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
6824         Override prefix_extra to 1.
6825         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
6826         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
6827         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
6828         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
6829         prefix_extra and length_immediate to 1.
6830         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
6831         modrm to 0.
6832         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
6833         to 1 for the first alternative.
6834         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
6835         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
6836         cases.
6837         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
6838         *movv2sf_internal_avx, *movv2sf_internal): Override
6839         prefix_rep attribute for certain alternatives.
6840         (*mov<mode>_internal): Override prefix_rep or prefix_data16
6841         attributes for certain alternatives.
6842         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
6843         attributes for certain alternatives.
6844         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
6845         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
6846         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
6847         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
6848         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
6849         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
6850         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
6851         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
6852         length_immediate to 1 if operand 2 is const_int_operand.
6853         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
6854         *vec_extractv2si_1): Set length_immediate attribute to 1.
6855         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
6856         using old 3DNOW insn rather than SSE/3DNOW_A.
6857         (mmx_emms, mmx_femms): Clear modrm attribute.
6858
6859 2009-05-29  Martin Jambor  <mjambor@suse.cz>
6860
6861         * tree-sra.c:  New implementation of SRA.
6862
6863         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
6864         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
6865         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
6866         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
6867         (SRA_MAX_STRUCTURE_COUNT): Removed.
6868         (SRA_FIELD_STRUCTURE_RATIO): Removed.
6869         * doc/invoke.texi (sra-max-structure-size): Removed.
6870         (sra-field-structure-ratio): Removed.
6871
6872 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6873
6874         PR middle-end/40291
6875         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
6876         before expansion.
6877
6878 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
6879
6880         PR rtl-optimization/40101
6881         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
6882         seqno.  Adjust comment.
6883         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
6884         inserting bookkeeping before a jump, the jump is not scheduled.
6885         When no positive seqno found, provide a value.  Add comment.
6886
6887 2009-05-29  Richard Guenther  <rguenther@suse.de>
6888
6889         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
6890         short-cutting on the first component.
6891
6892 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6893
6894         PR middle-end/39958
6895         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
6896         for trees other than decls/types.
6897
6898 2009-05-29  Richard Guenther  <rguenther@suse.de>
6899
6900         * tree-ssa-operands.c (get_expr_operands): Do not handle
6901         INDIRECT_REFs in the handled-component case.  Remove
6902         unused get_ref_base_and_extent case.
6903         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
6904         tree_low_cst and host_integerp where possible.
6905         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
6906         codes for equivalence.
6907         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
6908
6909 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
6910
6911         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
6912         to tmake_file for i[34567]86-*-cygwin*. 
6913
6914 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6915
6916         PR target/40017
6917         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
6918         (altivec_categorize_keyword, init_vector_keywords,
6919         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
6920         similar to bool.
6921
6922 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
6923
6924         * tree.c (handle_dll_attribute): Check if node is
6925         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
6926
6927 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
6928
6929         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
6930         component.
6931         (thumb2_zero_extendqidi2): Likewise.
6932
6933 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6934
6935         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
6936         instead of gen_movrt.
6937         * config/sh/sh.md (movrt): Remove.
6938
6939 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
6940
6941         * doc/invoke.texi (IA-64 Options):
6942         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
6943         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
6944         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
6945         -msched-prefer-non-control-spec-insns,
6946         -msched-stop-bits-after-every-cycle,
6947         -msched-count-spec-in-critical-path,
6948         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
6949         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
6950         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
6951         and -msched-spec-verbose.
6952
6953 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
6954
6955         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
6956         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
6957         error if used.
6958         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
6959
6960 2009-05-28  Richard Guenther  <rguenther@suse.de>
6961
6962         * tree-ssa-alias.c (ao_ref_init): New function.
6963         (ao_ref_base): Likewise.
6964         (ao_ref_base_alias_set): Likewise.
6965         (ao_ref_alias_set): Likewise.
6966         (refs_may_alias_p_1): Change signature.
6967         (refs_may_alias_p): Adjust.
6968         (refs_anti_dependent_p): Likewise.
6969         (refs_output_dependent_p): Likewise.
6970         (call_may_clobber_ref_p_1): Change signature.
6971         (call_may_clobber_ref_p): Adjust.
6972         (stmt_may_clobber_ref_p_1): New function split out from ...
6973         (stmt_may_clobber_ref_p): ... here.
6974         (maybe_skip_until): Adjust signature.
6975         (get_continuation_for_phi): Likewise.
6976         (walk_non_aliased_vuses): Likewise.
6977         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
6978         (ao_ref_init): Declare.
6979         (ao_ref_base): Likewise.
6980         (ao_ref_alias_set): Likewise.
6981         (stmt_may_clobber_ref_p_1): Likewise.
6982         (walk_non_aliased_vuses): Adjust.
6983         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
6984         (get_ref_from_reference_ops): remove.
6985         (vn_reference_lookup_2): Adjust signature.
6986         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
6987         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
6988         (vn_reference_lookup): Adjust.
6989         (vn_reference_insert): Likewise.
6990         (vn_reference_insert_pieces): Adjust signature.
6991         (visit_reference_op_call): Adjust.
6992         * tree-ssa-pre.c (get_expr_type): Simplify.
6993         (phi_translate_1): Adjust.
6994         (compute_avail): Likewise.
6995         (translate_vuse_through_block): Do not re-build trees.
6996         (value_dies_in_block_x): Likewise.
6997         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
6998         fields.
6999         (vn_reference_lookup_pieces): Adjust declaration.
7000         (vn_reference_insert_pieces): Likewise.
7001
7002 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
7003
7004         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
7005         with checking disabled.
7006
7007 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
7008
7009         PR target/37216
7010
7011         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
7012         macro definition for support of three-operand format aligned
7013         .comm directive in assembler on cygwin/pe/mingw target OS.
7014         * configure:  Regenerate.
7015         * config.h:  Regenerate.
7016
7017         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
7018         aligned form of .comm directive if -mpe-aligned-commons is in effect.
7019         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
7020
7021         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
7022         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
7023
7024 2009-05-28  Ira Rosen  <irar@il.ibm.com>
7025
7026         PR tree-optimization/40254
7027         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
7028         in analysis of basic blocks.
7029
7030 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
7031
7032         PR middle-end/33699
7033         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
7034         * target-def.h (TARGET_CONST_ANCHOR): New macro.
7035         (TARGET_INITIALIZER): Use it.
7036         * cse.c (CHEAPER): Move it up to the other macros.
7037         (insert): Rename this ...
7038         (insert_with_costs): ... to this.  Add cost parameters.  Update
7039         function comment.
7040         (insert): New function.  Call insert_with_costs.
7041         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
7042         find_reg_offset_for_const, try_const_anchors): New functions.
7043         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
7044         when using a const-anchor.  Call insert_const_anchors.
7045         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
7046         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
7047
7048 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
7049
7050         * tree-inline.c (remap_decls): Enable nonlocalized variables
7051         when not optimizing.
7052
7053 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
7054
7055         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
7056         Simplify other tests involving optimize.
7057
7058 2009-05-27  Tom Tromey  <tromey@redhat.com>
7059
7060         * unwind-dw2.c (_Unwind_DebugHook): New function.
7061         (uw_install_context): Call _Unwind_DebugHook.
7062
7063 2009-05-27  Tom Tromey  <tromey@redhat.com>
7064
7065         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
7066
7067 2009-05-27  Ian Lance Taylor  <iant@google.com>
7068
7069         * Makefile.in (LINKER, LINKER_FLAGS): Define.
7070         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
7071         (ALL_LINKERFLAGS): Define.
7072         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
7073         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7074         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
7075         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7076         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
7077         $(LINKER_FOR_BUILD).
7078         (build/gcov-iov$(build_exeext)): Likewise.
7079
7080 2009-05-27  Julian Brown  <julian@codesourcery.com>
7081
7082         * gcse.c (target.h): Include.
7083         (can_assign_to_reg_without_clobbers_p): Check that the target allows
7084         copy of argument to a pseudo register.
7085
7086 2009-05-27  Diego Novillo  <dnovillo@google.com>
7087
7088         * tree-ssa-live.c (dump_scope_block): Document arguments.
7089         (dump_scope_blocks): Document.
7090         (debug_scope_blocks): New.
7091         * tree-flow.h (debug_scope_blocks): Declare.
7092
7093 2009-05-21  Denis Chertykov  <denisc@overta.ru>
7094
7095         * doc/contrib.texi (Contributors): Add myself to the list.
7096
7097 2009-05-27  Olivier Hainque  <hainque@adacore.com>
7098
7099         * expr.c (target_align): New function.  Alignment the TARGET of an
7100         assignment may be assume to have.
7101         (highest_pow2_factor_for_target): Use it instead of relying on
7102         immediate tree attributes of TARGET, not necessarily honored when
7103         intermediate bitfields are involved.
7104         
7105 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7106
7107         PR target/40266
7108         * config/i386/driver-i386.c (host_detect_local_cpu): Support
7109         AVX, SSE4, AES, PCLMUL and POPCNT.
7110
7111 2009-05-27  Diego Novillo  <dnovillo@google.com>
7112
7113         * tree-pretty-print.c (dump_location): New.
7114         (dump_generic_node): Call it.
7115         Factor code to handle BLOCK nodes ...
7116         (dump_block_node): ... here.
7117
7118 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
7119
7120         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
7121         with it.
7122         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
7123         included.
7124         * gcc-plugin.h: Include config.h and system.h.
7125         (IN_GCC): Define if not defined.
7126
7127 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
7128
7129         PR middle-end/40249
7130         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
7131         with -fno-inline.
7132
7133 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
7134
7135         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
7136         applicable.
7137         * config/m32r/m32r.h: Ditto.
7138         * config/m32r/m32r.md: Ditto.
7139         * config/m32r/predicates.md: Ditto.
7140
7141 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
7142
7143         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
7144
7145 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
7146
7147         * doc/plugins.texi
7148         (Loading plugins): typo.
7149         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
7150         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7151         (Interacting with the GCC Garbage Collector): Added new section.
7152         (Giving information about a plugin): Added new section for
7153         PLUGIN_INFO.
7154         * ggc.h (ggc_register_root_tab): Added declaration.
7155         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
7156         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
7157         (register_callback): Improved comment in declaration.
7158         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
7159         (extra_root_vec) Added static variable for dynamic roots registration.
7160         (ggc_register_root_tab) Added new routine.
7161         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
7162         PLUGIN_GGC_MARKING event.
7163         * ggc-zone.c: Include plugin.h.
7164         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7165         * ggc-page.c: Include plugin.h.
7166         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
7167         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
7168         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
7169         (register_callback): check lack of callbacks for
7170         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
7171         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
7172         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
7173         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
7174         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
7175         dependency on plugin.h.
7176         (plugin.o): Added dependency on ggc.h...
7177
7178 2009-05-26  Richard Guenther  <rguenther@suse.de>
7179
7180         PR middle-end/40248
7181         Revert
7182         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7183         with mismatched comparison modes.
7184
7185         * expr.c (expand_expr_real_1): Expand the operand of a
7186         VIEW_CONVERT_EXPR in its natural mode.
7187
7188 2009-05-26  Ian Lance Taylor  <iant@google.com>
7189
7190         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
7191         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
7192         (ALL_COMPILERFLAGS): Define.
7193         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
7194         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
7195         (collect2$(exeext), collect2.o): Likewise.
7196         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
7197         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
7198         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
7199         (libbackend.o, intl.o, cppdefault.o): Likewise.
7200         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
7201         (build/%.o): Use $(COMPILER_FOR_BUILD).
7202         (build/gen%$(build_exeext)): Likewise.
7203         (build/gcov-iov$(build_exeext)): LIkewise.
7204         * config/t-darwin (darwin.o): Use $(COMPILER).
7205         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
7206         * config/t-sol2 (sol2-c.o): Likewise.
7207         (sol2.o): Likewise.
7208         * config/t-vxworks (vxworks.o): Likewise.
7209         * config/x-darwin (host-darwin.o): Likewise.
7210         * config/x-hpux (host-hpux.o): Likewise.
7211         * config/x-linux (host-linux.o): Likewise.
7212         * config/x-solaris (host-solaris.o): Likewise.
7213         * config/alpha/x-alpha (driver-alpha.o): Likewise.
7214         * config/arm/t-arm (arm-c.o): Likewise.
7215         * config/arm/t-pe (pe.o): Likewise.
7216         * config/arm/t-wince-pe (pe.o): Likewise.
7217         * config/i386/t-cygming (winnt.o): Likewise.
7218         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
7219         * config/i386/t-cygwin (cygwin1.o): Likewise.
7220         (cygwin2.o): Likewise.
7221         * config/i386/t-i386 (i386-c.o): Likewise.
7222         * config/i386/t-interix (winnt.o): Likewise.
7223         * config/i386/t-netware (netware.o): Likewise.
7224         * config/i386/t-nwld (nwld.o): Likewise.
7225         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
7226         * config/i386/x-i386 (driver-i386.o): Likewise.
7227         * config/i386/x-cygwin (host-cygwin.o): Likewise.
7228         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
7229         * config/ia64/t-ia64 (ia64-c.o): Likewise.
7230         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
7231         * config/mips/x-native (driver-native.o): Likewise.
7232         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
7233         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
7234         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
7235         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
7236         * config/score/t-score-elf (score7.o): Likewise.
7237         (score3.o): Likewise.
7238         * config/sh/t-sh (sh-c.o): Likewise.
7239         * config/sh/t-symbian (sh-c.o): Likewise.
7240         (symbian.o): Likewise.
7241         * config/spu/t-spu-elf (spu-c.o): Likewise.
7242         * config/v850/t-v850 (v850-c.o): Likewise.
7243         * config/v850/t-v850e (v850-c.o): Likewise.
7244
7245 2009-05-26  Richard Guenther  <rguenther@suse.de>
7246
7247         PR tree-optimization/40122
7248         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
7249         VECTOR_CSTs if possible.
7250         (fold_gimple_assign): Likewise.
7251
7252 2009-05-26  Richard Guenther  <rguenther@suse.de>
7253
7254         PR middle-end/40252
7255         * fold-const.c (fold_binary): Use the correct types for building
7256         rotates.
7257
7258 2009-05-26  Richard Guenther  <rguenther@suse.de>
7259
7260         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
7261         redundant calls to merge_alias_info.
7262         (bump_vector_ptr): Likewise.
7263         * tree-ssa-copy.c (merge_alias_info): Remove.
7264         (replace_exp_1): Remove call to merge_alias_info.
7265         (propagate_tree_value): Likewise.
7266         (fini_copy_prop): Propagate points-to info.
7267         * tree-flow.h (merge_alias_info): Remove.
7268
7269 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
7270
7271         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
7272
7273 2009-05-25  Jan Hubicka  <jh@suse.cz>
7274
7275         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7276         * cgraph.h (struct inline_summary): New filed self_wize,
7277         size_inlining_benefit, self_time and time_inlining_benefit.
7278         (struct cgraph_global_info): Replace insns by time ans size fields.
7279         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
7280         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
7281         (ipcp_update_callgraph): Do not touch function bodies.
7282         * ipa-inline.c: Include except.h
7283         (MAX_TIME): New constant.
7284         (overall_insns): Remove.
7285         (leaf_node_p): New.
7286         (overall_size, max_benefit): New static variables.
7287         (cgraph_estimate_time_after_inlining): New function.
7288         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
7289         (cgraph_clone_inlined_nodes): Update size.
7290         (cgraph_mark_inline_edge): Update size.
7291         (cgraph_estimate_growth): Use size info.
7292         (cgraph_check_inline_limits): Check size.
7293         (cgraph_default_inline_p): Likewise.
7294         (cgraph_edge_badness): Compute badness based on benefit and size cost.
7295         (cgraph_decide_recursive_inlining): Check size.
7296         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
7297         and times.
7298         (cgraph_decide_inlining): Likewise.
7299         (cgraph_decide_inlining_incrementally): Likewise; honor
7300         PARAM_EARLY_INLINING_INSNS.
7301         (likely_eliminated_by_inlining_p): New predicate.
7302         (estimate_function_body_sizes): New function.
7303         (compute_inline_parameters): Use it.
7304         * except.c (must_not_throw_labels): New function.
7305         * except.h (must_not_throw_labels): Declare.
7306         * tree-inline.c (init_inline_once): Kill inlining_weigths
7307         * tree-ssa-structalias.c: Avoid uninitialized warning.
7308         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
7309         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
7310         (PARAM_INLINE_CALL_COST): Remove.
7311         (PARAM_EARLY_INLINING_INSNS): New.
7312
7313 2009-05-25  Richard Guenther  <rguenther@suse.de>
7314
7315         PR tree-optimization/36327
7316         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
7317         callback for reference translation or lookup at the point of may-defs.
7318         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
7319         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
7320         for union COMPONENT_REFs.
7321         (vn_reference_lookup_3): New callback.  Lookup from memset
7322         and CONSTRUCTOR assignment, translate through struct copies.
7323         (vn_reference_lookup_pieces): Make sure to not free the
7324         passed operands array.  Adjust walk_non_aliased_vuses call.
7325         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
7326         make sure we do not leak memory.
7327
7328 2009-05-25  Richard Guenther  <rguenther@suse.de>
7329
7330         * tree-ssa-alias.h (dump_points_to_solution): Declare.
7331         * tree-inline.c (expand_call_inline): Reset the escaped and
7332         callused solutions.
7333         * tree-ssa-structalias.c (pass_build_ealias): New.
7334         * tree-pass.h (pass_build_ealias): Declare.
7335         * passes.c (init_optimization_passes): Add PTA during 
7336         early optimizations.
7337         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
7338         and CALLUSED solutions.
7339         (dump_points_to_solution): New function, split out from ...
7340         (dump_points_to_info_for): ... here.
7341         * tree-parloops.c (parallelize_loops): Reset the escaped and
7342         callused solutions.
7343
7344 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7345
7346         PR bootstrap/40027
7347         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
7348         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
7349
7350 2009-05-25  Ira Rosen  <irar@il.ibm.com>
7351
7352         PR tree-optimization/40238
7353         * tree-vect-stmts.c (vect_init_vector): Insert initialization
7354         statements after basic block's labels.
7355         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
7356         to free the allocated memory.
7357
7358 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7359
7360         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
7361         return address with a USE.
7362
7363 2009-05-24  Richard Guenther  <rguenther@suse.de>
7364
7365         PR middle-end/40233
7366         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
7367         array type from the main variant of the inner type.
7368
7369 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7370
7371         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
7372         definition to bool (from int) to un-break build.
7373         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
7374
7375 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
7376
7377         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
7378         discard_stmt_changes): Delete.
7379         * tree-ssa-operands.c (scb_stack): Delete.
7380         (init_ssa_operands): Do not initialize it.
7381         (fini_ssa_operands): Do not free it.
7382         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
7383
7384         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
7385         update_stmt, remove the others.  Fix comments.
7386         * tree-dfa.c (optimize_stack_restore): Likewise.
7387         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
7388         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
7389         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7390         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
7391         Likewise.
7392         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
7393         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7394         (dom_opt_finalize_block): Likewise, adjusting access to
7395         stmts_to_rescan.
7396         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
7397         (stmts_to_rescan): Change item type to gimple.
7398         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
7399
7400 2009-05-24  Ira Rosen  <irar@il.ibm.com>
7401
7402         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
7403         * tree-pass.h (pass_slp_vectorize): New pass.
7404         * params.h (SLP_MAX_INSNS_IN_BB): Define.
7405         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
7406         * tree-vectorizer.c (timevar.h): Include.
7407         (user_vect_verbosity_level): Declare.
7408         (vect_location): Fix comment.
7409         (vect_set_verbosity_level): Update user_vect_verbosity_level
7410         instead of vect_verbosity_level.
7411         (vect_set_dump_settings): Add an argument. Ignore user defined
7412         verbosity if dump flags require higher level of verbosity. Print to
7413         stderr only for loop vectorization.
7414         (vectorize_loops): Update call to vect_set_dump_settings.
7415         (execute_vect_slp): New function.
7416         (gate_vect_slp): Likewise.
7417         (struct gimple_opt_pass pass_slp_vectorize): New.
7418         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
7419         access its members.
7420         (vec_info_for_bb): New function.
7421         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
7422         (VECTORIZATION_ENABLED): New macro.
7423         (SLP_ENABLED, SLP_DISABLED): Likewise.
7424         (vect_is_simple_use): Add bb_vec_info argument.
7425         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
7426         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7427         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7428         vect_schedule_slp, vect_analyze_slp): Likewise.
7429         (vect_analyze_stmt): Add slp_tree argument.
7430         (find_bb_location): Declare.
7431         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7432         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
7433         (vect_analyze_loop_operations, vect_analyze_loop,
7434         get_initial_def_for_induction, vect_create_epilog_for_reduction,
7435         vect_finalize_reduction, vectorizable_reduction,
7436         vectorizable_live_operation, vect_transform_loop): Likewise.
7437         * tree-data-ref.c (dr_analyze_innermost): Update comment,
7438         skip evolution analysis if analyzing a basic block.
7439         (dr_analyze_indices): Likewise.
7440         (initialize_data_dependence_relation): Skip the test whether the
7441         object is invariant for basic blocks.
7442         (compute_all_dependences): Skip dependence analysis for data
7443         references in basic blocks.
7444         (find_data_references_in_stmt): Don't fail in case of invariant
7445         access in basic block.
7446         (find_data_references_in_bb): New function.
7447         (find_data_references_in_loop): Move code to
7448         find_data_references_in_bb and add a call to it.
7449         (compute_data_dependences_for_bb): New function.
7450         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
7451         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
7452         that STEP is 0.
7453         (vect_analyze_data_ref_dependence): Check for interleaving in case of
7454         unknown dependence in basic block and fail in case of dependence in
7455         basic block.
7456         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
7457         dependence instances from either loop or basic block vectorization
7458         info.
7459         (vect_compute_data_ref_alignment): Check if it is loop vectorization
7460         before calling nested_in_vect_loop_p.
7461         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
7462         dependence instances from either loop or basic block vectorization
7463         info.
7464         (vect_verify_datarefs_alignment): Likewise.
7465         (vect_enhance_data_refs_alignment): Adjust function calls.
7466         (vect_analyze_data_refs_alignment): Likewise.
7467         (vect_analyze_group_access): Fix printing. Skip different checks if
7468         DR_STEP is 0. Keep strided stores either in loop or basic block
7469         vectorization data structure. Fix indentation.
7470         (vect_analyze_data_ref_access): Fix comments, allow zero step in
7471         basic blocks.
7472         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
7473         dependence instances from either loop or basic block vectorization
7474         info.
7475         (vect_analyze_data_refs): Update comment. Call
7476         compute_data_dependences_for_bb to analyze basic blocks.
7477         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
7478         case of loop vectorization. In case of basic block vectorization use
7479         data-ref itself as a base.
7480         (vect_create_data_ref_ptr): In case of basic block vectorization:
7481         don't advance the pointer, add new statements before the current
7482         statement.  Adjust function calls.
7483         (vect_supportable_dr_alignment): Support only aligned accesses in
7484         basic block vectorization.
7485         * common.opt (ftree-slp-vectorize): New flag.
7486         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
7487         (vect_pattern_recog_1): Likewise.
7488         * tree-vect-stmts.c (process_use): Likewise.
7489         (vect_init_vector): Add new statements in the beginning of the basic
7490         block in case of basic block SLP.
7491         (vect_get_vec_def_for_operand): Adjust function calls.
7492         (vect_finish_stmt_generation): Likewise.
7493         (vectorizable_call): Add assert that it is loop vectorization, adjust
7494         function calls.
7495         (vectorizable_conversion, vectorizable_assignment): Likewise.
7496         (vectorizable_operation): In case of basic block SLP, take
7497         vectorization factor from statement's type and skip the relevance
7498         check. Adjust function calls.
7499         (vectorizable_type_demotion): Add assert that it is loop
7500         vectorization, adjust function calls.
7501         (vectorizable_type_promotion): Likewise.
7502         (vectorizable_store): Check for outer loop only in case of loop
7503         vectorization. Adjust function calls. For basic blocks, skip the
7504         relevance check and don't advance pointers.
7505         (vectorizable_load): Likewise.
7506         (vectorizable_condition): Add assert that it is loop vectorization,
7507         adjust function calls.
7508         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
7509         that it is not reduction, get vector type, call only supported
7510         functions, skip loop specific parts.
7511         (vect_transform_stmt): Check for outer loop only in case of loop
7512         vectorization.
7513         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
7514         (vect_is_simple_use): Fix comment, add new argument, fix conditions
7515         for external definition.
7516         * passes.c (pass_slp_vectorize): New pass.
7517         * tree-vect-slp.c (find_bb_location): New function.
7518         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
7519         check for patterns only in loops.
7520         (vect_build_slp_tree): Add argument, adjust function calls, fail in
7521         case of multiple types in basic block SLP.
7522         (vect_mark_slp_stmts_relevant): New function.
7523         (vect_supported_load_permutation_p): Fix comment.
7524         (vect_analyze_slp_instance): Add argument. In case of basic block
7525         SLP, take vectorization factor from statement's type, check that
7526         unrolling factor is 1. Adjust function call. Save SLP instance in
7527         either loop or basic block vectorization structure. Return FALSE,
7528         if SLP failed.
7529         (vect_analyze_slp): Add argument. Get strided stores groups from
7530         either loop or basic block vectorization structure. Return FALSE
7531         if basic block SLP failed.
7532         (new_bb_vec_info): New function.
7533         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
7534         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
7535         (vect_schedule_slp): Add argument. Get SLP instances from either
7536         loop or basic block vectorization structure. Set vectorization factor
7537         to be 1 for basic block SLP.
7538         (vect_slp_transform_bb): New function.
7539         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
7540
7541 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
7542
7543         * final.c (shorten_branches): Do not align labels for jump tables.
7544         (final_scan_insn): Use JUMP_TABLE_DATA_P.
7545
7546 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7547
7548         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
7549         Remove outdated reference to flow.c and fix nits.
7550         * doc/gccint.texi: Tweak RTL description.
7551         * doc/rtl.texi: Likewise.
7552
7553 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
7554
7555         * config/avr/avr.c: Change my email address.
7556         * config/avr/avr.h: Likewise.
7557         * config/avr/avr.md: Likewise.
7558         * config/avr/avr-protos.h: Likewise.
7559         * config/avr/libgcc.S: Likewise.
7560
7561 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
7562
7563         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
7564         (spu_split_load, spu_split_store): Change return type to int.
7565         (spu_split_convert): Declare.
7566         * config/spu/predicates.md (spu_mem_operand): Remove.
7567         (spu_mov_operand): Update.
7568         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
7569         * config/spu/spu.c (regno_aligned_for_load): Remove.
7570         (reg_aligned_for_addr, spu_expand_load): Define.
7571         (spu_expand_extv): Reimplement and handle MEM.
7572         (spu_expand_insv): Handle MEM.
7573         (spu_sched_reorder): Handle insn's with length 0.
7574         (spu_legitimate_address_p): Reimplement.
7575         (store_with_one_insn_p): Return TRUE for any mode with size
7576         larger than 16 bytes.
7577         (address_needs_split): Define.
7578         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
7579         operands.
7580         (spu_convert_move): Define.
7581         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
7582         (spu_split_store): Change all MEM's to TImode.
7583         (spu_init_expanders): Preallocate registers that correspond to
7584         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
7585         mark_reg_pointer.
7586         (spu_split_convert): Define.
7587         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
7588         (_move<mode>, _movdi, _movti): Update predicate and condition.
7589         (load, store): Change to define_split.
7590         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
7591         extend<mode>ti2.
7592         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
7593         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
7594         define_insn_and_split of lshr<mode>3.
7595         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
7596         (<v>ashr<mode>3_imm): Define.
7597         (extv, extzv, insv): Allow MEM operands.
7598         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
7599         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
7600         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
7601         (_spu_convert2): Change to define_insn_and_split and remove the
7602         corresponding define_peephole2.
7603         (stack_protect_set, stack_protect_test, stack_protect_test_si):
7604         Change predicates to memory_operand.
7605
7606 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7607
7608         * config/arm/thumb2.md: Add 16-bit multiply instructions.
7609
7610 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7611
7612         PR tree-optimization/40219
7613         * tree.c (iterative_hash_expr): Make sure the builtin function is
7614         a normal builtin function and not a front end or back end builtin
7615         before indexing into the built_in_decls array.
7616
7617 2009-05-22  Richard Guenther  <rguenther@suse.de>
7618
7619         PR middle-end/38964
7620         * alias.c (write_dependence_p): Do not use TBAA for answering
7621         anti-dependence or output-dependence.
7622         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
7623         (emit_pointer_definition): Remove.
7624         (emit_alias_warning): Likewise.
7625         (find_what_var_points_to): Remove TBAA pruning code.
7626         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
7627         violations.
7628         (compute_points_to_sets): Remove code computing the set of
7629         dereferenced pointers.
7630         * tree-data-ref.c (dr_may_alias_p): Properly use the split
7631         oracle for querying anti and output dependencies.
7632         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
7633         if TBAA may be applied.
7634         (refs_anti_dependent_p): New function.
7635         (refs_output_dependent_p): Likewise.
7636         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
7637         (refs_output_dependent_p): Likewise.
7638         * doc/tree-ssa.texi (Memory model): New section.
7639         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7640         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7641         * cfgexpand.c (expand_gimple_basic_block): Do not handle
7642         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
7643         * expr.c (expand_expr_real_1): Likewise.
7644         * gimple-low.c (lower_stmt): Likewise.
7645         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
7646         (dump_gimple_cdt): Remove.
7647         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7648         (gimple_size): Likewise.
7649         (walk_gimple_op): Likewise.
7650         (is_gimple_stmt): Likewise.
7651         (walk_stmt_load_store_addr_ops): Likewise.
7652         (gimple_build_cdt): Remove.
7653         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7654         * gimple.h (gimple_cdt_new_type): Remove.
7655         (gimple_cdt_new_type_ptr): Likewise.
7656         (gimple_cdt_set_new_type): Likewise.
7657         (gimple_cdt_location): Likewise.
7658         (gimple_cdt_location_ptr): Likewise.
7659         (gimple_cdt_set_location): Likewise.
7660         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7661         * tree-cfg.c (remove_useless_stmts_1): Do not handle
7662         GIMPLE_CHANGE_DYNAMIC_TYPE.
7663         (verify_types_in_gimple_stmt): Likewise.
7664         * tree-inline.c (estimate_num_insns): Likewise.
7665         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
7666         (copy_decl_to_var): Likewise.
7667         (copy_result_decl_to_var): Likewise.
7668         * tree-pretty-print.c (dump_generic_node): Do not handle
7669         CHANGE_DYNAMIC_TYPE_EXPR.
7670         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7671         * tree-ssa-operands.c (get_expr_operands): Likewise.
7672         * tree-ssa-structalias.c (struct variable_info): Remove
7673         no_tbaa_pruning member.
7674         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
7675         (unify_nodes): Do not copy it.
7676         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7677         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
7678         (set_uids_in_ptset): Do not check it.
7679         (find_what_var_points_to): Likewise.
7680         (compute_tbaa_pruning): Remove.
7681         (compute_points_to_sets): Do not call it.
7682         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7683         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7684         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
7685         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
7686         (DECL_NO_TBAA_P): Likewise.
7687         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
7688         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
7689         (expand_omp_atomic_pipeline): Do not set it.
7690         * print-tree.c (print_node): Do not dump it.
7691         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7692         redundant check.
7693
7694 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
7695
7696         PR target/39856
7697         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
7698         for clobber.
7699
7700 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7701
7702         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
7703         non-external.
7704
7705 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7706
7707         * Makefile.in (bversion.h, s-bversion): New targets.
7708         (TOPLEV_H): Add bversion.h.
7709         * toplev.h: Include "bversion.h".
7710         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
7711         the __format__ attribute only if compiling with the same version
7712         of GCC as the sources (the "build version").
7713
7714 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7715
7716         * c-format.c (handle_format_attribute): Fix comment typo.
7717
7718 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
7719
7720         PR target/37846
7721         * config/ia64/ia64.opt (mfused-madd): New.
7722         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
7723         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
7724         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
7725         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
7726         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
7727         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
7728         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
7729         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
7730         instruction if !TARGET_FUSED_MADD.
7731         (fpma, fpms): Remove colon from name.
7732
7733 2009-05-22  Richard Guenther  <rguenther@suse.de>
7734
7735         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7736         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
7737         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7738         TARGET_MEM_REF.
7739         (create_expression_by_pieces): Only convert if necessary.
7740         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
7741         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
7742
7743 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
7744
7745         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
7746         regular pattern from a template and rename it ...
7747         (*extzv_truncsi_exts): ... to this.
7748
7749 2009-05-21  Richard Guenther  <rguenther@suse.de>
7750
7751         * cgraph.h (struct cgraph_node): Remove inline_decl member.
7752         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
7753         (cgraph_default_inline_p): Likewise.
7754         (cgraph_decide_inlining_incrementally): Likewise.
7755
7756 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7757             Uros Bizjak  <ubizjak@gmail.com>
7758
7759         * config/i386/cpuid.h (bit_MOVBE): New.
7760
7761         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
7762
7763         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
7764         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
7765         (ix86_handle_option): Handle OPT_mmovbe.
7766         (ix86_target_string): Add -mmovbe.
7767         (pta_flags): Add PTA_MOVBE.
7768         (processor_alias_table): Add PTA_MOVBE to "atom".
7769         (override_options): Handle PTA_MOVBE.
7770
7771         * config/i386/i386.h (TARGET_MOVBE): New.
7772
7773         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
7774         (*bswapsi_movbe): New.
7775         (*bswapdi_movbe): Likewise.
7776         (bswapdi2): Renamed to ...
7777         (*bswapdi_1): This.
7778         (bswapdi2): New expander.
7779
7780         * config/i386/i386.opt (mmovbe): New.
7781
7782         * doc/invoke.texi: Document -mmovbe.
7783
7784 2009-05-21  Taras Glek  <tglek@mozilla.com>
7785
7786         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
7787         * gcc-plugin.h (plugin_init): Updated signature.
7788         * gcc-plugin.h (plugin_name_args): Moved to this header.
7789         * doc/plugins.texi (plugin_init): Updated documention to reflect
7790         API change.
7791         * doc/plugins.texi (plugin_name_args): Added to documention.
7792
7793 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
7794
7795         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
7796         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
7797
7798 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
7799
7800         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
7801         JUMP_TABLE_DATA_P predicates where applicable.
7802         * config/i386/predicates.md: Ditto.
7803         * config/i386/sse.md: Ditto.
7804
7805 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
7806
7807         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
7808         operand2 -128 override length_immediate attribute to 1.
7809         * config/i386/predicates.md (constm128_operand): New predicate.
7810
7811         * config/i386/i386.c (memory_address_length): Handle %r12
7812         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
7813         also check REGNO.
7814         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
7815         mode look through optional ZERO_EXTEND and SUBREG.
7816         * config/i386/i386.md (R12_REG): New define_constant.
7817         (prefix_data16): For sse unit set also for MODE_TI insns.
7818         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
7819         insns set if operand 1 is ext_QIreg_operand.
7820         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
7821         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
7822         immediate.
7823         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
7824         mode from MODE_DI to MODE_SI.
7825         (movdi_1_rex64): Override modrm and length_immediate attributes
7826         only for movabs (TYPE_IMOV, alternative 2).
7827         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
7828         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7829         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7830         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7831         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
7832         prefix_rex attribute if DImode.
7833         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
7834         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7835         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
7836         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
7837         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
7838         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
7839         Likewise.  For TYPE_IMOV clear length_immediate attribute.
7840         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
7841         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
7842         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
7843         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7844         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
7845         or one operand TYPE_ISHIFT.
7846         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
7847         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
7848         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
7849         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
7850         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
7851         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
7852         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
7853         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
7854         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
7855         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
7856         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
7857         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
7858         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
7859         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
7860         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
7861         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
7862         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
7863         set mode attribute, don't override length attribute.
7864         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
7865         to 1.
7866         (return_internal_long): Set length attribute to 2 instead of 1.
7867         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
7868         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
7869         prefix_rex attribute.
7870         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
7871         New predicates.
7872         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
7873
7874 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7875
7876         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
7877
7878 2009-05-20  Ian Lance Taylor  <iant@google.com>
7879
7880         * tree.c (build_tree_list_vec_stat): New function.
7881         (ctor_to_vec): New function.
7882         (build_nt_call_vec): New function.
7883         (build_call_array): Change args to be a const pointer.
7884         (build_call_vec): New function.
7885         * tree.h (build_nt_call_vec): Declare.
7886         (build_tree_list_vec_stat): Declare.
7887         (build_tree_list_vec): Define.
7888         (build_call_array): Update declaration.
7889         (build_call_vec): Declare.
7890         (ctor_to_vec): Declare.
7891         * c-common.c (tree_vector_cache): New static variable.
7892         (make_tree_vector): New function.
7893         (release_tree_vector): New function.
7894         (make_tree_vector_single): New function.
7895         (make_tree_vector_copy): New function.
7896         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
7897         (make_tree_vector_single, make_tree_vector_copy): Declare.
7898         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
7899         (c_parser_expr_list): Don't manage cache here, instead call
7900         make_tree_vector.
7901         (c_parser_release_expr_list): Remove static function.
7902         (c_parser_vec_to_tree_list): Remove static function.
7903         (c_parser_attributes): Call build_tree_list_vec instead of
7904         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
7905         c_parser_release_expr_list.
7906         (c_parser_postfix_expression_after_primary): Likewise.
7907         (c_parser_objc_keywordexpr): Likewise.
7908
7909 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7910
7911         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
7912         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
7913         TARGET_CONVERT_TO_TYPE.
7914         * hooks.c (hook_tree_const_tree_null): Define.
7915         * hooks.h (hook_tree_const_tree_null): Declare.
7916         * target.h (struct gcc_target):  Add invalid_parameter_type,
7917         invalid_return_type, promoted_type, and convert_to_type fields.
7918         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
7919         (TARGET_INVALID_RETURN_TYPE): Define.
7920         (TARGET_PROMOTED_TYPE): Define.
7921         (TARGET_CONVERT_TO_TYPE): Define.
7922         (TARGET_INITIALIZER): Update for new fields.
7923         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
7924         (grokparms): Check targetm.invalid_parameter_type.
7925         * c-typeck.c (default_conversion): Check targetm.promoted_type.
7926         * c-convert.c (convert): Check targetm.convert_to_type.
7927
7928 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
7929
7930         * config/mips/mips.md (*extenddi_truncate<mode>,
7931         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
7932         defintions.
7933         (*extendhi_truncateqi): New define_insn_and_sptit.
7934
7935 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
7936
7937         PR middle-end/40204
7938         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
7939         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
7940
7941 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7942
7943         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
7944         the operand of VIEW_CONVERT_EXPR.
7945
7946 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7947
7948         * config/i386/driver-i386.c (host_detect_local_cpu): Check
7949         extended family and model for Intel processors.  Support Intel Atom.
7950
7951 2009-05-20  Olivier Hainque  <hainque@adacore.com>
7952
7953         * gstab.h (stab_code_type): Define, to be used instead of the
7954         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
7955         notice.
7956         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
7957         occurrences by stab_code_type.
7958         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
7959
7960 2009-05-20  Martin Jambor  <mjambor@suse.cz>
7961
7962         * tree-flow.h (insert_edge_copies_seq): Undeclare.
7963         (sra_insert_before): Likewise.
7964         (sra_insert_after): Likewise.
7965         (sra_init_cache): Likewise.
7966         (sra_type_can_be_decomposed_p): Likewise.
7967         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
7968         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
7969         (sra_insert_before): Likewise.
7970         (sra_insert_after): Likewise.
7971         (sra_init_cache): Likewise.
7972         (insert_edge_copies_seq): Made static and moved upwards.
7973
7974         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
7975         case.
7976
7977         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
7978
7979         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
7980         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
7981         simple copies.
7982
7983 2009-05-20  Richard Guenther  <rguenther@suse.de>
7984
7985         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7986         with mismatched comparison modes.
7987
7988 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7989
7990         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
7991         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
7992         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
7993         with shifts for Thumb2.
7994         (orsi_notsi): New for orn.
7995         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
7996         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
7997         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
7998         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
7999         Don't invert remainder for IOR.
8000         
8001 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
8002
8003         PR tree-optimization/40087
8004         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
8005         number_of_iterations_ne): Rename never_infinite argument.
8006         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
8007         number_of_iterations_le): Handle pointer-type ivs when
8008         exit_must_be_taken is false.
8009         (number_of_iterations_cond):  Do not always assume that
8010         exit_must_be_taken if the control variable is a pointer.
8011
8012 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8013
8014         * c-typeck.c (build_binary_op): Allow % on integal vectors.
8015         * doc/extend.texi (Vector Extension): Document that % is allowed too.
8016
8017 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8018
8019         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
8020         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
8021
8022 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8023
8024         PR c/40172
8025         * c.opt (Wlogical-op): Disabled by default.
8026         * c-opt (c_common_post_options): Do not enable Wlogical-op with
8027         Wextra.
8028         * doc/invoke.texi (Wlogical-op): Likewise.
8029         
8030 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8031
8032         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
8033         into CASE_CONVERT.
8034         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
8035         Propagate the type of the first operand.
8036         <ASSERT_EXPR>: Simplify.
8037         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
8038         Rewrite using the RHS code as discriminant.
8039         <NOP_EXPR>: Turn into CASE_CONVERT.
8040         <PLUS_EXPR>: Propagate the type of the first operand.
8041
8042 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
8043
8044         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
8045         (ia64_dconst_0_375): New.
8046         * config/ia64/ia64.c (ia64_override_options): Remove
8047         -minline-sqrt-min-latency warning.
8048         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
8049         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
8050         * config/ia64/ia64.md (*sqrt_approx): Remove.
8051         (sqrtsf2): Remove #if 0.
8052         (sqrtsf2_internal_thr): Rewrite and move to div.md.
8053         (sqrtdf): Remove assert.
8054         (sqrtdf2_internal_thr): Rewrite and move to div.md.
8055         (sqrtxf2): Remove #if 0.
8056         (sqrtxf2_internal_thr): Rewrite and move to div.md.
8057         * div.md (sqrt_approx_rf): New.
8058         (sqrtsf2_internal_thr): New implementation.
8059         (sqrtsf2_internal_lat): New.
8060         (sqrtdf2_internal_thr: New implementation.
8061         (sqrtxf2_internal): New implementation.
8062
8063 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
8064             Hans-Peter Nilsson  <hp@axis.com>
8065
8066         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
8067         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
8068         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
8069         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
8070         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
8071         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
8072         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
8073         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
8074         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
8075         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
8076         * c-common.c: ...from here.
8077
8078 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8079
8080         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
8081
8082 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8083
8084         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
8085
8086 2009-05-19  Ben Elliston  <bje@au.ibm.com>
8087
8088         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
8089         assignments with memcpy calls.
8090         (add_fdes): Likewise.
8091         (binary_search_unencoded_fdes): Likewise.
8092         (linear_search_fdes): Eliminate type puns.
8093         
8094 2009-05-19  Richard Guenther  <rguenther@suse.de>
8095
8096         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
8097         not falsely claim to have propagated into all uses.
8098
8099 2009-05-19  Ben Elliston  <bje@au.ibm.com>
8100
8101         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
8102         version to v3.0.
8103
8104 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8105
8106         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
8107         * config/sh/sh.c (sh_legitimate_address_p): Make static.
8108         (TARGET_LEGITIMATE_ADDRESS_P): New.
8109         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8110         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8111         
8112 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
8113
8114         PR debug/40109
8115         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
8116         child of the containing namespace's DIE.
8117
8118 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
8119
8120         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
8121         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
8122         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
8123         extend patterns.
8124
8125 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
8126
8127         PR target/39942
8128         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
8129         gen_align with gen_pad.
8130         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
8131         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
8132
8133         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
8134         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
8135
8136         * config/i386/i386.md (align): Renamed to ...
8137         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
8138         ASM_OUTPUT_MAX_SKIP_PAD.
8139
8140 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
8141
8142         * config.gcc: Fix variable syntax.
8143
8144         PR target/39531
8145         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
8146         before calling exact_log2.
8147         (output_iorsi3): Likewise.
8148         (output_xorsi3): Likewise.
8149
8150 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8151
8152         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
8153         for the none zero constant operand except for EQ and NE
8154         comprisons even when the first operand is R0.
8155
8156 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
8157
8158         * config/s390/2064.md: Remove trailing whitespaces.
8159         * config/s390/2084.md: Likewise.
8160         * config/s390/constraints.md: Likewise.
8161         * config/s390/fixdfdi.h: Likewise.
8162         * config/s390/libgcc-glibc.ver: Likewise.
8163         * config/s390/s390-modes.def: Likewise.
8164         * config/s390/s390-protos.h: Likewise.
8165         * config/s390/s390.c: Likewise.
8166         * config/s390/s390.h: Likewise.
8167         * config/s390/s390.md: Likewise.
8168         * config/s390/tpf-unwind.h: Likewise.
8169
8170 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8171
8172         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
8173
8174 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8175
8176         M68K TLS support.
8177         * configure.ac (m68k-*-*): Check if binutils support TLS.
8178         * configure: Regenerate.
8179         * config/m68k/predicates.md (symbolic_operand): Extend comment.
8180         * config/m68k/constraints.md (Cu): New constraint.
8181         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
8182         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
8183         (movsi): Handle TLS symbols.
8184         (addsi3_5200): Handle XTLS symbols, indent.
8185         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
8186         (m68k_tls_reference_p): Declare.
8187         (m68k_legitimize_address): Declare.
8188         (m68k_unwrap_symbol): Declare.
8189         * config/m68k/m68k.opt (mxtls): New option.
8190         * config/m68k/m68k.c (ggc.h): Include.
8191         (m68k_output_dwarf_dtprel): Implement hook.
8192         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
8193         (m68k_expand_prologue): Load GOT pointer when function needs it.
8194         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
8195         (m68k_legitimate_constant_address_p): Same.
8196         (m68k_decompose_address): Handle TLS references.
8197         (m68k_get_gp): New static function.
8198         (enum m68k_reloc): New contants.
8199         (TLS_RELOC_P): New macro.
8200         (m68k_wrap_symbol): New static function.
8201         (m68k_unwrap_symbol): New function.
8202         (m68k_final_prescan_insn_1): New static function.
8203         (m68k_final_prescan_insn): New function.
8204         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
8205         functions.
8206         (legitimize_pic_address): Handle TLS references..
8207         (m68k_tls_get_addr, m68k_get_tls_get_addr)
8208         (m68k_libcall_value_in_a0_p)
8209         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
8210         (m68k_call_m68k_read_tp): Helper variables and functions for ...
8211         (m68k_legitimize_tls_address): Handle TLS references.
8212         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
8213         New functions.
8214         (m68k_legitimize_address): Handle TLS symbols.
8215         (m68k_get_reloc_decoration): New static function.
8216         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
8217         UNSPEC_RELOC32.
8218         (m68k_output_dwarf_dtprel): Implement hook.
8219         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
8220         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
8221         m68k_call_* routines.
8222         (sched_attr_op_type): Handle TLS symbols.
8223         (gt-m68k.h): Include.
8224         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
8225         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
8226
8227 2009-05-18  Martin Jambor  <mjambor@suse.cz>
8228
8229         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
8230         (visit_store_addr_for_mod_analysis): New function.
8231         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
8232         (determine_cst_member_ptr): Use gimple_assign_single_p.
8233         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
8234         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
8235         operands.  Don't check number of operands of a NOP_EXPR.
8236
8237 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
8238
8239         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
8240
8241 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8242
8243         PR c/40172
8244         * c-common.c (warn_logical_operator): Don't warn if one of
8245         expression isn't always true or false.
8246
8247 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
8248
8249         * config/i386/biarch32.h: New file.
8250         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
8251
8252 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
8253
8254         * config/mips/mips.md (*zero_extend<mode>_trunchi,
8255         *zero_extend<mode>_truncqi): Merge these into ...
8256         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
8257         Name the pattern following this as *zero_extendhi_truncqi.
8258
8259 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
8260
8261         PR middle-end/39301
8262         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
8263         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
8264         (output_info): Make field HOST_WIDEST_INT.
8265         (print_statistics): Use HOST_WIDEST_INT_PRINT.
8266         (dump_bitmat_statistics): Same.
8267
8268 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
8269
8270         * config.gcc (use_gcc_stdint):  Set to wrap.
8271         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
8272         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
8273         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8274         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8275         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8276         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8277         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8278         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8279
8280 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
8281
8282         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
8283         tune_64.
8284         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
8285         Move definitions earlier.
8286         (OPT_ARCH64, OPT_ARCH32): Define.
8287         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
8288         and tune_64.
8289
8290 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8291
8292         PR target/40153
8293         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
8294         implies.
8295
8296 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8297
8298         * arm.md (movdi2): Copy non-reg values to DImode registers.
8299
8300 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
8301
8302         PR target/39942
8303         * final.c (label_to_max_skip): New function.
8304         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
8305         CODE_LABEL_NUMBER <= max_labelno.
8306         * output.h (label_to_max_skip): New prototype.
8307         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
8308         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
8309         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
8310         Handle CODE_LABELs with >= 16 byte alignment or with
8311         max_skip == (1 << align) - 1.
8312         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
8313         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
8314
8315         PR target/39942
8316         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
8317         .p2align 3 if MAX_SKIP is smaller than 7.
8318         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8319
8320 2009-05-15  Ian Lance Taylor  <iant@google.com>
8321
8322         * alias.c (struct alias_set_entry_d): Rename from struct
8323         alias_set_entry.  Change all uses.
8324         * except.c (struct call_site_record_d): Rename from struct
8325         call_site_record.  Change all uses.
8326         * except.h (struct eh_region_d): Rename from struct eh_region.
8327         Change all uses.
8328         * gcse.c (struct hash_table_d): Rename from struct hash_table.
8329         Change all uses.
8330         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
8331         ivtype_map_elt.  Change all uses.
8332         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
8333         Change all uses.
8334         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
8335         * graphite.h (struct name_tree_d): Rename from struct name_tree.
8336         Change all uses.
8337         (struct sese_d): Rename from struct sese.  Change all uses.
8338         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
8339         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
8340         * optabs.h (struct optab_d): Rename from struct optab.  Change all
8341         uses.
8342         (struct convert_optab_d): Rename from struct convert_optab.
8343         Change all uses.
8344         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
8345         ipa_opt_pass.  Change all uses.
8346         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
8347         all uses.
8348
8349         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
8350         defined as a typedef.
8351         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
8352         defined as a tag.
8353
8354 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8355
8356         PR 16302
8357         * fold-const.c (make_range,build_range_check,merge_ranges): Move
8358         declaration to...
8359         (merge_ranges): Returns bool. 
8360         * tree.h (make_range): .. to here.
8361         (build_range_check): Likewise.
8362         (merge_ranges): Likewise. Renamed from merge_ranges.
8363         * c-typeck.c (parser_build_binary_op): Update calls to
8364         warn_logical_operator.
8365         * c-common.c (warn_logical_operator): Add new warning.
8366         * c-common.h (warn_logical_operator): Update declaration.
8367         
8368 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8369
8370         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
8371         
8372 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8373
8374         * doc/install.texi: Document MPC requirements, flags etc.
8375
8376         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
8377         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
8378         Evaluate constant arguments.
8379         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
8380         (fold_builtin_1): Likewise, also evaluate constant arguments.
8381         Remove superfluous break.
8382         (do_mpc_ckconv): New.
8383         * real.h: Include mpc.h.
8384         * toplev.c (print_version): Output MPC version info if available.
8385
8386 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8387
8388         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
8389
8390 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8391
8392         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
8393         only once.
8394
8395 2009-05-15  Jan Hubicka  <jh@suse.cz>
8396
8397         * doc/invoke.texi (max-early-inliner-iterations): New flag.
8398         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
8399         (try_inline): Fix return value.
8400         (cgraph_decide_inlining_incrementally): Honor new value.
8401         (cgraph_early_inlining): Handle indirect inlining.
8402         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
8403
8404 2009-05-15  Jan Hubicka  <jh@suse.cz>
8405
8406         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
8407         * cgraphunit.c (cgraph_finalize_function): Set it.
8408         (cgraph_expand_function): Use it.
8409
8410 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8411
8412         * real.c (encode_ieee_half): Define.
8413         (decode_ieee_half): Define.
8414         (ieee_half_format): Define.
8415         (arm_half_format): Define.
8416         * real.h (ieee_half_format): Declare.
8417         (arm_half_format): Declare.
8418
8419 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8420
8421         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
8422         swapped, and reversed optabs exist before trying to use them.
8423
8424 2009-05-15  Paul Brook  <paul@codesourcery.com>
8425             Sandra Loosemore  <sandra@codesourcery.com>
8426
8427         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
8428         loads.  Allow PRE_DEC.
8429         (output_move_neon): Handle PRE_DEC.
8430         (arm_print_operand): Add 'A' for neon structure loads.
8431         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
8432         * config/arm/neon.md (neon_mov): Update comment.
8433         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
8434         calls.
8435         (Um): New constraint.
8436
8437 2009-05-15  Jan Hubicka  <jh@suse.cz>
8438
8439         Revert the following patch until testsuite fallout is fixed:
8440         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8441         * cgraph.h (struct inline_summary): New filed self_wize,
8442         size_inlining_benefit, self_time and time_inlining_benefit.
8443         (struct cgraph_global_info): Replace insns by time ans size fields.
8444         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8445         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8446         (ipcp_update_callgraph): Do not touch function bodies.
8447         * ipa-inline.c: Include except.h
8448         (MAX_TIME): New constant.
8449         (overall_insns): Remove
8450         (overall_size, max_benefit): New static variables.
8451         (cgraph_estimate_time_after_inlining): New function.
8452         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8453         (cgraph_clone_inlined_nodes): Update size.
8454         (cgraph_mark_inline_edge): Update size.
8455         (cgraph_estimate_growth): Use size info.
8456         (cgraph_check_inline_limits): Check size.
8457         (cgraph_default_inline_p): Likewise.
8458         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8459         (cgraph_decide_recursive_inlining): Check size.
8460         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8461         and times.
8462         (cgraph_decide_inlining): Likewise.
8463         (cgraph_decide_inlining_incrementally): Likewise; honor
8464         PARAM_EARLY_INLINING_INSNS.
8465         (likely_eliminated_by_inlining_p): New predicate.
8466         (estimate_function_body_sizes): New function.
8467         (compute_inline_parameters): Use it.
8468         * except.c (must_not_throw_labels): New function.
8469         * except.h (must_not_throw_labels): Declare.
8470         * tree-inline.c (init_inline_once): Kill inlining_weigths
8471         * tree-ssa-structalias.c: Avoid uninitialized warning.
8472         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8473         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8474         (PARAM_INLINE_CALL_COST): Remove.
8475         (PARAM_EARLY_INLINING_INSNS): New.
8476
8477 2009-05-15  Richard Guenther  <rguenther@suse.de>
8478
8479         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
8480         not TODO_update_ssa.
8481
8482 2009-05-15  Richard Guenther  <rguenther@suse.de>
8483
8484         PR tree-optimization/39999
8485         * gimple.h (gimple_expr_type): Use the expression type looking
8486         through useless conversions.
8487         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
8488         (vn_nary_op_insert_stmt): Likewise.
8489         (simplify_binary_expression): Likewise.
8490
8491 2009-05-15  Richard Guenther  <rguenther@suse.de>
8492
8493         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8494         New options, enabled by default.
8495         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8496         Document.
8497         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
8498         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
8499         * tree-ssa-structalias.c (gate_tree_pta): New function.
8500         (pass_build_alias): Use it.
8501
8502 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
8503
8504         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
8505         recurse on an invariant address if a conversion from a pointer
8506         type to a wider integer type is involved.
8507
8508 2009-05-15  Jan Hubicka  <jh@suse.cz>
8509
8510         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8511         * cgraph.h (struct inline_summary): New filed self_wize,
8512         size_inlining_benefit, self_time and time_inlining_benefit.
8513         (struct cgraph_global_info): Replace insns by time ans size fields.
8514         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8515         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8516         (ipcp_update_callgraph): Do not touch function bodies.
8517         * ipa-inline.c: Include except.h
8518         (MAX_TIME): New constant.
8519         (overall_insns): Remove
8520         (overall_size, max_benefit): New static variables.
8521         (cgraph_estimate_time_after_inlining): New function.
8522         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8523         (cgraph_clone_inlined_nodes): Update size.
8524         (cgraph_mark_inline_edge): Update size.
8525         (cgraph_estimate_growth): Use size info.
8526         (cgraph_check_inline_limits): Check size.
8527         (cgraph_default_inline_p): Likewise.
8528         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8529         (cgraph_decide_recursive_inlining): Check size.
8530         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8531         and times.
8532         (cgraph_decide_inlining): Likewise.
8533         (cgraph_decide_inlining_incrementally): Likewise; honor
8534         PARAM_EARLY_INLINING_INSNS.
8535         (likely_eliminated_by_inlining_p): New predicate.
8536         (estimate_function_body_sizes): New function.
8537         (compute_inline_parameters): Use it.
8538         * except.c (must_not_throw_labels): New function.
8539         * except.h (must_not_throw_labels): Declare.
8540         * tree-inline.c (init_inline_once): Kill inlining_weigths
8541         * tree-ssa-structalias.c: Avoid uninitialized warning.
8542         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8543         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8544         (PARAM_INLINE_CALL_COST): Remove.
8545         (PARAM_EARLY_INLINING_INSNS): New.
8546         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
8547         (inline-call-cost): Remove.
8548         (early-inlining-insns): New.
8549
8550 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8551
8552         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
8553         for bounds.
8554         (print_int_cst_bounds_in_octal_p): Likewise.
8555         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
8556         with subtypes.
8557         * dwarf2out.c (base_type_die): Likewise.
8558         (is_subrange_type): Delete.
8559         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
8560         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
8561         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
8562         if the destination type is boolean.
8563         (build_range_check): Do not special-case subtypes.
8564         (fold_sign_changed_comparison): Likewise.
8565         (fold_unary): Likewise.
8566         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
8567         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
8568         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
8569         * tree.c (subrange_type_for_debug_p): New predicate based on the
8570         former is_subrange_type.
8571         * tree.h (subrange_type_for_debug_p): Declare.
8572         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
8573         (convert_affine_scev): Remove call to above function.
8574         (chrec_convert_aggressive): Likewise.
8575         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
8576         false for conversions involving subtypes.
8577         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
8578         (vrp_val_min): Likewise.
8579         (needs_overflow_infinity): Likewise.
8580         (extract_range_from_unary_expr): Likewise.
8581
8582 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
8583
8584         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8585         * config/frv/frv.c: Likewise.
8586         * config/s390/s390.c: Likewise.
8587         * config/sparc/sparc.h: Likewise.
8588         * config/i386/i386.h: Likewise.
8589         * config/i386/i386.c: Likewise.
8590         * config/crx/crx.c: Likewise.
8591         * config/m68hc11/m68hc11.h: Likewise.
8592         * config/iq2000/iq2000.c: Likewise.
8593         * config/mn10300/mn10300.h: Likewise.
8594         * config/mn10300/mn10300.c: Likewise.
8595         * config/m68k/m68k.c: Likewise.
8596         * config/rs6000/rs6000.c: Likewise.
8597         * config/rs6000/xcoff.h: Likewise.
8598         * config/rs6000/linux64.h: Likewise.
8599         * config/rs6000/sysv4.h: Likewise.
8600         * config/score/score3.c: Likewise.
8601         * config/score/score7.c: Likewise.
8602         * config/score/score.c: Likewise.
8603         * config/arm/arm.md: Likewise.
8604         * config/mips/mips.c: Likewise.
8605         * config/mips/mips.md: Likewise.
8606         * config/bfin/bfin.h: Likewise.
8607         * config/pa/pa.c: Likewise.
8608         * config/pa/constraints.md: Likewise.
8609
8610         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
8611         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
8612         * config/pdp11/pdp11.h: Use memory_address_p instead.
8613
8614 2009-05-14  Ian Lance Taylor  <iant@google.com>
8615
8616         * passes.c (finish_optimization_passes): Change i to int.
8617         * plugin.c (plugins_active_p): Change event to int.
8618         (dump_active_plugins): Likewise.
8619         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
8620         Add cast.
8621         * tree.c (tree_range_check_failed): Change c to unsigned int.
8622         (omp_clause_range_check_failed): Likewise.
8623         (build_common_builtin_nodes): Change mode to int.  Add cast.
8624         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
8625         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
8626
8627         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
8628         ++ or -- with a variable of enum type.
8629
8630 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8631
8632         PR driver/40144
8633         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
8634
8635 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8636
8637         * store-motion.c: Do not include params.h
8638         * Makefile.in: Fix dependencies for various files.
8639
8640 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8641
8642         * auto-inc-dec.c: Fix pass description, remove apparent
8643         accidental duplication.
8644
8645 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8646
8647         PR middle-end/40147
8648         * ipa-utils.h (memory_identifier_string): Moved to ...
8649         * tree.h (memory_identifier_string): Here.  Add GTY(()).
8650
8651 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8652
8653         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
8654         in the former documentation of...
8655         (GO_IF_LEGITIMATE_ADDRESS): ... this.
8656         * ira-conflicts.c (get_dup_num): Use address_operand.
8657         * targhooks.c (default_legitimate_address_p): New.
8658         * targhooks.h (default_legitimate_address_p): New.
8659         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
8660         Call hook.
8661         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
8662         * target.h (struct target): Add legitimate_address_p.
8663         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
8664         (TARGET_INITIALIZER): Include it.
8665
8666         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8667         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
8668         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
8669         (TARGET_LEGITIMATE_ADDRESS_P): New.
8670
8671         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8672         (REG_OK_STRICT_P): Delete.
8673         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
8674         (frv_legitimate_address_p_1): ... this.
8675         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
8676         (frv_legitimate_address_p_1): ... the renamed old
8677         frv_legitimate_address_p.
8678         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
8679         (TARGET_LEGITIMATE_ADDRESS_P): New.
8680
8681         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8682         * config/s390/s390-protos.h (legitimate_address_p): Remove.
8683         * config/s390/s390.c (legitimate_address_p): Rename to...
8684         (s390_legitimate_address_p): ... this, make static.
8685         (legitimize_address): Adjust call.
8686         (TARGET_LEGITIMATE_ADDRESS_P): New.
8687         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
8688
8689         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8690         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
8691         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
8692         (TARGET_LEGITIMATE_ADDRESS_P): New.
8693
8694         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8695         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
8696         * config/spu/spu.c (spu_legitimate_address): Rename to...
8697         (spu_legitimate_address_p): ... this, make static.
8698         (TARGET_LEGITIMATE_ADDRESS_P): New.
8699
8700         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8701         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
8702         * config/sparc/sparc.c (legitimate_address_p): Rename to...
8703         (sparc_legitimate_address_p): ... this, make static and return bool.
8704         (legitimize_address): Adjust call.
8705         (TARGET_LEGITIMATE_ADDRESS_P): New.
8706
8707         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8708         * config/i386/i386-protos.h (legitimate_address_p): Remove.
8709         * config/i386/i386.c (legitimate_address_p): Rename to...
8710         (ix86_legitimate_address_p): ... this, make static.
8711         (constant_address_p): Move after it, adjust call.
8712         (TARGET_LEGITIMATE_ADDRESS_P): New.
8713
8714         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8715         * config/avr/avr-protos.h (legitimate_address_p): Remove.
8716         * config/avr/avr.c (legitimate_address_p): Rename to...
8717         (avr_legitimate_address_p): ... this, make static.
8718         (legitimize_address): Adjust call.
8719         (TARGET_LEGITIMATE_ADDRESS_P): New.
8720
8721         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8722         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
8723         * config/crx/crx.c (crx_legitimate_address_p): Make static.
8724         (TARGET_LEGITIMATE_ADDRESS_P): New.
8725
8726         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8727         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
8728         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
8729         (TARGET_LEGITIMATE_ADDRESS_P): New.
8730
8731         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8732         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
8733         Remove.
8734         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8735         Make static.
8736         (TARGET_LEGITIMATE_ADDRESS_P): New.
8737
8738         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8739         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
8740         Remove.
8741         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
8742         Rename to...
8743         (m68hc11_legitimate_address_p): ... this, make static.
8744         (go_if_legitimate_address_internal): Rename to...
8745         (m68hc11_legitimate_address_p_1): ... this.
8746         (legitimize_address): Adjust call.
8747         (TARGET_LEGITIMATE_ADDRESS_P): New.
8748
8749         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8750         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
8751         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
8752         (TARGET_LEGITIMATE_ADDRESS_P): New.
8753
8754         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8755         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
8756         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
8757         (mn10300_legitimate_address_p): ... this, make static.
8758         (TARGET_LEGITIMATE_ADDRESS_P): New.
8759
8760         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8761         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
8762         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
8763         (TARGET_LEGITIMATE_ADDRESS_P): New.
8764
8765         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8766         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
8767         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
8768         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8769         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
8770         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
8771         (rs6000_legitimate_address_p): ... this, make static.
8772         (TARGET_LEGITIMATE_ADDRESS_P): New.
8773         (REG_MODE_OK_FOR_BASE_P): Delete.
8774         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
8775
8776         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8777         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
8778         Delete.
8779         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
8780         static, adjust types.
8781         (TARGET_LEGITIMATE_ADDRESS_P): New.
8782
8783         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8784         * config/score/score.c (score_address_p): Rename to...
8785         (score_legitimate_address_p): ... this.
8786         (TARGET_LEGITIMATE_ADDRESS_P): New.
8787         * config/score/score3.c (score3_address_p): Rename to...
8788         (score3_legitimate_address_p): ... this.
8789         * config/score/score7.c (score7_address_p): Rename to...
8790         (score7_legitimate_address_p): ... this.
8791
8792         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
8793         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
8794         GO_IF_LEGITIMATE_ADDRESS): Delete.
8795         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
8796         thumb2_legitimate_address_p): Delete.
8797         (arm_legitimate_address_p): Rename to...
8798         (arm_legitimate_address_outer_p): ... this.
8799         * config/arm/constraints.md ("Uq"): Adjust call.
8800         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
8801         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
8802         to...
8803         (arm_legitimate_address_outer_p): ... this.
8804         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
8805         static.
8806         (TARGET_LEGITIMATE_ADDRESS_P): New.
8807
8808         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8809         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
8810         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
8811         (TARGET_LEGITIMATE_ADDRESS_P): New.
8812
8813         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8814         * config/vax/vax-protos.h (legitimate_address_p): Remove.
8815         * config/vax/vax.c (legitimate_address_p): Rename to...
8816         (vax_legitimate_address_p): ... this, make static.
8817         (TARGET_LEGITIMATE_ADDRESS_P): New.
8818
8819         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8820         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
8821         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
8822         (TARGET_LEGITIMATE_ADDRESS_P): New.
8823
8824         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8825         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
8826         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
8827         (mmix_legitimate_address_p): ... this, make static.
8828         (TARGET_LEGITIMATE_ADDRESS_P): New.
8829
8830         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8831         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
8832         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
8833         (TARGET_LEGITIMATE_ADDRESS_P): New.
8834
8835 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8836
8837         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
8838         of MODE_COMPLEX_INT.
8839
8840 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8841
8842         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
8843         LCT_NORMAL in function call.
8844         * mips-tdump.c (print_file_desc): Add cast to enum type.
8845         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
8846         (mark_stabs): Add casts to enum types.
8847         (parse_stabs_common): Add casts to enum types.
8848
8849 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8850
8851         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
8852         Check for invalid values of LETTER.
8853
8854 2009-05-13  Taras Glek  <tglek@mozilla.com>
8855
8856         * attribs.c (register_attribute): moved out attribute registration
8857         into register_attribute.
8858         * doc/plugins.texi: Documented register_attribute and
8859         PLUGIN_ATTRIBUTES.
8860         * gcc-plugin.h: Added forward decl for register_attribute.
8861         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
8862         * plugin.c (register_callback, invoke_plugin_callbacks): Added
8863         PLUGIN_ATTRIBUTES boilerplate.
8864
8865 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
8866
8867         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
8868         values even in sentinel and empty entries.
8869         (ms_printf_flag_specs):  Likewise.
8870         (ms_scanf_flag_specs):  Likewise.
8871         (ms_strftime_flag_specs):  Likewise.
8872         (ms_print_char_table):  Likewise.
8873         (ms_scan_char_table):  Likewise.
8874         (ms_time_char_table):  Likewise.
8875
8876 2009-05-13  Doug Kwan  <dougkwan@google.com>
8877
8878         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
8879
8880 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8881
8882         * config/mips/mips.md (store): Add attributes for QI and HI.
8883         Update comment.
8884         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
8885         (truncdi<mode>2): ... this new pattern.
8886
8887 2009-05-13  Brad Hards  <bradh@kde.org>
8888
8889         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
8890
8891 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
8892             Ben Elliston <bje@au.ibm.com>
8893
8894         PR middle-end/40035
8895         * dse.c (check_mem_read_rtx): Guard against width == -1.
8896
8897 2009-05-13  Michael Matz  <matz@suse.de>
8898
8899         PR middle-end/39976
8900         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
8901         (trivially_conflicts_p): New function.
8902         (insert_backedge_copies): Use it.
8903
8904 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
8905
8906         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
8907         (handle_stdc_pragma): Use new enum constant names.
8908         (handle_pragma_float_const_decimal64): Ditto.
8909
8910 2009-05-13  Ian Lance Taylor  <iant@google.com>
8911
8912         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
8913         tree.def.
8914
8915 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
8916
8917         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
8918         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
8919         multilibs.
8920         * config/m68k/m68k.h (FL_UCLINUX): Define.
8921
8922 2009-05-13  Jan Hubicka  <jh@suse.cz>
8923
8924         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
8925
8926 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8927
8928         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
8929         unless -fschedule-insns is specified.
8930
8931 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8932
8933         PR target/39561
8934         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
8935         TARGET_EXPAND_CBRANCHDI4.
8936         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
8937         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
8938         (cmpeqdi): Fix comment.
8939
8940 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8941
8942         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
8943         (sh_legitimate_address_p): Likewise.
8944         * config/sh/sh.c (sh_legitimate_index_p): New.
8945         (sh_legitimate_address_p): Likewise.
8946         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
8947         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
8948         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
8949         (MAYBE_BASE_REGISTER_RTX_P): New macro.
8950         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
8951         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
8952         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
8953         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
8954         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
8955
8956 2009-05-12  Jan Hubicka  <jh@suse.cz>
8957
8958         * tree-inline.c (estimate_operator_cost): Add operands;
8959         when division happens by constant, it is cheap.
8960         (estimate_num_insns): Loads and stores are not having cost of 0;
8961         EH magic stuff is cheap; when computing runtime cost of switch,
8962         use log2 base of amount of its cases; builtin_expect has cost of 0;
8963         compute cost for moving return value of call.
8964         (init_inline_once): Initialize time_based flags.
8965         * tree-inline.h (eni_weights_d): Add time_based flag.
8966
8967 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8968
8969         * df-core.c: Update head documentation.
8970
8971 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8972
8973         PR bootstrap/40118
8974         * rs6000.c (rs6000_generate_compare): Use op1b instead of
8975         shadowing exisiting variable op1.
8976
8977 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
8978
8979         PR target/37179
8980         * config/i386/driver-i386.c (processor_signatures): New enum.
8981         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
8982         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
8983         processor signature to detect geode processor.
8984
8985 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8986
8987         Revert:
8988
8989         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8990
8991         * optabs.c (prepare_cmp_insn): Temporarily disable test that
8992         causes spurious differences between trunk and cond-optab branch.
8993
8994 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8995
8996         * dojump.c (compare_from_rtx): Delete.
8997         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
8998         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
8999         if the comparison does not satisfy the predicate; test predicates for
9000         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
9001         further if one existing pattern fails.
9002         * expr.h (compare_from_rtx): Delete.
9003         (prepare_operand): Declare it.
9004         * optabs.c: Change "lib call" to "libcall" throughout.
9005         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
9006         HAVE_conditional_trap, emit_cmp_insn): Delete.
9007         (can_compare_p): Delete cmp_optab case.
9008         (prepare_float_lib_cmp): Return an rtx and a machine mode.
9009         Accept other parameters by value.
9010         (prepare_operand): Make non-static.
9011         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
9012         other parameters by value.  Try to widen operands here based on
9013         an optab_methods argument and looking at cbranch_optab.
9014         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
9015         loop.  Use cbranch_optab directly.
9016         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
9017         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
9018         assertion.
9019         (emit_conditional_move, emit_conditional_add): Inline what's needed
9020         of compare_from_rtx, using new prepare_cmp_insn for the rest.
9021         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
9022         with COMPARE.  Move cmov_optab and cstore_optab above
9023         with cbranch_optab, move cmp_optab down with ucmp_optab,
9024         remove tst_otpab.  Do not initialize trap_rtx.
9025         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
9026         for trap code.  Do not check HAVE_conditional_trap.  Use
9027         prepare_cmp_insn.  Accept no predicate for operand 3.
9028         * optabs.h (OTI_cmp): Mark as used only for libcalls.
9029         (OTI_ctrap, ctrap_optab): New.
9030         (tst_optab): Delete.
9031         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
9032         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
9033         with lookup of ctrap_optab.
9034         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
9035         Delete.
9036         (ctrap_optab): New.
9037
9038         * combine.c (combine_simplify_rtx, simplify_set): Do not
9039         special case comparing against zero for cc0 machines.
9040         * simplify-rtx.c (simplify_binary_operation_1): Never remove
9041         COMPARE on cc0 machines.
9042         (simplify_relational_operation): Return a new expression when
9043         a COMPARE could be removed.
9044         * final.c (final_scan_insn): Compare cc_status values
9045         against LHS of a (compare FOO (const_int 0)) cc0 source.
9046         Also check if cc_status.value is the full compare.
9047
9048         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
9049         (cstoreMM4): Document.
9050         (conditional_trap): Document ctrapMM4 instead.
9051         (sync_compare_and_swapMM): Refer to cbranchcc4.
9052         (Dependent Patterns): Eliminate obsolete information referring to
9053         the old jump optimization phase.
9054         (Canonicalization): Include cbranchcc4 case, omit canonicalization
9055         of compares with 0 on cc0 machines.
9056         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
9057         avoiding references to cc0.  Remove text about storing operands
9058         in cmpMM.
9059         * doc/tm.texi (Condition Codes): Include blurb on different
9060         condition code representations, separate into subsections for
9061         CC0, MODE_CC and conditional execution.
9062
9063         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
9064         alpha_emit_setcc): Accept operands and a machine mode.
9065         * config/alpha/alpha.c (alpha_emit_conditional_branch):
9066         Get code/op0/op1 from operands, use machine mode argument
9067         instead of alpha_compare.fp_p.  Emit the branch here.
9068         (alpha_emit_setcc): Likewise, and return boolean.
9069         (alpha_emit_conditional_move): Likewise.  Assert that
9070         cmp_op_mode == cmp_mode, and simplify accordingly.
9071         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
9072         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
9073         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
9074         Delete.
9075         (stack probe test): Use cbranchdi4.
9076         * config/alpha/predicates.md (alpha_cbranch_operator): New.
9077
9078         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
9079         * config/arc/arc.h (movsicc, movsfcc): Use it.
9080         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
9081         (cbranchsi4, cstoresi4): New.
9082         (cmpsi, bCC and sCC expanders): Remove. 
9083
9084         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
9085         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
9086         * config/arm/predicates.md (arm_comparison_operator): Only include
9087         floating-point operators if there is a hardware floating-point unit.
9088         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
9089         deferring to cbranch_cc and cstore_cc respectively.
9090         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
9091         cbranch_cc, cstore_cc): New.
9092         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
9093         arm_compare_op1.
9094         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
9095
9096         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
9097         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
9098         as an argument.
9099         (adjust_insn_length): Adjust calls.
9100         (avr_reorg): Handle (compare (foo) (const_int 0)).
9101         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
9102         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
9103         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
9104         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
9105         (bCC): Remove.
9106         (cbranchqi4, cbranchhi4, cbranchsi4): New.
9107         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
9108
9109         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
9110         (cbranchsi4, cstorebi4, cstoresi4): New.
9111         (movbisi): This insn is duplicate, split it to zero_extend.
9112         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
9113         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
9114         (bfin_optimize_loop): Use cbranch expander.
9115         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
9116         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
9117         (bfin_bimode_comparison_operator): ... this.
9118         (bfin_direct_comparison_operator): New.
9119  
9120         * config/cris/cris.c (cris_normal_notice_update_cc): Look
9121         inside (compare FOO (const_int 0)).
9122         (cris_rtx_costs): Handle ZERO_EXTRACT.
9123         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
9124         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
9125         (*tstdi_v32): Delete.
9126         (*cmpdi_non_v32): Add M alternative for operand 1.
9127         (cmpsi, cmp<mode>): Make private.
9128         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
9129         with COMPARE.
9130         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
9131
9132         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
9133         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
9134         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
9135         (cc_reg_operand): New.
9136         (any_cond): Delete.
9137         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
9138         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
9139         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
9140         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
9141         crx_expand_scond): Delete.
9142
9143         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
9144         (cbranchsi4): New.
9145         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
9146         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
9147
9148         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
9149         cstoresi4, cstoresf4, cstoredf4): New.
9150         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
9151         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9152         Receive the entire operands array.
9153         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
9154         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
9155         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
9156         Get test/op0/op1 from the operands array.
9157         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
9158
9159         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
9160         (h8300_expand_store): New.
9161         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
9162         (const_int 0)).
9163         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
9164         (h8300_expand_store): New.
9165         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
9166         or do not try to produce (set (cc0) REG).
9167         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
9168         change a compare into a move to a scratch register.  Disable some
9169         peepholes when comparing with zero.
9170         (tstsi, tsthi, tstsi, cmpqi): Make private.
9171         (cmphi): Delete.
9172         (bCC, sCC): Delete.
9173         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
9174         cstoresi4): New.
9175
9176         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
9177         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
9178         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
9179         (ix86_emit_i387_log1p): Use cbranchxf2.
9180         (ix86_expand_setcc): Return void.
9181         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
9182         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
9183         cmp<MODEF>, cmpcc): Remove.
9184         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
9185         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
9186         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
9187         (sCC and bCC expanders): Remove.
9188         (stack_protect_test): Use cbranchcc4.
9189
9190         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
9191         Delete.
9192         (ia64_expand_compare): Accept three rtx by reference and return void.
9193         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
9194         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
9195         from *expr.  Update *expr with the BImode comparison to do.
9196         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
9197         cmptf, bCC, sCC, conditional_trap): Delete.
9198         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
9199         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
9200         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
9201         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
9202         * config/ia64/predicates.md (ia64_cbranch_operator): New.
9203
9204         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
9205         type of last argument.
9206         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
9207         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
9208         use machine mode argument instead of branch_type.  Remove dead
9209         code for floating-point comparisons.
9210         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
9211         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
9212         Remove.
9213         (cbranchsi4, cstoresi4): New.
9214         * config/iq2000/predicates.md (reg_or_const_operand): New.
9215
9216         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
9217         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
9218         (b<code>_op): Rewrite to...
9219         (bcc_op): ... this, using match_operator.
9220         (s<code>_op): Rewrite to...
9221         (scc_op): ... this, using match_operator.
9222         (s<code>_24_op): Rewrite to...
9223         (scc_op_24): ... this, using match_operator.
9224         (s<code>_<mode>): Rewrite to...
9225         (cstore<mode>4): ... this, using match_operator.
9226         (s<code>_<mode>_24): Rewrite to...
9227         (cstore<mode>4_24): ... this, using match_operator.
9228         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
9229         m32c_unpend_compare, m32c_expand_scc): Delete.
9230         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
9231         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
9232         (m32c_expand_movcc): Change NE to EQ if necessary.
9233         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
9234
9235         * config/m32r/m32r-protos.h (gen_cond_store): New.
9236         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
9237         (gen_cond_store): New, from sCC patterns.
9238         (m32r_expand_block_move): Use cbranchsi4.
9239         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
9240         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
9241         (cbranchsi4, cstoresi4): New.
9242         
9243         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
9244         Delete.
9245         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
9246         (m68hc11_notice_update_cc): Look into a compare with 0.
9247         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
9248         Delete.
9249         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
9250         cmphi, cmpqi, bCC): Delete.
9251         (cbranchsi4, cbranchhi4, cbranchqi4): New.
9252         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
9253         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
9254         sets with COMPARE.
9255
9256         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
9257         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
9258         * config/m68k/constraints.md (H): New.
9259         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
9260         the define_insn below.
9261         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
9262         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
9263         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
9264         patterns): Wrap RHS with COMPARE.
9265         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
9266         (*cmpdi_internal): Name this pattern.
9267         (cmpdi): Change to define_insn.
9268         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
9269         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
9270         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
9271         predicate.
9272         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
9273         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
9274         (conditional_trap): Change to...
9275         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
9276         (*conditional_trap): Use the ordered_comparison_operator and
9277         const1_operand predicates.
9278         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
9279         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
9280         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
9281         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
9282
9283         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
9284         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
9285         (mcore_gen_compare): New. 
9286         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
9287         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
9288         (mcore_gen_compare): ... this.
9289         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
9290         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
9291         (stack probe pattern): Use cbranchsi4.
9292
9293         * config/mips/predicates.md (mips_cstore_operator): New.
9294         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
9295         * config/mips/mips.md (any_cond): Delete.
9296         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
9297         always succeed.
9298         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
9299         fixuns_truncsfdi2): Use cbranch patterns.
9300         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
9301         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
9302         Adjust call to mips_expand_conditional_branch.
9303         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
9304         cstore<GPR:mode>4.
9305         * config/mips/mips-protos.h (mips_expand_conditional_branch,
9306         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
9307         * config/mips/mips.c (cmp_operands): Delete.
9308         (mips_emit_compare): Get comparison operands from *op0/*op1.
9309         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
9310         that it succeeds.  Use op0/op1 instead of cmp_operands.
9311         (mips_expand_conditional_branch, mips_expand_conditional_move,
9312         mips_expand_conditional_trap): Likewise.
9313         (mips_block_move_loop): Use cbranch patterns. 
9314         * config/mips/mips.h (cmp_operands): Delete.
9315
9316         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
9317         (mmix_gen_compare_reg): Just return a register in the right CC mode.
9318         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
9319         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
9320         (*cmpcc_folded): Rename to...
9321         (*cmpdi_folded): this.
9322         (*cmpcc): Rename to...
9323         (*cmps): ... this.
9324         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
9325         (bCC): Remove.
9326         (cbranchdi4): New.
9327         (cbranchdf4): New.  Handle invalid comparisons here.
9328         * config/mmix/predicates.md (float_comparison_operator): New.
9329
9330         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
9331         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
9332         * config/mn10300/mn10300.md (tst): Delete.
9333         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
9334         Name these patterns and wrap RHS in a compare.
9335         (*cmpsi): Make this pattern private.  Include tst.
9336         (*cmpsf): Make this pattern private.
9337         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
9338         (compare with zero peepholes): Likewise.
9339         (bCC): Remove.
9340         (cbranchsi4, cbranchsf4): New.
9341         (casesi): Use cbranchsi4.
9342
9343         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
9344         hppa_branch_type): Delete.
9345         (return_addr_rtx): Use cbranchsi4.
9346         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
9347         Emit CCFPmode comparison here.
9348         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
9349         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
9350         hppa_branch_type): Delete.
9351         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
9352         (movsicc, movdicc): Remove references to hppa_compare_op0,
9353         hppa_compare_op1 and compare_from_rtx.
9354         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
9355         (casesi): Use cbranchsi4.
9356
9357         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
9358         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
9359         * config/pdp11/pdp11.md (register_or_const0_operand): New.
9360         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
9361         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
9362         (bCC): Delete.
9363         (cbranchdf4, cbranchhi4, cbranchqi4): New.
9364         (*branch, *branch_inverted): New.
9365
9366         * config/picochip/picochip.md (cbranchhi4): Use
9367         ordered_comparison_operator.
9368         (cmphi, bCC): Remove.
9369
9370         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
9371         (trap_comparison_operator): Delete.
9372         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
9373         rs6000_emit_cbranch): Accept mode and operands.
9374         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
9375         rs6000_compare_fp_p): Delete.   
9376         (rs6000_generate_compare): Accept mode and comparison.  Extract code
9377         and op0/op1 from there.  Replace references to rs6000_compare_op0
9378         and rs6000_compare_op1.
9379         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
9380         extract result from passed operands.
9381         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
9382         extract loc from passed operands.
9383         (rs6000_emit_cmove): Likewise.
9384         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
9385         rs6000_compare_fp_p): Delete.
9386         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
9387         (cbranch<GPR>4, cbranch<FP>4): New.
9388         (cstore<mode>4): New.  Consolidate here all choices about when to use
9389         portable or specialized sCC sequences.
9390         (stack_protect_test): Use cbranchsi4.
9391         (conditional_trap): Replace with ctrap<GPR>4.
9392         (conditional trap insn): Replace trap_comparison_operator with
9393         ordered_comparison_operator. 
9394
9395         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
9396         (s390_emit_prologue): Use ctrap.
9397         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
9398         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
9399         New predicates replacing...
9400         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
9401         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
9402         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
9403         (add<mode>cc): Do not use s390_compare_op0/op1.
9404         (s<code>): Change to...
9405         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
9406         (seq): Change to...
9407         (cstorecc4): ... this.  Handle EQ or NE equally.
9408         (*sne): Un-privatize for use in cstorecc4.
9409         (b<code>): Change to...
9410         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
9411         (conditional_trap): Replace with...
9412         (ctrap<GPR>4, ctrap<FP>4): ... these.
9413         (stack_protect): Use cbranchcc4.
9414
9415         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
9416         * config/score/score-protos.h (score_gen_cmp): Delete.
9417         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
9418         (score_block_move-loop): Use cbranchsi4.
9419         * config/score/score.md (cbranchsi4): New.
9420         (cmpsi, bCC): Delete.
9421         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
9422         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9423         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
9424         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9425         * config/score/score3.h (score3_gen_cmp): Delete.
9426         * config/score/score7.h (score7_gen_cmp): Delete.
9427
9428         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
9429         (sh_emit_scc_to_t): ... this.  Return void.
9430         (from_compare): Rename to...
9431         (sh_emit_compare_and_branch): ... this.
9432         (sh_emit_compare_and_set): New.
9433         (sh_expand_t_scc): Accept operands.
9434         * config/sh/predicates.md (sh_float_comparison_operator): New.
9435         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
9436         (prepare_scc_operands): Rename to...
9437         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
9438         arguments.
9439         (sh_emit_cheap_store_flag): New.
9440         (sh_emit_set_t_insn): New.
9441         (from_compare): Rename to...
9442         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
9443         handling of TARGET_SH2E floating point to avoid recursive call.
9444         Generate branch here.
9445         (sh_emit_compare_and_set): New.
9446         (sh_expand_t_scc): Get op0/op1 from arguments.
9447         (sh_emit_cheap_store_flag): New.
9448         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
9449         cases.
9450         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
9451         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
9452         (movsicc, movdicc): Do nothing when it recreated operands from
9453         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
9454         prepare_scc_operands (now sh_emit_scc_to_t).
9455         (udivdi3): Use cstoresi4.
9456         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
9457         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
9458         (cbranchint4_media, cbranchfp4_media): New.
9459         (casesi): Use cbranchdi4.
9460         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
9461         Delete.
9462         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
9463         (movnegt): Remove second operand.
9464         (cbranchsf4, cbranchdf4): New.
9465         (stack_protect): Use cbranchdi4/cbranchsi4.
9466
9467         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
9468         (gen_compare_reg): Accept comparison, extract part of it to...
9469         (gen_compare_reg_1): ... this. 
9470         (gen_compare_operator): Delete.
9471         (gen_v9_scc): Accept separate destination, comparison code and arms.
9472         Do not use sparc_compare_op0/sparc_compare_op1.
9473         (emit_scc_insn, emit_conditional_branch_insn): New.
9474         (emit_v9_brxx): Make static.  Remove useless assertion.
9475         (sparc_emit_float_lib_cmp): Return RTL instead of calling
9476         emit_cmp_insn.
9477         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
9478         * config/sparc/sparc-protos.h (gen_compare_reg,
9479         sparc_emit_float_lib_cmp): Adjust prototype.
9480         (emit_scc_insn, emit_conditional_branch_insn): New.
9481         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
9482         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
9483         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
9484         iterators to the top.
9485         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
9486         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
9487         snedi_special_trunc): Delete.
9488         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
9489         and snedi_special_trunc.
9490         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
9491         cbranchdi4, cbranch<F:mode>4): New.
9492         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
9493         here.  Use gen_compare_reg instead of gen_compare_operator.
9494         (conditional_trap): Replace with...
9495         (ctrapsi4, ctrapdi4): ... this.
9496         (stack_protect_test): Use cbranchcc4.
9497
9498         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
9499         argument to rtx.
9500         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
9501         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
9502         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
9503         from operands[0] or operands[3] depending on is_set.
9504         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
9505         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
9506         cmpdf, bCC), sCC: Remove.
9507         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
9508         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
9509         cstoredf4): New.
9510         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
9511         spu_emit_branch_or_set.
9512
9513         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
9514         Add two arguments.
9515         * config/stormy16/stormy16.h (xstormy16_compare_op0,
9516         xstormy16_compare_op1): Delete.
9517         * config/stormy16/stormy16.c (xstormy16_compare_op0,
9518         xstormy16_compare_op1): Delete. 
9519         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
9520         Adjust calls.
9521         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
9522         (cmphi, cmpsi, bCC): Remove.
9523
9524         * config/v850/v850.md (tstsi, cmpsi): Fold into...
9525         (*cmpsi): ... this one.
9526         (cbranchsi4, cstoresi4): New.
9527         (bCC expanders): Delete.
9528         (sCC insns): Fold into...
9529         (*setcc): ... this one.
9530         (casesi): Do not use gen_cmpsi and gen_bgtu. 
9531         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
9532         (movsicc): Simplify.
9533         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
9534
9535         * config/vax/vax-protos.h (cond_name): New.
9536         (vax_output_conditional_branch): Remove.
9537         * config/vax/vax.c (cond_name): New.
9538         (vax_output_conditional_branch): Remove.
9539         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
9540         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
9541         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
9542         (bit<VAXint>): Wrap source with (compare).
9543         (b<code> and following unnamed pattern): Rename to *branch and
9544         *branch_reversed.  Change macroization to match_operator.
9545         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
9546
9547         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
9548         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
9549         Change last argument to machine_mode.
9550         (xtensa_expand_scc): Add machine_mode argument.
9551         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
9552         (gen_conditional_move, xtensa_expand_conditional_branch,
9553         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
9554         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
9555         Adjust operand numbers.
9556         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
9557         Delete.
9558         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
9559         (cmpsi, cmpsf, b<code>, s<code>): Delete.
9560         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
9561
9562 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
9563
9564         * optabs.c (prepare_cmp_insn): Temporarily disable test that
9565         causes spurious differences between trunk and cond-optab branch.
9566
9567 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9568
9569         PR target/37137
9570         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
9571
9572 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9573
9574         * tree.c (iterative_hash_pointer): Delete.
9575         (iterative_hash_expr): Short-circuit handling of NULL pointer.
9576         Hash UIDs and versions of SSA names.  Don't special-case built-in
9577         function declarations.
9578
9579 2009-05-11  Ian Lance Taylor  <iant@google.com>
9580
9581         PR bootstrap/40103
9582         * graphite.c: Force -Wc++-compat to only be a warning before
9583         #including "cloog/cloog.h".
9584
9585 2009-05-11  Martin Jambor  <mjambor@suse.cz>
9586
9587         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
9588         
9589 2009-05-11  Jan Hubicka  <jh@suse.cz>
9590
9591         * tree-ssa-loop-ivcanon.c: Include target.h
9592         (struct loop_size): new structure.
9593         (constant_after_peeling): New predicate.
9594         (tree_estimate_loop_size): New function.
9595         (estimated_unrolled_size): Rewrite for new estimates.
9596         (try_unroll_loop_completely): Use new estimates.
9597         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
9598
9599 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9600
9601         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
9602         libcpp interface change.
9603         (spu_macro_to_expand): Likewise.
9604
9605 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
9606
9607         PR tree-optimization/40026
9608         * gimplify.c (gimplify_init_constructor): Change initial conditional
9609         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
9610         optimize_compound_literals_in_ctor.
9611
9612 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9613
9614         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
9615         New devices.
9616         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
9617
9618 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9619
9620         * tree-vect-data-refs.c (vect_analyze_group_access): Use
9621         HOST_WIDE_INT for gap.
9622
9623 2009-05-11  Ira Rosen  <irar@il.ibm.com>
9624
9625         PR tree-optimization/40074
9626         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
9627         account in group size and step comparison.
9628
9629 2009-05-11  Richard Guenther  <rguenther@suse.de>
9630
9631         * passes.c (init_optimization_passes): Strip now incorrect comment.
9632         (execute_function_todo): Do not set PROP_alias.
9633         * tree-pass.h (PROP_alias): Remove.
9634         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
9635         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
9636         * tree-nrv.c (pass_return_slot): Likewise.
9637         * tree-object-size.c (pass_object_sizes): Likewise.
9638         * tree-ssa-dom.c (pass_dominator): Likewise.
9639         (pass_phi_only_cprop): Likewise.
9640         * tree-ssa-dse.c (pass_dse): Likewise.
9641         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9642         (pass_cselim): Likewise.
9643         * tree-ssa-pre.c (pass_pre): Likewise.
9644         (pass_fre): Likewise.
9645         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9646         * tree-ssa-sink.c (pass_sink_code): Likewise.
9647         * tree-stdarg.c (pass_stdarg): Likewise.
9648         * tree-tailcall.c (pass_tail_calls): Likewise.
9649         * tree-vrp.c (pass_vrp): Likewise.
9650
9651 2009-05-10  Ian Lance Taylor  <iant@google.com>
9652
9653         * basic-block.h (enum profile_status): Break out of struct
9654         control_flow_graph.
9655         * cgraph.h (struct inline_summary): Break out of struct
9656         cgraph_local_info.
9657         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
9658         of struct cgraph_order_sort.
9659         * combine.c (enum undo_kind): New enum, broken out of struct undo.
9660         * cse.c (struct branch_path): Break out of struct
9661         cse_basic_block_data.
9662         * except.h (enum eh_region_type): Break out of struct eh_region.
9663         * gcc.c (enum add_del): Break out of struct modify_target.
9664         * genrecog.c (enum decision_type): Break out of struct decision_test.
9665         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
9666         ggc_pch_data.
9667         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
9668         * regmove.c (enum match_use): New enum, broken out of struct match.
9669         * sched-int.h (enum post_call_group): New enum, broken out of
9670         struct deps.
9671         (struct deps_reg): Break out of struct deps.
9672         * target.h (struct asm_int_op): Break out of struct gcc_target.
9673         * tree-eh.c (struct goto_queue_node): Break out of struct
9674         leh_tf_state.
9675         * tree-inline.h (enum copy_body_cge_which): Break out of
9676         copy_body_data.
9677         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
9678
9679         * c-decl.c (in_struct, struct_types): New static variables.
9680         (pushtag): Add loc parameter.  Change all callers.
9681         (lookup_tag): Add ploc parameter.  Change all callers.
9682         (check_compound_literal_type): New function.
9683         (parser_xref_tag): Add loc parameter.  Change all callers.  If
9684         -Wc++-compat, warn about struct/union/enum types defined within a
9685         struct or union.
9686         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
9687         and loc parameters.  Change all callers.  Change error calls to
9688         error_at, using loc.  For a redefinition, if the location of the
9689         original definition is known, report it.  Set in_struct and
9690         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
9691         (finish_struct): Add new parameters enclosing_in_struct and
9692         enclosing_struct_types.  Change all callers.  Set
9693         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
9694         in the struct.  If in a struct, add this struct to struct_types.
9695         (start_enum): Add loc parameter.  Change all callers.  Use
9696         error_at for errors, using loc.  For a redefinition, if the
9697         location of the original definition is known, report it.  If in a
9698         struct, add this enum type to struct_types.  If -Wc++-compat warn
9699         if in sizeof, typeof, or alignof.
9700         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
9701         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
9702         (c_parser_enum_specifier): Get enum location for start_enum.
9703         (c_parser_struct_or_union_specifier): Get struct location for
9704         start_struct.  Save in_struct and struct_types status between
9705         start_struct and finish_struct.
9706         (c_parser_cast_expression): Get location of cast.
9707         (c_parser_alignof_expression): Get location of type.
9708         (c_parser_postfix_expression): Likewise.
9709         (c_parser_postfix_expression_after_paren_type): Add type_loc
9710         parameter.  Change all callers.  Call check_compound_literal_type.
9711         Use type_loc for error about variable size type.
9712         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
9713         of an enum constant from an enum type defined in a struct or union.
9714         (c_cast_expr): Add loc parameter.  Change all callers.  If
9715         -Wc++-compat, warn about defining a type in a cast.
9716         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
9717         (start_enum, start_struct, finish_struct): Update declarations.
9718         (parser_xref_tag, c_cast_expr): Update declarations.
9719         (check_compound_literal_type): Declare.
9720
9721 2009-05-11  Ben Elliston  <bje@au.ibm.com>
9722
9723         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
9724         for recent libcpp interface change.
9725         (rs6000_macro_to_expand): Likewise.
9726
9727 2009-05-10  Michael Matz  <matz@suse.de>
9728
9729         PR target/40031
9730         * config/arm/arm.c (require_pic_register): Emit on entry edge,
9731         not at entry of function.
9732
9733 2009-05-10  Richard Guenther  <rguenther@suse.de>
9734
9735         PR tree-optimization/40081
9736         Revert
9737         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9738         using the main variant of the element type.  Do not fiddle with
9739         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9740
9741         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
9742         structs with volatile fields.
9743
9744 2009-05-10  Jan Hubicka  <jh@suse.cz>
9745
9746         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
9747         (estimate_move_cost): Assert that it does not get called for
9748         VOID_TYPE_P.
9749         (estimate_num_insns): Skip VOID types in argument handling.
9750         (optimize_inline_calls): Delete unreachable blocks and verify that
9751         callgraph is valid.
9752
9753 2009-05-10  Jan Hubicka  <jh@suse.cz>
9754
9755         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
9756         * cgraph.c (cgraph_mark_address_taken_node): New function.
9757         (dump_cgraph_node): Dump new flag.
9758         * cgraph.h (struct cgraph_node): Add address_taken.
9759         (cgraph_mark_address_taken_node): New function.
9760         * ipa.c (cgraph_postorder): Prioritize functions with address taken
9761         since new direct calls can be born.
9762
9763 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9764
9765         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
9766         tok->val.node.node.
9767
9768 2009-05-10  Jan Hubicka  <jh@suse.cz>
9769
9770         PR middle-end/40084
9771         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
9772         argument; rewrite.
9773         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
9774         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
9775         * tree-inline.c (copy_bb): Set frequency correctly.
9776         (fold_marked_statements): Update call to
9777         cgraph_update_edges_for_call_stmt.
9778
9779 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9780
9781         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
9782         identifiers in diagnostics.
9783         * config/arm/arm.c (arm_handle_fndecl_attribute,
9784         arm_handle_isr_attribute): Likewise.
9785         * config/avr/avr.c (avr_handle_progmem_attribute,
9786         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
9787         * config/bfin/bfin.c (handle_int_attribute,
9788         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
9789         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
9790         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
9791         Likewise.
9792         * config/darwin.c (darwin_handle_kext_attribute,
9793         darwin_handle_weak_import_attribute): Likewise.
9794         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
9795         h8300_handle_eightbit_data_attribute,
9796         h8300_handle_tiny_data_attribute): Likewise.
9797         * config/i386/i386.c (ix86_handle_cconv_attribute,
9798         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
9799         * config/i386/winnt.c (ix86_handle_shared_attribute,
9800         ix86_handle_selectany_attribute): Likewise.
9801         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
9802         * config/m32c/m32c.c (function_vector_handler): Likewise.
9803         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
9804         m68hc11_handle_fntype_attribute): Likewise.
9805         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
9806         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
9807         * config/mips/mips.c (mips_insert_attributes,
9808         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
9809         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
9810         rs6000_handle_struct_attribute): Likewise.
9811         * config/sh/sh.c (sh_insert_attributes,
9812         sh_handle_resbank_handler_attribute,
9813         sh_handle_interrupt_handler_attribute,
9814         sh2a_handle_function_vector_handler_attribute,
9815         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
9816         Likewise.
9817         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
9818         * config/spu/spu.c (spu_handle_fndecl_attribute,
9819         spu_handle_vector_attribute): Likewise.
9820         * config/stormy16/stormy16.c
9821         (xstormy16_handle_interrupt_attribute): Likewise.
9822         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
9823         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
9824
9825 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9826
9827         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
9828         (pp_translate_identifiers): New.
9829         (pp_identifier): Only conditionally translate identifier to locale
9830         character set.
9831         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
9832         (pp_base_tree_identifier): Only conditionally translate identifier
9833         to locale character set.
9834         * c-pretty-print.c (M_): Define.
9835         (pp_c_type_specifier, pp_c_primary_expression): Mark English
9836         fragments for conditional translation with M_.
9837         * tree-pretty-print.c (maybe_init_pretty_print): Disable
9838         identifier translation.
9839
9840 2009-05-10  Richard Guenther  <rguenther@suse.de>
9841
9842         PR tree-optimization/40081
9843         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9844         using the main variant of the element type.  Do not fiddle with
9845         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9846
9847 2009-05-09  Jan Hubicka  <jh@suse.cz>
9848
9849         PR middle-end/40080
9850         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
9851         indirect calls; verify cgraph afterwards.
9852
9853 2009-05-09  Jan Hubicka  <jh@suse.cz>
9854
9855         PR bootstrap/40082
9856         * ipa.c (update_inlined_to_pointer): New function.
9857         (cgraph_remove_unreachable_nodes): Use it.
9858
9859 2009-05-09  Jan Hubicka  <jh@suse.cz>
9860
9861         * tree-eh.c (struct leh_state): Remove prev_try.
9862         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
9863         not track prev_try.
9864         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
9865         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
9866         remove_eh_handler_and_replace, foreach_reachable_handler,
9867         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
9868         * except.h (struct eh_region): Remove eh_region_u_cleanup.
9869         (gen_eh_region_cleanup): Update prototype.
9870
9871 2009-05-09  Jan Hubicka  <jh@suse.cz>
9872
9873         PR middle-end/40043
9874         * except.c (copy_eh_region): Always set prev_try.
9875         (redirect_eh_edge_to_label): Find outer try.
9876         (foreach_reachable_handler): When looking for prev try
9877         handle case where previous try is not going to be taken.
9878
9879 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9880
9881         PR tree-optimization/40049
9882         * tree-vect-stmts.c (vectorizable_operation): If the machine has
9883         only vector/vector shifts, convert the type of the constant to the
9884         appropriate type to avoid building incorrect trees, which
9885         eventually have problems with garbage collection.
9886
9887 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9888
9889         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
9890         -1 for complex floating-point types if honoring signed zeros.
9891
9892 2009-05-08  Jan Hubicka  <jh@suse.cz>
9893
9894         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
9895         argument; handle correctly when profile is absent.
9896         (build_cgraph_edges): Update.
9897         (rebuild_cgraph_edges): Update.
9898         * cgraph.c: Do not include varray.h.
9899         (cgraph_set_call_stmt_including_clones): New function.
9900         (cgraph_create_edge_including_clones): Likewise
9901         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9902         (cgraph_update_edges_for_call_stmt): Handle clones.
9903         (cgraph_remove_node): Handle clone tree.
9904         (cgraph_remove_node_and_inline_clones): New function.
9905         (dump_cgraph_node): Dump clone tree.
9906         (cgraph_clone_node): Handle clone tree.
9907         (clone_function_name): Bring here from tree-inline.c.
9908         (cgraph_create_virtual_clone): New function.
9909         * cgraph.h (ipa_replace_map): Move here from ipa.h.
9910         (cgraph_clone_info): New function.
9911         (strut cgraph_node): Add clone_info and new clone tree pointers.
9912         (cgraph_remove_node_and_inline_clones,
9913         cgraph_set_call_stmt_including_clones,
9914         cgraph_create_edge_including_clones,
9915         cgraph_create_virtual_clone): Declare.
9916         (cgraph_function_versioning): Use VEC argument.
9917         (compute_call_stmt_bb_frequency): Update prototype.
9918         (cgraph_materialize_all_clones): New function.
9919         * ipa-cp.c (ipcp_update_cloned_node): Remove.
9920         (ipcp_create_replace_map): Update to VECtors.
9921         (ipcp_update_callgraph): Use virtual clones.
9922         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
9923         (ipcp_update_profiling): Do not update local profiling.
9924         (ipcp_insert_stage): Use VECtors and virtual clones.
9925         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
9926         (clone_of_p): New function.
9927         (cgraph_preserve_function_body_p): Use clone tree.
9928         (cgraph_optimize): Materialize clones.
9929         (cgraph_function_versioning): Update for VECtors.
9930         (save_inline_function_body): Use clone tree.
9931         (cgraph_materialize_clone): New function.
9932         (cgraph_materialize_all_clones): Likewise.
9933         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
9934         * ipa.c: Include gimple.h.
9935         (cgraph_remove_unreachable_nodes): Use clone tree.
9936         * ipa-prop.c (ipa_note_param_call): Update call to
9937         compute_call_stmt_bb_frequencycall.
9938         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
9939         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9940         (copy_bb): Handle updating of clone tree; add new edge when new call
9941         appears.
9942         (expand_call_inline): Be strict about every call having edge.
9943         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
9944         (delete_unreachable_blocks_update_callgraph): New function.
9945         (tree_function_versioning): Use VECtors; always remove unreachable
9946         blocks and fold conditionals.
9947         * tree-inline.h: Do not include varray.h.
9948         (tree_function_versioning): Remove.
9949         * Makefile.in (GTFILES): Remove tree-inline.c
9950         * passes.c (do_per_function): Do only functions having body.
9951         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
9952         tree.
9953
9954 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9955             Andrew Morrow  <acm@google.com>
9956
9957         PR c/36892
9958         * c-common.c (c_common_attribute_table): Permit deprecated
9959         attribute to take an optional argument.
9960         (handle_deprecated_attribute): If the optional argument to
9961         __attribute__((deprecated)) is not a string ignore the attribute
9962         and emit a warning.
9963
9964         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
9965         * c-typeck.c (build_component_ref): Likewise.
9966         (build_external_ref): Likewise.
9967
9968         * toplev.c (warn_deprecated_use): Add an attribute argument.
9969         Emit the message associated with __attribute__((deprecated)).
9970
9971         * toplev.h (warn_deprecated_use): Updated.
9972
9973         * doc/extend.texi: Document new optional parameter to
9974         __attribute__((deprecated))
9975
9976 2009-05-08  Michael Eager <eager@eagercon.com>
9977
9978         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
9979         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
9980
9981 2009-05-08  Richard Guenther  <rguenther@suse.de>
9982
9983         PR tree-optimization/40062
9984         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
9985         Avoid exponential behavior.
9986
9987 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9988
9989         PR rtl-optimization/33928
9990         PR 26854
9991         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
9992         process_uses, build_single_def_use_links): New.
9993         (update_df): Update use_def_ref.
9994         (forward_propagate_into): Use get_def_for_use instead of use-def
9995         chains.
9996         (fwprop_init): Call build_single_def_use_links and let it initialize
9997         dataflow.
9998         (fwprop_done): Free use_def_ref.
9999         (fwprop_addr): Eliminate duplicate call to df_set_flags.
10000         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
10001         df_rd_simulate_one_insn): New.
10002         (df_rd_bb_local_compute_process_def): Update head comment.
10003         (df_chain_create_bb): Use the new RD simulation functions.
10004         * df.h (df_rd_simulate_artificial_defs_at_top, 
10005         df_rd_simulate_one_insn): New.
10006         * opts.c (decode_options): Enable fwprop at -O1.
10007         * doc/invoke.texi (-fforward-propagate): Document this.
10008
10009 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
10010
10011         PR c/24581
10012         * c-typeck.c (build_binary_op): Handle arithmetic between one real
10013         and one complex operand specially.
10014         * tree-complex.c (some_nonzerop): Do not identify a real value as
10015         zero if flag_signed_zeros.
10016
10017 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
10018
10019         PR rtl-optimization/33928
10020         * loop-invariant.c (record_use): Fix && vs. || mishap.
10021
10022 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
10023
10024         PR rtl-optimization/33928
10025         * loop-invariant.c (struct use): Add addr_use_p.
10026         (struct def): Add n_addr_uses.
10027         (struct invariant): Add cheap_address.
10028         (create_new_invariant): Set cheap_address.
10029         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
10030         (record_uses): Pass df_ref to record_use.
10031         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
10032         used only as such.
10033
10034 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
10035
10036         * config/sh/sh.c: Do not include c-pragma.h.
10037
10038 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10039
10040         * config/spu/spu.c: Remove include of c-common.h.
10041
10042 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
10043
10044         PR c/39037
10045         * c-common.h (mark_valid_location_for_stdc_pragma,
10046         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
10047         clear_float_const_decimal64, float_const_decimal64_p): New.
10048         * c.opt (Wunsuffixed-float-constants): New.
10049         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
10050         unsuffixed float constant, handle new warning.
10051         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
10052         * c-decl.c (c_scope): New flag float_const_decimal64.
10053         (set_float_const_decimal64, clear_float_const_decimal64,
10054         float_const_decimal64_p): New.
10055         (push_scope): Set new flag.
10056         * c-parser.c (c_parser_translation_unit): Mark when it's valid
10057         to use STDC pragmas.
10058         (c_parser_external_declaration): Ditto.
10059         (c_parser_compound_statement_nostart): Ditto.
10060         * c-pragma.c (valid_location_for_stdc_pragma,
10061         mark_valid_location_for_stdc_pragma,
10062         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
10063         handle_pragma_float_const_decimal64): New.
10064         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
10065         * cp/semantics.c (valid_location_for_stdc_pragma_p,
10066         set_float_const_decimal64, clear_float_const_decimal64,
10067         float_const_decimal64_p): New dummy functions.
10068         * doc/extend.texi (Decimal Float): Remove statement that the
10069         pragma, and suffix for double constants, are not supported.
10070         * doc/invoke.texi (Warning Options): List new option.
10071         (-Wunsuffixed-float-constants): New.
10072
10073 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
10074
10075         * config/i386/i386.c: Do not include c-common.h.
10076
10077 2009-05-07  Mark Heffernan  <meheff@google.com>
10078
10079         * doc/invoke.texi (Debugging Options): Document change of debugging
10080         dump location.
10081         * opts.c (decode_options): Make dump_base_name relative to
10082         aux_base_name directory.
10083
10084 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
10085
10086         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
10087         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
10088
10089 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
10090
10091         * Makefile.in (install-plugin): Simplify a bit.
10092
10093 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
10094
10095         * Makefile.in (OBJS-common): Add regcprop.o.
10096         (regcprop.o): New.
10097         * timevar.def (TV_CPROP_REGISTERS): New.
10098         * regrename.c (regrename_optimize): Return 0.
10099         (rest_of_handle_regrename): Delete.
10100         (pass_rename_registers): Point to regrename_optimize.
10101         (struct value_data_entry, struct value_data, 
10102         kill_value_one_regno, kill_value_regno, kill_value,
10103         set_value_regno, init_value_data, kill_clobbered_value,
10104         kill_set_value, kill_autoinc_value, copy_value,
10105         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
10106         replace_oldest_value_reg, replace_oldest_value_addr,
10107         replace_oldest_value_mem, copyprop_hardreg_forward_1,
10108         debug_value_data, validate_value_data): Move...
10109         * regcprop.c: ... here.
10110         (rest_of_handle_cprop): Delete.
10111         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
10112
10113 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
10114
10115         PR middle-end/40057
10116         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
10117         GEN_INT for 1 << bitnum.
10118         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
10119         build_int_cst_type.
10120
10121 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
10122
10123         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
10124         Remove wrong description of "nand" operation.
10125
10126 2009-05-06  Richard Guenther  <rguenther@suse.de>
10127             Adam Nemet  <anemet@caviumnetworks.com>
10128
10129         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
10130         comment.  Add that if LHS is not a gimple register, then RHS1 has
10131         to be a single object (GIMPLE_SINGLE_RHS).
10132
10133 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
10134
10135         * expr.c (get_def_for_expr): Move it up in the file.
10136         (store_field): When expanding a bit-field store, look at the
10137         defining gimple stmt for the masking conversion.
10138
10139 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
10140
10141         PR middle-end/39986
10142         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
10143         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
10144         32-bit memcpy into long.
10145
10146 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
10147
10148         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
10149         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
10150         new_reg_loc_descr.
10151         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
10152         instead of appending DW_OP_deref*.
10153
10154 2009-05-06  Michael Matz  <matz@suse.de>
10155
10156         PR middle-end/40021
10157         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
10158         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
10159
10160 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
10161
10162         * Makefile.in (install-plugin): Fix srcdir handling.
10163
10164 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
10165
10166         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
10167         when processing for not_regs_needed bitmap.
10168         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
10169         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
10170         handling it for rhs. 
10171
10172 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10173
10174         * config/i386/i386.md (unnamed inc/dec peephole): Use
10175         optimize_insn_for_size_p instead of optimize_size.
10176         * config/i386/predicates.md (incdec_operand): Likewise.
10177         (aligned_operand): Likewise.
10178         * config/i386/sse.md (divv8sf3): Likewise.
10179         (sqrtv8sf2): Likewise.
10180
10181 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10182
10183         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
10184
10185         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
10186
10187 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10188
10189         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
10190         ssemodesuffixf2c with avxmodesuffixf2c.
10191
10192 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
10193
10194         PR c/40032
10195         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
10196
10197 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
10198
10199         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
10200         (struct tree_base): Adjust spacing for 8 bit boundaries.
10201         (struct tree_decl_common): Add decl_by_reference_flag bit.
10202         (DECL_BY_REFERENCE): Adjust.
10203         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
10204         print DECL_BY_REFERENCE bit.
10205         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
10206         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
10207         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
10208         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
10209         unconditionally.
10210
10211         PR middle-end/39666
10212         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
10213         range of the type, but default label is missing, add it with one
10214         of the existing labels instead of adding a new label for it.
10215
10216 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
10217
10218         * dwarf.h: Remove.
10219
10220 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
10221
10222         * Makefile.in (enable_plugin, plugin_includedir): New.
10223         (install): Depend on install-plugin.
10224         (PLUGIN_HEADERS): New.
10225         (install-plugin): New.
10226         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
10227
10228 2009-05-05  Richard Guenther  <rguenther@suse.de>
10229
10230         PR tree-optimization/40022
10231         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
10232         the only vuse.
10233         (phivn_valid_p): Fix tuplification error, simplify.
10234         (phiprop_insert_phi): Add dumps.
10235         (propagate_with_phi): Simplify.
10236
10237 2009-05-05  Richard Guenther  <rguenther@suse.de>
10238
10239         PR middle-end/40023
10240         * builtins.c (gimplify_va_arg_expr): Properly build the address.
10241
10242 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
10243
10244         * tree.h (strip_float_extensions): Remove duplicate declaration.
10245         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
10246         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
10247         block_ultimate_origin): Rearrange the declarations line to match the
10248         comment that indicates the .c file which the functions are defined.
10249         (dwarf2out_*, set_decl_rtl): Add comment.
10250         (get_base_address): Adjust comment.
10251         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
10252         declarations line and add comment.
10253         (is_builtin_name): Add blank after function name, for clarity.
10254
10255 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10256
10257         * attribs.c (decl_attributes): Use %qE for identifiers in
10258         diagnostics.
10259         * cgraphunit.c (verify_cgraph_node): Translate function names to
10260         locale character set in diagnostics.
10261         * coverage.c (get_coverage_counts): Use %qE for identifiers in
10262         diagnostics.
10263         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
10264         Document that functions are named in UTF-8.
10265         * expr.c (expand_expr_real_1): Translate function names to locale
10266         character set in diagnostics.
10267         * gimplify.c (omp_notice_variable, omp_is_private,
10268         gimplify_scan_omp_clauses): Use %qE for identifiers in
10269         diagnostics.
10270         * langhooks.c (lhd_print_error_function): Translate function names
10271         to locale character set.
10272         * langhooks.h (decl_printable_name): Document that return value is
10273         in internal character set.
10274         * stmt.c: Include pretty-print.h
10275         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
10276         diagnostics.
10277         (resolve_operand_name_1): Translate named operand name to locale
10278         character set.
10279         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
10280         diagnostics.
10281         * toplev.c (announce_function): Translate function names to locale
10282         character set.
10283         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
10284         (default_tree_printer): Use pp_identifier or translate identifiers
10285         to locale character set.  Mark "<anonymous>" for translation.
10286         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
10287         for identifiers in diagnostics.
10288         * tree.c (handle_dll_attribute): Use %qE for identifiers in
10289         diagnostics.
10290         * varasm.c (output_constructor): Use %qE for identifiers in
10291         diagnostics.
10292
10293 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
10294
10295         * configure.ac: use ` ` instead of $()
10296         * configure: Regenerate.
10297
10298 2009-05-05  Ben Elliston  <bje@au.ibm.com>
10299
10300         * config/pa/linux-atomic.c: Eliminate conditional include of
10301         errno.h on non-LP64 systems to simplify build requirements.
10302
10303 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10304
10305         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
10306         diagnostics.
10307         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
10308         and pass value to identifier_to_locale.
10309         (warn_variable_length_array): Make name a tree.
10310         (grokdeclarator): Separate diagnostic texts for named and unnamed
10311         declarators.  Use %qE for named declarators.
10312         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
10313         diagnostics.
10314         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
10315         identifiers in diagnostics.
10316         * c-typeck.c (push_member_name, start_init): Pass identifiers to
10317         identifier_to_locale.  Mark "anonymous" strings for translation.
10318
10319 2009-05-04  Michael Eager <eager@eagercon.com>
10320
10321         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
10322         address for DImode/DFmode only if double-precision FP regs.
10323
10324 2009-05-04  Michael Eager <eager@eagercon.com>
10325
10326         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
10327         TARGET_SINGLE_FLOAT check.
10328
10329 2009-05-04  Michael Eager <eager@eagercon.com>
10330
10331         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
10332
10333 2009-05-04  Michael Eager <eager@eagercon.com>
10334
10335         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
10336         * config/rs6000/t-xilinx: New
10337
10338 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
10339
10340         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
10341         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
10342         * gcc/explow.c (memory_address): Use target hook.
10343         * gcc/targhooks.c (default_legitimize_address): New.
10344         * gcc/targhooks.h (default_legitimize_address): New.
10345         * gcc/target.h (legitimize_address): New.
10346         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
10347         (TARGET_INITIALIZER): Include it.
10348         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
10349
10350         * config/bfin/bfin-protos.h (legitimize_address): Remove.
10351         * config/bfin/bfin.c (legitimize_address): Remove.
10352         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
10353         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
10354         Remove.
10355         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
10356         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
10357
10358         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
10359         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
10360         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
10361         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
10362         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
10363         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
10364         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
10365         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
10366         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
10367         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
10368         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
10369         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
10370         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
10371         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
10372         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
10373         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
10374         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
10375         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
10376         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
10377         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
10378         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
10379         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
10380         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
10381
10382         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
10383         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
10384         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
10385         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
10386         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
10387         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
10388         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
10389         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
10390         (thumb_legitimize_address): Delete.
10391         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
10392         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
10393         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
10394         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
10395         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
10396         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
10397         Delete.
10398         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
10399         Delete.
10400
10401         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
10402         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
10403         * config/m32r/m32r.c (m32r_legitimize_address): New.
10404         * config/m68k/m68k.c (m68k_legitimize_address): New.
10405         * config/score/score.c (score_legitimize_address): Standardize.
10406         * config/score/score3.c (score3_legitimize_address): Standardize.
10407         * config/score/score3.h (score3_legitimize_address): Adjust.
10408         * config/score/score7.c (score7_legitimize_address): Standardize.
10409         * config/score/score7.h (score7_legitimize_address): Adjust.
10410         * config/sh/sh.c (sh_legitimize_address): New.
10411         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
10412
10413         * gcc/config/s390/s390.c (legitimize_address): Rename to...
10414         (s390_legitimize_address): ... this.
10415         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
10416         (sparc_legitimize_address): ... this.
10417         * gcc/config/i386/i386.c (legitimize_address): Rename to...
10418         (ix86_legitimize_address): ... this.
10419         * gcc/config/avr/avr.c (legitimize_address): Rename to...
10420         (avr_legitimize_address): ... this.
10421         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
10422         (mn10300_legitimize_address): ... this.
10423         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
10424         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
10425         (alpha_expand_mov): Adjust call.
10426
10427         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
10428         * config/spu/spu.c (spu_legitimize_address): Likewise.
10429         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
10430         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
10431
10432 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10433
10434         * intl.c (locale_encoding, locale_utf8): New.
10435         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
10436         * intl.h (locale_encoding, locale_utf8): Declare.
10437         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
10438         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
10439         New.
10440         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
10441         argument.
10442         (pp_tree_identifier): Define to call pp_base_tree_identifier.
10443         (pp_base_tree_identifier): Declare as function.
10444         (identifier_to_locale): Declare.
10445         * Makefile.in (pretty-print.o): Update dependencies.
10446         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
10447
10448 2009-05-04  Richard Guenther  <rguenther@suse.de>
10449
10450         PR middle-end/40015
10451         * builtins.c (fold_builtin_memory_op): Do not decay to element
10452         type if the size matches the whole array.
10453
10454 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10455
10456         * expmed.c (synth_mult): When trying out a shift, pass the result
10457         of a signed shift.
10458
10459 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10460
10461         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
10462         (shiftsub1_cost): New.
10463         (init_expmed): Compute shiftsub1_cost.
10464         (synth_mult): Optimize multiplications by constants of the form
10465         -(2^^m-1) for some constant positive integer m.
10466
10467 2009-05-03  Richard Guenther  <rguenther@suse.de>
10468
10469         PR c/39983
10470         * c-typeck.c (array_to_pointer_conversion): Do not built
10471         ADDR_EXPRs of arrays of pointer-to-element type.
10472         * c-gimplify.c (c_gimplify_expr): Revert change fixing
10473         up wrong ADDR_EXPRs after-the-fact.
10474         * c-common.c (strict_aliasing_warning): Strip pointer
10475         conversions for obtaining the original type.
10476         * builtins.c (fold_builtin_memset): Handle array types.
10477         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
10478         and array types
10479
10480 2009-05-03  Richard Guenther  <rguenther@suse.de>
10481
10482         PR middle-end/23329
10483         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
10484         Do not lose casts from array types with unknown extent to array
10485         types with known extent.
10486         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
10487         alias set compatibility.
10488
10489 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10490
10491         * flags.h (extra_warnings): Delete.
10492         * toplev.c (process_options): Handle Wuninitialized here.
10493         * opts.c (extra_warnings): Delete.
10494         (set_Wextra): Delete.
10495         (common_handle_option): -Wextra can be handled automatically.
10496         * c-opts.c (c_common_handle_option): Delete obsolete code.
10497         (c_common_post_options): Simplify comment.
10498         * common.opt (W): Add Var.
10499         (Wextra): Add Var.
10500         (Wuninitialized): Initialize to -1.
10501
10502 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
10503             Richard Guenther  <rguenther@suse.de>
10504
10505         * expr.c (get_def_for_expr): New function.
10506         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
10507         SSA rather than trees.
10508         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
10509         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
10510         
10511 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
10512
10513         * c-common.c (reswords): Add _Imaginary.
10514         * c-common.c (enum rid): Add RID_IMAGINARY.
10515
10516 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
10517
10518         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
10519         Patch by Richard Guenther.
10520
10521 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
10522
10523         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
10524         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10525         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
10526         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
10527         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
10528         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
10529         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
10530         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
10531         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
10532         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
10533         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
10534         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
10535         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
10536         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
10537         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
10538         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
10539         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
10540         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
10541
10542 2009-05-02  Richard Guenther  <rguenther@suse.de>
10543
10544         PR tree-optimization/39940
10545         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
10546         doing so.
10547
10548 2009-05-02  Richard Guenther  <rguenther@suse.de>
10549
10550         PR middle-end/40001
10551         * tree-ssa.c (execute_update_addresses_taken): Properly check
10552         if we can mark a variable DECL_GIMPLE_REG_P.
10553         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
10554         back to the end of the function.
10555         (is_gimple_reg_type): Remove complex type special casing.
10556         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
10557         if not optimizing.
10558
10559 2009-05-02  Ben Elliston  <bje@au.ibm.com>
10560
10561         * doc/collect2.texi (Collect2): Document search path behaviour
10562         when configured with --with-ld.
10563
10564 2009-05-02  Jan Hubicka  <jh@suse.cz>
10565
10566         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
10567         parameter; update callers.
10568         (coalesce_cost_edge): EH edges are costier because they needs
10569         splitting even if not critical and even more costier when there are
10570         multiple EH predecestors.
10571
10572 2009-05-02  Jan Hubicka  <jh@suse.cz>
10573
10574         * except.c (remove_eh_handler_and_replace): Handle updating after
10575         removing TRY blocks.
10576
10577 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10578
10579         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
10580
10581 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
10582
10583         * varasm.c: Do not include c-pragma.h.
10584         * attribs.c: Do not incude c-common.h.
10585
10586 2009-05-01  Michael Matz  <matz@suse.de>
10587
10588         * calls.c (initialize_argument_information): Handle SSA names like
10589         decls with a non MEM_P DECL_RTL.
10590
10591 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10592
10593         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
10594         * ipa-utils.c: Likewise.
10595         * ipa-type-escape.c: Likewise.
10596         * cgraphunit.c Do not include c-common.h.
10597         * ipa-pure-const.c: Likewise.
10598         * tree-if-conv.c: Likewise.
10599         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
10600         * ipa-struct-reorg.c: Likewise.
10601         * tree-nomudflap.c: Likewise.
10602         * tree-ssa-structalias.c: Likewise.
10603
10604 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10605
10606         * store-motion.c: Many cleanups to make this pass a first-class
10607         citizen instead of an appendix to gcse load motion.  Add TODO list
10608         to make this pass faster/cleaner/better.
10609
10610         (struct ls_expr): Post gcse.c-split cleanups.
10611         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
10612         "stores" field to "avail_stores".
10613         (pre_ldst_mems): Rename to store_motion_mems.
10614         (pre_ldst_table): Rename to store_motion_mems_table.
10615         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
10616         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
10617         (ldst_entry): Rename to st_expr_entry, update users.
10618         (free_ldst_entry): Rename to free_st_expr_entry, update users.
10619         (free_ldst_mems): Rename to free_store_motion_mems, update users.
10620         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
10621         update caller.
10622         (first_ls_expr): Rename to first_st_expr, update users.
10623         (next_ls_expr): Rename to next_st_expr, update users.
10624         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
10625         fields properly for store motion instead of names inherited from load
10626         motion in gcse.c.
10627         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
10628         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
10629         are done with it.
10630
10631         (ae_kill): Rename to st_kill, update users.
10632         (ae_gen): Rename to st_avloc, update users.
10633         (transp): Rename to st_transp, update users.
10634         (pre_insert_map): Rename to st_insert_map, update users.
10635         (pre_delete_map): Rename to st_delete_map, update users.
10636         (insert_store, build_store_vectors, free_store_memory,
10637         one_store_motion_pass): Update for abovementioned changes.
10638
10639         (gcse_subst_count, gcse_create_count): Remove.
10640         (one_store_motion_pass): New statistics counters "n_stores_deleted"
10641         and "n_stores_created", local variables.
10642
10643         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
10644         use for_each_rtx.
10645
10646         (regvec, compute_store_table_current_insn): Remove.
10647         (reg_set_info, reg_clear_last_set): Remove.
10648         (compute_store_table): Use DF caches instead of local dataflow
10649         solvers.
10650
10651 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
10652
10653         * c-objc-common.c (c_tree_printer): Print identifiers with
10654         pp_identifier, not pp_string.  Mark "({anonymous})" for
10655         translation.
10656         * c-pretty-print.c (pp_c_ws_string): New.
10657         (pp_c_cv_qualifier, pp_c_type_specifier,
10658         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
10659         pp_c_storage_class_specifier, pp_c_function_specifier,
10660         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
10661         pp_c_primary_expression, pp_c_postfix_expression,
10662         pp_c_unary_expression, pp_c_shift_expression,
10663         pp_c_relational_expression, pp_c_equality_expression,
10664         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
10665         use pp_string and pp_c_ws_string in place of pp_identifier and
10666         pp_c_identifier for non-identifiers.  Mark English strings for
10667         translation.
10668         * c-pretty-print.h (pp_c_ws_string): Declare.
10669
10670 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
10671             Roland McGrath <roland@redhat.com>
10672
10673         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
10674         (ENABLE_LD_BUILDID): New configuration option.
10675         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
10676         (LINK_BUILDID_SPEC): New macro.
10677         (init_spec): If defined, prepend it between LINK_EH_SPEC and
10678         link_spec.
10679         * doc/install.texi: Document --enable-linker-build-id option.
10680         * configure: Rebuild.
10681         * config.in: Rebuild.
10682
10683 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
10684
10685         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
10686         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
10687         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
10688         MIPS_GP_SAVE_AREA_SIZE.
10689         * config/mips/mips.c (struct mips_frame_info): Update comment
10690         before arg_pointer_offset and hard_frame_pointer_offset.
10691         (mips_compute_frame_info): Update diagram before function: to
10692         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
10693         indicate the position of frame_pointer_rtx with -fstack-protector and
10694         to show args_size.  Don't allocate cprestore area for leaf functions
10695         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
10696         cprestore_size.
10697         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
10698
10699 2009-04-30  Michael Matz  <matz@suse.de>
10700
10701         PR tree-optimization/39955
10702         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
10703
10704 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10705
10706         * ira.c (setup_cover_and_important_classes):  Use safe macro
10707         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
10708         directly.
10709         * genpreds.c (write_tm_preds_h):  Output suitable definition of
10710         REG_CLASS_FOR_CONSTRAINT.
10711
10712 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10713
10714         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
10715         instead of an int.
10716         * bitmap.c (bitmap_descriptor): Likewise.
10717         * ggc-common.c (loc_descriptor): Likewise.
10718         * varray.c (varray_descriptor): Likewise.
10719         * vec.c (vec_descriptor): Likewise.
10720
10721 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10722
10723         * Makefile.in (dce.o): Add $(EXCEPT_H).
10724         * dce.c: Include except.h and delete redundant vector definitions.
10725         (deletable_insn_p): Return false for non-call insns that can throw
10726         if DF is running.
10727
10728 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10729
10730         * gcse.c (ae_gen): Remove.
10731         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
10732         and make non-static function to make it available in store-motion.c.
10733         Update call sites with search-and-replace.
10734         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
10735         extract_mentioned_regs, extract_mentioned_regs_helper,
10736         find_moveable_store, compute_store_table, load_kills_store, find_loads,
10737         store_killed_in_insn, store_killed_after, store_killed_before,
10738         build_store_vectors, insert_insn_start_basic_block, insert-store,
10739         remove_reachable_equiv_notes, replace_store_insn, delete_store,
10740         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
10741         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
10742         * store-motion.c: ...new file.  Also copy data structures from gcse.c
10743         and clean up to remove parts not used by store motion.
10744         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
10745         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
10746
10747 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10748
10749         PR target/38571
10750         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
10751         when optimizing for size.
10752
10753 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
10754
10755         * gcse.c (gcse_constant_p): Fix typo in last change.
10756
10757 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10758
10759         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
10760
10761 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
10762
10763         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
10764
10765 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
10766
10767         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
10768         CONST_HIGH_PART result.
10769
10770 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
10771
10772         * config/avr/avr.c (initial_elimination_offset): Rename to
10773         avr_initial_elimination_offset.
10774         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
10775         change return type to bool.
10776         (avr_can_eliminate): New function.
10777         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
10778         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
10779         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
10780         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
10781         avr_initial_elimination_offset.
10782         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
10783         (avr_initial_elimination_offset): Define.
10784
10785 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
10786             Steven Bosscher  <steven@gcc.gnu.org>
10787
10788         PR rtl-optimization/39938
10789         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
10790         * cfgrtl.c: Include insn-attr.h.
10791         (rest_of_pass_free_cfg): New function.
10792         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
10793         * resource.c (init_resource_info): Remove call to df_analyze.
10794
10795 2009-04-29  Richard Guenther  <rguenther@suse.de>
10796
10797         PR target/39943
10798         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
10799         allow conversion to signed integers.
10800
10801 2009-04-29  Richard Guenther  <rguenther@suse.de>
10802
10803         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
10804         shifts of floating point vectors if the shift amount is
10805         a constant multiple of the element size.
10806
10807 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
10808             Michael Matz  <matz@suse.de>
10809
10810         PR middle-end/39927
10811         PR bootstrap/39929
10812         * tree-outof-ssa.c (emit_partition_copy): New function.
10813         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10814         insert_part_to_rtx_on_edge): Perform the partition base var
10815         copy using emit_partition_copy.
10816         (insert_value_copy_on_edge): Convert constants to the right mode.
10817         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
10818         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
10819
10820 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10821
10822         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
10823         scan backwards to try to find a constant to initialize it.
10824
10825         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
10826         insn before the loop_end instruction, don't look past labels.
10827
10828 2009-04-29  Richard Guenther  <rguenther@suse.de>
10829
10830         PR middle-end/39937
10831         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
10832         loose type conversions.
10833         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
10834         stmts only if there are no uses of its definition.
10835
10836 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10837
10838         * config/bfin/bfin.h (splitting_loops): Declare.
10839         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
10840         Reorder bit definitions to be ascending.
10841         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
10842         * config/bfin/bfin.c (splitting_loops): New variable.
10843         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
10844         (struct loop_info): Remove members INIT and LOOP_INIT.
10845         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
10846         the LSETUP sequence.  Allow LC to be loaded from any register, but
10847         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
10848         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
10849         set to 1.
10850         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
10851         of reload_completed.
10852
10853         From Jie Zhang:
10854         * config/bfin/bfin.md (movsi_insn): Refine constraints.
10855
10856 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
10857
10858         * Makefile.in (PLUGIN_VERSION_H): New.
10859         (OBJS-common): Remove plugin-version.o.
10860         (plugin.o): Depend on (PLUGIN_VERSION_H).
10861         (plugin-version.o): Remove.
10862         * configure: Regenerate
10863         * configure.ac: Create plugin-version.h.
10864         * gcc-plugin.h (plugin_gcc_version): Remove.
10865         (plugin_default_version_check): Change signature.
10866         * plugin-version.c: Remove.
10867         * plugin.c: Include plugin-version.h.
10868         (str_plugin_gcc_version_name): Remove.
10869         (try_init_one_plugin): Pass gcc version to plugin_init.
10870         (plugin_default_version_check): Both gcc and plugin versions are now
10871         arguments.
10872
10873 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10874         
10875         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
10876         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
10877         Remove special case testing for last insn of inner loops. Don't fail
10878         if the loop ends with a jump, emit an extra nop instead.
10879
10880         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
10881         DREGS rather than comparing directly.  Remove code that tries to
10882         account for latencies.
10883
10884 2009-04-29  Richard Guenther  <rguenther@suse.de>
10885
10886         PR tree-optimization/39941
10887         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
10888         eliminating an indirect call.
10889
10890 2009-04-29  Richard Guenther  <rguenther@suse.de>
10891
10892         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
10893         parameter.  Allow invariants as base if !require_lvalue.
10894         (verify_gimple_assign_single): Adjust.
10895
10896 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10897
10898         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
10899         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
10900         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
10901         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
10902         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
10903         a VEC_SELECT.
10904         * config/bfin/bfin.c (bfin_expand_builtin,
10905         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
10906
10907 2009-04-28  Richard Guenther  <rguenther@suse.de>
10908
10909         * tree-vect-loop.c (get_initial_def_for_induction): Use
10910         correct types for pointer increment.
10911
10912 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10913
10914         * toplev.c (print_version): Update GMP version string calculation.
10915
10916 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10917
10918         PR rtl-optimization/39938
10919         * resource.c (init_resource_info): Add call to df_analyze.
10920
10921 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10922
10923         * config/alpha/alpha.md (usegp): Cast the result of
10924         alpha_find_lo_sum_using_gp to enum attr_usegp.
10925         * config/alpha/alpha.c (override_options): Remove end-of-structure
10926         marker element from cpu_table.  Use array size of cpu_table to handle
10927         -mcpu and -mtune options.
10928         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
10929
10930 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
10931
10932         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
10933         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
10934         tune_32 and tune_64.
10935         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10936         support on PowerPC.
10937         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
10938         * config/rs6000/option-defaults.h: ... here.  New file.
10939         (OPT_64, OPT_32): Define.
10940         (MASK_64BIT): Define to 0 if not already defined.
10941         (OPT_ARCH64, OPT_ARCH32): Define.
10942         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
10943         and tune_64.
10944
10945 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10946
10947         * config/arm/arm.c (arm_override_options): Emit error on using
10948         fpa with AAPCS.
10949
10950 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10951
10952         PR rtl-optimization/39914
10953         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
10954         registers for allocnos created from user-defined variables only
10955         when not optimizing.
10956
10957 2009-04-28  Richard Guenther  <rguenther@suse.de>
10958
10959         PR middle-end/39937
10960         * fold-const.c (fold_binary): Use distribute_real_division only
10961         on float types.
10962
10963 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
10964
10965         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
10966         add hpux-stdint.h to tm_file.
10967         (hppa[12]*-*-hpux11*): Ditto.
10968         (ia64*-*-hpux*): Ditto.
10969         * config/hpux-stdint.h: New.
10970         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
10971         __STDC_EXT__ for all compiles.
10972         * config/pa/pa-hpux.h: Ditto.
10973         * config/pa/pa-hpux10.h: Ditto.
10974         * config/pa/pa-hpux11.h: Ditto.
10975
10976 2009-04-28  Catherine Moore  <clm@codesourcery.com>
10977
10978         * debug.h (set_name): Add comment.
10979
10980 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
10981
10982         PR target/39929
10983         * config/darwin.c (machopic_gen_offset): Check
10984         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
10985         * config/arm/arm.c (require_pic_register): Likewise.
10986
10987 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
10988
10989         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
10990         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
10991         m32c_promote_prototypes): Delete.
10992
10993 2009-04-28  Michael Matz  <matz@suse.de>
10994
10995         PR middle-end/39922
10996         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
10997         constants.
10998
10999 2009-04-28  Richard Guenther  <rguenther@suse.de>
11000
11001         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
11002
11003 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11004
11005         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
11006         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
11007         * config/arm/arm-tune.md: Regenerate.
11008
11009 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
11010
11011         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
11012         block if there are complex incoming edges.
11013         (sel_merge_blocks): Remove useless assert.
11014         (sel_redirect_edge_and_branch): Check that edge was redirected.
11015         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
11016         (sel_find_rgns): Delete declaration.
11017         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
11018         the region when it is not a preheader.
11019
11020 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
11021
11022         PR c/39323
11023         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
11024
11025 2009-04-28  Richard Guenther  <rguenther@suse.de>
11026
11027         * tree.h (SSA_NAME_VALUE): Remove.
11028         (struct tree_ssa_name): Remove value_handle member.
11029         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
11030         array for jump threading.
11031         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
11032         SSA_NAME_VALUEs.
11033         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
11034         * tree-flow.h (threadedge_initialize_values): Declare.
11035         (threadedge_finalize_values): Likewise.
11036         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
11037         (SSA_NAME_VALUE): Define.
11038         (threadedge_initialize_values): New function.
11039         (threadedge_finalize_values): Likewise.
11040         * tree-ssa-dom.c (ssa_name_values): New global variable.
11041         (SSA_NAME_VALUE): Define.
11042         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
11043
11044 2009-04-28  Ira Rosen  <irar@il.ibm.com>
11045
11046         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11047         Use REPORT_VECTORIZED_LOCATIONS instead 
11048         REPORT_VECTORIZED_LOOPS.
11049         * tree-vectorizer.c (vect_verbosity_level): Make static.
11050         (vect_loop_location): Rename to vect_location.
11051         (vect_set_verbosity_level): Update comment.
11052         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
11053         and vect_location.
11054         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
11055         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
11056         instead REPORT_UNVECTORIZED_LOOPS.
11057         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
11058         and vect_loop_def to vect_external_def and vect_internal_def.
11059         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
11060         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
11061         REPORT_UNVECTORIZED_LOCATIONS.
11062         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
11063         and vect_used_in_loop and to vect_unused_in_scope and 
11064         vect_used_in_scope.
11065         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
11066         (vect_verbosity_level): Remove declaration.
11067         (vect_analyze_operations): Likewise.
11068         (vect_analyze_stmt): Declare.
11069         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
11070         REPORT_UNVECTORIZED_LOCATIONS.
11071         (vect_get_loop_niters): Fix indentation.
11072         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
11073         (vect_analyze_loop_operations): New function.
11074         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
11075         vect_analyze_operations.
11076         (vect_is_simple_reduction): Use new names.
11077         (vectorizable_live_operation, vect_transform_loop): Likewise.
11078         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
11079         to specify whether the data references can be a part of interleaving
11080         chain.
11081         (vect_analyze_data_ref_dependence): Use new names.
11082         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
11083         (vect_create_addr_base_for_vector_ref): Remove redundant code.
11084         * tree-vect-patterns.c (widened_name_p): Use new names.
11085         (vect_recog_dot_prod_pattern): Likewise.
11086         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
11087         (process_use, vect_mark_stmts_to_be_vectorized, 
11088         vect_model_simple_cost, vect_model_store_cost,
11089         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
11090         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
11091         vectorizable_operation, vectorizable_type_demotion,
11092         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
11093         vectorizable_condition): Likewise.
11094         (vect_analyze_operations): Split into vect_analyze_loop_operations
11095         and ...
11096         (vect_analyze_stmt): ... new function.
11097         (new_stmt_vec_info): Use new names.
11098         (vect_is_simple_use): Use new names and fix comment.
11099         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
11100         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
11101
11102 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
11103
11104         PR target/39911
11105         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
11106         and integer modes for x87 operands.  Do not ICE for unsupported size,
11107         generate error instead.  Generate error for unsupported operand types.
11108         ['z']: Do not handle HImode memory operands specially.  Warning
11109         for floating-point operands.  Fallthru to 'Z' for unsupported operand
11110         types.  Do not ICE for unsupported size, generate error instead.
11111         (output_387_binary_op): Use %Z to output operands.
11112         (output_fp_compare): Ditto.
11113         (output_387_reg_move): Ditto.
11114
11115 2009-04-28  Ben Elliston  <bje@au.ibm.com>
11116
11117         PR c++/35652
11118         Revert:
11119
11120         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11121
11122         * builtins.c (c_strlen): Do not warn here.
11123         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
11124         * c-common.c (pointer_int_sum): Take an explicit location.
11125         Warn about offsets out of bounds.
11126         * c-common.h (pointer_int_sum): Adjust declaration.
11127
11128 2009-04-27  Ian Lance Taylor  <iant@google.com>
11129
11130         * collect2.c (is_ctor_dtor): Change type of ret field in struct
11131         names to symkind.
11132         * dce.c (run_fast_df_dce): Change type of old_flags to int.
11133         * df-core.c (df_set_flags): Change return type to int.  Change
11134         type of old_flags to int.
11135         (df_clear_flags): Likewise.
11136         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
11137         (df_get_conditional_uses): Likewise.
11138         * df.h (df_set_flags, df_clear_flags): Update declarations.
11139         * dwarf2out.c (struct indirect_string_node): Change type of form
11140         field to enum dwarf_form.
11141         (AT_string_form): Change return type to enum dwarf_form.
11142         * fixed-value.c (fixed_compare): Add cast to enum type.
11143         * fwprop.c (update_df): Change 0 to VOIDmode.
11144         * gensupport.c: Change 0 to UNKNOWN.
11145         * gimple.h (gimple_cond_code): Add cast to enum type.
11146         * haifa-sched.c (reemit_notes): Add cast to enum type.
11147         * hooks.c (hook_int_void_no_regs): Remove function.
11148         * hooks.h (hook_int_void_no_regs): Remove declaration.
11149         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
11150         * predict.c (combine_predictions_for_insn): Add casts to enum type.
11151         * real.c (real_arithmetic): Add cast to enum type.
11152         (real_compare): Likewise.
11153         * target.h (struct gcc_target): Change return type of
11154         branch_target_register_class to enum reg_class.
11155         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
11156         default_branch_target_register_class.
11157         * targhooks.c (default_branch_target_register_class): New function.
11158         * targhooks.h (default_branch_target_register_class): Declare.
11159         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
11160         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
11161         cast to int.
11162         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
11163         ERROR_MARK.
11164         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
11165         vect_uninitialized_def.  Change 0 to ERROR_MARK.
11166         * tree-vect-stmts.c (supportable_widening_operation): Don't
11167         initialize icode1 and icode2.
11168         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
11169         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
11170         and to STD_C89.
11171         (cmn_err_flag_specs): Change 0 to STD_C89.
11172         (cmn_err_char_table): Likewise.
11173         * config/arm/arm.c (get_arm_condition_code): Change type of code
11174         to enum arm_cond_code.
11175         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
11176         (IWMMXT_BUILTIN2): Likewise.
11177         (neon_builtin_type_bits): Don't define typedef.
11178         (neon_builtin_datum): Change type of bits field to int.
11179         (arm_expand_neon_args): Add cast to enum type.
11180         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
11181         TLS_MODEL_NONE.
11182         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
11183         casts to enum type.
11184         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
11185         MIPS_FP_COND_f.
11186         * config/mips/mips.md (jal_macro): Return enum constant.
11187         (single_insn): Likewise.
11188         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
11189         CODE_FOR_nothing.
11190         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11191         casts to enum type.
11192         * config/s390/s390.c (s390_tune_flags): Change type to int.
11193         (s390_arch_flags): Likewise.
11194         (s390_handle_arch_option): Change flags field of struct pta to int.
11195         * config/s390/s390.h (s390_tune_flags): Update declaration.
11196         (s390_arch_flags): Likewise.
11197         * config/sh/sh.c (prepare_move_operands): Compare
11198         tls_symbolic_operand result with enum constant.
11199         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
11200         (sh_expand_prologue): Add cast to enum type.
11201         (sh_expand_epilogue): Likewise.
11202         (tls_symbolic_operand): Change return type to enum tls_model.
11203         (fpscr_set_from_mem): Add cast to enum type.
11204         (legitimize_pic_address): Compare tls_symbolic_operand result with
11205         enum constant.
11206         (sh_target_reg_class): Change return type to enum reg_class.
11207         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
11208         PROCESSOR_xxx.
11209         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
11210         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
11211         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
11212         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
11213         (delayed_branch, tls_call_delay): Likewise.
11214         (eligible_for_sibcall_delay): Likewise.
11215         (eligible_for_return_delay): Likewise. 
11216         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
11217         (spu_expand_builtin_1): Likewise.
11218
11219         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
11220         for all types of conversions.
11221         (output_init_element): Issue -Wc++-compat warning if needed when
11222         initializing a bitfield with enum type.
11223         * c-parser.c (c_parser_expression): Set original_type to
11224         original_type of right hand operand of comman operator.
11225
11226 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11227
11228         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
11229         grammar nits.
11230         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
11231         * doc/cpp.texi (Standard Predefined Macros)
11232         (Implementation-defined behavior): Likewise.
11233         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
11234         * doc/gimple.texi (GIMPLE Exception Handling)
11235         (@code{GIMPLE_ASSIGN}): Likewise.
11236         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
11237         * doc/invoke.texi (Warning Options, Optimize Options)
11238         (AVR Options, Darwin Options): Likewise.
11239         (Optimize Options): Reformulate -fwhole-program description.
11240         * doc/loop.texi (Lambda): Likewise.
11241         * doc/md.texi (Output Template, Define Constraints)
11242         (Standard Names, Insn Splitting): Likewise.
11243         * doc/options.texi (Option properties): Likewise.
11244         * doc/passes.texi (Tree-SSA passes): Likewise.
11245         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
11246         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
11247         (File Names and DBX): Likewise.
11248         * doc/trouble.texi (Incompatibilities): Likewise.
11249
11250 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11251
11252         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
11253         instruction is correct.
11254
11255 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
11256
11257         Allow non-constant arguments to conversion intrinsics.
11258         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
11259         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
11260         * spu.c (print_operand): Handle 'v' and 'w'.
11261         (exp2_immediate_p, spu_gen_exp2): Define.
11262         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
11263         spu_convtf_1): Update parameter descriptions.
11264         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
11265         * constraints.md ('v', 'w'): New.
11266         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
11267         Remove.
11268         (i2f, I2F): New define_mode_attr.
11269         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
11270         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
11271         fixuns_truncv4sfv4si2):  Update to use mode attribute.
11272         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
11273         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
11274         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
11275         patterns for combine.
11276
11277 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
11278
11279         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
11280         (cprop, hoist, pre, store_motion): New debug counters.
11281         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
11282         is not an RTL pass anymore.
11283         (pass_profiling): Remove extern decl for pass removed in 2005.
11284         (pass_gcse, pass_jump_bypass): Remove.
11285         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
11286         to 0 for clean state.
11287         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
11288         * cse.c (gate_handle_cse_after_global_opts,
11289         rest_of_handle_cse_after_global_opts): New functions.
11290         (pass_cse_after_global_opts): New pass, does local CSE.
11291         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
11292         (TV_CPROP): New timevar.
11293         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
11294         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
11295         (gcse_main, recompute_all_luids): Remove.
11296         (compute_hash_table_work): Call max_reg_num instead of reading
11297         max_gcse_regno.
11298         (cprop_jump): Don't set run_jump_opt_after_gcse.
11299         (constprop_register): Always allow to alter jumps.
11300         (cprop_insn): Likewise.
11301         (do_local_cprop): Likewise.
11302         (local_cprop_pass): Likewise.  Return non-zero if something changed.
11303         (cprop): Remove function, fold interesting bits into one_cprop_pass.
11304         (find_implicit_sets): Add note about missed optimization opportunity.
11305         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
11306         pass_rtl_cprop execute function.
11307         Don't bother tracking the pass number, each pass gets its own dumpfile
11308         now anyway.
11309         Always allow to alter jumpsand bypass jumps.
11310         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
11311         will just find no suitable set.
11312         (pre_edge_insert): Fix dumping, this function is for PRE only.
11313         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
11314         pass_rtl_pre execute function.
11315         (hoist_code): Return non-zero if something changed.  Keep track of
11316         substitutions and insertions for statistics gathering similar to PRE.
11317         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
11318         called from the pass_rtl_hoist execute function.  Show pass statistics.
11319         (compute_store_table): Use max_reg_num directly instead of using the
11320         formerly global max_gcse_regno.
11321         (build_store_vectors): Likewise.
11322         (replace_store_insn): Fix dumping.
11323         (store_motion): Rename to ...
11324         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
11325         pass, called from the pass_rtl_store_motion execute function.  Keep
11326         track of substitutions and insertions for statistics gathering similar
11327         to PRE.
11328         (bypass_jumps): Remove, fold interesting bits into ...
11329         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
11330         from the pass_rtl_cprop execute function.
11331         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11332         pass_jump_bypass): Remove.
11333         (gate_handle_gcse, rest_of_handle_gcse): Remove.
11334         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
11335         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
11336         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
11337         (gate_rtl_store_motion, execute_rtl_store_motion,
11338         pass_rtl_store_motion): New.
11339         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
11340         make it clear that -fcse-skip-blocks is a no-op for backward compat.
11341         * passes.c (init_optimization_passes): Remove pass_gcse and
11342         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
11343         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
11344         instead of pass_jump_bypass.
11345
11346 2009-04-27  Richard Guenther  <rguenther@suse.de>
11347
11348         PR middle-end/39928
11349         * gimplify.c (gimplify_expr): If we are required to create
11350         a temporary make sure it ends up as register.
11351
11352 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
11353
11354         PR target/39903
11355         * config/i386/i386.c (construct_container): Don't call
11356         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
11357         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
11358
11359 2009-04-27  Michael Matz  <matz@suse.de>
11360
11361         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
11362         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
11363         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
11364         (dump_replaceable_exprs): Take a bitmap.
11365         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
11366         array.
11367         (expand_gimple_basic_block): Likewise.
11368         * tree-ssa-ter.c (struct temp_expr_table_d): Make
11369         replaceable_expressions member a bitmap.
11370         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
11371         (mark_replaceable): Likewise.
11372         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
11373         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
11374
11375 2009-04-27  Richard Guenther  <rguenther@suse.de>
11376
11377         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
11378         (verify_stmts): Dispatch to gimple/type verification code.
11379         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
11380         issue with call argument types.
11381
11382 2009-04-27  Michael Matz  <matz@suse.de>
11383
11384         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
11385         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
11386         to above.
11387
11388 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
11389             Eric Botcazou  <ebotcazou@adacore.com>
11390
11391         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
11392         a label's basic block.
11393         (mark_target_live_regs): Tidy and rework obsolete comments.
11394         Change back DF problem to LIVE.  If a label starts a basic block,
11395         assume that all registers that used to be live then still are.
11396         (init_resource_info): If a label starts a basic block, set its
11397         BLOCK_FOR_INSN accordingly.
11398         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
11399
11400 2009-04-27  Richard Guenther  <rguenther@suse.de>
11401
11402         * tree-flow-inline.h (function_ann): Remove.
11403         (get_function_ann): Likewise.
11404         * tree-dfa.c (create_function_ann): Remove.
11405         * tree-flow.h (struct static_var_ann_d): Remove.
11406         (struct function_ann_d): Likewise.
11407         (union tree_ann_d): Remove fdecl member.
11408         (function_ann_t): Remove.
11409         (function_ann, get_function_ann, create_function_ann): Remove
11410         declarations.
11411
11412 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
11413
11414         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
11415
11416 2009-04-27  Jan Hubicka  <jh@suse.cz>
11417
11418         * ipa-pure-const.c (struct funct_state_d): New fields
11419         state_previously_known, looping_previously_known; remove
11420         state_set_in_source.
11421         (analyze_function): Use new fields.
11422         (propagate): Avoid assumption that state_set_in_source imply
11423         nonlooping.
11424
11425         * tree-ssa-loop-niter.c (finite_loop_p): New function.
11426         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
11427         * cfgloop.h (finite_loop_p): Declare.
11428
11429 2009-04-26  Michael Matz  <matz@suse.de>
11430
11431         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
11432
11433 2009-04-26  Michael Matz  <matz@suse.de>
11434
11435         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
11436         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
11437         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
11438         pass_mark_used_blocks): Remove.
11439         * tree-optimize.c (pass_free_datastructures,
11440         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
11441         * passes.c (init_optimization_passes): Don't call
11442         pass_mark_used_blocks, remove dead code.
11443
11444 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
11445
11446         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
11447         * tree-ssa-live.h (register_ssa_partition): Likewise.
11448
11449 2009-04-26  Michael Matz  <matz@suse.de>
11450
11451         Expand from SSA.
11452         * builtins.c (fold_builtin_next_arg): Handle SSA names.
11453         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
11454         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
11455         SSA names. 
11456         (compare_pairs): Swap cost comparison.
11457         (coalesce_ssa_name): Don't use change_partition_var.
11458         * tree-nrv.c (struct nrv_data): Add modified member.
11459         (finalize_nrv_r): Set it.
11460         (tree_nrv): Use it to update statements.
11461         (pass_nrv): Require PROP_ssa.
11462         * tree-mudflap.c (mf_decl_cache_locals,
11463         mf_build_check_statement_for): Use make_rename_temp.
11464         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
11465         * alias.c (find_base_decl): Handle SSA names.
11466         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
11467         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
11468         * rtl.h (set_reg_attrs_for_parm): Declare.
11469         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
11470         to "optimized", remove unused locals at finish.
11471         (execute_free_datastructures): Make global, call
11472         delete_tree_cfg_annotations.
11473         (execute_free_cfg_annotations): Don't call
11474         delete_tree_cfg_annotations.
11475
11476         * ssaexpand.h: New file.
11477         * expr.c (toplevel): Include ssaexpand.h.
11478         (expand_assignment): Handle SSA names the same as register variables.
11479         (expand_expr_real_1): Expand SSA names.
11480         * cfgexpand.c (toplevel): Include ssaexpand.h.
11481         (SA): New global variable.
11482         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
11483         (SSAVAR): New macro.
11484         (set_rtl): New helper function.
11485         (add_stack_var): Deal with SSA names, use set_rtl.
11486         (expand_one_stack_var_at): Likewise.
11487         (expand_one_stack_var): Deal with SSA names.
11488         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
11489         before unique numbers.
11490         (expand_stack_vars): Use set_rtl.
11491         (expand_one_var): Accept SSA names, add asserts for them, feed them
11492         to above subroutines.
11493         (expand_used_vars): Expand all partitions (without default defs),
11494         then only the local decls (ignoring those expanded already).
11495         (expand_gimple_cond): Remove edges when jumpif() expands an
11496         unconditional jump.
11497         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
11498         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
11499         SSA name.
11500         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
11501         members of SA; deal with PARM_DECL partitions here; expand
11502         all PHI nodes, free tree datastructures and SA.  Commit instructions
11503         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
11504         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
11505         info and statements at start, collect garbage at finish.
11506         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
11507         (VAR_ANN_PARTITION) Remove.
11508         (change_partition_var): Don't declare.
11509         (partition_to_var): Always return SSA names.
11510         (var_to_partition): Only accept SSA names.
11511         (register_ssa_partition): Only check argument.
11512         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
11513         member.
11514         (delete_var_map): Don't free it.
11515         (var_union): Only accept SSA names, simplify.
11516         (partition_view_init): Mark only useful SSA names as used.
11517         (partition_view_fini): Only deal with SSA names.
11518         (change_partition_var): Remove.
11519         (dump_var_map): Use ssa_name instead of partition_to_var member.
11520         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
11521         basic blocks.
11522         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
11523         (struct _elim_graph): New member const_dests; nodes member vector of
11524         ints.
11525         (set_location_for_edge): New static helper.
11526         (create_temp): Remove.
11527         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
11528         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
11529         (new_elim_graph): Allocate const_dests member.
11530         (clean_elim_graph): Truncate const_dests member.
11531         (delete_elim_graph): Free const_dests member.
11532         (elim_graph_size): Adapt to new type of nodes member.
11533         (elim_graph_add_node): Likewise.
11534         (eliminate_name): Likewise.
11535         (eliminate_build): Don't take basic block argument, deal only with
11536         partition numbers, not variables.
11537         (get_temp_reg): New static helper.
11538         (elim_create): Use it, deal with RTL temporaries instead of trees.
11539         (eliminate_phi): Adjust all calls to new signature.
11540         (assign_vars, replace_use_variable, replace_def_variable): Remove.
11541         (rewrite_trees): Only do checking.
11542         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
11543         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
11544         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
11545         contains_tree_r, MAX_STMTS_IN_LATCH,
11546         process_single_block_loop_latch, analyze_edges_for_bb,
11547         perform_edge_inserts): Remove.
11548         (expand_phi_nodes): New global function.
11549         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
11550         functions, initialize new parameter, remember partitions having a
11551         default def.
11552         (finish_out_of_ssa): New global function.
11553         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
11554         don't reset in_ssa_p here, don't disable TER when mudflap.
11555         (pass_del_ssa): Remove.
11556         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
11557         partition members.
11558         (execute_free_datastructures): Declare.
11559         * Makefile.in (SSAEXPAND_H): New variable.
11560         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
11561         * basic-block.h (commit_one_edge_insertion): Declare.
11562         * passes.c (init_optimization_passes): Move pass_nrv and
11563         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
11564         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
11565         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
11566         (redirect_branch_edge): Deal with super block when expanding, split
11567         out jump patching itself into ...
11568         (patch_jump_insn): ... here, new static helper.
11569
11570 2009-04-26  Michael Matz  <matz@suse.de>
11571
11572         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
11573         beyond num_ssa_names.
11574         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
11575         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11576
11577 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11578
11579         PR inline-asm/39543
11580         * fwprop.c (forward_propagate_asm): New function.
11581         (forward_propagate_and_simplify): Propagate also into __asm, if it
11582         doesn't increase the number of referenced registers.
11583
11584         PR c/39889
11585         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
11586
11587 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11588
11589         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
11590         note_nonlocal_vla_type for nonlocal VLAs.
11591         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
11592         contains_remapped_vars, remap_vla_decls): New functions.
11593         (convert_nonlocal_reference_stmt): If not optimizing, call
11594         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
11595         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
11596         if it wasn't found in var_map.
11597         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
11598         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
11599         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
11600         declare_vars.
11601         * gimplify.c (nonlocal_vlas): New variable.
11602         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
11603         referenced VLAs.
11604         (gimplify_body): Create and destroy nonlocal_vlas.
11605
11606         * dwarf2out.c (loc_descr_plus_const): New function.
11607         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
11608         mem_loc_descriptor, loc_descriptor_from_tree_1,
11609         descr_info_loc, gen_variable_die): Use it.
11610
11611         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
11612         !TREE_STATIC VAR_DECLs.
11613         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
11614         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
11615         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
11616         DECL_BY_REFERENCE is valid.
11617         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
11618         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
11619         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
11620         Copy DECL_BY_REFERENCE.
11621         (struct nesting_copy_body_data): New type.
11622         (nesting_copy_decl): New function.
11623         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
11624         if they have variable length.
11625
11626 2009-04-26  Michael Matz  <matz@suse.de>
11627
11628         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
11629         mark new temporaries for renaming.
11630
11631 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11632
11633         PR c/39581
11634         * c-decl.c (global_bindings_p): Return negative value.
11635         (c_variable_size): New.  Based on variable_size from
11636         stor-layout.c.
11637         (grokdeclarator): Call c_variable_size not variable_size.
11638
11639 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
11640
11641         * config/i386/i386.c (print_operand) ['z']: Fix typo.
11642
11643 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
11644
11645         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
11646         Redefine it to just use mingw/include.
11647         (ASM_SPEC): Rules for -m32 and -m64.
11648         (LINK_SPEC): Use Likewise.
11649         (SPEC_32): New define.
11650         (SPEC_64): Likewise.
11651         (SUB_LINK_SPEC): Likewise.
11652         (MULTILIB_DEFAULTS): New define.
11653         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
11654         Add multilib options.
11655         (MULTILIB_DIRNAMES): Likewise.
11656         (MULTILIB_OSDIRNAMES): Likewise.
11657         (LIBGCC): Likewise.
11658         (INSTALL_LIBGCC): Likewise.
11659
11660 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11661
11662         PR c/39556
11663         * c-tree.h (enum c_inline_static_type): New.
11664         (record_inline_static): Declare.
11665         * c-decl.c (struct c_inline_static, c_inline_statics,
11666         record_inline_static, check_inline_statics): New.
11667         (pop_file_scope): Call check_inline_statics.
11668         (start_decl): Call record_inline_static instead of pedwarning
11669         directly for static in inline function.
11670         * c-typeck.c (build_external_ref): Call record_inline_static
11671         instead of pedwarning directly for static referenced in inline
11672         function.
11673
11674 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
11675
11676         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
11677         not new but only being rescanned.
11678         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
11679         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
11680         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
11681         record_set_info, compute_set, grealloc): Remove.
11682         (recompute_all_luids): New function.
11683         (gcse_main): Don't compute sets, and don't do related memory
11684         allocations/free-ing.  If something changed before the end of the
11685         pass, update LUIDs using recompute_all_luids.
11686         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
11687         (free_gcse_mem): Don't free it either.
11688         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
11689         Use the df insn LUIDs.
11690         (load_killed_in_block): Likewise.
11691         (compute_hash_table_work): Don't compute reg_set_in_block.
11692         (compute_transp): Use DF_REG_DEF_CHAINs.
11693         (local_cprop_pass): Don't use compute_sets and related functions.
11694         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
11695         Use get_max_uid() instead of max_cuid.
11696         (insert_insn_end_basic_block, pre_insert_copy_insn,
11697         update_ld_motion_stores): Don't try to
11698         keep reg_set tables up to date.
11699         (pre_insert_copies): Use df insn LUIDs.
11700         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
11701         (reg_set_info): Don't use extra bitmap argument.
11702         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
11703         information to compute regs_set_in_block.
11704         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
11705         (bypass_jumps): Don't use compute_sets and friends.
11706
11707 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11708
11709         PR testsuite/39710
11710         * opts.c (undocumented_msg): Do not leave blank even with
11711         ENABLE_CHECKING.
11712
11713 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11714
11715         * c-decl.c (build_enumerator): Allow values folding to integer
11716         constants but not integer constant expressions with a pedwarn if
11717         pedantic.
11718
11719 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11720
11721         PR c/39582
11722         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11723         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
11724         type is an integer constant.
11725
11726 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11727
11728         PR target/39897
11729         * config/i386/i386.c (print_operand) ['z']: Revert handling of
11730         HImode operands.
11731
11732 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11733
11734         PR c/39564
11735         * c-decl.c (grokdeclarator): Diagnose declarations of functions
11736         with variably modified return type and no storage class
11737         specifiers, except for the case of nested functions.  Distinguish
11738         extern declarations of functions with variably modified return
11739         types from those of objects with variably modified types.
11740
11741 2009-04-25  Jan Hubicka  <jh@suse.cz>
11742
11743         * tree.c (list_equal_p): New function.
11744         * tree.h (list_equal_p): Declare.
11745         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11746         basic_block_def, basic_block, const_basic_block): New.
11747         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
11748         (redirect_eh_edge): New function.
11749         (make_eh_edge_update_phi): EH edges are not abnormal.
11750         * except.c: Include tree-flow.h.
11751         (list_match): New function.
11752         (eh_region_replaceable_by_p): New function.
11753         (replace_region): New function.
11754         (hash_type_list): New function.
11755         (hash_eh_region): New function.
11756         (eh_regions_equal_p): New function.
11757         (merge_peers): New function.
11758         (remove_unreachable_regions): Verify EH tree when checking;
11759         merge peers.
11760         (copy_eh_region_1): New function.
11761         (copy_eh_region): New function.
11762         (push_reachable_handler): New function.
11763         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
11764         regions without label but with live RESX.
11765         * except.h (redirect_eh_edge_to_label): New.
11766         * tree-flow.h (redirect_eh_edge): New.
11767         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11768         basic_block_def, basic_block, const_basic_block): Remove.
11769         * Makefile.in (except.o): Add dependency on tree-flow.h
11770         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
11771         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
11772         Remove.
11773
11774 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
11775
11776         PR bootstrap/39645
11777         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
11778         on the destination of memcpy.
11779
11780 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
11781
11782         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
11783         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
11784         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
11785
11786 2009-04-25  Jan Hubicka  <jh@suse.cz>
11787
11788         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
11789         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
11790         to be reached by different label than left.
11791         (update_eh_edges): Update comment; remove edge_to_remove if possible
11792         and return true if suceeded.
11793         (cleanup_empty_eh): Accept sharing map; handle shared regions.
11794         (cleanup_eh): Compute sharing map.
11795         * except.c (remove_eh_handler_and_replace): Add argument if we should
11796         update regions.
11797         (remove_unreachable_regions): Update for label sharing.
11798         (label_to_region_map): Likewise.
11799         (get_next_region_sharing_label): New function.
11800         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
11801         prev_try pointers.
11802         (remove_eh_handler): Update.
11803         (remove_eh_region_and_replace_by_outer_of): New function.
11804         * except.h (struct eh_region): Add next_region_sharing_label.
11805         (remove_eh_region_and_replace_by_outer_of,
11806         get_next_region_sharing_label): Declare.
11807         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
11808
11809 2009-04-25  Jan Hubicka  <jh@suse.cz>
11810
11811         * tree-cfg.c (split_critical_edges): Split also edges where we can't
11812         insert code even if they are not critical.
11813
11814 2009-04-25  Jan Hubicka  <jh@suse.cz>
11815
11816         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11817         (gimple_can_remove_branch_p): EH edges won't remove branch by
11818         redirection.
11819         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
11820         updating of non-abnormal EH edges.
11821         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11822         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
11823         (split_critical_edges): Split also edges where emitting code on them
11824         will lead to splitting later.
11825
11826 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11827             H.J. Lu  <hongjiu.lu@intel.com>
11828
11829         PR target/39590
11830         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
11831         the configured assembler supports fildq and fistpq mnemonics.
11832         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
11833         * configure: Regenerated.
11834         * config.in: Ditto.
11835
11836         * config/i386/i386.c (print_operand): Handle 'Z'.
11837         ['z']: Remove handling of special fild/fist suffixes.
11838         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
11839         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
11840         suffix of fild insn.
11841         (*floatsi<mode>2_vector_mixed): Ditto.
11842         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
11843         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
11844         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11845         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
11846         * config/i386/gas.h (GAS_MNEMONICS): Remove.
11847
11848 2009-04-25  Ben Elliston  <bje@au.ibm.com>
11849  
11850         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
11851         the source of a set operation.
11852
11853 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
11854
11855         * target.h (struct gcc_target): Add case_values_threshold field.
11856         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
11857         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
11858         * targhooks.c (default_case_values_threshold): New function.
11859         * targhooks.h (default_case_values_threshold): Declare function.
11860         * stmt.c (expand_case): Use case_values_threshold target hook.
11861         * expr.h (case_values_threshold): Remove declartation.
11862         * expr.c (case_values_threshold): Remove function.
11863         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
11864
11865         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
11866         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11867         (avr_case_values_threshold): Declare as static.
11868         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
11869
11870         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
11871         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11872         (mn10300_case_values_threshold): New function.
11873
11874 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11875
11876         * ira.c (setup_cover_and_important_classes): Add enum cast.
11877
11878 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
11879
11880         * genpreds.c (write_enum_constraint_num): Output definition of
11881         CONSTRAINT_NUM_DEFINED_P macro.
11882         * ira.c (setup_cover_and_important_classes): Use
11883         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
11884         
11885 2009-04-24  DJ Delorie  <dj@redhat.com>
11886
11887         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
11888         __SH2A_SINGLE_ONLY__ also.
11889
11890 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
11891
11892         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
11893         (movdf_internal): Ditto.
11894         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
11895         SFmode and DFmode constants.
11896         (ia64_print_operand): Add 'G' format for printing
11897         floating point constants.
11898
11899 2009-04-24  Richard Guenther  <rguenther@suse.de>
11900
11901         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
11902         from unsigned additions.
11903
11904 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
11905
11906         * c-typeck.c (set_init_index): Allow array designators that are
11907         not integer constant expressions with a pedwarn if pedantic.
11908
11909 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11910
11911         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
11912         zero if no overlap in nonzero bits between the operands.
11913
11914 2009-04-24  Ian Lance Taylor  <iant@google.com>
11915
11916         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
11917         (record_dead_and_set_regs): Likewise.
11918         * df.h (struct df_mw_hardreg): Change flags field to int.
11919         (struct df_base_ref): Likewise.
11920         (struct df): Change changeable_flags field to int.
11921         * df-scan.c (df_defs_record): Change clobber_flags to int.
11922         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
11923         constants rather than #define macros.
11924         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
11925         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
11926         (enum dwarf_calling_convention): Likewise.
11927         (enum dwarf_line_number_x_ops): Likewise.
11928         (enum dwarf_call_frame_info): Likewise.
11929         (enum dwarf_source_language): Likewise.
11930         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
11931         (add_calling_convention_attribute): Likewise.
11932         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
11933         (combine_comparisons): Change compcode to int.  Add cast to enum type.
11934         * genrecog.c (maybe_both_true_2): Change c to int.
11935         (write_switch): Likewise.  Add cast to enum type.
11936         * gimplify.c (gimplify_omp_for): Handle return values from
11937         gimplify_expr using MIN rather than bitwise or.
11938         (gimplify_expr): Add cast to enum type.
11939         * ipa-prop.c (update_jump_functions_after_inlining): Change
11940         IPA_BOTTOM to IPA_JF_UNKNOWN.
11941         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
11942         Add casts to enum type.
11943         (setup_cover_and_important_classes): Change cl to int.  Add casts
11944         to enum type.
11945         (setup_class_translate): Change cl and mode to int.
11946         (ira_init_once): Change mode to int.
11947         (free_register_move_costs): Likewise.
11948         (setup_prohibited_mode_move_regs): Add casts to enum type.
11949         * langhooks.c (add_builtin_function_common): Rework assertion that
11950         value fits bitfield.
11951         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
11952         * omega.c (omega_do_elimination): Avoid math on enum types.
11953         * optabs.c (expand_vec_shift_expr): Remove casts to int.
11954         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
11955         int local to handle integral_argment value.
11956         * regmove.c (try_auto_increment): Change PUT_MODE to
11957         PUT_REG_NOTE_KIND.
11958         * reload.c (push_secondary_reload): Add casts to enum type.
11959         (secondary_reload_class, find_valid_class): Likewise.
11960         * reload1.c (emit_input_reload_insns): Likewise.
11961         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
11962         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
11963         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
11964         constant.
11965         * tree.c (build_common_builtin_nodes): Add casts to enum type.
11966         * tree-complex.c (complex_lattice_t): Typedef to int rather than
11967         enum type.
11968         (expand_complex_libcall): Add casts to enum type.
11969         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
11970         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
11971         with ERROR_MARK, not NUM_TREE_CODES.
11972         (vect_create_epilog_for_reduction): Likewise.
11973         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
11974         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
11975         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
11976         enum machine_mode.
11977         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
11978         vect_unused_in_loop.  Change 0 to loop_vect.
11979         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
11980         * var-tracking.c (get_init_value): Change return type to enum
11981         var_init_status.
11982         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
11983         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
11984         arm_fp_model.
11985         (arm_override_options): Add casts to enum type.
11986         (arm_emit_tls_decoration): Likewise.
11987         * config/i386/i386.c (ix86_function_specific_restore): Add casts
11988         to enum type.
11989         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
11990         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
11991         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
11992         enum type.
11993         * config/s390/s390.c (code_for_builtin_64): Change to array of
11994         enum insn_code.
11995         (code_for_builtin_31): Likewise.
11996         (s390_expand_builtin): Change code_for_builtin to enum insn_code
11997         const *.
11998         * config/sparc/sparc.c (sparc_override_options): Change value
11999         field in struct code_model to enum cmodel.  In initializer change
12000         0 to NULL and add cast to enum type.
12001
12002         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
12003         Change all callers.  Issue a -Wc++-compat warning using
12004         lhs_origtype if necessary.
12005         (convert_for_assignment): Issue -Wc++-compat warnings about
12006         invalid conversions to enum type on assignment.
12007         * c-common.h (build_modify_expr): Update declaration.
12008
12009 2009-04-24  Nick Clifton  <nickc@redhat.com>
12010
12011         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
12012         (function_arg_advance): Likewise.
12013         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
12014         5th alternative.
12015
12016 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
12017
12018         * config/s390/constraints.md ('I', 'J'): Fix condition.
12019
12020 2009-04-24  Diego Novillo  <dnovillo@google.com>
12021
12022         * gengtype-parse.c (parse_error): Add newline after message.
12023
12024 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
12025
12026         * config/i386/sse.md (avxmodesuffixs): Removed.
12027         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
12028         (*avx_pinsr<ssevecsize>): This.
12029
12030 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
12031
12032         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
12033         follow chains of regs with a single definition, and allow expressions
12034         that are function_invariant_p.
12035         (simple_rhs_p): Allow expressions that are function_invariant_p.
12036
12037 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
12038
12039         PR middle-end/39867
12040         * fold-const.c (fold_cond_expr_with_comparison): When folding
12041         > and >= to MAX, make sure the MAX uses the same type as the
12042         comparison's operands.
12043
12044 2009-04-24  Nick Clifton  <nickc@redhat.com>
12045
12046         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
12047         addressing for DImode accesses.
12048         (frv_print_operand_address): Handle PLUS case.
12049         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
12050
12051 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
12052
12053         PR rtl-optimization/39794
12054         * alias.c (canon_true_dependence): Add x_addr argument.
12055         * rtl.h (canon_true_dependence): Adjust prototype.
12056         * cse.c (check_dependence): Adjust canon_true_dependence callers.
12057         * cselib.c (cselib_invalidate_mem): Likewise.
12058         * gcse.c (compute_transp): Likewise.
12059         * dse.c (scan_reads_nospill): Likewise.
12060         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
12061         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
12062         canon_base_addr of the group, plus optional offset.
12063         (struct group_info): Rename canon_base_mem to
12064         canon_base_addr.
12065         (get_group_info): Set canon_base_addr to canon_rtx of base, not
12066         canon_rtx of base_mem.
12067
12068 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
12069
12070         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12071         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
12072
12073 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12074
12075         * config/spu/spu-builtins.h: Delete file.
12076
12077         * config/spu/spu.h (enum spu_builtin_type): Move here from
12078         spu-builtins.h.
12079         (struct spu_builtin_description): Likewise.  Add GTY marker.
12080         Do not use enum spu_function_code or enum insn_code.
12081         (spu_builtins): Add extern declaration.
12082
12083         * config/spu/spu.c: Do not include "spu-builtins.h".
12084         (enum spu_function_code, enum spu_builtin_type_index,
12085         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
12086         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
12087         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
12088         unsigned_V2DI_type_node): Move here from spu-builtins.h.
12089         (spu_builtin_types): Make static.  Add GTY marker.
12090         (spu_builtins): Add extern declaration with GTY marker.
12091         Include "gt-spu.h".
12092
12093         * config/spu/spu-c.c: Do not include "spu-builtins.h".
12094         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
12095         Check programmatically whether all parameters are scalar.
12096
12097         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
12098
12099 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12100
12101         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
12102         assignment from the constructor either if the target is volatile.
12103
12104 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
12105
12106         * config/arm/arm.md (insv): Do not share operands[0].
12107
12108 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
12109
12110         * config/vxlib-tls.c (active_tls_threads): Delete.
12111         (delete_hook_installed): New.
12112         (tls_delete_hook): Don't delete the delete hook.
12113         (tls_destructor): Delete it here.
12114         (__gthread_set_specific): Adjust installing the delete hook.
12115         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
12116         __gthread_leave_tsd_dtor_context.
12117
12118 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
12119
12120         * c-format.c (gcc_tdiag_char_table): Add support for %E.
12121
12122 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
12123
12124         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
12125         enum type.
12126         (alpha_rtx_costs): Ditto.
12127         (emit_unlikely_jump): Use add_reg_note.
12128         (emit_frame_store_1): Ditto.
12129         (alpha_expand_prologue): Ditto.
12130         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12131         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
12132
12133 2009-04-23  Nick Clifton  <nickc@redhat.com>
12134
12135         * config/v850/v850.md (epilogue): Remove suppressed code.
12136         (return): Rename to return_simple and remove test of frame size.
12137         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
12138         to gen_return_simple.
12139
12140 2009-04-22  Jing Yu  <jingyu@google.com>
12141
12142         PR testsuite/39781
12143         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
12144
12145 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12146
12147         PR C/31499
12148         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
12149         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
12150         value is a VECTOR_CST, the element type is the element type of the
12151         vector.
12152
12153 2009-04-22  DJ Delorie  <dj@redhat.com>
12154
12155         * config/m32c/m32c.h: Update GTY annotations to new syntax.
12156
12157 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
12158
12159         * alias.c (find_base_term): Move around LO_SUM case, so that
12160         CONST falls through into PLUS/MINUS handling.
12161
12162         PR c/39855
12163         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
12164         into 0, use omit_one_operand.
12165
12166 2009-04-23  Ben Elliston  <bje@au.ibm.com>
12167
12168         * config/rs6000/linux-unwind.h (get_regs): Remove type
12169         puns. Change the type of `pc' to an array of unsigned ints and
12170         update all users.  Constify frame24.
12171
12172 2009-04-22  DJ Delorie  <dj@redhat.com>
12173
12174         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
12175         declarations before code.
12176         (current_function_special_page_vector): Likewise.
12177         (m32c_expand_insv): Silence a warning.
12178
12179 2009-04-21  Taras Glek  <tglek@mozilla.com>
12180
12181         * alias.c: Update GTY annotations to new syntax.
12182         * basic-block.h: Likewise.
12183         * bitmap.h: Likewise.
12184         * c-common.h: Likewise.
12185         * c-decl.c: Likewise.
12186         * c-parser.c: Likewise.
12187         * c-pragma.c: Likewise.
12188         * c-tree.h: Likewise.
12189         * cfgloop.h: Likewise.
12190         * cgraph.h: Likewise.
12191         * config/alpha/alpha.c: Likewise.
12192         * config/arm/arm.h: Likewise.
12193         * config/avr/avr.h: Likewise.
12194         * config/bfin/bfin.c: Likewise.
12195         * config/cris/cris.c: Likewise.
12196         * config/darwin.c: Likewise.
12197         * config/frv/frv.c: Likewise.
12198         * config/i386/i386.c: Likewise.
12199         * config/i386/i386.h: Likewise.
12200         * config/i386/winnt.c: Likewise.
12201         * config/ia64/ia64.h: Likewise.
12202         * config/iq2000/iq2000.c: Likewise.
12203         * config/mips/mips.c: Likewise.
12204         * config/mmix/mmix.h: Likewise.
12205         * config/pa/pa.c: Likewise.
12206         * config/pa/pa.h: Likewise.
12207         * config/rs6000/rs6000.c: Likewise.
12208         * config/s390/s390.c: Likewise.
12209         * config/sparc/sparc.c: Likewise.
12210         * config/xtensa/xtensa.c: Likewise.
12211         * cselib.h: Likewise.
12212         * dbxout.c: Likewise.
12213         * dwarf2out.c: Likewise.
12214         * except.c: Likewise.
12215         * except.h: Likewise.
12216         * fixed-value.h: Likewise.
12217         * function.c: Likewise.
12218         * function.h: Likewise.
12219         * gimple.h: Likewise.
12220         * integrate.c: Likewise.
12221         * optabs.c: Likewise.
12222         * output.h: Likewise.
12223         * real.h: Likewise.
12224         * rtl.h: Likewise.
12225         * stringpool.c: Likewise.
12226         * tree-data-ref.c: Likewise.
12227         * tree-flow.h: Likewise.
12228         * tree-scalar-evolution.c: Likewise.
12229         * tree-ssa-address.c: Likewise.
12230         * tree-ssa-alias.h: Likewise.
12231         * tree-ssa-operands.h: Likewise.
12232         * tree.c: Likewise.
12233         * tree.h: Likewise.
12234         * varasm.c: Likewise.
12235         * varray.h: Likewise.
12236         * vec.h: Likewise.
12237         * coretypes.h: Do not define GTY macro if it is already defined.
12238         * doc/gty.texi: Update GTY documentation to new syntax.
12239         * gengtype-lex.l: Enforce attribute-like syntax for GTY
12240         annotations on structs.
12241         * gengtype-parse.c: Likewise.
12242
12243 2009-04-22  Mark Heffernan  <meheff@google.com>
12244
12245         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
12246
12247 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
12248
12249         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
12250         where appropriate.
12251
12252 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
12253
12254         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
12255         the same as a PLUS without a shift.  Increase the cost of a
12256         CONST_INT in MULT.
12257
12258 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12259
12260         * Makefile.in: Update dependencies.
12261         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
12262         * errors.h: Remove bogus comment about compatibility.
12263         (warning): Update declaration.
12264         * genautomata.c: Update all calls to warning.
12265         * gimple.c: Do not include errors.h. Include toplev.h.
12266         * tree-ssa-structalias.c: Do not include errors.h.
12267         * omega.c: Likewise.
12268         * tree-ssa-reassoc.c: Likewise.
12269         * config/spu/spu-c.c: Likewise.
12270         * config/spu/t-spu-elf: Update dependencies.
12271
12272 2009-04-22  Richard Guenther  <rguenther@suse.de>
12273
12274         PR tree-optimization/39824
12275         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
12276         make sure the types are compatible.
12277
12278 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12279
12280         PR c++/14875
12281         * c-common.c (c_parse_error): Take a token_flags parameter.
12282         Use token_type for the token type instead.
12283         Pass token_flags to cpp_type2name.
12284         * c-common.h (c_parse_error): Update declaration.
12285         * c-parser.c (c_parser_error): Pass 0 as token flags.
12286
12287 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
12288
12289         PR rtl-optimization/39580
12290         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
12291         
12292 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12293
12294         * function.c (expand_function_end): Do not emit a jump to the "naked"
12295         return label for fall-through returns.
12296         * except.c (sjlj_emit_function_exit): Always place the call to the
12297         unregister function at the location installed by expand_function_end.
12298
12299 2009-04-22  Richard Guenther  <rguenther@suse.de>
12300
12301         PR tree-optimization/39845
12302         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
12303         (gen_inbound_check): Likewise.
12304
12305 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
12306
12307         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
12308         padding for PPC.
12309         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
12310         * config/vxlib.c (__gthread_once): Add race guard for PPC.
12311
12312 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12313
12314         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
12315         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
12316         shift counts to avoid out-of-bounds array accesses.
12317
12318 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12319
12320         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
12321         (Pmode): Move above.
12322
12323 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
12324
12325         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
12326         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
12327         GET_CODE macro.  Use IN_RANGE macro where appropriate.
12328         * config/alpha/alpha.h: Ditto.
12329         * config/alpha/alpha.md: Ditto.
12330         * config/alpha/constraints.md: Ditto.
12331         * config/alpha/predicates.md: Ditto.
12332         
12333 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12334
12335         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
12336         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12337         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12338         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12339         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12340         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12341         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12342         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12343         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12344         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12345         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12346         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12347         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12348         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12349         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12350         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12351         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12352         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12353         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12354         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12355         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12356         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12357         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12358         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12359         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12360         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12361         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12362
12363 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12364
12365         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
12366         references from comments.
12367         * cfgbuild.c: (count_basic_blocks): Delete.
12368         (find_basic_blocks_1): Delete.
12369         (find_basic_blocks): Delete.
12370         * except.c (finish_eh_generation): Make static.  Move comment from
12371         except.h here.  Remove find_basic_blocks references from comments.
12372         * except.h (finish_eh_generation): Delete.
12373         * basic-block.h (find_basic_blocks): Delete.
12374         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
12375
12376 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
12377
12378         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
12379         (sdbout_parms):  Likewise.
12380
12381 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12382
12383         * config/sh/sh.c (prepare_cbranch_operands): Use
12384         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
12385         (expand_cbranchdi4): Likewise.
12386         (from_compare): Add cast to enum type.
12387         (expand_cbranchsi4): Use add_reg_note.
12388         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
12389         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
12390         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
12391         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12392         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
12393         instead of CODE_FOR_nothing.
12394         (cbranchdi4): Likewise.  Fix the order of arguments for
12395         gen_rtx_fmt_ee.
12396         (push_fpscr): Use add_reg_note.
12397         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
12398         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
12399         
12400 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
12401
12402         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
12403         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12404         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12405         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
12406         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
12407         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
12408         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
12409         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
12410         config/alpha/x-vms, config/arc/t-arc,
12411         config/arm/README-interworking, config/arm/arm-c.c,
12412         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
12413         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
12414         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
12415         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
12416         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
12417         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
12418         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
12419         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
12420         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
12421         config/cris/t-elfmulti, config/crx/t-crx,
12422         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
12423         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
12424         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
12425         config/h8300/t-h8300, config/i386/athlon.md,
12426         config/i386/darwin-libgcc.10.4.ver,
12427         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
12428         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
12429         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
12430         config/i386/t-linux64, config/i386/t-nwld,
12431         config/i386/t-rtems-i386, config/i386/t-sol2-10,
12432         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
12433         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
12434         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
12435         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
12436         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
12437         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
12438         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
12439         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
12440         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
12441         config/m68k/t-uclinux, config/mcore/t-mcore,
12442         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
12443         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
12444         config/mips/crtn.asm, config/mips/irix-crti.asm,
12445         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
12446         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
12447         config/mips/mips-fixed.md, config/mips/sb1.md,
12448         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
12449         config/mips/t-iris6, config/mips/t-isa3264,
12450         config/mips/t-libgcc-mips16, config/mips/t-linux64,
12451         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
12452         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
12453         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
12454         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
12455         config/mn10300/t-linux, config/mn10300/t-mn10300,
12456         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
12457         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
12458         config/picochip/libgccExtras/clzsi2.asm,
12459         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
12460         config/rs6000/darwin-libgcc.10.4.ver,
12461         config/rs6000/darwin-libgcc.10.5.ver,
12462         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
12463         config/rs6000/t-aix43, config/rs6000/t-aix52,
12464         config/rs6000/t-darwin, config/rs6000/t-fprules,
12465         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
12466         config/rs6000/t-lynx, config/rs6000/t-netbsd,
12467         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
12468         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
12469         config/rs6000/t-rtems, config/rs6000/t-spe,
12470         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
12471         config/score/t-score-elf, config/sh/divcost-analysis,
12472         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
12473         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
12474         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
12475         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
12476         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
12477         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
12478         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
12479         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
12480         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
12481         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
12482         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
12483         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
12484         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
12485         limitx.h, version.c, xcoff.h: Add copyright and license notices.
12486         * config/h8300/genmova.sh: Include copyright and license notices
12487         in generated output.
12488         * config/h8300/mova.md: Regenerate.
12489         * doc/install.texi2html: Include word "Copyright" in copyright
12490         notice and use name "Free Software Foundation, Inc.".
12491         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12492         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12493         ChangeLog-2007, ChangeLog-2008: Correct dates.
12494
12495 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12496
12497         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
12498         NE_EXPR operations as well.
12499         * c-parser.c (c_parser_condition): Do not set location information on
12500         the condition.
12501         (c_parser_conditional_expression): Likewise.
12502         (c_parser_binary_expression): Set location information on operators.
12503         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
12504         TRUTH_NOT_EXPR has been folded.
12505         * fold-const.c (fold_truth_not_expr): Copy location information from
12506         the incoming expression to the outgoing one.
12507         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
12508         recursive calls on the LHS of the operator but pass that of the
12509         operator to recursive calls on the RHS of the operator.  Set it
12510         on the COND_EXPR.
12511         (shortcut_cond_expr): Set the locus of the operator on the second
12512         COND_EXPR and that of the expression on the first in degenerate cases.
12513         Pass the locus of the expression to calls to shortcut_cond_r.
12514         Set the locus of the 'then' block on the associated jump, if any.
12515         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
12516         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
12517         expression to call to gimplify_boolean_expr.
12518
12519 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
12520
12521         * config.gcc: Add additional configuration for
12522         i686-w64-mingw* and x86_64-w64-mingw* triplet.
12523         * config/i386/mingw-w64.h: New mingw-w64 specific header.
12524         (CPP_SPEC): Redefine for allowing -municode option.
12525         (STARTFILE_SPEC): Likewise.
12526         * config/i386/t-mingw-w64: New.
12527         * config/i386/mingw-w64.opt: New.
12528         (municode): Add new target option.
12529         * doc/invoke.texi (municode): Add documentation for new option.
12530
12531 2009-04-21  Ian Lance Taylor  <iant@google.com>
12532
12533         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12534         Correct test for number of arguments.
12535         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12536
12537 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
12538
12539         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
12540         argument of emit_library_call.
12541
12542 2009-04-21  Richard Guenther  <rguenther@suse.de>
12543
12544         PR middle-end/39829
12545         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
12546         inside VIEW_CONVERT_EXPRs.
12547
12548 2009-04-21  Martin Jambor  <mjambor@suse.cz>
12549
12550         * tree-switch-conversion.c (build_constructors): Split a long line.
12551         (constructor_contains_same_values_p): New function.
12552         (build_one_array): Create assigns of constants if possible, do not
12553         call mark_sym_for_renaming, call update_stmt.
12554         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
12555         make_rename_temp.  Do not call mark_symbols_for_renaming, call
12556         update_stmt.
12557         (gen_def_assigns): Do not call mark_symbols_for_renaming or
12558         find_new_referenced_vars, call update_stmt.
12559         (gen_inbound_check): Use create_tmp_var and create ssa names manually
12560         instead of calling make_rename_temp.  Do not call
12561         find_new_referenced_vars or mark_symbols_for_renaming, call
12562         update_stmt.
12563
12564 2009-04-21  Richard Guenther  <rguenther@suse.de>
12565
12566         PR tree-optimization/39827
12567         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
12568         (tree_ssa_phiprop): Pass the correct array size.
12569
12570 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
12571
12572         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
12573
12574 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12575
12576         PR 16202
12577         * c-typeck.c (lvalue_p): Move declaration ...
12578         * c-common.h (lvalue_p): ... to here.
12579         * c-common.c (candidate_equal_p): New.
12580         (add_tlist): Use it.
12581         (merge_tlist): Use it.
12582         (warn_for_collisions_1): Likewise.
12583         (warning_candidate_p): Accept more candidates.
12584         (verify_tree): A warning candidate can be an expression. Use
12585         candidate_equal_p.
12586
12587 2009-04-21  Ben Elliston  <bje@au.ibm.com>
12588
12589         PR target/5267
12590         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12591         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
12592         options.  Remove -mcall-solaris documentation.
12593
12594 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12595
12596         PR c++/13358
12597         * doc/invoke.texi (-Wlong-long): Update description.
12598         * c-lex (interpret_integer): Only warn if there was no previous
12599         overflow and -Wlong-long is enabled.
12600         * c-decl.c (declspecs_add_type): Drop redundant flags.
12601         * c.opt (Wlong-long): Init to -1.
12602         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
12603         and front-end warn_long_long. Wlong-long only depends on other
12604         flags if it is uninitialized.
12605         * c-parser.c (disable_extension_diagnostics): warn_long_long is
12606         the same for CPP and FE.
12607         (restore_extension_diagnostics): Likewise.
12608
12609 2009-04-20  Ian Lance Taylor  <iant@google.com>
12610
12611         Fix enum conversions which are invalid in C++:
12612         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
12613         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
12614         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
12615         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
12616         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
12617         (dbxout_parms): Likewise.
12618         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
12619         (df_clear_flags): Likewise.
12620         * df-problems.c (df_rd_bb_local_compute_process_def): Change
12621         top_flag parameter to int.
12622         (df_chain_create_bb_process_use): Likewise.
12623         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
12624         Remove cast.
12625         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
12626         (df_ref_create_structure, df_def_record_1): Likewise.
12627         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
12628         (df_notes_rescan): Change 0 to VOIDmode in function call.
12629         (df_get_call_refs, df_insn_refs_collect): Likewise.
12630         (df_bb_regs_collect): Likewise.
12631         (df_entry_block_defs_collect): Likewise.
12632         (df_exit_block_uses_collect): Likewise.
12633         * df.h: Update declarations.
12634         * double-int.c (double_int_divmod): Add cast to enum type.
12635         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
12636         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
12637         (based_loc_descr): Likewise.
12638         (loc_descriptor_from_tree_1): Change first_op and second_op to
12639         enum dwarf_location_atom.  Add cast to enum type.
12640         * expmed.c (init_expmed): Change 0 to SET in function call.
12641         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
12642         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
12643         (do_store_flag): Likewise.
12644         * fixed-value.h (struct fixed_value): Change mode to enum
12645         machine_mode.
12646         * function.c (assign_parms): Change 0 to VOIDmode in function call.
12647         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
12648         function call.
12649         (insert_insn_decl, insert_decl, insert_state): Likewise.
12650         (automata_list_finish): Likewise.
12651         * genrecog.c (process_define_predicate): Add cast to enum type.
12652         * gensupport.c (init_predicate_table): Add cast to enum type.
12653         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
12654         function call.
12655         (gimple_build_call_1, gimple_build_label): Likewise.
12656         (gimple_build_goto, gimple_build_asm_1): Likewise.
12657         (gimple_build_switch_1, gimple_build_cdt): Likewise.
12658         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
12659         (enum fallback): Rename from enum fallback_t.
12660         (fallback_t): Typedef as int.
12661         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
12662         GSI_SAME_STMT in function call.
12663         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
12664         enum type.
12665         (setup_reg_class_relations): Likewise.
12666         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
12667         (setup_prohibited_class_mode_regs): Add cast to enum type.
12668         (setup_prohibited_mode_move_regs): Likewise.
12669         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
12670         (record_address_regs): Change i to enum reg_class.
12671         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
12672         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
12673         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
12674         (GET_MODE_2XWIDER_MODE): Likewise.
12675         (GET_CLASS_NARROWEST_MODE): Likewise.
12676         * omp-low.c (expand_omp_for): Add cast to enum type.
12677         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
12678         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
12679         * postreload.c (reload_cse_simplify_operands): Change rclass local
12680         to enum reg_class.
12681         * predict.c (combine_predictions_for_insn): Change best_predictor
12682         and predictor to enum br_predictor.
12683         (combine_predictions_for_bb): Likewise.
12684         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
12685         use SET_PREDICT_EXPR_OUTCOME.
12686         * real.c (real_arithmetic): Change icode to code in function call.
12687         * reginfo.c (init_move_cost): Add casts to enum type.
12688         (init_reg_sets_1, init_fake_stack_mems): Likewise.
12689         * regmove.c (regclass_compatible_p): Change class0 and class1 to
12690         enum reg_class.
12691         * reload.c (find_valid_class): Add casts to enum type.
12692         (push_reload): Change 0 to NO_REGS in function call.
12693         (find_reloads): Change this_alternative to array of enum
12694         reg_class.  Remove some now-unnecessary casts.
12695         (make_memloc): Change 0 to VOIDmode in function call.
12696         * reload1.c (reload): Change 0 to VOIDmode in function call.
12697         (eliminate_regs_1, elimination_effects): Likewise.
12698         (eliminate_regs_in_insn): Likewise.
12699         (emit_input_reload_insns): Add cast to enum type.
12700         (delete_output_reload): Change 0 to VOIDmode in function call.
12701         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
12702         to enum type in function call.
12703         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
12704         (SET_PREDICT_EXPR_OUTCOME): Define.
12705         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
12706         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
12707         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
12708         (dump_function): Likewise.
12709         * tree-dump.h: Update declarations.
12710         * tree-pass.h: Update declarations.
12711         * varasm.c (assemble_integer): Change mclass to enum mode_class.
12712         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
12713         enum type.
12714         (arm_rtx_costs_1): Correct parenthesization.
12715         (arm_rtx_costs): Add casts to enum type.
12716         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
12717         (vfp_emit_fstmd): Use add_rg_note.
12718         (emit_multi_reg_push, emit_sfm): Likewise.
12719         (thumb_set_frame_pointer): Likewise.
12720         (arm_expand_prologue): Likewise.
12721         (arm_regno_class): Change return type to enum reg_class.
12722         (thumb1_expand_prologue): Use add_reg_note.
12723         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
12724         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
12725         in function call.
12726         * config/arm/gentune.sh: Add cast to enum type.
12727         * config/arm/arm-tune.md: Rebuild.
12728         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
12729         (ix86_split_fp_branch, predict_jump): Likewise.
12730         (ix86_expand_multi_arg_builtin): Change sub_code from enum
12731         insn_code to enum rtx_code.
12732         (ix86_builtin_vectorized_function): Add cast to enum type.
12733         * config/i386/i386.md (truncdfsf2): Change slot to enum
12734         ix86_stack_slot.
12735         (truncxf<mode>2, isinf<mode>2): Likewise.
12736         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
12737         enum type.
12738         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
12739         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
12740         (insert_bundle_state): Change 1 to INSERT in function call.
12741         (ia64_add_bundle_selector_before): Likewise.
12742         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
12743         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
12744         (restore_stack_nonlocal): Likewise.
12745         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
12746         function call.
12747         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
12748         function call.
12749         (mips_rtx_costs): Likewise.
12750         (mips_override_options): Add casts to enum type.
12751         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
12752         in function call.
12753         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
12754         (store_reg, set_reg_plus_d): Likewise.
12755         (hppa_expand_prologue, hppa_profile_hook): Likewise.
12756         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12757         cast to enum type.
12758         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
12759         function call.
12760         (emit_unlikely_jump): Use add_reg_note.
12761         (rs6000_emit_allocate_stack): Likewise.
12762         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
12763         (output_toc): Change 1 to INSERT in function call.
12764         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
12765         (rs6000_initialize_trampoline): Likewise.
12766         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
12767         function call.
12768         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
12769         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
12770         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
12771         (save_gprs): Use add_reg_note.
12772         (s390_emit_prologue): Likewise.
12773         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12774         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
12775         (sparc_fold_builtin): Add cast to enum type.
12776         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
12777         enum insn_code.
12778         (spu_expand_prologue): Use add_reg_note.
12779         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
12780
12781 2009-04-20  Ian Lance Taylor  <iant@google.com>
12782
12783         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
12784         (c_parser_postfix_expression_after_primary): Get VEC for list of
12785         arguments.  Get original types of arguments.  Call
12786         build_function_call_vec.
12787         (cached_expr_list_1, cached_expr_list_2): New static variables.
12788         (c_parser_expr_list): Change return type to VEC *.  Add
12789         p_orig_types parameter.  Change all callers.
12790         (c_parser_release_expr): New static function.
12791         (c_parser_vec_to_tree_list): New static function.
12792         * c-typeck.c (build_function_call): Rewrite to build a VEC and
12793         call build_function_call_vec.
12794         (build_function_call_vec): New function, based on old
12795         build_function_call.
12796         (convert_arguments): Remove nargs and argarray parameters.  Change
12797         values to a VEC.  Add origtypes parameter.
12798         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
12799         (convert_for_assignment): Add origtype parameter.  Change all
12800         callers.  If warn_cxx_compat, check for conversion to an enum
12801         type when calling a function.
12802         (store_init_value): Add origtype parameter.  Change all callers.
12803         (digest_init): Likewise.
12804         (struct init_node): Add origtype field.
12805         (add_pending_init): Add origtype parameter.  Change all callers.
12806         (output_init_element): Likewise.
12807         (output_pending_init_elements): Pass origtype from init_node to
12808         output_init_element.
12809         (process_init_element): Pass origtype from c_expr to
12810         output_init_element.
12811         (c_finish_return): Add origtype parameter.  Change all callers.
12812         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
12813         caller.
12814         (sync_resolve_params): Likewise.
12815         (sync_resolve_return): Change params to first_param.  Change caller.
12816         (resolve_overloaded_builtins): Change params to VEC *.  Change
12817         callers.  Save first parameter around call to build_function_call_vec.
12818         * c-decl.c (finish_decl): Add origtype parameter.  Change all
12819         callers.  Call build_function_call_vec rather than
12820         build_function_call for cleanup.
12821         * c-tree.h: Update declarations.
12822         * c-common.h: Update declarations.
12823         * stub-objc.c (objc_rewrite_function_call): Change parameter from
12824         params to first_param.
12825         * target.h (struct gcc_target): Change resolve_overloaded_builtin
12826         params parameter from tree to void *.
12827         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12828         Change arglist parameter to have type void *, and to be a pointer
12829         to a VEC.
12830         * config/rs6000/rs6000-protos.h
12831         (altivec_resolve_overloaded_builtin): Update declaration.
12832         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
12833         fnargs parameter to have type void *, and to be a pointer to a
12834         VEC.  Call build_function_call_vec instead of
12835         build_function_call.
12836         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
12837
12838 2009-04-20  Joey Ye  <joey.ye@intel.com>
12839             Xuepeng Guo  <xuepeng.guo@intel.com>
12840             H.J. Lu  <hongjiu.lu@intel.com>
12841
12842         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
12843
12844         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
12845         (IX86_LEA_PRIORITY): Likewise.
12846         (distance_non_agu_define): New function.
12847         (distance_agu_use): Likewise.
12848         (ix86_lea_for_add_ok): Likewise.
12849         (ix86_dep_by_shift_count): Likewise.
12850
12851         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
12852         should split for LEA.
12853
12854         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
12855         function.
12856         (ix86_dep_by_shift_count): Likewise.
12857
12858 2009-04-20  Richard Guenther  <rguenther@suse.de>
12859
12860         * expr.c (handled_component_p): Move ...
12861         * tree.h (handled_component_p): ... here.
12862         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
12863         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
12864         and REALPART_EXPR to be in one group.
12865
12866 2009-04-20  Richard Guenther  <rguenther@suse.de>
12867
12868         * basic-block.h (get_all_dominated_blocks): Declare.
12869         * dominance.c (get_all_dominated_blocks): New function.
12870         * tree-cfg.c (get_all_dominated_blocks): Remove.
12871         (remove_edge_and_dominated_blocks): Adjust.
12872         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
12873         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
12874         instead of recursing.
12875
12876 2009-04-20  Doug Kwan  <dougkwan@google.com>
12877
12878         * cgraph.h (cgraph_node_ptr): New type for vector functions.
12879         (struct cgraph_node_set_def): New type.
12880         (cgraph_node_set) New type. Also declare vector functions.
12881         (struct cgraph_node_set_element_def): New type.
12882         (cgraph_node_set_element): Ditto.
12883         (cgraph_node_set_iterator): New iterator type.
12884         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
12885         cgraph_node_set_remove, dump_cgraph_node_set,
12886         debug_cgraph_node_set): New prototypes.
12887         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
12888         cgraph_node_set_size): New inlines.
12889         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
12890         including cgraph.h.
12891         (struct ipa_opt_pass): Add struct cgraph_node_set_def
12892         argument to function 'write_summary'.
12893         * ipa.c: Include ggc.h.
12894         (hash_cgraph_node_set_element,
12895         eq_cgraph_node_set_element, cgraph_node_set_new,
12896         cgraph_node_set_add, cgraph_node_set_remove,
12897         cgraph_node_set_find, dump_cgraph_node_set,
12898         debug_cgraph_node_set): New functions.
12899         * Makefile.in (ipa.o): Add dependency on GGC_H.
12900
12901 2009-04-20  Ira Rosen  <irar@il.ibm.com>
12902
12903         PR tree-optimization/39675
12904         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
12905         check of the return code of vect_schedule_slp. Check that
12906         stmt_vec_info still exists for the statement, before checking its
12907         vectorization type.
12908
12909 2009-04-20  Michael Matz  <matz@suse.de>
12910
12911         * Makefile.in (generated_files): Take out $(simple_generated_c).
12912
12913 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
12914
12915         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
12916         (UINTPTR_TYPE):  Likewise.
12917
12918 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12919
12920         PR c/37481
12921         * c-typeck.c (digest_init): Check for initializing an array with a
12922         string literal.
12923
12924 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12925
12926         PR c/19771
12927         * c-semantics.c (pop_stmt_list): Propagate
12928         STATEMENT_LIST_HAS_LABEL to parent statement list.
12929
12930 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
12931
12932         * config/mips/mips.h (mips_tune_attr): New macro.
12933         * config/mips/mips.md (cpu): Use it.
12934
12935 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12936
12937         PR c/38243
12938         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
12939         declaring a tag.
12940
12941 2009-04-19  Diego Novillo  <dnovillo@google.com>
12942
12943         * toplev.c (compile_file): Move call to coverage_finish ...
12944         * cgraphunit.c (ipa_passes): ... here.
12945         Call cgraph_process_new_functions.
12946         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
12947         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
12948
12949 2009-04-19  Jan Hubicka  <jh@suse.cz>
12950
12951         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
12952         cfun.
12953         (dump_cgraph_node): Dump can throw external flag.
12954         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
12955
12956 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12957
12958         PR c/32061
12959         PR c++/36954
12960         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
12961         * common.opt (Wlogical-op): Move from here...
12962         * c.opt (Wlogical-op): ... to here.
12963         * c-typeck.c (parser_build_binary_op): Update call to
12964         warn_logical_operator.
12965         * c-opts.c (c_common_post_options): Enable warn_logical_op with
12966         extra_warnings.
12967         * c-common.c (warn_logical_op): Update.
12968         * c-common.h (warn_logical_op): Update declaration.
12969
12970 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12971
12972         * tree.c (protected_set_expr_location): Fix formatting.
12973
12974 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12975
12976         PR c/27676
12977         * c-typeck.c (readonly_warning): new.
12978         (build_unary_op, build_modify_expr): Use readonly_warning for
12979         storing into something readonly but not const-qualified.
12980
12981 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12982
12983         PR c/22367
12984         * c-typeck.c (build_unary_op): Check for taking address of
12985         expression of type void.
12986
12987 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12988
12989         PR c/35210
12990         * c-typeck.c (build_function_call): Check for calling a function
12991         with qualified void return types.  Call require_complete_type when
12992         generating a trap.
12993
12994 2009-04-18  Jan Hubicka  <jh@suse.cz>
12995
12996         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
12997         Set nothrow flag.
12998         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
12999         can_throw_external flag.
13000         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
13001         * ipa-pure-const.c (ignore_edge): New function.
13002         (propagate): Compute order for NOTHROW computation; set NOTHROWs
13003         only over can_throw_external edges.
13004         (local_pure_const): Add nothrow flag.
13005         * ipa-utils.c (searchc): Add ignore_edge callback.
13006         (ipa_utils_reduced_inorder): Add ignore_edge callback.
13007         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
13008         (set_nothrow_function_flags): Update cgraph.
13009         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
13010
13011 2009-04-18  Richard Guenther  <rguenther@suse.de>
13012
13013         PR middle-end/39804
13014         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
13015         (fold_stmt): ... this and ...
13016         (fold_stmt_inplace): ... this.
13017         (fold_stmt_1): Fold references in calls and asms.
13018         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
13019
13020 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13021
13022         * tree-vrp.c (ssa_name_nonzero_p): Remove.
13023         * tree.h: Remove the prototype for ssa_name_nonzero_p.
13024
13025 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13026
13027         * tree.c (function_args_count): Remove.
13028         * tree.h: Remove the prototype for function_args_count.
13029
13030 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13031
13032         * tree-iterator.c (expr_only): Remove.
13033         * tree.h: Remove the prototype for expr_only.
13034
13035 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13036
13037         * reginfo.c (cannot_change_mode_set_regs): Remove.
13038         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
13039
13040 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
13041
13042         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
13043         whether operands 0 and 1 overlaps.
13044
13045 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13046
13047         PR middle-end/36902
13048         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
13049         pointer. Use warning_at instead of warning.
13050         (search_for_addr_array): Likewise.
13051         (check_array_bounds): Likewise.
13052         (check_all_array_refs): Check that the incoming edge is not in the
13053         list of edges to be removed.
13054         (check_all_array_refs): Avoid the temporal pointer.
13055         (vrp_visit_cond_stmt): Fix typo.
13056         (simplify_switch_using_ranges): Handle the case where the switch
13057         index is an integer constant.
13058
13059 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
13060
13061         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
13062
13063 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
13064
13065         * doc/extend.texi, doc/invoke.texi: Fix typos.
13066
13067 2009-04-17  Cary Coutant  <ccoutant@google.com>
13068
13069         * tree-flow-inline.h (get_lineno): Fix inverted test.
13070
13071 2009-04-17  Diego Novillo  <dnovillo@google.com>
13072
13073         * tree-ssa-pre.c (create_expression_by_pieces): Remove
13074         assertion for AVAIL_OUT.
13075
13076 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
13077
13078         PR target/38627
13079         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
13080         * config/sh/linux-atomic.asm: Likewise.
13081
13082 2009-04-17  Diego Novillo  <dnovillo@google.com>
13083
13084         * except.c (debug_eh_tree): New.
13085         (struct eh_region, struct eh_status): Move ...
13086         * except.h: ... here.
13087         (add_type_for_runtime): Declare extern.
13088         (lookup_type_for_runtime): Likewise.
13089         (debug_eh_tree): Declare.
13090         * Makefile.in (GTFILES): List except.h before except.c
13091
13092 2009-04-17  Diego Novillo  <dnovillo@google.com>
13093
13094         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
13095         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13096         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
13097         (find_vars_r): ... here.
13098         * tree-flow.h (find_referenced_vars_in): Declare.
13099         * tree-ssa-pre.c (create_expression_by_pieces): Assert
13100         that AVAIL_OUT exists for BLOCK.
13101         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
13102         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
13103         (tree-parloops.o): Likewise.
13104
13105 2009-04-17  Simon Baldwin  <simonb@google.com>
13106
13107         * toplev.c (default_tree_printer): Add handling for %E format.
13108
13109 2009-04-17  Diego Novillo  <dnovillo@google.com>
13110
13111         * tree-pretty-print.c (dump_generic_node): Add break after
13112         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
13113         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
13114         FUNCTION_TYPE together.  Call print_struct_decl when printing
13115         structures and TDF_SLIM is not given.
13116         (print_struct_decl): Fix logic for detecting recursion.
13117
13118 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
13119
13120         PR 31567
13121         * gcc.c (create_at_file): New.
13122         (compile_input_file_p): New.
13123         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
13124         * main.c (main): Update call to toplev_main.
13125         * toplev.c (toplev_main): Change signature. Call expandargv.
13126         * toplev.h (toplev_main): Change signature.
13127
13128 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13129
13130         * dwarf2out.c (field_byte_offset): Use the type size as the field size
13131         if the latter is not constant.
13132
13133 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
13134
13135         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
13136
13137 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
13138
13139         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
13140         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
13141
13142 2009-04-17  Richard Guenther  <rguenther@suse.de>
13143
13144         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13145         Handle component references view-converting an invariant address.
13146
13147 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
13148
13149         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
13150         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
13151         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
13152         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
13153         Use @deftypevr rather than @deftypevar.
13154
13155 2009-04-17  Richard Guenther  <rguenther@suse.de>
13156
13157         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
13158         (get_prop_source_stmt): Likewise.
13159         (can_propagate_from): Likewise.
13160
13161 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
13162
13163         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
13164         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
13165         (--with-multilib-list): Add default value.
13166         * configure: Regenerate.
13167         * Makefile.in (TM_ENDIAN_CONFIG): Define.
13168         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
13169         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
13170         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
13171         Don't add default cpu to multilib list unnecessarily, but do enable
13172         the relevant compiler option..
13173         Add support for --with-multilib-list=<blank> and
13174         --with-multilib-list=!<somelib> to supress unwanted multilibs.
13175         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
13176         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
13177         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
13178         TM_MULTILIB_CONFIG.
13179         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
13180         (MULTILIB_OSDIRNAMES): New variable.
13181         * config/sh/t-1e: Delete file.
13182         * config/sh/t-mlib-sh1: Delete file.
13183         * config/sh/t-mlib-sh2: Delete file.
13184         * config/sh/t-mlib-sh2a: Delete file.
13185         * config/sh/t-mlib-sh2a-nofpu: Delete file.
13186         * config/sh/t-mlib-sh2a-single: Delete file.
13187         * config/sh/t-mlib-sh2a-single-only: Delete file.
13188         * config/sh/t-mlib-sh2e: Delete file.
13189         * config/sh/t-mlib-sh3e: Delete file.
13190         * config/sh/t-mlib-sh4: Delete file.
13191         * config/sh/t-mlib-sh4-nofpu: Delete file.
13192         * config/sh/t-mlib-sh4-single: Delete file.
13193         * config/sh/t-mlib-sh4-single-only: Delete file.
13194         * config/sh/t-mlib-sh4a: Delete file.
13195         * config/sh/t-mlib-sh4a-nofpu: Delete file.
13196         * config/sh/t-mlib-sh4a-single: Delete file.
13197         * config/sh/t-mlib-sh4a-single-only: Delete file.
13198         * config/sh/t-mlib-sh4al: Delete file.
13199         * config/sh/t-mlib-sh5-32media: Delete file.
13200         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
13201         * config/sh/t-mlib-sh5-64media: Delete file.
13202         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
13203         * config/sh/t-mlib-sh5-compact: Delete file.
13204         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
13205         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
13206         * doc/install.texi (Options specification): Add
13207         --with-multilib-list and --with-endian.
13208
13209 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
13210
13211         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
13212         REVISION_c.
13213         (OBJS-common): Add plugin-version.o.
13214         (plugin-version.o): New.
13215         * gcc-plugin.h (plugin_gcc_version): New.
13216         (plugin_default_version_check): New.
13217         (plugin_init_func, plugin_init): Add version argument.
13218         * plugin-version.c: New.
13219         * plugin.c (str_plugin_gcc_version_name): New.
13220         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
13221         pass it to the init function.
13222         (plugin_default_version_check): New.
13223
13224 2009-04-17  Richard Guenther  <rguenther@suse.de>
13225
13226         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
13227         for decl-vs-decl disambiguation.
13228
13229 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13230
13231         * config/s390/s390.h (s390_tune_attr): New macro definition.
13232         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
13233
13234 2009-04-17  Richard Guenther  <rguenther@suse.de>
13235
13236         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
13237         (fold_stmt_r): Likewise.
13238         (maybe_fold_reference): New function.
13239         (fold_gimple_assign): Handle cases fold_stmt_r did.
13240         (fold_stmt): Do not use fold_stmt_r.
13241         (fold_stmt_inplace): Likewise.
13242
13243 2009-04-17  Richard Guenther  <rguenther@suse.de>
13244
13245         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
13246         (record_equivalences_from_stmt): Remove useless checks and
13247         simplifications.
13248         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
13249         the type is already suitable.
13250
13251 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
13252
13253         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
13254
13255 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
13256
13257         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
13258         (CMPtype): Define as __gcc_CMPtype.
13259
13260 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
13261
13262         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
13263         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
13264
13265 2009-04-17  Richard Guenther  <rguenther@suse.de>
13266
13267         PR tree-optimization/39746
13268         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
13269         special-casing for builtins and static variable use/def.
13270         (call_may_clobber_ref_p_1): Likewise.
13271
13272 2009-04-16  Ian Lance Taylor  <iant@google.com>
13273
13274         * df.h: Include "timevar.h".
13275         (struct df_problem): Change tv_id field to timevar_id_t.
13276         * tree-pass.h: Include "timevar.h".
13277         (struct opt_pass): Change tv_id field to timevar_id_t.
13278         * timevar.h (timevar_id_t): Define TV_NONE.
13279         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
13280         TV_NONE rather than tv_id != 0.
13281         (execute_one_pass): Likewise.
13282         * Makefile.in (DF_H): Add $(TIMEVAR_H).
13283         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
13284         dependencies to $(TREE_PASS_H).
13285         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
13286         to TV_NONE.
13287         (pass_branch_target_load_optimize2): Likewise.
13288         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
13289         (pass_outof_cfg_layout_mode): Likewise.
13290         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
13291         (pass_rebuild_cgraph_edges): Likewise.
13292         (pass_remove_cgraph_callee_edges): Likewise.
13293         * df-core.c (pass_df_initialize_opt): Likewise.
13294         (pass_df_initialize_no_opt): Likewise.
13295         (pass_df_finish): Likewise.
13296         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
13297         * except.c (pass_set_nothrow_function_flags): Likewise.
13298         (pass_convert_to_eh_region_ranges): Likewise.
13299         * final.c (pass_compute_alignments): Likewise.
13300         * function.c (pass_instantiate_virtual_regs): Likewise.
13301         (pass_init_function): Likewise.
13302         (pass_leaf_regs): Likewise.
13303         (pass_match_asm_constraints): Likewise.
13304         * gimple-low.c (pass_lower_cf): Likewise.
13305         (pass_mark_used_blocks): Likewise.
13306         * init-regs.c (pass_initialize_regs): Likewise.
13307         * integrate.c (pass_initial_value_sets): Likewise.
13308         * ira.c (pass_ira): Likewise.
13309         * jump.c (pass_cleanup_barriers): Likewise.
13310         * omp-low.c (pass_expand_omp): Likewise.
13311         (pass_lower_omp): Likewise.
13312         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
13313         * recog.c (pass_split_all_insns): Likewise.
13314         (pass_split_after_reload): Likewise.
13315         (pass_split_before_regstack): Likewise.
13316         (pass_split_before_sched2): Likewise.
13317         (pass_split_for_shorten_branches): Likewise.
13318         * reginfo.c (pass_reginfo_init): Likewise.
13319         (pass_subregs_of_mode_init): Likewise.
13320         (pass_subregs_of_mode_finish): Likewise.
13321         * passes.c (pass_postreload): Likewise.
13322         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
13323         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
13324         (pass_warn_function_return): Likewise.
13325         (pass_warn_function_noreturn): Likewise.
13326         * tree-complex.c (pass_lower_complex): Likewise.
13327         (pass_lower_complex_O0): Likewise.
13328         * tree-if-conv.c (pass_if_conversion): Likewise.
13329         * tree-into-ssa.c (pass_build_ssa): Likewise.
13330         * tree-mudflap.c (pass_mudflap_1): Likewise.
13331         (pass_mudflap_2): Likewise.
13332         * tree-nomudflap.c (pass_mudflap_1): Likewise.
13333         (pass_mudflap_2): Likewise.
13334         * tree-nrv.c (pass_return_slot): Likewise.
13335         * tree-object-size.c (pass_object_sizes): Likewise.
13336         * tree-optimize.c (pass_all_optimizations): Likewise.
13337         (pass_early_local_passes): Likewise.
13338         (pass_all_early_optimizations): Likewise.
13339         (pass_cleanup_cfg): Likewise.
13340         (pass_cleanup_cfg_post_optimizing): Likewise.
13341         (pass_free_datastructures): Likewise.
13342         (pass_free_cfg_annotations): Likewise.
13343         (pass_fixup_cfg): Likewise.
13344         (pass_init_datastructures): Likewise.
13345         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
13346         (pass_late_warn_uninitialized): Likewise.
13347         (pass_update_address_taken): Likewise.
13348         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
13349         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
13350         (pass_cse_sincos): Likewise.
13351         (pass_convert_to_rsqrt): Likewise.
13352         * tree-ssa-structalias.c (pass_build_alias): Likewise.
13353         * tree-stdarg.c (pass_stdarg): Likewise.
13354         * tree-tailcall.c (pass_tail_recursion): Likewise.
13355         (pass_tail_calls): Likewise.
13356         * tree-vect-generic.c (pass_lower_vector): Likewise.
13357         (pass_lower_vector_ssa): Likewise.
13358         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
13359
13360 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
13361
13362         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
13363         XLR entry.
13364         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
13365         Handle -march=xlr.
13366         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
13367         logical and signext.
13368
13369 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13370
13371         PR target/39767
13372         * config/sh/predicates.md (arith_operand): Check if the operand
13373         of TRUNCATE is a REG.
13374
13375 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13376
13377         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
13378         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
13379
13380 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13381
13382         * tree-iterator.c (tsi_split_statement_list_after,
13383         tsi_split_statement_list_before): Remove.
13384         * tree-iterator.h: Remove the prototypes for
13385         tsi_split_statement_list_after and tsi_split_statement_list_before.
13386
13387 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13388
13389         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
13390         * tree-ssa-propagate.h: Remove the prototype for
13391         stmt_makes_single_load.
13392
13393 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13394
13395         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
13396         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
13397
13398 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13399
13400         * tree-iterator.c (EXPR_LAST_BODY): Remove.
13401
13402 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13403
13404         * except.c (eh_region_outer_p): Remove.
13405         * except.h: Remove the prototype for eh_region_outer_p.
13406
13407 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13408
13409         * function.c (current_function_assembler_name): Remove.
13410         * function.h: Remove the prototype for
13411         current_function_assembler_name.
13412
13413 2009-04-16  Ian Lance Taylor  <iant@google.com>
13414
13415         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
13416         (add_reg_note): Call alloc_reg_note.
13417         * rtl.h (alloc_reg_note): Declare.
13418         * combine.c (try_combine): Use alloc_reg_note.
13419         (recog_for_combine, move_deaths): Likewise.
13420         (distribute_notes): Use alloc_reg_note and add_reg_note.
13421         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
13422         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
13423         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
13424
13425 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
13426
13427         PR rtl-optimization/39762
13428         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
13429         ira_may_move_out_cost): Add comments about way of their usage.
13430         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
13431
13432         * ira-conflicts.c (process_regs_for_copy): Use function
13433         ira_get_register_move_cost instead of global
13434         ira_register_move_cost.
13435
13436         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
13437         color_pass, move_spill_restore, update_curr_costs): Ditto.
13438
13439         * ira-lives.c (process_single_reg_class_operands): Ditto.
13440
13441         * ira-emit.c (emit_move_list): Ditto.
13442
13443         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
13444         (record_reg_classes): Ditto.  Use functions
13445         ira_get_register_move_cost and ira_get_may_move_cost instead of
13446         global vars ira_register_move_cost, ira_may_move_out_cost and
13447         ira_may_move_in_cost.
13448         (record_address_regs): Don't call ira_init_register_move_cost.
13449         Use function ira_get_may_move_cost instead of global
13450         ira_may_move_in_cost.
13451         (process_bb_node_for_hard_reg_moves): Use function
13452         ira_get_register_move_cost instead of global ira_register_move_cost.
13453         (ira_costs): Don't call ira_init_register_move_cost.
13454
13455 2009-04-16  Richard Guenther  <rguenther@suse.de>
13456
13457         * tree-cfg.c (verify_gimple_assign_binary):
13458         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
13459         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
13460         (create_general_new_stmt): Note that this function is broken.
13461
13462 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13463
13464         * common.opt (fhelp): Add Var(help_flag).
13465         * gcc-plugin.h (plugin_info): Add help.
13466         * plugin.c (plugin_name_args): Add help.
13467         (register_plugin_info): Set plugin->help.
13468         (print_help_one_plugin): New.
13469         (print_plugins_help): New.
13470         * plugin.h (print_plugins_help): New.
13471         * toplev.c (toplev_main): Call print_plugins_help if needed.
13472
13473 2009-04-16  Richard Guenther  <rguenther@suse.de>
13474
13475         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
13476         (gimple_ior_addresses_taken_1): New function.
13477         (gimple_ior_addresses_taken): Likewise.
13478         * gimple.h (struct gimple_statement_with_ops_base): Remove
13479         addresses_taken member.
13480         (gimple_ior_addresses_taken): Declare.
13481         (gimple_addresses_taken, gimple_addresses_taken_ptr,
13482         gimple_set_addresses_taken): Remove.
13483         * ipa-reference.c (mark_address): New function.
13484         (scan_stmt_for_static_refs): Use it for marking addresses taken.
13485         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
13486         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
13487         (gimple_add_to_addresses_taken): Remove.
13488         (get_tmr_operands): Call mark_address_taken.
13489         (get_asm_expr_operands): Likewise.
13490         (get_expr_operands): Likewise.
13491         (build_ssa_operands): Do not clear the addresses_taken bitmap.
13492         (free_stmt_operands): Do not free it.
13493         * tree-ssa.c (delete_tree_ssa): Likewise.
13494         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
13495
13496 2009-04-16  Richard Guenther  <rguenther@suse.de>
13497
13498         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
13499         (walk_stmt_load_store_ops): Likewise.
13500         * gimple.c (get_base_loadstore): New function.
13501         (walk_stmt_load_store_addr_ops): Likewise.
13502         (walk_stmt_load_store_ops): Likewise.
13503         * ipa-pure-const.c (check_op): Simplify.
13504         (check_load, check_store): New functions.
13505         (check_stmt): Use walk_stmt_load_store_ops.
13506         * ipa-reference.c (mark_load): Adjust signature.
13507         (mark_store): Likewise.
13508         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
13509
13510 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13511
13512         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
13513         (plugin_info): New.
13514         * opts.c (common_handle_option): Don't call print_version.
13515         * plugin.c (plugin_name_args): Add version.
13516         (register_plugin_info): New.
13517         (register_callback): Handle PLUGIN_INFO.
13518         (try_init_one_plugin): New.
13519         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
13520         if failed to init.
13521         (finalize_one_plugin): New.
13522         (finalize_plugins): New.
13523         (print_one_plugin): New.
13524         (print_plugins_versions): New.
13525         * plugin.h (print_plugins_versions): New.
13526         (finalize_plugins): New.
13527         * toplev.c (compile_file): Don't call initialize_plugins.
13528         (print_version): Call print_plugins_versions.
13529         (toplev_main): Call initialize_plugins. Print version if needed.
13530         Call finalize_plugins.
13531
13532 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13533
13534         * common.opt (fversion): New.
13535         * gcc.c (print_version): New.
13536         (process_command): Don't print the version. Just set print_version.
13537         (main): Print version. Call subprocesses if print_version and
13538         verbose_flag are set.
13539         * opts.c (common_handle_option): Handle OPT_fversion.
13540
13541 2009-04-16  Richard Guenther  <rguenther@suse.de>
13542             Ira Rosen  <irar@il.ibm.com>
13543
13544         PR tree-optimization/39698
13545         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
13546         type of the reduction variable.  Only generate the def if
13547         it is needed.
13548
13549         * omp-low.c (expand_omp_for_generic): When converting to a pointer
13550         make sure to first convert to an integer of the same precision.
13551         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
13552         the type of the evolution correctly in computing the new
13553         induction variable base.
13554
13555 2009-04-16  Richard Guenther  <rguenther@suse.de>
13556
13557         PR middle-end/39625
13558         * tree-cfg.c (make_blocks): Split statements with to-be
13559         abnormal SSA names on the lhs.
13560
13561 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
13562
13563         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
13564         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
13565         * c-typeck.c (really_start_incremental_init): Likewise.
13566         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
13567         (TARGET_INITIALIZER): Remove it.
13568         * target.h (struct target): Remove vector_opaque_p.
13569         * tree.c (build_opaque_vector_type): New.
13570         * tree.h (TYPE_VECTOR_OPAQUE): New.
13571         (build_opaque_vector_type): Declare.
13572         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
13573         * config/rs6000/rs6000.c (build_opaque_vector_type,
13574         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
13575         (rs6000_init_builtins): Use build_opaque_vector_type for
13576         opaque_V4SI_type_node.
13577
13578 2009-04-15  Catherine Moore  <clm@codesourcery.com>
13579
13580         * debug.h (set_name):  Declare.
13581         * dwarf2out.c (dwarf2out_set_name): Declare.
13582         (dwarf2_debug_hooks): Add set_name.
13583         (find_AT_string): New.
13584         (add_AT_string): Call find_AT_string.
13585         (dwarf2out_set_name): New.
13586         * cp/decl.c (grokdeclarator): Call set_name.
13587         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
13588         * debug.c (do_nothing_debug_hooks):  Likewise.
13589         * dbxout.c (dbx_debug_hooks): Likewise.
13590         * sdbout.c (sdb_debug_hooks): Likewise.
13591
13592 2009-04-15  Michael Eager  <eager@eagercon.com>
13593
13594         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
13595         reg for single-precision FPU.
13596         * config/rs6000/rs6000.md (movsi_internal1): Only for
13597         !TARGET_SINGLE_FPU.
13598         (movsi_internal1_single): New. Add pattern to move SI values to/from
13599         single-precision FP regs.
13600
13601 2009-04-15  Richard Guenther  <rguenther@suse.de>
13602
13603         * omp-low.c (lower_rec_input_clauses): Build correct address
13604         expressions.
13605         (expand_omp_for_generic): Fix multiplication type.
13606         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
13607         (generate_memset_zero): Fix types.
13608         * tree-profile.c (prepare_instrumented_value): Correctly
13609         widen a pointer.
13610
13611 2009-04-15  Ian Lance Taylor  <iant@google.com>
13612
13613         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
13614         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
13615         for -Wall and for -Wc++-compat.
13616         (c_common_post_options): For C++, set warn_enum_compare if not
13617         already set.
13618         * c-tree.h (struct c_expr): Add field original_type.
13619         (build_external_ref): Update declaration.
13620         * c-parser.c (c_parser_braced_init): Set original_type.
13621         (c_parser_initelt): Likewise.
13622         (c_parser_expr_no_commas): Likewise.
13623         (c_parser_conditional_expression): Likewise.
13624         (c_parser_cast_expression): Likewise.
13625         (c_parser_unary_expression): Likewise.  Pull setting of
13626         original_code to top of function.
13627         (c_parser_sizeof_expression): Set original_type.
13628         (c_parser_alignof_expression): Likewise.
13629         (c_parser_postfix_expression): Likewise.  Pull setting of
13630         original_code to top of function.
13631         (c_parser_postfix_expression_after_paren_type): Set original_type.
13632         (c_parser_postfix_expression_after_primary): Likewise.
13633         (c_parser_expression): Likewise.
13634         * c-typeck.c (build_external_ref): Add type parameter.  Change all
13635         callers.
13636         (c_expr_sizeof_expr): Set original_type field.
13637         (parser_build_unary_op): Likewise.
13638         (parser_build_binary_op): Likewise.  Optionally warn about
13639         comparisons of enums of different types.
13640         (digest_init): Set original_type field.
13641         (really_start_incremental_init): Likewise.
13642         (push_init_level, pop_init_level): Likewise.
13643         * doc/invoke.texi (Warning Options): -Wenum-compare now
13644         supported in C.
13645
13646 2009-04-15  Richard Guenther  <rguenther@suse.de>
13647
13648         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
13649         out a necessary conversion.
13650         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
13651         names we didn't value number.
13652         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
13653
13654 2009-04-15  Richard Guenther  <rguenther@suse.de>
13655
13656         PR tree-optimization/39764
13657         * tree-ssa-ccp.c (get_value): Canonicalize value with
13658         canonicalize_float_value.
13659
13660 2009-04-15  Jan Hubicka  <jh@suse.cz>
13661
13662         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
13663         Wrong version of patch.
13664
13665 2009-04-15  Jan Hubicka  <jh@suse.cz>
13666
13667         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
13668
13669 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
13670
13671         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
13672         our distinct integral and vector types.
13673
13674 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
13675
13676         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
13677         * init.c (build_vtbl_address): Remove call to assemble_external.
13678
13679 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
13680
13681         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
13682         output for other floating point modes.
13683
13684 2009-04-14  Diego Novillo  <dnovillo@google.com>
13685
13686         * diagnostic.c (diagnostic_report_diagnostic): Do not
13687         warn about loaded plugins for DK_ERROR and DK_WARNING.
13688         * c-decl.c (declspecs_add_type): Move call to
13689         invoke_plugin_callbacks ...
13690         * c-parser.c (c_parser_declspecs): ... here.
13691         * plugin.c (dump_active_plugins): Tidy output.
13692
13693 2009-04-14  Diego Novillo  <dnovillo@google.com>
13694             Le-Chun Wu  <lcwu@google.com>
13695
13696         * configure.ac: Add --enable-plugin support.
13697         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
13698         * Makefile.in (PLUGIN_H): Define.
13699         Export ENABLE_PLUGIN and GMPINC to site.exp.
13700         Add PLUGINLIBS to link command.
13701         Add/modify dependencies for plugin.o and files including plugin.h.
13702         (plugin.o): New.
13703         * config.in: Regenerate.
13704
13705         * opts.c (common_handle_option): Handle OPT_fplugin_ and
13706         OPT_fplugin_arg_.
13707
13708 2009-04-14  Le-Chun Wu  <lcwu@google.com>
13709
13710         * tree-pass.h (register_one_dump_file): Add a prototype for
13711         register_one_dump_file.
13712         * toplev.c (compile_file): Call initialize_plugins.
13713         (do_compile): Call invoke_plugin_callbacks.
13714         (toplev_main): Call invoke_plugin_callbacks.
13715         * common.opt: Add -fplugin= and -fplugin-arg-.
13716         * gcc-plugin.h: New public header file for plugins to include.
13717         * plugin.c: New source file.
13718         * plugin.h: New internal header file.
13719         * passes.c (register_one_dump_file): Make it external.
13720
13721         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
13722
13723 2009-04-14  Diego Novillo  <dnovillo@google.com>
13724
13725         * doc/plugins.texi: New.
13726         * doc/gccint.texi: Add reference to Plugins chapter.
13727         * doc/invoke.texi: Document -fplugin and -fplugin-arg
13728         * diagnostic.c (diagnostic_report_diagnostic): Warn about
13729         loaded plugins, if any.
13730         * timevar.def (TV_PLUGIN_INIT): Define.
13731         (TV_PLUGIN_RUN): Define.
13732         * plugin.c: Include timevar.h
13733         (plugins_active_p): New.
13734         (dump_active_plugins): New.
13735         (debug_active_plugins): New.
13736
13737 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
13740         library paths.
13741         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
13742
13743 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
13744
13745         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
13746         the same as a minus without a shift.
13747
13748 2009-04-14  Nick Clifton  <nickc@redhat.com>
13749
13750         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
13751         comparisons with small integers will always produce a short
13752         branch.
13753
13754 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
13755
13756         Merge:
13757         2008-12-19  Diego Novillo  <dnovillo@google.com>
13758
13759         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
13760
13761 2009-04-14  Richard Guenther  <rguenther@suse.de>
13762
13763         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
13764         verification.
13765         (verify_gimple_assign_binary): Likewise.  Handle shifts and
13766         rotates correctly.
13767         (verify_gimple_phi): Print the mismatched argument position.
13768         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13769         Fix types.
13770         (vect_update_init_of_dr): Likewise.
13771         * matrix-reorg.c (transform_access_sites): Do what the
13772         comment suggests.
13773         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
13774
13775 2009-04-13  Michael Eager  <eager@eagercon.com>
13776
13777         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
13778         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
13779         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
13780         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
13781         remove duplicate config
13782
13783 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13784
13785         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
13786         file_name:line_number type locator of the call site.
13787
13788 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13789
13790         * genautomata.c: Put blank after comma.
13791         (automaton_decls): New.
13792         (struct unit_usage): Add comments to member next.
13793         (store_alt_unit_usage): Keep the list ordered.
13794         (unit_present_on_list_p, equal_alternatives_p): New.
13795         (check_regexp_units_distribution): Check units distribution
13796         correctness correctly.
13797         (main): Don't write automata if error is found.  Return correct
13798         exit code.
13799
13800         * config/m68k/cf.md (cfv4_ds): Remove.
13801         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
13802         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
13803
13804         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
13805         power4-load-ext, power4-store, power4-store-update,
13806         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
13807         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
13808         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
13809         power4-sqrt, power4-isync): Modify reservation to make correct
13810         unit distribution to automata.
13811
13812         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
13813         power5-store-update, power5-two, power5-three, power5-lmul,
13814         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
13815
13816 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
13817
13818         * except.c (pass_set_nothrow_function_flags): Set name and add
13819         TODO_dump_func.
13820         (set_nothrow_function_flags): Mention in the dump file when
13821         changing a function to nothrow.
13822
13823 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
13824
13825         PR/39066
13826         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
13827         instead of unsigned long.
13828
13829 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13830
13831         * config/arm/arm.c (return_used_this_function): Remove.
13832         (arm_output_function_prologue): Remove use of
13833         return_used_this_function.
13834         (output_return_instruction): Replace use of
13835         return_used_this_function
13836         by cfun->machine->return_used_this_function.
13837         (arm_output_epilogue): Likewise.
13838         (arm_output_function_epilogue): Likewise.
13839         (thumb_unexpanded_epilogue): Likewise.
13840         * config/arm/arm.h (struct machine_function):
13841         New member return_used_this_function.
13842
13843 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
13844
13845         * doc/install.texi: Correct description of default directory for
13846         --with-gxx-include-dir.
13847
13848 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13849
13850         * fold-const.c (build_range_check): Properly deal with enumeral and
13851         boolean base types.
13852
13853 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
13854
13855         * doc/invoke.texi (max_gcse_passes): Remove documentation.
13856         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
13857         * params.h (MAX_GCSE_PASSES): Remove.
13858         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
13859         in sequence.  Remove ability to run multiple passes.
13860         (bypass_jumps): Report run as third CPROP pass.
13861
13862 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
13863
13864         PR middle-end/39651
13865         * except.c (can_throw_external): Look at each insn in a SEQUENCE
13866         when deciding whether the whole SEQUENCE can throw.
13867
13868 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
13869
13870         PR target/39740
13871         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
13872         offseted label references.
13873
13874 2009-04-11  Jan Hubicka  <jh@suse.cz>
13875
13876         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
13877
13878 2009-04-11  Richard Guenther  <rguenther@suse.de>
13879
13880         PR middle-end/39732
13881         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
13882         return variables as TREE_ADDRESSABLE.
13883
13884 2009-04-11  Richard Guenther  <rguenther@suse.de>
13885
13886         PR tree-optimization/39713
13887         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
13888         reference trees have SSA_NAME operands.
13889
13890 2009-04-11  Richard Guenther  <rguenther@suse.de>
13891
13892         PR c/39712
13893         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
13894         address expressions.
13895
13896 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
13897
13898         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
13899         match changes in Cygwin 1.7
13900         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
13901         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
13902
13903 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13904
13905         PR tree-optimization/39701
13906         * doc/invoke.texi (Optimization Options): Document change in
13907         meaning and initialization of -fdelete-null-pointer-checks.
13908
13909 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13910
13911         PR middle-end/39701
13912         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
13913
13914         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
13915         here.
13916
13917         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
13918
13919 2009-04-10  Chao-ying Fu  <fu@mips.com>
13920
13921         * doc/tm.texi (Instruction Output): Document
13922         TARGET_ASM_FINAL_POSTSCAN_INSN.
13923         * target.h (final_postscan_insn): New field in asm_out.
13924         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13925         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
13926         * final.c (final_scan_insn): Call
13927         targetm.asm_out.final_postscan_insn after outputting
13928         an asm macro and a normal instruction.
13929
13930         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
13931         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
13932         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
13933         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
13934         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13935
13936 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13937
13938         PR middle-end/39701
13939         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
13940         variables as non-NULL even with -fdelete-null-pointer-checks.
13941
13942 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13943
13944         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
13945
13946 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
13947
13948         PR target/39678
13949         * config/i386/i386.c (classify_argument): Handle SCmode with
13950         (bit_offset % 64) != 0.
13951
13952 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
13953
13954         * doc/invoke.texi (Optimize Options): Add cross-reference to
13955         -Q --help=optimizers examples.
13956
13957 2009-04-10  Ben Elliston  <bje@au.ibm.com>
13958
13959         PR target/36800
13960         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
13961         regalign for the reg == fpr and TDmode case.
13962
13963 2009-04-09  David Ayers  <ayers@fsfe.org>
13964
13965         PR objc/29200
13966         * objc/objc-act.c (warn_with_method): Remove helper function.
13967         (check_duplicates): Call warning and inform directly.
13968         (really_start_method): Likewise.
13969
13970 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
13971
13972         * expmed.c (expand_divmod): Always use a comparison for a division
13973         by a large unsigned integer.
13974
13975         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
13976         for things others than variables or functions as nonzero.
13977
13978 2009-04-09  Nick Clifton  <nickc@redhat.com>
13979
13980         * unwind-compat.c: Change copyright header to refer to version
13981         3 of the GNU General Public License with version 3.1 of the
13982         GCC Runtime Library Exception and to point readers at the
13983         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
13984         * config/alpha/crtfastmath.c: Likewise.
13985         * config/alpha/linux-unwind.h: Likewise.
13986         * config/alpha/qrnnd.asm: Likewise.
13987         * config/alpha/vms-crt0-64.c: Likewise.
13988         * config/alpha/vms-crt0.c: Likewise.
13989         * config/alpha/vms-dwarf2.asm: Likewise.
13990         * config/alpha/vms-dwarf2eh.asm: Likewise.
13991         * config/alpha/vms-psxcrt0-64.c: Likewise.
13992         * config/alpha/vms-psxcrt0.c: Likewise.
13993         * config/alpha/vms_tramp.asm: Likewise.
13994         * config/arc/initfini.c: Likewise.
13995         * config/arc/lib1funcs.asm: Likewise.
13996         * config/arm/bpabi-v6m.S: Likewise.
13997         * config/arm/bpabi.S: Likewise.
13998         * config/arm/bpabi.c: Likewise.
13999         * config/arm/crti.asm: Likewise.
14000         * config/arm/crtn.asm: Likewise.
14001         * config/arm/ieee754-df.S: Likewise.
14002         * config/arm/ieee754-sf.S: Likewise.
14003         * config/arm/lib1funcs.asm: Likewise.
14004         * config/arm/libunwind.S: Likewise.
14005         * config/arm/linux-atomic.c: Likewise.
14006         * config/arm/mmintrin.h: Likewise.
14007         * config/arm/pr-support.c: Likewise.
14008         * config/arm/unaligned-funcs.c: Likewise.
14009         * config/arm/unwind-arm.c: Likewise.
14010         * config/arm/unwind-arm.h: Likewise.
14011         * config/avr/libgcc.S: Likewise.
14012         * config/bfin/crti.s: Likewise.
14013         * config/bfin/crtlibid.s: Likewise.
14014         * config/bfin/crtn.s: Likewise.
14015         * config/bfin/lib1funcs.asm: Likewise.
14016         * config/bfin/linux-unwind.h: Likewise.
14017         * config/cris/arit.c: Likewise.
14018         * config/cris/cris_abi_symbol.c: Likewise.
14019         * config/darwin-64.c: Likewise.
14020         * config/darwin-crt2.c: Likewise.
14021         * config/darwin-crt3.c: Likewise.
14022         * config/darwin.h: Likewise.
14023         * config/dbxelf.h: Likewise.
14024         * config/dfp-bit.c: Likewise.
14025         * config/dfp-bit.h: Likewise.
14026         * config/elfos.h: Likewise.
14027         * config/fixed-bit.c: Likewise.
14028         * config/fixed-bit.h: Likewise.
14029         * config/fp-bit.c: Likewise.
14030         * config/fp-bit.h: Likewise.
14031         * config/fr30/crti.asm: Likewise.
14032         * config/fr30/crtn.asm: Likewise.
14033         * config/fr30/lib1funcs.asm: Likewise.
14034         * config/freebsd-spec.h: Likewise.
14035         * config/frv/cmovd.c: Likewise.
14036         * config/frv/cmovh.c: Likewise.
14037         * config/frv/cmovw.c: Likewise.
14038         * config/frv/frvbegin.c: Likewise.
14039         * config/frv/frvend.c: Likewise.
14040         * config/frv/lib1funcs.asm: Likewise.
14041         * config/glibc-stdint.h: Likewise.
14042         * config/h8300/clzhi2.c: Likewise.
14043         * config/h8300/crti.asm: Likewise.
14044         * config/h8300/crtn.asm: Likewise.
14045         * config/h8300/ctzhi2.c: Likewise.
14046         * config/h8300/fixunssfsi.c: Likewise.
14047         * config/h8300/lib1funcs.asm: Likewise.
14048         * config/h8300/parityhi2.c: Likewise.
14049         * config/h8300/popcounthi2.c: Likewise.
14050         * config/i386/ammintrin.h: Likewise.
14051         * config/i386/att.h: Likewise.
14052         * config/i386/avxintrin.h: Likewise.
14053         * config/i386/biarch64.h: Likewise.
14054         * config/i386/bmmintrin.h: Likewise.
14055         * config/i386/cpuid.h: Likewise.
14056         * config/i386/cross-stdarg.h: Likewise.
14057         * config/i386/crtfastmath.c: Likewise.
14058         * config/i386/crtprec.c: Likewise.
14059         * config/i386/cygming-crtbegin.c: Likewise.
14060         * config/i386/cygming-crtend.c: Likewise.
14061         * config/i386/cygwin.asm: Likewise.
14062         * config/i386/emmintrin.h: Likewise.
14063         * config/i386/gmm_malloc.h: Likewise.
14064         * config/i386/gthr-win32.c: Likewise.
14065         * config/i386/i386.h: Likewise.
14066         * config/i386/immintrin.h: Likewise.
14067         * config/i386/linux-unwind.h: Likewise.
14068         * config/i386/linux64.h: Likewise.
14069         * config/i386/mm3dnow.h: Likewise.
14070         * config/i386/mmintrin-common.h: Likewise.
14071         * config/i386/mmintrin.h: Likewise.
14072         * config/i386/nmmintrin.h: Likewise.
14073         * config/i386/pmm_malloc.h: Likewise.
14074         * config/i386/pmmintrin.h: Likewise.
14075         * config/i386/smmintrin.h: Likewise.
14076         * config/i386/sol2-c1.asm: Likewise.
14077         * config/i386/sol2-ci.asm: Likewise.
14078         * config/i386/sol2-cn.asm: Likewise.
14079         * config/i386/sol2-gc1.asm: Likewise.
14080         * config/i386/tmmintrin.h: Likewise.
14081         * config/i386/unix.h: Likewise.
14082         * config/i386/w32-unwind.h: Likewise.
14083         * config/i386/wmmintrin.h: Likewise.
14084         * config/i386/x86-64.h: Likewise.
14085         * config/i386/x86intrin.h: Likewise.
14086         * config/i386/xmmintrin.h: Likewise.
14087         * config/ia64/crtbegin.asm: Likewise.
14088         * config/ia64/crtend.asm: Likewise.
14089         * config/ia64/crtfastmath.c: Likewise.
14090         * config/ia64/crti.asm: Likewise.
14091         * config/ia64/crtn.asm: Likewise.
14092         * config/ia64/fde-glibc.c: Likewise.
14093         * config/ia64/lib1funcs.asm: Likewise.
14094         * config/ia64/linux-unwind.h: Likewise.
14095         * config/ia64/quadlib.c: Likewise.
14096         * config/ia64/unwind-ia64.c: Likewise.
14097         * config/linux.h: Likewise.
14098         * config/m32c/m32c-lib1.S: Likewise.
14099         * config/m32c/m32c-lib2-trapv.c: Likewise.
14100         * config/m32c/m32c-lib2.c: Likewise.
14101         * config/m32r/initfini.c: Likewise.
14102         * config/m68hc11/larith.asm: Likewise.
14103         * config/m68hc11/m68hc11-crt0.S: Likewise.
14104         * config/m68k/cf.md: Likewise.
14105         * config/m68k/crti.s: Likewise.
14106         * config/m68k/crtn.s: Likewise.
14107         * config/m68k/lb1sf68.asm: Likewise.
14108         * config/m68k/linux-unwind.h: Likewise.
14109         * config/mcore/crti.asm: Likewise.
14110         * config/mcore/crtn.asm: Likewise.
14111         * config/mcore/lib1.asm: Likewise.
14112         * config/mips/linux-unwind.h: Likewise.
14113         * config/mips/loongson.h: Likewise.
14114         * config/mips/mips16.S: Likewise.
14115         * config/mmix/crti.asm: Likewise.
14116         * config/mmix/crtn.asm: Likewise.
14117         * config/pa/fptr.c: Likewise.
14118         * config/pa/hpux-unwind.h: Likewise.
14119         * config/pa/lib2funcs.asm: Likewise.
14120         * config/pa/linux-atomic.c: Likewise.
14121         * config/pa/linux-unwind.h: Likewise.
14122         * config/pa/milli64.S: Likewise.
14123         * config/pa/quadlib.c: Likewise.
14124         * config/pa/stublib.c: Likewise.
14125         * config/picochip/libgccExtras/adddi3.asm: Likewise.
14126         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
14127         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
14128         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
14129         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
14130         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
14131         * config/picochip/libgccExtras/divmod15.asm: Likewise.
14132         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
14133         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
14134         * config/picochip/libgccExtras/longjmp.asm: Likewise.
14135         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
14136         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
14137         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
14138         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
14139         * config/picochip/libgccExtras/setjmp.asm: Likewise.
14140         * config/picochip/libgccExtras/subdi3.asm: Likewise.
14141         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
14142         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
14143         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
14144         * config/rs6000/750cl.h: Likewise.
14145         * config/rs6000/altivec.h: Likewise.
14146         * config/rs6000/biarch64.h: Likewise.
14147         * config/rs6000/crtresfpr.asm: Likewise.
14148         * config/rs6000/crtresgpr.asm: Likewise.
14149         * config/rs6000/crtresxfpr.asm: Likewise.
14150         * config/rs6000/crtresxgpr.asm: Likewise.
14151         * config/rs6000/crtsavfpr.asm: Likewise.
14152         * config/rs6000/crtsavgpr.asm: Likewise.
14153         * config/rs6000/darwin-asm.h: Likewise.
14154         * config/rs6000/darwin-fallback.c: Likewise.
14155         * config/rs6000/darwin-fpsave.asm: Likewise.
14156         * config/rs6000/darwin-ldouble.c: Likewise.
14157         * config/rs6000/darwin-tramp.asm: Likewise.
14158         * config/rs6000/darwin-unwind.h: Likewise.
14159         * config/rs6000/darwin-vecsave.asm: Likewise.
14160         * config/rs6000/darwin-world.asm: Likewise.
14161         * config/rs6000/e500crtres32gpr.asm: Likewise.
14162         * config/rs6000/e500crtres64gpr.asm: Likewise.
14163         * config/rs6000/e500crtres64gprctr.asm: Likewise.
14164         * config/rs6000/e500crtrest32gpr.asm: Likewise.
14165         * config/rs6000/e500crtrest64gpr.asm: Likewise.
14166         * config/rs6000/e500crtresx32gpr.asm: Likewise.
14167         * config/rs6000/e500crtresx64gpr.asm: Likewise.
14168         * config/rs6000/e500crtsav32gpr.asm: Likewise.
14169         * config/rs6000/e500crtsav64gpr.asm: Likewise.
14170         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
14171         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
14172         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
14173         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
14174         * config/rs6000/eabi-ci.asm: Likewise.
14175         * config/rs6000/eabi-cn.asm: Likewise.
14176         * config/rs6000/eabi.asm: Likewise.
14177         * config/rs6000/linux-unwind.h: Likewise.
14178         * config/rs6000/linux64.h: Likewise.
14179         * config/rs6000/paired.h: Likewise.
14180         * config/rs6000/paired.md: Likewise.
14181         * config/rs6000/ppc64-fp.c: Likewise.
14182         * config/rs6000/ppu_intrinsics.h: Likewise.
14183         * config/rs6000/rs6000.h: Likewise.
14184         * config/rs6000/si2vmx.h: Likewise.
14185         * config/rs6000/sol-ci.asm: Likewise.
14186         * config/rs6000/sol-cn.asm: Likewise.
14187         * config/rs6000/spe.h: Likewise.
14188         * config/rs6000/spu2vmx.h: Likewise.
14189         * config/rs6000/sysv4.h: Likewise.
14190         * config/rs6000/tramp.asm: Likewise.
14191         * config/rs6000/vec_types.h: Likewise.
14192         * config/s390/linux-unwind.h: Likewise.
14193         * config/s390/tpf-unwind.h: Likewise.
14194         * config/score/crti.asm: Likewise.
14195         * config/score/crtn.asm: Likewise.
14196         * config/sh/crt1.asm: Likewise.
14197         * config/sh/crti.asm: Likewise.
14198         * config/sh/crtn.asm: Likewise.
14199         * config/sh/divtab-sh4-300.c: Likewise.
14200         * config/sh/divtab-sh4.c: Likewise.
14201         * config/sh/divtab.c: Likewise.
14202         * config/sh/lib1funcs-4-300.asm: Likewise.
14203         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
14204         * config/sh/lib1funcs.asm: Likewise.
14205         * config/sh/lib1funcs.h: Likewise.
14206         * config/sh/linux-atomic.asm: Likewise.
14207         * config/sh/linux-unwind.h: Likewise.
14208         * config/sh/shmedia.h: Likewise.
14209         * config/sh/sshmedia.h: Likewise.
14210         * config/sh/ushmedia.h: Likewise.
14211         * config/sparc/crtfastmath.c: Likewise.
14212         * config/sparc/linux-unwind.h: Likewise.
14213         * config/sparc/sol2-c1.asm: Likewise.
14214         * config/sparc/sol2-ci.asm: Likewise.
14215         * config/sparc/sol2-cn.asm: Likewise.
14216         * config/spu/divmodti4.c: Likewise.
14217         * config/spu/divv2df3.c: Likewise.
14218         * config/spu/float_disf.c: Likewise.
14219         * config/spu/float_unsdidf.c: Likewise.
14220         * config/spu/float_unsdisf.c: Likewise.
14221         * config/spu/float_unssidf.c: Likewise.
14222         * config/spu/mfc_multi_tag_release.c: Likewise.
14223         * config/spu/mfc_multi_tag_reserve.c: Likewise.
14224         * config/spu/mfc_tag_release.c: Likewise.
14225         * config/spu/mfc_tag_reserve.c: Likewise.
14226         * config/spu/mfc_tag_table.c: Likewise.
14227         * config/spu/multi3.c: Likewise.
14228         * config/spu/spu_internals.h: Likewise.
14229         * config/spu/spu_intrinsics.h: Likewise.
14230         * config/spu/spu_mfcio.h: Likewise.
14231         * config/spu/vec_types.h: Likewise.
14232         * config/spu/vmx2spu.h: Likewise.
14233         * config/stormy16/stormy16-lib2.c: Likewise.
14234         * config/svr4.h: Likewise.
14235         * config/sync.c: Likewise.
14236         * config/v850/lib1funcs.asm: Likewise.
14237         * config/vxlib-tls.c: Likewise.
14238         * config/vxlib.c: Likewise.
14239         * config/vxworks-dummy.h: Likewise.
14240         * config/xtensa/crti.asm: Likewise.
14241         * config/xtensa/crtn.asm: Likewise.
14242         * config/xtensa/ieee754-df.S: Likewise.
14243         * config/xtensa/ieee754-sf.S: Likewise.
14244         * config/xtensa/lib1funcs.asm: Likewise.
14245         * config/xtensa/lib2funcs.S: Likewise.
14246         * config/xtensa/linux-unwind.h: Likewise.
14247         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
14248         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
14249         * coretypes.h: Likewise.
14250         * crtstuff.c: Likewise.
14251         * defaults.h: Likewise.
14252         * dwarf2.h: Likewise.
14253         * emutls.c: Likewise.
14254         * gbl-ctors.h: Likewise.
14255         * gcov-io.h: Likewise.
14256         * ginclude/float.h: Likewise.
14257         * ginclude/iso646.h: Likewise.
14258         * ginclude/stdarg.h: Likewise.
14259         * ginclude/stdbool.h: Likewise.
14260         * ginclude/stddef.h: Likewise.
14261         * ginclude/stdfix.h: Likewise.
14262         * ginclude/stdint-gcc.h: Likewise.
14263         * ginclude/tgmath.h: Likewise.
14264         * gthr-aix.h: Likewise.
14265         * gthr-dce.h: Likewise.
14266         * gthr-gnat.c: Likewise.
14267         * gthr-gnat.h: Likewise.
14268         * gthr-lynx.h: Likewise.
14269         * gthr-mipssde.h: Likewise.
14270         * gthr-nks.h: Likewise.
14271         * gthr-posix.c: Likewise.
14272         * gthr-posix.h: Likewise.
14273         * gthr-posix95.h: Likewise.
14274         * gthr-rtems.h: Likewise.
14275         * gthr-single.h: Likewise.
14276         * gthr-solaris.h: Likewise.
14277         * gthr-tpf.h: Likewise.
14278         * gthr-vxworks.h: Likewise.
14279         * gthr-win32.h: Likewise.
14280         * gthr.h: Likewise.
14281         * libgcc2.c: Likewise.
14282         * libgcc2.h: Likewise.
14283         * libgcov.c: Likewise.
14284         * tsystem.h: Likewise.
14285         * typeclass.h: Likewise.
14286         * unwind-c.c: Likewise.
14287         * unwind-compat.h: Likewise.
14288         * unwind-dw2-fde-compat.c: Likewise.
14289         * unwind-dw2-fde-darwin.c: Likewise.
14290         * unwind-dw2-fde-glibc.c: Likewise.
14291         * unwind-dw2-fde.c: Likewise.
14292         * unwind-dw2-fde.h: Likewise.
14293         * unwind-dw2.c: Likewise.
14294         * unwind-dw2.h: Likewise.
14295         * unwind-generic.h: Likewise.
14296         * unwind-pe.h: Likewise.
14297         * unwind-sjlj.c: Likewise.
14298         * unwind.inc: Likewise.
14299         * config/arm/neon-gen.ml: Change generated copyright header to
14300         refer to version 3 of the GNU General Public License with
14301         version 3.1 of the GCC Runtime Library Exception and to point
14302         readers at the COPYING3 and COPYING3.RUNTIME files and the
14303         FSF's license web page.
14304         * config/arm/arm_neon.h: Regenerate.
14305
14306 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
14307
14308         * config/cris/cris.md: Change copyright header to refer to version
14309         3 of the GNU General Public License.
14310         * doc/install.texi2html: Change copyright header to refer to version
14311         3 of the GNU General Public License and to point readers at the
14312         COPYING3 file and the FSF's license web page.
14313         * config/vax/linux.h: Likewise.
14314
14315 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
14316
14317         * config/i386/i386.md (cmpcc): New.
14318         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
14319         (sync_compare_and_swap_cc*): Delete.
14320
14321         * config/s390/s390.c (s390_compare_emitted): Remove.
14322         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
14323         s390_compare_emitted used to be handled.  Assert that modes match.
14324         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
14325         refer to sync_compare_and_swap_ccsi.
14326         * config/s390/s390.h (s390_compare_emitted): Remove.
14327         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
14328         instead of s390_compare_emitted.
14329         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
14330         instead of s390_compare_emitted.
14331         * config/s390/s390.md (cmpcc): New.
14332         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
14333         CC_REGNUM, do not pretend it's set.
14334         (sync_compare_and_swap_cc*): Delete.
14335         * config/s390/predicates.md (cc_reg_operand): New.
14336
14337         * expr.c (sync_compare_and_swap_cc): Delete.
14338         * optabs.h (sync_compare_and_swap_cc): Delete.
14339         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
14340         is being used with can_compare_p.
14341         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
14342         (find_cc_set): New.
14343         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
14344         look for a MODE_CC set instead.  Use emit_store_flag.
14345         (expand_compare_and_swap_loop): Likewise, with some additional
14346         complication to avoid a force_reg when useless.  Use
14347         emit_cmp_and_jump_insns.
14348         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
14349         * doc/md.texi (sync_compare_and_swap_cc): Merge with
14350         sync_compare_and_swap documentation.
14351
14352 2009-04-09  Jan Hubicka  <jh@suse.cz>
14353
14354         * except.c (find_prev_try): Break out from ....
14355         (duplicate_eh_regions): ... here; properly update prev_try pointers
14356         when duplication part of tree.
14357         (dump_eh_tree): Improve dumping.
14358         (verify_eh_region): New.
14359         (verify_eh_tree): Use it.
14360
14361 2009-04-06  Richard Guenther  <rguenther@suse.de>
14362
14363         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
14364         &ARRAY addresses by adjusting their types and prepending
14365         a conversion.
14366         * tree-cfg.c (verify_gimple_assign_single): Verify that
14367         addresses are correct.
14368
14369 2009-04-09  Richard Guenther  <rguenther@suse.de>
14370
14371         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
14372         indices into an array reference if possible.
14373         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14374         Fold POINTER_PLUS_EXPR statements with invariant address.
14375
14376 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
14377
14378         PR target/39634
14379         * config.gcc (powerpc64-*-linux*): Always build biarch.
14380
14381 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
14382
14383         PR c/39613
14384         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
14385         it and pedwarn if this results in an INTEGER_CST.
14386
14387 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14388
14389         * doc/install.texi: Update minimum GMP version.  Remove obsolete
14390         text in MPFR section.
14391
14392 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
14393
14394         * dwarf2out.c (class_scope_p): New static inline.
14395         (class_or_namespace_scope_p): Use it.
14396         (gen_variable_die): Use DW_TAG_member tag for static data member
14397         declarations instead of DW_TAG_variable.
14398
14399         PR middle-end/39573
14400         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
14401         variables.
14402
14403 2009-04-08  Richard Guenther  <rguenther@suse.de>
14404
14405         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
14406         valueize random data.
14407
14408 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
14409
14410         * config.gcc (aix tm_file):  Add aix-stdint.h.
14411         (aix tm clause use_gcc_stdint):  Set to wrap.
14412         * config/rs6000/aix-stdint.h:  New file.
14413
14414 2009-04-08  Richard Guenther  <rguenther@suse.de>
14415
14416         PR middle-end/36291
14417         * tree-dfa.c (add_referenced_var): Do not recurse into
14418         global initializers.
14419         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
14420         exposed variables.
14421         (fold_const_aggregate_ref): Likewise.
14422
14423 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14424
14425         * recog.c (ordered_comparison_operator): New.
14426         * gensupport.c (std_preds): Add it.
14427         * doc/md.texi (Machine-Independent Predicates): Document it.
14428
14429 2009-04-08  Jan Hubicka  <jh@suse.cz>
14430
14431         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
14432         * function.h (rtl_eh): Remove exception_handler_label_map.
14433         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
14434         remove_exception_handler_label, for_each_eh_label_1): Remove.
14435         (rtl_remove_unreachable_regions): Remove.
14436         (convert_from_eh_region_ranges): Do not remove unreachable regions.
14437         (find_exception_handler_labels): Don't build the hashtable.
14438         (maybe_remove_eh_handler): Remove.
14439         (for_each_eh_label): Rewrite to walk the tree.
14440         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
14441         * except.h (maybe_remove_eh_handler): Remove.
14442         * passes.c (init_optimization_passes): Schedule second EH cleanup
14443         before out-of-ssa.
14444         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
14445         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
14446
14447 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14448
14449         * genoutput.c (validate_optab_operands): New.
14450         (gen_insn, gen_expand): Call it.
14451
14452         * genflags.c (gen_insn): Detect misused iterators.
14453         (main): Pass line_no to gen_insn, exit with status 1 on error.
14454
14455         * genextract.c (line_no): Make global.
14456         (VEC_safe_set_locstr): Change assertion to error message.
14457         (main): Exit with status 1 on error.
14458
14459 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
14460
14461         PR c/39614
14462         PR c/39673
14463         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
14464         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
14465         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
14466         * c-convert.c (convert): Do not call fold on results of conversion
14467         functions when the result is a C_MAYBE_CONST_EXPR.
14468         * c-parser.c (c_parser_postfix_expression): Do not fold condition
14469         of __builtin_choose_expr.
14470         * c-typeck.c (remove_c_maybe_const_expr): New.
14471         (build_unary_op, build_conditional_expr, build_compound_expr,
14472         build_binary_op, c_objc_common_truthvalue_conversion): Call
14473         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
14474         integer operands.
14475
14476 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
14477
14478         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
14479         CODE to produce a new one. Add a prototype to use fold_convert_const
14480
14481 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
14482
14483         PR bootstrap/39660
14484         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
14485         mix declarations and code.
14486
14487 2009-04-08  Ben Elliston  <bje@au.ibm.com>
14488
14489         * gcc.c: Replace `CC' with `GCC' throughout.
14490
14491 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
14492
14493         * doc/invoke.texi: Document Atom support.
14494
14495 2009-04-07  Jason Merrill  <jason@redhat.com>
14496
14497         PR c++/25185
14498         * c-common.h, c-common.c: Add flag_pretty_templates.
14499         * c-opts.c (c_common_handle_option): Set it.
14500         * c.opt: Add -fno-pretty-templates.
14501         * doc/invoke.texi (C++ Dialect Options): Likewise.
14502
14503 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
14504
14505         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
14506         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
14507         (ia64_expand_builtin): Likewise.
14508
14509 2009-04-07  Martin Jambor  <mjambor@suse.cz>
14510
14511         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
14512         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
14513         ADDR_EXPRS are include too.
14514
14515 2009-04-07  Richard Guenther  <rguenther@suse.de>
14516
14517         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
14518         decls are only used if passes as parameters or if they are
14519         local statics and the call is not to a builtin.
14520         (call_may_clobber_ref_p_1): Likewise.
14521
14522 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14523
14524         * expr.c (do_store_flag): Remove last argument.  Simplify code
14525         to avoid duplication of tests already done by can_compare_p.
14526         (expand_expr_real_1): Adjust caller.
14527
14528 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14529
14530         * optabs.c (can_compare_p): Test the predicate of a
14531         cbranch and cstore pattern.
14532
14533 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14534
14535         * expr.c (convert_move): Use emit_store_flag instead of
14536         "emulating" it.
14537
14538 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14539
14540         * config/i386/i386.c (ix86_compare_emitted): Remove.
14541         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
14542         ix86_compare_op0 like ix86_compare_emitted used to be handled.
14543         * config/i386/i386.h (ix86_compare_emitted): Remove.
14544         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
14545         instead of ix86_compare_emitted.
14546         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
14547
14548 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
14549
14550         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
14551         Add t-sysroot-suffix to tmake_file.
14552         * config/print-sysroot-suffix.sh: New file.
14553         * config/t-sysroot-suffix: New file.
14554
14555 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14556
14557         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
14558         as the latter produces a warning when the target does not support
14559         infinity.
14560
14561 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14562
14563         * dfp.c: Replace type punning assignments with memcpy throughout.
14564         * Makefile.in (dfp.o-warn): Remove.
14565
14566 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
14567
14568         PR target/39634
14569         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
14570         Include soft-fp/t-softfp after rs6000/t-linux64.
14571
14572 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14573
14574         * stor-layout.c (set_sizetype): Use the full precision of their
14575         machine mode for bitsize types.
14576
14577 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14578
14579         * config/i386/i386.md: Revert 2 accidental checkins.
14580
14581 2009-04-06  Joey Ye  <joey.ye@intel.com>
14582             Xuepeng Guo  <xuepeng.guo@intel.com>
14583             H.J. Lu  <hongjiu.lu@intel.com>
14584
14585         Atom pipeline model, tuning and insn selection.
14586         * config.gcc (atom): Add atom config options and target.
14587
14588         * config/i386/atom.md: New.
14589
14590         * config/i386/i386.c (atom_cost): New cost.
14591         (m_ATOM): New macro flag.
14592         (initial_ix86_tune_features): Set m_ATOM.
14593         (x86_accumulate_outgoing_args): Likewise.
14594         (x86_arch_always_fancy_math_387): Likewise.
14595         (processor_target): Add Atom cost.
14596         (cpu_names): Add Atom cpu name.
14597         (override_options): Set Atom ISA.
14598         (ix86_issue_rate): New case PROCESSOR_ATOM.
14599         (ix86_adjust_cost): Likewise.
14600
14601         * config/i386/i386.h (TARGET_ATOM): New target macro.
14602         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
14603         (TARGET_OPT_AGU): New target option.
14604         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
14605         (processor_type): Add PROCESSOR_ATOM.
14606
14607         * config/i386/i386.md (cpu): Add new value "atom".
14608         (use_carry, movu): New attr.
14609         (atom.md): Include atom.md.
14610         (adddi3_carry_rex64): Set attr "use_carry".
14611         (addqi3_carry): Likewise.
14612         (addhi3_carry): Likewise.
14613         (addsi3_carry): Likewise.
14614         (*addsi3_carry_zext): Likewise.
14615         (subdi3_carry_rex64): Likewise.
14616         (subqi3_carry): Likewise.
14617         (subhi3_carry): Likewise.
14618         (subsi3_carry): Likewise.
14619         (x86_movdicc_0_m1_rex64): Likewise.
14620         (*x86_movdicc_0_m1_se): Likewise.
14621         (x86_movsicc_0_m1): Likewise.
14622         (*x86_movsicc_0_m1_se): Likewise.
14623         (*adddi_1_rex64): Emit add insn as much as possible.
14624         (*addsi_1): Likewise.
14625         (return_internal): Set atom_unit.
14626         (return_internal_long): Likewise.
14627         (return_pop_internal): Likewise.
14628         (*rcpsf2_sse): Set atom_sse_attr attr.
14629         (*qrt<mode>2_sse): Likewise.
14630         (*prefetch_sse): Likewise.
14631
14632         * config/i386/i386-c.c (ix86_target_macros_internal): New case
14633         PROCESSOR_ATOM.
14634         (ix86_target_macros_internal): Likewise.
14635
14636         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
14637         (*prefetch_sse_rex): Likewise.
14638         (sse_rcpv4sf2): Likewise.
14639         (sse_vmrcpv4sf2): Likewise.
14640         (sse_sqrtv4sf2): Likewise.
14641         (<sse>_vmsqrt<mode>2): Likewise.
14642         (sse_ldmxcsr): Likewise.
14643         (sse_stmxcsr): Likewise.
14644         (*sse_sfence): Likewise.
14645         (sse2_clflush): Likewise.
14646         (*sse2_mfence): Likewise.
14647         (*sse2_lfence): Likewise.
14648         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
14649         (<sse>_movup<ssemodesuffixf2c>): Likewise.
14650         (avx_movdqu<avxmodesuffix>): Likewise.
14651         (avx_lddqu<avxmodesuffix>): Likewise.
14652         (sse2_movntv2di): Change attr "type" to "ssemov".
14653         (sse2_movntsi): Likewise.
14654         (rsqrtv8sf2): Change attr "type" to "sseadd".
14655         (sse3_addsubv2df3): Set attr "atom_unit".
14656         (sse3_h<plusminus_insn>v4sf3): Likewise.
14657         (*sse2_pmaddwd): Likewise.
14658         (*vec_extractv2di_1_rex64): Likewise.
14659         (*vec_extractv2di_1_avx): Likewise.
14660         (sse2_psadbw): Likewise.
14661         (ssse3_phaddwv8hi3): Likewise.
14662         (ssse3_phaddwv4hi3): Likewise.
14663         (ssse3_phadddv4si3): Likewise.
14664         (ssse3_phadddv2si3): Likewise.
14665         (ssse3_phaddswv8hi3): Likewise.
14666         (ssse3_phaddswv4hi3): Likewise.
14667         (ssse3_phsubwv8hi3): Likewise.
14668         (ssse3_phsubwv4hi3): Likewise.
14669         (ssse3_phsubdv4si3): Likewise.
14670         (ssse3_phsubdv2si3): Likewise.
14671         (ssse3_phsubswv8hi3): Likewise.
14672         (ssse3_phsubswv4hi3): Likewise.
14673         (ssse3_pmaddubsw128): Likewise.
14674         (sse3_pmaddubsw: Likewise.
14675         (ssse3_palignrti): Likewise.
14676         (ssse3_palignrdi): Likewise.
14677
14678 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
14679
14680         * doc/install.texi (Specific): Fix two cross-references to MinGW.
14681
14682 2009-04-06  Richard Guenther  <rguenther@suse.de>
14683
14684         PR tree-optimization/28868
14685         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
14686         of which PHI results we inserted.
14687         (insert_into_preds_of_block): Record inserted PHIs.
14688         (eliminate): Eliminate redundant PHI nodes.
14689         (init_pre): Init inserted_phi_names.
14690
14691 2009-04-06  Richard Guenther  <rguenther@suse.de>
14692
14693         PR tree-optimization/39643
14694         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
14695         IMAGPART_EXPRs of complex constants.
14696         (execute_fold_all_builtins): If we folded a call queue
14697         TODO_update_address_taken.
14698
14699 2009-04-06  Jan Hubicka  <jh@suse.cz>
14700
14701         PR middle-end/39659
14702         * except.c (remove_unreachable_regions): Propagate may_contain_throw
14703         flag.
14704
14705 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
14706
14707         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
14708         delay slot.
14709         (ic_invalidate_array): Likewise.
14710
14711 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
14712
14713         * calls.c (emit_library_call_value_1): Fix a problem with parameter
14714         alignment for library calls.
14715
14716 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
14717
14718         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
14719         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
14720         * config/i386/mingw-stdint.h:  New file.
14721
14722 2009-04-05  Richard Guenther  <rguenther@suse.de>
14723
14724         PR tree-optimization/39648
14725         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
14726         our &A vs. &A[0] IL deficiencies.
14727
14728 2009-04-04  Jan Hubicka  <jh@suse.cz>
14729
14730         * except.c (sjlj_find_directly_reachable_regions): Be ready for
14731         removed toplevel regions.
14732         (sjlj_mark_call_sites): Likewise.
14733
14734 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
14735
14736         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
14737         (cygwin tm clause use_gcc_stdint):  Set to wrap.
14738         * config/i386/cygwin-stdint.h:  New file.
14739
14740 2009-04-04  Richard Guenther  <rguenther@suse.de>
14741
14742         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
14743         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
14744         single-argument PHIs if we are in loop-closed SSA form.
14745         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
14746         for the pre-condition.
14747         (slpeel_tree_peel_loop_to_edge): Likewise.
14748         (vect_build_loop_niters): Take an optional sequence to append stmts.
14749         (vect_generate_tmps_on_preheader): Likewise.
14750         (vect_do_peeling_for_loop_bound): Take extra guards for the
14751         pre-condition.
14752         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
14753         the cost model check.
14754         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
14755         guards if we are going to peel.  Do not apply versioning in that case.
14756         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
14757         (vect_do_peeling_for_loop_bound): Likewise.
14758         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
14759         loop bound only record extra pre-conditions, do not apply loop
14760         versioning.
14761
14762 2009-04-04  Richard Guenther  <rguenther@suse.de>
14763
14764         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
14765         renaming code.
14766
14767 2009-04-04  Jan Hubicka  <jh@suse.cz>
14768
14769         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14770         last_basic_block for size of bb->index indexed array.
14771         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
14772         compute_out, link_btr_uses, build_btr_def_use_webs,
14773         build_btr_def_use_webs, migrate_btr_defs): Likewise.
14774
14775 2009-04-04  Jan Hubicka  <jh@suse.cz>
14776
14777         * except.c (remove_eh_handler_and_replace): Break out from ...
14778         (remove_eh_handler): ... here.
14779         (bring_to_root): New function.
14780         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
14781         handled ones, bring others to root of tree.
14782
14783 2009-04-04  Jan Hubicka  <jh@suse.cz>
14784
14785         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
14786         (all_phis_safe_to_merge): New function.
14787         (update_info): New structure.
14788         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
14789         (cleanup_empty_eh): Update SSA if possible.
14790
14791 2009-04-04  Richard Guenther  <rguenther@suse.de>
14792
14793         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
14794         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
14795         (append_vuse): Likewise.
14796
14797 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
14798
14799         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
14800         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
14801         instead of REG_UNSAVED for DW_CFA_undefined.
14802         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
14803         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
14804         outermost frame.
14805
14806 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
14807
14808         PR target/39501
14809         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
14810         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
14811         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
14812
14813 2009-04-04  Richard Guenther  <rguenther@suse.de>
14814
14815         PR tree-optimization/8781
14816         PR tree-optimization/37892
14817         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
14818         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
14819         (valueize_refs): Call it for *& valueizations.
14820         (shared_reference_ops_from_ref): Rename to ...
14821         (valueize_shared_reference_ops_from_ref): ... this and valueize.
14822         (shared_reference_ops_from_call): Rename to ...
14823         (valueize_shared_reference_ops_from_call): ... this and valueize.
14824         (vn_reference_lookup): Update.
14825         (visit_reference_op_call): Likewise.
14826         * tree-ssa-pre.c (phi_translate_1): Fold *&.
14827         (eliminate): Value-replace the call address in call statements.
14828
14829 2009-04-04  Richard Guenther  <rguenther@suse.de>
14830
14831         PR tree-optimization/39636
14832         * tree-ssa-forwprop.c
14833         (forward_propagate_addr_into_variable_array_index): Check for
14834         GIMPLE_ASSIGN before accessing the rhs code.
14835
14836 2009-04-03  Jason Merrill  <jason@redhat.com>
14837
14838         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
14839
14840 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
14841
14842         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
14843         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
14844         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
14845         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
14846         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
14847         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
14848         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
14849         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
14850         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
14851         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
14852         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
14853         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
14854         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
14855         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
14856         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
14857         Use fr_reg_or_fp01_operand instead of fr_register_operand
14858
14859         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
14860         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
14861         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
14862
14863 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
14864
14865         PR rtl-optimization/39607
14866         PR rtl-optimization/39631
14867
14868         Revert:
14869
14870         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14871         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
14872         instead of DF_LR_OUT.
14873         * ira-lives.c (process_bb_node_lives): Ditto.
14874         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
14875         instead of DF_LR_{OUT,IN}.
14876         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
14877         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
14878
14879 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
14880
14881         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
14882         (execute_lower_omp): Always run but take the short way out if -fopenmp
14883         is not given.
14884         (gate_lower_omp): Remove, forcing the pass manager to always run the
14885         pass and always set PROP_gimple_lomp.
14886         (pass_lower_omp): Remove gate function.
14887         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
14888         PROP_trees.  Instead, require it.
14889         * ipa-cp.c (pass_ipa_cp): Likewise.
14890         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
14891         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
14892         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
14893         and PROP_gimple_leh.
14894
14895 2009-04-03  Richard Guenther  <rguenther@suse.de>
14896
14897         PR middle-end/13146
14898         PR tree-optimization/23940
14899         PR tree-optimization/33237
14900         PR middle-end/33974
14901         PR middle-end/34093
14902         PR tree-optimization/36201
14903         PR tree-optimization/36230
14904         PR tree-optimization/38049
14905         PR tree-optimization/38207
14906         PR tree-optimization/38230
14907         PR tree-optimization/38301
14908         PR tree-optimization/38585
14909         PR middle-end/38895
14910         PR tree-optimization/38985
14911         PR tree-optimization/39299
14912         * tree-ssa-structalias.h: Remove.
14913         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
14914         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
14915         (struct vuse_element_d): Remove.
14916         (struct vuse_vec_d): Likewise.
14917         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
14918         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
14919         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
14920         VUSE_ELEMENT_VAR): Likewise.
14921         (struct voptype_d): Likewise.
14922         (NUM_VOP_FREE_BUCKETS): Likewise.
14923         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
14924         (struct stmt_operands_d): Remove.
14925         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
14926         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
14927         VDEF_NUM, VDEF_VECT): Likewise.
14928         (copy_virtual_operands): Remove.
14929         (operand_build_cmp): Likewise.
14930         (create_ssa_artificial_load_stmt): Likewise.
14931         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
14932         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
14933         vuse_index and mayuse_index members.  Pack and move done and iter_type
14934         members to the front.
14935         (SSA_OP_VMAYUSE): Remove.
14936         (SSA_OP_VIRTUAL_USES): Adjust.
14937         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
14938         (unlink_stmt_vdef): Declare.
14939         (add_to_addressable_set): Remove.
14940         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
14941         (vrp_visit_stmt): Likewise.
14942         * doc/tree-ssa.texi (Alias analysis): Update.
14943         * doc/invoke.texi (max-aliased-vops): Remove docs.
14944         (avg-aliased-vops): Likewise.
14945         * tree-into-ssa.c (syms_to_rename): Remove.
14946         (need_to_update_vops_p): Likewise.
14947         (need_to_initialize_update_ssa_p): Rename to ...
14948         (update_ssa_initialized_fn): ... this.  Track function we are
14949         initialized for.
14950         (symbol_marked_for_renaming): Simplify.
14951         (add_new_name_mapping): Do not set need_to_update_vops_p.
14952         (dump_currdefs): Use SYMS_TO_RENAME.
14953         (rewrite_update_stmt): Always walk all uses/defs.
14954         (dump_update_ssa): Adjust.
14955         (init_update_ssa): Take function argument.  Track what we are
14956         initialized for.
14957         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
14958         (create_new_def_for): Initialize for cfun, assert we are initialized
14959         for cfun.
14960         (mark_sym_for_renaming): Simplify.
14961         (mark_set_for_renaming): Do not initialize update-ssa.
14962         (need_ssa_update_p): Simplify.  Take function argument.
14963         (name_mappings_registered_p): Assert we ask for the correct function.
14964         (name_registered_for_update_p): Likewise.
14965         (ssa_names_to_replace): Likewise.
14966         (release_ssa_name_after_update_ssa): Likewise.
14967         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
14968         (dump_decl_set): Do not print a newline.
14969         (debug_decl_set): Do it here.
14970         (dump_update_ssa): And here.
14971         * tree-ssa-loop-im.c (move_computations): Adjust.
14972         (movement_possibility): Likewise.
14973         (determine_max_movement): Likewise.
14974         (gather_mem_refs_stmt): Likewise.
14975         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
14976         or NAME_MEMORY_TAG.
14977         * tree-complex.c (update_all_vops): Remove.
14978         (expand_complex_move): Adjust.
14979         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
14980         Simplify test for memory referencing statement.  Exclude
14981         non-invariant ADDR_EXPRs.
14982         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
14983         * tree-loop-distribution.c (generate_memset_zero): Adjust.
14984         (rdg_flag_uses): Likewise.
14985         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
14986         related code.
14987         (tree_optimize_tail_calls_1): Also split the
14988         edge from the entry block if we have degenerate PHI nodes in
14989         the first basic block.
14990         * tree.c (init_ttree): Remove memory-tag related code.
14991         (tree_code_size): Likewise.
14992         (tree_node_structure): Likewise.
14993         (build7_stat): Re-write to be build6_stat.
14994         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
14995         (SSA_VAR_P): Adjust.
14996         (struct tree_memory_tag): Remove.
14997         (struct tree_memory_partition_tag): Likewise.
14998         (union tree_node): Adjust.
14999         (build7): Re-write to be build6.
15000         * tree-pass.h (pass_reset_cc_flags): Remove.
15001         (TODO_update_address_taken): New flag.
15002         (pass_simple_dse): Remove.
15003         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
15004         * params.h (MAX_ALIASED_VOPS): Remove.
15005         (AVG_ALIASED_VOPS): Likewise.
15006         * omp-low.c (expand_omp_taskreg): Update SSA form.
15007         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
15008         aliases the lhs in a copy stmt.
15009         * tree-ssa-dse.c (struct address_walk_data): Remove.
15010         (memory_ssa_name_same): Likewise.
15011         (memory_address_same): Likewise.
15012         (get_kill_of_stmt_lhs): Likewise.
15013         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
15014         unused stores.  Look through PHI nodes into post-dominated regions.
15015         (dse_optimize_stmt): Simplify.  Properly remove stores.
15016         (tree_ssa_dse): Compute dominators.
15017         (execute_simple_dse): Remove.
15018         (pass_simple_dse): Likewise.
15019         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
15020         gimple_loaded_syms and gimple_stored_syms computation.
15021         * toplev.c (dump_memory_report): Dump alias and pta stats.
15022         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
15023         (vn_reference_eq): Likewise.
15024         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
15025         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
15026         valueize_vuses): Remove.
15027         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
15028         (get_def_ref_stmt_vuse): ... this.
15029         (vn_reference_lookup_2): New function.
15030         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
15031         walking equivalent vuses.  Simplify.
15032         (vn_reference_lookup): Likewise.
15033         (vn_reference_insert): Likewise.
15034         (vn_reference_insert_pieces): Likewise.
15035         (visit_reference_op_call): Simplify.
15036         (visit_reference_op_load): Likewise.
15037         (visit_reference_op_store): Likewise.
15038         (init_scc_vn): Remove shared_lookup_vuses initialization.
15039         (free_scc_vn): Remove shared_lookup_vuses freeing.
15040         (sort_vuses, sort_vuses_heap): Remove.
15041         (get_ref_from_reference_ops): Export.
15042         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
15043         vector with single vuse pointer.
15044         (vn_reference_lookup_pieces, vn_reference_lookup,
15045         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
15046         (shared_vuses_from_stmt): Remove.
15047         (get_ref_from_reference_ops): Declare.
15048         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
15049         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15050         memory-tag related code.
15051         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
15052         (likely_value): Add comment, skip static-chain of call statements.
15053         (surely_varying_stmt_p): Adjust.
15054         (gimplify_and_update_call_from_tree): Likewise.
15055         (execute_fold_all_builtins): Do not rebuild alias info.
15056         (gimplify_and_update_call_from_tree): Properly update VOPs.
15057         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
15058         (copy_ref_info): Remove memory-tag related code.
15059         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
15060         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
15061         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
15062         computation.
15063         * tree-ssa-dom.c (gimple_p): Remove typedef.
15064         (eliminate_redundant_computations): Adjust.
15065         (record_equivalences_from_stmt): Likewise.
15066         (avail_expr_hash): Likewise.
15067         (avail_expr_eq): Likewise.
15068         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
15069         (stmt_makes_single_load): Likewise.
15070         (stmt_makes_single_store): Likewise.
15071         * tree-ssa-alias.c: Rewrite completely.
15072         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
15073         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
15074         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
15075         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
15076         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
15077         Remove public functions.
15078         (pass_reset_cc_flags): Remove.
15079         (pass_build_alias): Move ...
15080         * tree-ssa-structalias.c (pass_build_alias): ... here.
15081         * tree-ssa-alias.c (may_be_aliased): Move ...
15082         * tree-flow-inline.h (may_be_aliased): ... here.
15083         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
15084         count_uses_and_derefs): Move ...
15085         * gimple.c: ... here.
15086         * gimple.h (count_uses_and_derefs): Declare.
15087         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
15088         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
15089         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
15090         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
15091         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
15092         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
15093         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
15094         New functions.
15095         * tree-dfa.c (refs_may_alias_p): Move ...
15096         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
15097         * tree-ssa-alias.h: New file.
15098         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
15099         (statement_sink_location): Likewise.
15100         * opts.c (decode_options): Do not adjust max-aliased-vops or
15101         avg-aliased-vops values.
15102         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
15103         (TV_CALL_CLOBBER): Likewise.
15104         (TV_FLOW_SENSITIVE): Likewise.
15105         (TV_FLOW_INSENSITIVE): Likewise.
15106         (TV_MEMORY_PARTITIONING): Likewise.
15107         (TV_ALIAS_STMT_WALK): New timevar.
15108         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
15109         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
15110         (get_address_description): Remove memory-tag related code.
15111         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
15112         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
15113         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
15114         and immediate uses in statements.  Document.
15115         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
15116         (dump_symbols): Remove.
15117         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
15118         * alias.c (get_deref_alias_set): New function split out from ...
15119         (get_alias_set): ... here.
15120         * alias.h (get_deref_alias_set): Declare.
15121         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
15122         type parameter.  Remove restrict pointer handling.  Create a
15123         ref-all pointer in case type-based alias sets do not conflict.
15124         (vect_analyze_data_refs): Remove SMT related code.
15125         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
15126         (vectorizable_load): Likewise.
15127         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
15128         (DR_SYMBOL_TAG, DR_VOPS): Remove.
15129         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
15130         Ignore vops and SMTs.
15131         (dr_analyze_alias): Likewise..
15132         (free_data_ref): Likewise.
15133         (create_data_ref): Likewise.
15134         (analyze_all_data_dependences): Likewise.
15135         (get_references_in_stmt): Adjust.
15136         * tree-flow-inline.h (gimple_aliases_computed_p,
15137         gimple_addressable_vars, gimple_call_clobbered_vars,
15138         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
15139         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
15140         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
15141         gimple_mem_ref_stats): Remove.
15142         (gimple_vop): New function.
15143         (op_iter_next_use): Remove vuses and mayuses cases.
15144         (op_iter_next_def): Remove vdefs case.
15145         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
15146         (clear_and_done_ssa_iter): Do not set removed fields.
15147         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
15148         Assert we are not iterating over vuses or vdefs if not also
15149         iterating over uses or defs.
15150         (op_iter_init_use): Likewise.
15151         (op_iter_init_def): Likewise.
15152         (op_iter_next_vdef): Remove.
15153         (op_iter_next_mustdef): Likewise.
15154         (op_iter_init_vdef): Likewise.
15155         (compare_ssa_operands_equal): Likewise.
15156         (link_use_stmts_after): Handle vuse operand.
15157         (is_call_used): Use is_call_clobbered.
15158         (is_call_clobbered): Global variables are always call clobbered,
15159         query the call-clobbers bitmap.
15160         (mark_call_clobbered): Ignore global variables.
15161         (clear_call_clobbered): Likewise.
15162         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
15163         virtual operands sanity check.
15164         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
15165         Remove.
15166         (TARGET_MEM_REF): Remove TMR_TAG operand.
15167         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
15168         Remove call-clobber related code.
15169         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
15170         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
15171         partitions or escape reason.
15172         (get_single_def_stmt, get_single_def_stmt_from_phi,
15173         get_single_def_stmt_with_phi): Remove.
15174         (dump_referenced_vars): Tidy.
15175         (get_ref_base_and_extent): Allow bare decls.
15176         (collect_dfa_stats): Adjust.
15177         * graphite.c (rename_variables_in_stmt): Adjust.
15178         (graphite_copy_stmts_from_block): Likewise.
15179         (translate_clast): Likewise.
15180         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
15181         (EXPR_DIES): New.
15182         (translate_vuse_through_block): Use the oracle.
15183         (phi_translate_1): Adjust.
15184         (value_dies_in_block_x): Use the oracle.  Cache the outcome
15185         in EXPR_DIES.
15186         (valid_in_sets): Check if the VUSE for
15187         a REFERENCE is available.
15188         (eliminate): Do not remove stmts during elimination,
15189         instead queue and remove them afterwards.
15190         (do_pre): Do not rebuild alias info.
15191         (pass_pre): Run TODO_rebuild_alias before PRE.
15192         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
15193         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
15194         (mark_all_v_defs_stmt): Remove.
15195         (mark_all_v_defs_seq): Adjust.
15196         (sra_replace): Likewise.
15197         (scalarize_use): Likewise.
15198         (scalarize_copy): Likewise.
15199         (scalarize_init): Likewise.
15200         (scalarize_ldst): Likewise.
15201         (todoflags): Remove.
15202         (tree_sra): Do not rebuild alias info.
15203         (tree_sra_early): Adjust.
15204         (pass_sra): Run TODO_update_address_taken before SRA.
15205         * tree-predcom.c (set_alias_info): Remove.
15206         (prepare_initializers_chain): Do not call it.
15207         (mark_virtual_ops_for_renaming): Adjust.
15208         (mark_virtual_ops_for_renaming_list): Remove.
15209         (initialize_root_vars): Adjust.
15210         (initialize_root_vars_lm): Likewise.
15211         (prepare_initializers_chain): Likewise.
15212         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
15213         (may_propagate_copy_into_stmt): Likewise.
15214         (merge_alias_info): Do nothing for now.
15215         (propagate_tree_value_into_stmt): Adjust.
15216         (stmt_may_generate_copy): Likewise.
15217         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
15218         not mark symbols for renaming.
15219         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
15220         with the same statement, make sure to update the new pointed-to one.
15221         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
15222         call statements, do not mark symbols for renaming.
15223         (mark_operand_necessary): Dump something.
15224         (ref_may_be_aliased): New function.
15225         (mark_aliased_reaching_defs_necessary_1): New helper function.
15226         (mark_aliased_reaching_defs_necessary): Likewise.
15227         (mark_all_reaching_defs_necessary_1): Likewise.
15228         (mark_all_reaching_defs_necessary): Likewise.
15229         (propagate_necessity): Do not process virtual PHIs.  For
15230         non-aliased loads mark all reaching definitions as necessary.
15231         For aliased loads and stores mark the immediate dominating
15232         aliased clobbers as necessary.
15233         (visited): New global static.
15234         (perform_tree_ssa_dce): Free visited bitmap after propagating
15235         necessity.
15236         (remove_dead_phis): Perform simple dead virtual PHI removal.
15237         (remove_dead_stmt): Properly unlink virtual operands when
15238         removing stores.
15239         (eliminate_unnecessary_stmts): Schedule PHI removal after
15240         stmt removal.
15241         * tree-ssa-ter.c (is_replaceable_p): Adjust.
15242         (process_replaceable): Likewise.
15243         (find_replaceable_in_bb): Likewise.
15244         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
15245         based on the single gimple vop.
15246         (verify_flow_insensitive_alias_info): Remove.
15247         (verify_flow_sensitive_alias_info): Likewise.
15248         (verify_call_clobbering): Likewise.
15249         (verify_memory_partitions): Likewise.
15250         (verify_alias_info): Likewise.
15251         (verify_ssa): Adjust..
15252         (execute_update_addresses_taken): Export.  Update SSA
15253         manually.  Optimize only when optimizing.  Use a local bitmap.
15254         (pass_update_address_taken): Remove TODO_update_ssa, add
15255         TODO_dump_func.
15256         (pass_update_address_taken): Just use TODO_update_address_taken.
15257         (init_tree_ssa): Do not initialize addressable_vars.
15258         (verify_ssa): Verify new VUSE / VDEF properties.
15259         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
15260         Do not call verify_alias_info.
15261         (delete_tree_ssa): Clear the VUSE, VDEF operands.
15262         Do not free the loaded and stored syms bitmaps.  Reset the escaped
15263         and callused solutions.  Do not free addressable_vars.
15264         Remove memory-tag related code.
15265         (warn_uninitialized_var): Aliases are always available.
15266         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
15267         * lambda-code.c (can_put_in_inner_loop): Adjust.
15268         (can_put_after_inner_loop): Likewise.
15269         (perfect_nestify): Likewise.
15270         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
15271         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
15272         (vectorizable_conversion): Do not mark symbols for renaming.
15273         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
15274         (expand_call_inline): Unlink the calls virtual operands before
15275         replacing it.
15276         (tree_function_versioning): Do not call update_ssa if we are not
15277         updating clones.  Simplify.
15278         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
15279         (propagate_with_phi): Likewise..
15280         * tree-outof-ssa.c (create_temp): Remove memory tag and call
15281         clobber code.  Assert we are not aliased or global.
15282         * tree-flow.h: Include tree-ssa-alias.h
15283         (enum escape_type): Remove.
15284         (struct mem_sym_stats_d): Likewise.
15285         (struct mem_ref_stats_d): Likewise.
15286         (struct gimple_df): Add vop member.  Remove global_var,
15287         call_clobbered_vars, call_used_vars, addressable_vars,
15288         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
15289         escaped and callused members.
15290         (struct ptr_info_def): Remove all members, add points-to solution
15291         member pt.
15292         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
15293         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
15294         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
15295         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
15296         (tree-ssa-alias.o): Likewise.
15297         (toplev.o): Add tree-ssa-alias.h
15298         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
15299         * gimple.c (gimple_set_bb): Fix off-by-one error.
15300         (is_gimple_reg): Do not handle memory tags.
15301         (gimple_copy): Also copy virtual operands.
15302         Delay updating the statement.  Do not reset loaded and stored syms.
15303         (gimple_set_stored_syms): Remove.
15304         (gimple_set_loaded_syms): Likewise.
15305         (gimple_call_copy_skip_args): Copy the virtual operands
15306         and mark the new statement modified.
15307         * tree-ssa-structalias.c (may_alias_p): Remove.
15308         (set_uids_in_ptset): Take the alias set to prune with as
15309         parameter.  Fold in the alias test of may_alias_p.
15310         (compute_points_to_sets): Compute whether a ptr is dereferenced
15311         in a local sbitmap.
15312         (process_constraint): Deal with &ANYTHING on the lhs, reject all
15313         other ADDRESSOF constraints on the lhs.
15314         (get_constraint_for_component_ref): Assert that we don't get
15315         ADDRESSOF constraints from the base of the reference.
15316         Properly generate UNKNOWN_OFFSET for DEREF if needed.
15317         (struct variable_info): Remove collapsed_to member.
15318         (get_varinfo_fc): Remove.
15319         (new_var_info): Do not set collapsed_to.
15320         (dump_constraint): Do not follow cycles.
15321         (dump_constraint_graph): Likewise.
15322         (build_pred_graph): Likewise.
15323         (build_succ_graph): Likewise.
15324         (rewrite_constraints): Likewise.
15325         (do_simple_structure_copy): Remove.
15326         (do_rhs_deref_structure_copy): Remove.
15327         (do_lhs_deref_structure_copy): Remove.
15328         (collapse_rest_of_var): Remove.
15329         (do_structure_copy): Re-implement.
15330         (pta_stats): New global variable.
15331         (dump_pta_stats): New function.
15332         (struct constraint_expr): Make offset signed.
15333         (UNKNOWN_OFFSET): Define special value.
15334         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
15335         (solution_set_expand): New helper function split out from ...
15336         (do_sd_constraint): ... here.
15337         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
15338         (do_ds_constraint): Likewise.
15339         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
15340         and CALLUSED = *CALLUSED.
15341         (set_union_with_increment): Make inc argument signed.
15342         (type_safe): Remove.
15343         (get_constraint_for_ptr_offset): Handle unknown and negative
15344         constant offsets.
15345         (first_vi_for_offset): Handle offsets before start.  Bail
15346         out early for offsets beyond the variable extent.
15347         (first_or_preceding_vi_for_offset): New function.
15348         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
15349         Together with ESCAPED = *ESCAPED this properly computes reachability.
15350         (find_what_var_points_to): New function.
15351         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
15352         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
15353         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
15354         pt_solutions_intersect): New functions.
15355         (compute_call_used_vars): Remove.
15356         (compute_may_aliases): New main entry into PTA computation.
15357         * gimple.h (gimple_p): New typedef.
15358         (struct gimple_statement_base): Remove references_memory_p.
15359         (struct gimple_statement_with_memory_ops_base): Remove
15360         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
15361         members.
15362         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
15363         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
15364         gimple_set_references_memory): Remove.
15365         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
15366         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
15367         New functions.
15368         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
15369         (verify_expr): Allow RESULT_DECL.
15370         (gimple_duplicate_bb): Do not copy virtual operands.
15371         (gimple_duplicate_sese_region): Adjust.
15372         (gimple_duplicate_sese_tail): Likewise.
15373         (mark_virtual_ops_in_region): Remove.
15374         (move_sese_region_to_fn): Do not call it.
15375         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
15376         and pass_simple_dse.
15377         (execute_function_todo): Handle TODO_update_address_taken,
15378         call execute_update_addresses_taken for TODO_rebuild_alias.
15379         (execute_todo): Adjust.
15380         (execute_one_pass): Init dump files early.
15381         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
15382         call-clobbered.
15383         (create_general_new_stmt): Clear vops.
15384         * tree-ssa-reassoc.c (get_rank): Adjust.
15385         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
15386         symbols for renaming.
15387         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
15388         (PARAM_AVG_ALIASED_VOPS): Likewise.
15389         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
15390         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
15391         * tree-ssa-operands.c: Simplify for new virtual operand representation.
15392         (operand_build_cmp, copy_virtual_operands,
15393         create_ssa_artificial_load_stmt, add_to_addressable_set,
15394         gimple_add_to_addresses_taken): Remove public functions.
15395         (unlink_stmt_vdef): New function.
15396
15397 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15398
15399         * config.gcc (powerpc-*-linux*): Merge variants.
15400
15401 2009-04-02  Chao-ying Fu  <fu@mips.com>
15402             James Grosbach  <james.grosbach@microchip.com>
15403
15404         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
15405         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
15406         cop0_sp_offset.
15407         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
15408         keep_interrupts_masked_p, use_debug_exception_return_p.
15409         (mips_attribute_table): Add interrupt, use_shadow_register_set,
15410         keep_interrupts_masked, use_debug_exception_return.
15411         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
15412         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
15413         New functions.
15414         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
15415         (mips_print_operand): Process COP0 registers to print $0 .. $31
15416         correctly for GAS to process.
15417         (mips_interrupt_extra_call_saved_reg_p): New function.
15418         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
15419         extra registers.
15420         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
15421         (mips_compute_frame_info): Add supports for interrupt context that
15422         includes doubleword accumulators and COP0 registers.
15423         (mips_for_each_saved_acc): New function.
15424         (mips_for_each_saved_gpr_and_fpr): Change the function name from
15425         mips_for_each_saved_reg.
15426         (mips_save_reg): Save accumulators.
15427         (mips_kernel_reg_p): A new for_each_rtx callback.
15428         (mips_expand_prologue): Support interrupt handlers.
15429         (mips_restore_reg): Restore accumulators.
15430         (mips_expand_epilogue): Support interrupt handlers.
15431         (mips_can_use_return_insn): Return false for interrupt handlers.
15432         (mips_epilogue_uses): New function.
15433         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
15434         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
15435         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
15436         cop0_move): New instructions.
15437         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
15438         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
15439         defines.
15440         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
15441         New defines.
15442         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
15443         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
15444         interrupt handlers, we use K0 as the temporary register.
15445         (EPILOGUE_USES): Change to a function call.
15446         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
15447         handlers, we use K0 as the temporary register.
15448
15449         * doc/extend.texi (Function Attributes): Document interrupt,
15450         use_shadow_register_set, keep_interrupts_masked,
15451         use_debug_exception_return for MIPS attributes.
15452
15453 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15454
15455         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
15456         Remove a number of t-files from tmake_file.
15457         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
15458         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
15459         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15460         target_prototype, not TARGET_PROTOTYPE.
15461         (LINK_OS_GNU_SPEC): Define.
15462         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
15463         and darwin-ldoubdle.c.
15464
15465 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15466
15467         PR driver/39293
15468         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
15469         (cpp_options): Ditto.
15470         (default_compilers): Ditto.
15471         (display_help): Ditto.
15472         (process_command): Ditto.
15473         (do_spec_1): Ditto.
15474         (set_input): Use lbasename instead of duplicate code.
15475         (save_temps_prefix): New static for -save-temps=obj.
15476         (save_temps_length): Ditto.
15477
15478         * doc/invoke.texi (-save-temps=obj): Document new variant to
15479         -save-temps switch.
15480
15481 2009-04-02  Jeff Law  <law@redhat.com>
15482
15483         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
15484         variable.
15485
15486 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15487
15488         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
15489         * configure: Regenerated.
15490
15491 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15492
15493         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
15494         share the argument list.
15495
15496 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15497
15498         Merge
15499
15500         2009-02-12  Diego Novillo  <dnovillo@google.com>
15501
15502         * varpool.c (debug_varpool): New.
15503         * cgraph.h (debug_varpool): Declare.
15504
15505 2009-04-02  Jan Hubicka  <jh@suse.cz>
15506
15507         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
15508         pass.
15509
15510 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15511
15512         * config/i386/i386.c (ix86_abi): Move initialization to ...
15513         (override_options): Here.
15514
15515 2009-04-02  Christian Bruel  <christian.bruel@st.com>
15516
15517         * config/sh/sh.c (sh_dwarf_register_span): New function.
15518         (TARGET_DWARF_REGISTER_SPAN): Define.
15519         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
15520
15521 2009-04-02  Ira Rosen  <irar@il.ibm.com>
15522
15523         PR tree-optimization/39595
15524         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
15525         interleaved loads group is not  greater than the SLP group size.
15526
15527 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15528
15529         * builtins.c (is_builtin_name): New.
15530         (called_as_built_in): Use is_builtin_name.
15531         * tree.h (is_builtin_name): New.
15532         * varasm.c (incorporeal_function_p): Use is_builtin_name
15533
15534 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
15535
15536         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
15537
15538 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
15539
15540         PR c++/26693
15541         * c-decl.c (clone_underlying_type): Move this ...
15542         * c-common.c (set_underlying_type): ... here.
15543         Also, make sure the function properly sets TYPE_STUB_DECL() on
15544         the newly created typedef variant type.
15545         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
15546         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
15547         points.
15548
15549 2009-04-02  Richard Guenther  <rguenther@suse.de>
15550
15551         PR tree-optimization/37221
15552         * tree-flow.h (degenerate_phi_result): Declare.
15553         * tree-ssa-dom.c (degenerate_phi_result): Export.
15554         * tree-scalar-evolution.c (analyze_initial_condition): If
15555         the initial condition is defined by a degenerate PHI node
15556         use the degenerate value.
15557
15558 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
15559
15560         PR rtl-optimization/39588
15561         * combine.c (merge_outer_ops): Do not set the constant when this
15562         is not necessary.
15563         (simplify_shift_const_1): Do not modify it either in this case.
15564
15565 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
15566
15567         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
15568         tuning is deprecated if -mtune value is set to an Itanium1 variant.
15569
15570 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
15571
15572         PR c/29027
15573         * c-lex.c (interpret_float): Default (no suffix) is double.
15574
15575 2009-04-1  Xinliang David Li  <davidxl@google.com>
15576
15577         * config/i386/i386.c (legitimate_constant_p): Recognize
15578         all one vector constant.
15579
15580 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15581
15582         * config/vax/vax.c: Add #includes to silence warnings.
15583         Change #include order to silence two warnings.
15584
15585 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15586
15587         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
15588         (ASM_SPEC): Pass -k to the assembler for PIC code.
15589
15590 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15591
15592         * config.gcc: Add vax-*-linux* to the switch.
15593         * config/vax/linux.h: New file. (TARGET_VERSION,
15594         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
15595
15596 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15597
15598         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
15599         Use predicate macros instead of GET_CODE() == foo.
15600         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
15601         ashlsi3, rotrsi3, <unnamed>): Likewise.
15602
15603 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15604
15605         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
15606         jbbccihi, jbbccisi): Remova trailing whitespace.
15607         * config/vax/constraints.md: Likewise.
15608         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15609         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
15610         * config/vax/predicates.md: Likewise.
15611         * config/vax/vax.c (print_operand_address, vax_output_int_move,
15612         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
15613         * config/vax/vax.h: Likewise.
15614         * config/vax/vax.md (nonlocal_goto): Likewise.
15615
15616 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15617
15618         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
15619         (indirectable_address_p, adjacent_operands_p): Add spaces around
15620         braces.
15621         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
15622
15623 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15624
15625         * config/vax/vax.c (legitimate_constant_address_p,
15626         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
15627         index_term_p, reg_plus_index_p, legitimate_address_p,
15628         vax_mode_dependent_address_p): Update comments to match functions
15629         modified by the recent int->bool conversion.
15630
15631 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15632
15633         * config/vax/builtins.md: Update copyright message.
15634         * config/vax/constraints.md: Likewise.
15635         * config/vax/netbsd-elf.h: Likewise.
15636         * config/vax/predicates.md: Likewise.
15637         * config/vax/vax-protos.h: Likewise.
15638         * config/vax/vax.c: Likewise.
15639         * config/vax/vax.h: Likewise.
15640         * config/vax/vax.md: Likewise.
15641         * config/vax/vax.opt: Likewise.
15642
15643 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15644
15645         * config/vax/builtins.md (ffssi2, ffssi2_internal,
15646         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
15647         * config/vax/constraints.md (B, R): Likewise.
15648         * config/vax/predicates.md (external_memory_operand,
15649         nonimmediate_addsub_di_operand): Likewise.
15650         * config/vax/vax.c (vax_output_int_add): Likewise.
15651         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
15652         untyped_call): Likewise.
15653
15654 2009-04-01  Matt Thomas  <matt@3am-software.com>
15655
15656         * config/vax/predicates.md: New file.
15657         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
15658         external_const_operand, nonsymbolic_operand, external_memory_operand,
15659         indirect_memory_operand, indexed_memory_operand,
15660         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
15661         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
15662         predicate.
15663         * config/vax/constraints.md: New file.
15664         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
15665         New constraint.
15666         * config/vax/builtins.md: New file.
15667         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
15668         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
15669         jbbccisi): Define.
15670         * config/vax/vax.opt (mqmath): Add option.
15671         * config/vax/vax.md (isfx): Extend with DI.
15672         (VAXintQH, VAXintQHSD): Define.
15673         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
15674         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
15675         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
15676         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
15677         (movdi): Update constraints and use vax_output_int_move().
15678         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
15679         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
15680         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
15681         nonlocal_goto): New.
15682         (mov<mode>): Extend accepted operand types.
15683         (subdi3_old): Rename from subdi3, change update constraints and use
15684         a new implementation.
15685         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
15686         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
15687         MOVE_RATIO, CLEAR_RATIO): Define.
15688         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
15689         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
15690         (PRINT_OPERAND): Redefine using a function instead of inlined code.
15691         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15692         (split_quadword_operands): Make static and really allow variable
15693         splitting.
15694         (print_operand_address): Update for PIC generation.
15695         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
15696         indexable_address_p, fixup_mathdi_operand,
15697         vax_expand_addsub_di_operands, adjacent_operands_p): New.
15698         (vax_float_literal, legitimate_constant_p,
15699         indirectable_constant_address_p, index_term_p,
15700         reg_plus_index_p): Return bool instead of int.
15701         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
15702         where needed.
15703         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
15704         generation.
15705         (vax_output_conditional_branch): Indent.
15706         (legitimate_constant_address_p, indirectable_constant_address_p,
15707         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
15708         vax_mode_dependent_address_p): Return bool instead of int, update for
15709         PIC generation.
15710         * config/vax/vax-protos.h (legitimate_constant_address_p,
15711         legitimate_constant_p, legitimate_address_p,
15712         vax_mode_dependent_address_p): Change declaration to bool.
15713         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
15714         vax_expand_addsub_di_operands, vax_output_int_subtract,
15715         vax_output_movmemsi): Declare.
15716         (split_quadword_operands, vax_float_literal): Delete declaration.
15717         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
15718         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
15719         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
15720         ASM_OUTPUT_DWARF_PCREL): Define.
15721         (ASM_SPEC): Change definition to allow PIC generation.
15722
15723 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
15724
15725         * doc/sourcebuild.texi: Update front-end requirements.
15726
15727 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15728
15729         PR target/39226
15730         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
15731         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
15732         (booldi3_internal3): Use boolean_or_operator instead of
15733         boolean_operator.
15734
15735 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
15736
15737         PR c/39605
15738         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
15739         declarator whose size is not an integer constant expression but
15740         folds to an integer constant, then treat it as a constant
15741         subsequently.
15742
15743 2009-04-01  Richard Guenther  <rguenther@suse.de>
15744
15745         * fold-const.c (fold_plusminus_mult_expr): Do not fold
15746         i * 4 + 2 to (i * 2 + 1) * 2.
15747
15748 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15749
15750         PR c/37772
15751         * c-parser.c (c_parser_asm_statement): Skip until close paren and
15752         return if c_parser_asm_string_literal returned NULL.
15753
15754 2009-04-01  Nick Clifton  <nickc@redhat.com>
15755
15756         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
15757         already defined.
15758         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
15759         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
15760         other typedefs to avoid conflicts with libgcc2.c.  Define labels
15761         to gain 16-bit bit-manipulation functions from libgcc2.c and then
15762         include it.
15763         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
15764         to gain 16-bit trapping arithmetic functions from libgcc2.c and
15765         then include it.
15766
15767 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
15768
15769         * varasm.c (default_function_rodata_section): Declare DOT as
15770         const char*.
15771
15772 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
15773             Andrey Galkin  <agalkin@hypercom.com>
15774
15775         PR/39492
15776         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15777         Make object_name unique for each process.
15778
15779 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15780
15781         PR other/39591
15782         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
15783         addressable variables in the parallel that could go out of scope while
15784         running queued tasks.
15785
15786 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
15787
15788         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
15789         (CASE_VALUES_THRESHOLD): Redefine.
15790         * config/avr/avr.c (avr_override_options): Remove initialization of
15791         avr_case_values_threshold variable.
15792         (avr_case_values_threshold): Remove variable. Add new function.
15793         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
15794         * config/avr/avr.opt (mno-tablejump): Remove option.
15795         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
15796
15797 2009-04-01  DJ Delorie  <dj@redhat.com>
15798
15799         * varasm.c (default_function_rodata_section): Don't assume
15800         anything about where the first '.' in the section name is.
15801
15802 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
15803
15804         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
15805         rs6000_emit_stack_tie.
15806
15807 2009-03-31  Ian Lance Taylor  <iant@google.com>
15808
15809         * tree-eh.c (tree_remove_unreachable_handlers): Compare
15810         gimple_code with GIMPLE_RESX, not RESX.
15811
15812 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15813
15814         * c-common.c (c_get_ident): New.
15815         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
15816
15817 2009-04-01  Ben Elliston  <bje@au.ibm.com>
15818
15819         * config/rs6000/sysv4.opt (msdata): Improve option description.
15820
15821 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
15822
15823         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
15824         (divdf3_internal_lat): Remove.
15825         (divxf3_internal_lat): Remove.
15826         (divxf3_internal_thr): Remove.
15827         (divxf): Use divxf3_internal.
15828         * config/ia64/div.md (divsf3_internal_lat): New.
15829         (divdf3_internal_lat): New.
15830         (divxf3_internal): New.
15831
15832 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15833
15834         PR c/448
15835         * Makefile.in (USE_GCC_STDINT): Define.
15836         (stmp-int-hdrs): Install stdint.h if applicable.
15837         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
15838         if known.
15839         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
15840         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
15841         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15842         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15843         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15844         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15845         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15846         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15847         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15848         (c_common_nodes_and_builtins): Initialize
15849         underlying_wchar_type_node.  Do not initialize
15850         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
15851         nodes for new types.
15852         (c_stddef_cpp_builtins): Define macros for new types.
15853         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
15854         Remove.
15855         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
15856         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
15857         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
15858         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
15859         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
15860         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
15861         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
15862         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
15863         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
15864         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
15865         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
15866         int16_type_node, int32_type_node, int64_type_node,
15867         uint8_type_node, uint16_type_node, c_uint32_type_node,
15868         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
15869         int_least32_type_node, int_least64_type_node,
15870         uint_least8_type_node, uint_least16_type_node,
15871         uint_least32_type_node, uint_least64_type_node,
15872         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
15873         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
15874         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
15875         uintptr_type_node): Define.
15876         * c-cppbuiltin.c (builtin_define_constants,
15877         builtin_define_type_minmax): New.
15878         (builtin_define_stdint_macros): Define more macros.
15879         (c_cpp_builtins): Define more limit macros.
15880         (type_suffix): New.
15881         (builtin_define_type_max): Define in terms of
15882         builtin_define_type_minmax.  Remove is_long parameter.  All
15883         callers changed.
15884         * config.gcc (use_gcc_stdint): Define.
15885         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
15886         Add newlib-stdint.h for generic targets.
15887         * config/glibc-stdint.h, config/newlib-stdint.h,
15888         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
15889         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
15890         * config/score/score.h (UINTPTR_TYPE): Define.
15891         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15892         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15893         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15894         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15895         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15896         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15897         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15898         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15899         * config/spu/spu.h (STDINT_LONG32): Define.
15900         * configure.ac (use_gcc_stdint): Substitute.
15901         * configure: Regenerate.
15902         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
15903         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
15904         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
15905         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
15906         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
15907         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
15908         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
15909         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
15910         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
15911         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
15912         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
15913         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
15914         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
15915         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
15916         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
15917         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
15918         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
15919         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
15920         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
15921         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
15922         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
15923         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
15924         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15925         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15926         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15927         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15928         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15929         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15930         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
15931
15932 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15933
15934         * loop-iv.c (suitable_set_for_replacement): Renamed from
15935         simplify_using_assignment; changed to return bool and to accept new
15936         args DEST and SRC.  Return true iff we find a source/destination pair
15937         that can be used to make a replacement, and fill SRC and DEST if so.
15938         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
15939         changed.
15940         (simplify_using_initial_values): Deal with altered regs here and track
15941         more precisely the effect they have on the validity of our expression.
15942
15943         * loop-iv.c (simplify_using_condition): A condition of the form
15944         (EQ REG CONST) can be used to simply make a substitution.
15945         (simplify_using_initial_values): Keep track of conditions we have seen
15946         and keep using them to simplify new expressions, while applying the
15947         same substitutions to them as to the expression.
15948
15949         * simplify-rtx.c (simplify_relational_operation_1): Simplify
15950         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
15951         GEU/LTU reversed.
15952
15953         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
15954         changed.  Use this when trying to improve the upper bound.
15955         Generate the comparison by using simplify_gen_relational.
15956
15957         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
15958
15959         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
15960         functions.
15961         (simplify_using_assignment, simplify_using_initial_values): Call
15962         replace_in_expr to make replacements.  Call replace_single_def_regs
15963         once on the initial version of the expression.
15964
15965 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15966
15967         PR target/27237
15968         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
15969
15970 2009-03-31  Richard Guenther  <rguenther@suse.de>
15971
15972         PR middle-end/31029
15973         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
15974         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
15975
15976 2009-03-31  Richard Guenther  <rguenther@suse.de>
15977
15978         * tree.h (div_if_zero_remainder): Declare.
15979         * fold-const.c (div_if_zero_remainder): Export.
15980         * tree-ssa-forwprop.c
15981         (forward_propagate_addr_into_variable_array_index): Handle
15982         constant array index addition outside of the variable index.
15983
15984 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15985
15986         PR target/39592
15987         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
15988         define_splits, floatunssi<mode>2): Require x87 conversions from
15989         DImode to be permitted.
15990
15991 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15992
15993         PR preprocessor/15638
15994         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
15995
15996 2009-03-31  Richard Guenther  <rguenther@suse.de>
15997
15998         PR middle-end/23401
15999         PR middle-end/27810
16000         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
16001         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
16002         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
16003         a separate statement.
16004         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
16005         (lookup_tmp_var): Likewise.
16006         (is_gimple_formal_tmp_or_call_rhs): Remove.
16007         (is_gimple_reg_or_call_rhs): Rename to ...
16008         (is_gimple_reg_rhs_or_call): ... this.
16009         (is_gimple_mem_or_call_rhs): Rename to ...
16010         (is_gimple_mem_rhs_or_call): ... this.
16011         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
16012         DECL_GIMPLE_REG_P only if is_formal is true.
16013         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
16014         for non-proper post-modify expression gimplification.
16015         (gimplify_self_mod_expr): For post-modify expressions gimplify
16016         the lvalue to a minimal lvalue.
16017         (rhs_predicate_for): Remove formal temp case.
16018         (gimplify_modify_expr_rhs): Likewise.
16019         (gimplify_addr_expr): Use is_gimple_reg.
16020         (gimplify_expr): Remove formal temp cases.
16021         (gimple_regimplify_operands): Likewise.
16022         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
16023         and FILTER_EXPR like constants.
16024         * gimple.c (walk_gimple_op): Fix val_only initialization, use
16025         is_gimple_reg.
16026         (is_gimple_formal_tmp_rhs): Remove.
16027         (is_gimple_reg_rhs): Remove special casing.
16028         (is_gimple_mem_rhs): Fix.
16029         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
16030         (is_gimple_formal_tmp_var): Remove.
16031         (is_gimple_formal_tmp_reg): Likewise.
16032         (is_gimple_min_lval): Allow invariant component ref parts.
16033         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
16034         is_gimple_formal_tmp_reg): Remove declarations.
16035         * tree-cfg.c (verify_expr): Verify that variables with address
16036         taken do not have DECL_GIMPLE_REG_P set.
16037         * tree-mudflap.c (mf_build_check_statement_for): Use
16038         force_gimple_operand instead of gimplify_expr.
16039
16040 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
16041
16042         * modulo-sched.c (sms_schedule_by_order): Pass the actual
16043         schedulable rows to compute_split_row.
16044
16045 2009-03-31  Ben Elliston  <bje@au.ibm.com>
16046
16047         PR target/31635
16048         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
16049         OPT_mvrsave.
16050
16051 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
16052
16053         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
16054         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
16055         * configure: Regenerate.
16056         * config.in: Regenerate.
16057         * config/rs6000/rs6000.opt (mtls-markers): Add.
16058         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
16059         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
16060         (tls_ld_aix, tls_ld_sysv): Likewise.
16061         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
16062         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
16063
16064 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
16065
16066         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
16067
16068 2009-03-30  Jan Hubicka  <jh@suse.cz>
16069
16070         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
16071         out of RESX.
16072         (tree_remove_unreachable_handlers): Cleanup EH predecestor
16073         detection and label handling.
16074
16075 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16076
16077         * ira-int.h (ira_allocno): Rename left_conflicts_num to
16078         left_conflicts_size.
16079         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
16080         ALLOCNO_LEFT_CONFLICTS_SIZE.
16081
16082         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
16083         remove_allocno_from_bucket_and_push,
16084         allocno_spill_priority_compare, push_allocnos_to_stack,
16085         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16086         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
16087         (setup_allocno_left_conflicts_num): Ditto.  Rename to
16088         setup_allocno_left_conflicts_size.
16089         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
16090         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
16091         setup_allocno_left_conflicts_size instead of
16092         setup_allocno_left_conflicts_num.
16093
16094         * ira-build.c (ira_create_allocno): Use
16095         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
16096         ALLOCNO_LEFT_CONFLICTS_NUM.
16097
16098 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
16099
16100         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
16101         instead of DF_LR_OUT.
16102
16103         * ira-lives.c (process_bb_node_lives): Ditto.
16104
16105         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
16106         instead of DF_LR_{OUT,IN}.
16107
16108         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
16109
16110         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
16111
16112 2009-03-30  Jan Hubicka  <jh@suse.cz>
16113
16114         * except.c (label_to_region_map): Fix thinko.
16115
16116 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
16117
16118         PR middle-end/38237
16119         * tree.h (tree_find_value): New declaration.
16120         * tree.c (tree_find_value): New function.
16121         * varasm.c (assemble_external): Avoid duplicate entries on lists.
16122
16123 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
16124
16125         PR debug/39563
16126         * c-decl.c (struct c_binding): Add locus field.
16127         (bind): Add locus argument, set locus field from it.
16128         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
16129         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
16130         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
16131         implicitly_declare, undeclared_variable, lookup_label,
16132         declare_label, c_make_fname_decl, c_builtin_function,
16133         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
16134         bind callers.
16135
16136 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
16137
16138         PR target/38781
16139         * config/i386/i386.c (classify_argument): Check total size of
16140         structure.
16141
16142 2009-03-30  Martin Jambor  <mjambor@suse.cz>
16143
16144         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
16145         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
16146         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
16147         respectively.
16148
16149         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
16150         seen_variable_array_ref while also traversing a union.
16151
16152         * tree-inline.c (optimize_inline_calls): Do not call
16153         cgraph_node_remove_callees.
16154         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
16155         (pass_remove_cgraph_callee_edges): New variable.
16156         * passes.c (init_optimization_passes): Add
16157         pass_remove_cgraph_callee_edges after early inlining and before all
16158         late intraprocedural passes.
16159
16160         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
16161
16162 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16163
16164         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
16165         Fix typos in names.
16166
16167 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16168
16169         * combine.c (simplify_comparison): Use have_insn_for.
16170         * dojump.c (do_jump): Likewise.
16171
16172 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16173
16174         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
16175         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
16176         sparc_compare_op0 like sparc_compare_emitted used to be handled.
16177         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
16178         instead of sparc_compare_emitted.
16179         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
16180         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
16181         instead of sparc_compare_emitted.
16182
16183 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16184
16185         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
16186         enter/exit cfglayout mode.
16187         (pass_partition_block): Require it.
16188         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
16189         (combine_instructions): Track basic blocks instead of labels.
16190         (update_cfg_for_uncondjump): New.
16191         (try_combine): Use it.  Update jumps after rescanning.
16192         (pass_combine): Require PROP_cfglayout.
16193         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
16194
16195 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16196
16197         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
16198         Provide/destroy PROP_cfglayout respectively.
16199         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
16200         * tree-pass.h (PROP_cfglayout): New.
16201
16202 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
16203
16204         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
16205         fold_convert_const_fixed_from_fixed,
16206         fold_convert_const_fixed_from_int,
16207         fold_convert_const_fixed_from_real, fold_negate_const): Do not
16208         set TREE_CONSTANT_OVERFLOW.
16209         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
16210         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
16211
16212 2009-03-30  Ira Rosen  <irar@il.ibm.com>
16213
16214         * tree-vect-loop-manip.c: New file.
16215         * tree-vectorizer.c: Update documentation and included files.
16216         (vect_loop_location): Make extern.
16217         (rename_use_op): Move to tree-vect-loop-manip.c
16218         (rename_variables_in_bb, rename_variables_in_loop,
16219         slpeel_update_phis_for_duplicate_loop,
16220         slpeel_update_phi_nodes_for_guard1,
16221         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
16222         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
16223         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
16224         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
16225         find_loop_location): Likewise.
16226         (new_stmt_vec_info): Move to tree-vect-stmts.c.
16227         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
16228         get_vectype_for_scalar_type, vect_is_simple_use,
16229         supportable_widening_operation, supportable_narrowing_operation):
16230         Likewise.
16231         (bb_in_loop_p): Move to tree-vect-loop.c.
16232         (new_loop_vec_info, destroy_loop_vec_info,
16233         reduction_code_for_scalar_code, report_vect_op,
16234         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
16235         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
16236         (vect_supportable_dr_alignment): Likewise.
16237         * tree-vectorizer.h (tree-data-ref.h): Include.
16238         (vect_loop_location): Declare.
16239         Reorganize function declarations according to the new file structure.
16240         * tree-vect-loop.c: New file.
16241         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
16242         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
16243         * tree-vect-data-refs.c: New file.
16244         * tree-vect-patterns.c (timevar.h): Don't include.
16245         * tree-vect-stmts.c: New file.
16246         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
16247         tree-vect-slp.c, tree-vect-loop.c.
16248         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
16249         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
16250         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
16251         (tree-vect-analyze.o): Remove.
16252         (tree-vect-transform.o): Likewise.
16253         (tree-vect-data-refs.o): Add rule.
16254         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
16255         tree-vect-slp.o): Likewise.
16256         (tree-vect-patterns.o): Remove redundant dependencies.
16257         (tree-vectorizer.o): Likewise.
16258         * tree-vect-slp.c: New file.
16259
16260 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16261
16262         * optc-gen.awk: Warn if an option flag has multiple different
16263         help strings.
16264
16265 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
16266
16267         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
16268         -floop-block): Document dependences on PPL, CLooG and Graphite.
16269
16270 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16271
16272         PR rtl-optimization/323
16273         * c-common.c (c_fully_fold, convert_and_check,
16274         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
16275         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
16276         * c-common.def (EXCESS_PRECISION_EXPR): New.
16277         * c-cppbuiltin.c (builtin_define_float_constants): Define
16278         constants with enough digits for long double.
16279         * c-lex.c (interpret_float): Interpret constant with excess
16280         precision where appropriate.
16281         * c-opts.c (c_common_post_options): Set
16282         flag_excess_precision_cmdline.  Give an error for
16283         -fexcess-precision=standard for C++ for processors where the
16284         option is significant.
16285         * c-parser.c (c_parser_conditional_expression): Handle excess
16286         precision in condition.
16287         * c-typeck.c (convert_arguments): Handle arguments with excess
16288         precision.
16289         (build_unary_op): Move excess precision outside operation.
16290         (build_conditional_expr): Likewise.
16291         (build_compound_expr): Likewise.
16292         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
16293         (build_modify_expr): Handle excess precision in RHS.
16294         (convert_for_assignment): Handle excess precision in converted
16295         value.
16296         (digest_init, output_init_element, process_init_element): Handle
16297         excess precision in initializer.
16298         (c_finish_return): Handle excess precision in return value.
16299         (build_binary_op): Handle excess precision in operands and add
16300         excess precision as needed for operation.
16301         * common.opt (-fexcess-precision=): New option.
16302         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
16303         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
16304         For standard excess precision, output explicit conversion to and
16305         truncation from XFmode.
16306         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
16307         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
16308         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
16309         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
16310         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
16311         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
16312         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
16313         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
16314         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
16315         define_splits, sqrt<mode>2): Disable where appropriate for
16316         standard excess precision.
16317         * convert.c (convert_to_real): Do not shorten arithmetic to type
16318         for which excess precision would be used.
16319         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
16320         * doc/invoke.texi (-fexcess-precision=): Document option.
16321         (-mfpmath=): Correct index entry.
16322         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
16323         flag_excess_precision): New.
16324         * langhooks.c (lhd_post_options): Set
16325         flag_excess_precision_cmdline.
16326         * opts.c (common_handle_option): Handle -fexcess-precision=.
16327         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
16328         init_excess_precision): New.
16329         (lang_dependent_init_target): Call init_excess_precision.
16330         * tree.c (excess_precision_type): New.
16331         * tree.h (excess_precision_type): Declare.
16332
16333 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16334
16335         PR c/35235
16336         * c-typeck.c (build_component_ref): Do not copy qualifiers from
16337         non-lvalue to component.
16338
16339 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16340
16341         PR preprocessor/34695
16342         * Makefile.in (c-opts.o): Depend on c-tree.h.
16343         * c-common.c: Move down include of diagnostic.h.
16344         (done_lexing, c_cpp_error): New.
16345         * c-common.h (done_lexing): Declare.
16346         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
16347         (parse_in).
16348         * c-opts.c: Include c-tree.h.
16349         (c_common_init_options): Set preprocessor error callback.
16350         (c_common_handle_option): Do not set preprocessor
16351         inhibit_warnings, warnings_are_errors, warn_system_headers,
16352         pedantic_errors or inhibit_warnings flags.
16353         (c_common_post_options): Do not check cpp_errors (parse_in).
16354         (c_common_finish): Do not output dependencies if there were
16355         errors.  Do not check return value of cpp_finish.
16356         * c-ppoutput.c (pp_file_change): Set input_location.
16357         * c-tree.h (c_cpp_error): Declare.
16358         * diagnostic.c (diagnostic_set_info_translated): Also initialize
16359         override_column.
16360         (diagnostic_build_prefix): Check override_column.
16361         * diagnostic.h (diagnostic_info): Add override_column field.
16362         (diagnostic_override_column): Define.
16363
16364 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
16365
16366         * c-common.c (c_expand_expr, c_staticp): Remove.
16367         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
16368         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
16369         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
16370         * c-gimplify.c (gimplify_compound_literal_expr,
16371         optimize_compound_literals_in_ctor): Remove.
16372         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
16373         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
16374         * c-semantics.c (emit_local_var): Remove.
16375
16376         * langhooks-def.h (lhd_expand_expr): Remove.
16377         * langhooks.c (lhd_expand_expr): Remove.
16378         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
16379
16380         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
16381         handling from c-semantics.c; don't call into langhook.
16382         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
16383         * gimplify.c (gimplify_compound_literal_expr,
16384         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
16385         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
16386         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
16387         as was done in c-gimplify.c.
16388         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
16389         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
16390         Move from c-common.h.
16391         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
16392
16393         * tree.c (staticp): Do not call langhook.
16394         * langhooks.c (lhd_staticp): Delete.
16395         * langhooks-def.h (lhd_staticp): Delete prototype.
16396         (LANG_HOOKS_STATICP): Delete.
16397         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
16398
16399         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
16400         instead of DECL_STMTs.
16401
16402 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16403
16404         PR c/456
16405         PR c/5675
16406         PR c/19976
16407         PR c/29116
16408         PR c/31871
16409         PR c/35198
16410         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
16411         void_type_node.
16412         (fold_call_expr): Return a NOP_EXPR from folding rather than the
16413         contained expression.
16414         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
16415         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
16416         conditional expressions for C.
16417         (decl_constant_value_for_optimization): Move from
16418         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
16419         whether optimizing and that the expression is a VAR_DECL not of
16420         array type instead of doing such checks in the caller.  Do not
16421         check pedantic.  Call gcc_unreachable for C++.
16422         * c-common.def (C_MAYBE_CONST_EXPR): New.
16423         * c-common.h (c_fully_fold, c_save_expr,
16424         decl_constant_value_for_optimization): New prototypes.
16425         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
16426         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
16427         EXPR_INT_CONST_OPERANDS): Define.
16428         * c-convert.c (convert): Strip nops from expression.
16429         * c-decl.c (groktypename): Take extra parameters expr and
16430         expr_const_operands.  Update call to grokdeclarator.
16431         (start_decl): Update call to grokdeclarator.  Add statement for
16432         expressions used in type of decl.
16433         (grokparm): Update call to grokdeclarator.
16434         (push_parm_decl): Update call to grokdeclarator.
16435         (build_compound_literal): Add parameter non_const and build a
16436         C_MAYBE_COSNT_EXPR if applicable.
16437         (grokdeclarator): Take extra parameters expr and
16438         expr_const_operands.  Track expressions used in declaration
16439         specifiers and declarators.  Fold array sizes and track whether
16440         they are constant expressions and whether they are integer
16441         constant expressions.
16442         (parser_xref_tag): Set expr and expr_const_operands fields in
16443         return value.
16444         (grokfield): Update call to grokdeclarator.
16445         (start_function): Update call to grokdeclarator.
16446         (build_null_declspecs): Set expr and expr_const_operands fields in
16447         return value.
16448         (declspecs_add_type): Handle expressions in typeof specifiers.
16449         * c-parser.c (c_parser_declspecs): Set expr and
16450         expr_const_operands fields for declaration specifiers.
16451         (c_parser_enum_specifier): Likewise.
16452         (c_parser_struct_or_union_specifier): Likewise.
16453         (c_parser_typeof_specifier): Likewise.  Update call to
16454         groktypename.  Fold expression as needed.  Return expressions with
16455         type instead of adding statements.
16456         (c_parser_attributes): Update calls to c_parser_expr_list.
16457         (c_parser_statement_after_labels): Fold expression before passing
16458         to objc_build_throw_stmt.
16459         (c_parser_condition): Fold expression.
16460         (c_parser_asm_operands): Fold expression.
16461         (c_parser_conditional_expression): Use c_save_expr.  Update call
16462         to build_conditional_expr.
16463         (c_parser_alignof_expression): Update call to groktypename.
16464         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
16465         original_code.  Fold expression argument of va_arg.  Create
16466         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
16467         argument to va_arg.  Update calls to groktypename.  Fold array
16468         index for offsetof.  Verify that first argument to
16469         __builtin_choose_expr has integer type.
16470         (c_parser_postfix_expression_after_paren_type): Update calls to
16471         groktypename and build_compound_literal.  Handle expressions with
16472         side effects in type name.
16473         (c_parser_postfix_expression_after_primary): Update call to
16474         c_parser_expr_list.  Set original_code for calls to
16475         __builtin_constant_p.
16476         (c_parser_expr_list): Take extra parameter fold_p.  Fold
16477         expressions if requested.
16478         (c_parser_objc_type_name): Update call to groktypename.
16479         (c_parser_objc_synchronized_statement): Fold expression.
16480         (c_parser_objc_receiver): Fold expression.
16481         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
16482         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
16483         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
16484         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
16485         (struct c_typespec): Add elements expr and expr_const_operands.
16486         (struct c_declspecs): Add elements expr and expr_const_operands.
16487         (groktypename, build_conditional_expr, build_compound_literal):
16488         Update prototypes.
16489         (in_late_binary_op): Declare.
16490         * c-typeck.c (note_integer_operands): New function.
16491         (in_late_binary_op): New variable.
16492         (decl_constant_value_for_broken_optimization): Move to c-common.c
16493         and rename to decl_constant_value_for_optimization.
16494         (default_function_array_conversion): Do not strip nops.
16495         (default_conversion): Do not call
16496         decl_constant_value_for_broken_optimization.
16497         (build_array_ref): Do not fold result.
16498         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
16499         result when operand is a VLA.
16500         (c_expr_sizeof_type): Update call to groktypename.  Handle
16501         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
16502         result when operand names a VLA type.
16503         (build_function_call): Update call to build_compound_literal.
16504         Only fold result for calls to __builtin_* functions.  Strip
16505         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
16506         the function designator.
16507         (convert_arguments): Fold arguments.  Update call to
16508         convert_for_assignment.
16509         (build_unary_op): Handle increment and decrement of
16510         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
16511         decrement earlier.  Fold operand of increment and decrement.
16512         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
16513         built for integer operand.  Wrap returns that are INTEGER_CSTs
16514         without being integer constant expressions or that have integer
16515         constant operands without being INTEGER_CSTs.
16516         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
16517         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
16518         result is an integer constant expression or can be used in
16519         unevaluated parts of one and avoid folding and wrap as
16520         appropriate.  Fold operands before possibly doing -Wsign-compare
16521         warnings.
16522         (build_compound_expr): Wrap result for C99 if operands can be used
16523         in integer constant expressions.
16524         (build_c_cast): Update call to digest_init.  Do not ignore
16525         overflow from casting floating-point constants to integers.  Wrap
16526         results that could be confused with integer constant expressions,
16527         null pointer constants or floating-point constants.
16528         (c_cast_expr): Update call to groktypename.  Handle expressions
16529         included in type name.
16530         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
16531         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
16532         Update calls to convert_for_assignment.
16533         (convert_for_assignment): Take new parameter
16534         null_pointer_constant.  Do not strip nops or call
16535         decl_constant_value_for_broken_optimization.  Set
16536         in_late_binary_op for conversions to boolean.
16537         (store_init_value): Update call to digest_init.
16538         (digest_init): Take new parameter null_pointer_constant.  Do not
16539         call decl_constant_value_for_broken_optimization.  pedwarn for
16540         initializers not constant expressions.  Update calls to
16541         convert_for_assignment.
16542         (constructor_nonconst): New.
16543         (struct constructor_stack): Add nonconst element.
16544         (really_start_incremental_init, push_init_level, pop_init_level):
16545         Handle constructor_nonconst and nonconst element.
16546         (set_init_index): Call constant_expression_warning for array
16547         designators.
16548         (output_init_element): Fold value.  Set constructor_nonconst as
16549         applicable.  pedwarn for initializers not constant expressions.
16550         Update call to digest_init.  Call constant_expression_warning
16551         where constant initializers are required.
16552         (process_init_element): Use c_save_expr.
16553         (c_finish_goto_ptr): Fold expression.
16554         (c_finish_return): Fold return value.  Update call to
16555         convert_for_assignment.
16556         (c_start_case): Fold switch expression.
16557         (c_process_expr_stmt): Fold expression.
16558         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
16559         ensure statement expression is not evaluated in constant expression.
16560         (build_binary_op): Track whether results are integer constant
16561         expressions or may occur in such, disable folding and wrap results
16562         as applicable.  Fold operands for -Wsign-compare warnings unless
16563         in_late_binary_op.
16564         (c_objc_common_truthvalue_conversion): Handle results folded to
16565         integer constants that are not integer constant expressions.
16566         * doc/extend.texi: Document when typeof operands are evaluated,
16567         that condition of __builtin_choose_expr is an integer constant
16568         expression, and more about use of __builtin_constant_p in
16569         initializers.
16570
16571 2009-03-29  Richard Guenther  <rguenther@suse.de>
16572
16573         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16574         propagate addresses of array references.
16575
16576 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
16577
16578         * regmove.c (perhaps_ends_bb_p): Remove.
16579         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
16580         from INSN and check that the main loop stays within that basic block.
16581         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
16582         (regmove_forward_pass): Split out from regmove_optimize.  Use
16583         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
16584         (regmove_backward_pass): Split out from regmove_optimize.  Use
16585         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
16586         (regmove_optimize): Simplify.
16587
16588 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         PR target/39545
16591         * config/i386/i386.c (classify_argument): Ignore flexible array
16592         member in struct and warn ABI change.
16593
16594 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16595
16596         * config/i386/i386-protos.h (ix86_agi_dependent): New.
16597
16598         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
16599         (ix86_adjust_cost): Updated.
16600
16601 2009-03-29  Jan Hubicka  <jh@suse.cz>
16602
16603         PR middle-end/28850
16604         * tree-pass.h (pass_cleanup_eh): New function.
16605         (remove_unreachable_regions): Break code handling RTL
16606         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
16607         that can not be reached by runtime.
16608         (can_be_reached_by_runtime): New function.
16609         (label_to_region_map): New function.
16610         (num_eh_regions): New function.
16611         (rtl_remove_unreachable_regions): New function.
16612         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
16613         (remove_eh_region): New function.
16614         * except.h: Include sbitmap and vecprim.
16615         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
16616         num_eh_regions): Declare.
16617         * passes.c (init_optimization_passes): Schedule cleanup_eh.
16618         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
16619         * tree-eh.c (tree_remove_unreachable_handlers): New function.
16620         (tree_empty_eh_handler_p): New function.
16621         (cleanup_empty_eh): New function.
16622         (cleanup_eh): New function.
16623         (pass_cleanup_eh): New function.
16624
16625 2009-03-29  Jan Hubicka  <jh@suse.cz>
16626
16627         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
16628         for removed regions.
16629
16630 2009-03-29  Jan Hubicka  <jh@suse.cz>
16631
16632         * except.c (dump_eh_tree): Dump all datastructures.
16633
16634 2009-03-29  Jan Hubicka  <jh@suse.cz>
16635
16636         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
16637         (duplicate_eh_regions_1): Likewise.
16638         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
16639         vector; call EH verification.
16640         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16641         Be ready for region being removed.
16642
16643 2009-03-29  Jan Hubicka  <jh@suse.cz>
16644
16645         * bitmap.c (bitmap_last_set_bit): New function.
16646         * bitmap.h (bitmap_last_set_bit): Declare.
16647
16648 2009-03-29  David Ayers  <ayers@fsfe.org>
16649
16650         PR objc/27377
16651         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
16652         by calling objc_compare_types and surpress warnings about
16653         incompatible C pointers that are compatible ObjC pointers.
16654
16655 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
16656
16657         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
16658         call initialize_inline_failed.
16659         (initialize_inline_failed): Move it from here ...
16660         * cgraph.c (initialize_inline_failed): ... to here.
16661         (cgraph_create_edge): Call initialize_inline_failed rather than
16662         setting inline_failed directly.
16663
16664 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16665
16666         PR target/32542
16667         * sysv4.opt (msdata): Improve comment.
16668         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
16669         * sysv4.h (SVR4_ASM_SPEC): Likewise.
16670
16671 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16672
16673         PR target/30451
16674         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
16675         load and store attributes.
16676
16677 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16678
16679         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
16680         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
16681         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
16682         * doc/extend.texi (X86 Built-in Functions): Add index entries for
16683         __builtin_infq and __builtin_huge_valq.
16684
16685 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
16686
16687         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
16688         atmega8m1 devices.
16689         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16690         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
16691
16692 2009-03-28  Xinliang David Li  <davidxl@google.com>
16693
16694         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
16695         (do_dbg_cnt): New function.
16696
16697 2009-03-28  Jan Hubicka  <jh@suse.cz>
16698
16699         Merge from pretty-ipa:
16700
16701         2009-03-27  Jan Hubicka  <jh@suse.cz>
16702
16703         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16704         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
16705         * passes.c (function_called_by_processed_nodes_p): New.
16706         * ipa-pure-const.c (check_call): Fix handling of operands.
16707         (analyze_function): Dump debug output for skipped bodies.
16708         (local_pure_const): Use function_called_by_processed_nodes_p.
16709         * dwarf2out.c (reference_to_unused): Use output.
16710         * passes.c (do_per_function_toporder): Likewise.
16711
16712         2008-11-12  Jan Hubicka  <jh@suse.cz>
16713
16714         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
16715         * ipa-pure-const.c (funct_state_d): Add can throw field; make
16716         state_set_in_source enum
16717         (check_decl): Ignore memory tags; do not set fake looping flags;
16718         dump diagnostics.
16719         (check_operand, check_tree, check_rhs_var, check_lhs_var,
16720         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
16721         (check_call, analyze_function): Rewrite.
16722         (check_stmt): New.
16723         (add_new_function): Update call of analyze_function.
16724         (generate_summary): Add call of analyze_function.
16725         (propagate): Propagate can_throw; handle state_set_in_source correctly.
16726         (local_pure_const): New function.
16727         (pass_local_pure_const): New pass.
16728         * ipa-inline.c (inline_transform): Set after_inlining.
16729         * tree-eh.c (stmt_can_throw_external): New.
16730         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
16731         work with aliasing built.
16732         * tree-flow.h (stmt_can_throw_external): New.
16733         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
16734         and local pure/const pass in early and late optimization queue.
16735
16736 2009-03-28  Martin Jambor  <mjambor@suse.cz>
16737
16738         * fold-const.c (get_pointer_modulus_and_residue): New parameter
16739         allow_func_align.
16740         (fold_binary): Allow function decl aligment consideration is the
16741         second argument is integer constant one.
16742         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
16743         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
16744         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
16745
16746 2009-03-28  Jan Hubicka  <jh@suse.cz>
16747
16748         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
16749         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
16750         * function.h (rtl_data): Add nothrow flag.
16751         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
16752         set DECL_NOTHROW for AVAILABLE functions.
16753
16754 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
16755
16756         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
16757         following vector keyword has expansion starting with pixel or bool
16758         keyword, expand vector to __vector and pixel or bool to __pixel or
16759         __bool.
16760
16761         PR c++/39554
16762         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
16763         warn_if_disallowed_function_p): Removed.
16764         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
16765         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
16766         warning_if_disallowed_function_p.
16767         * flags.h (warn_if_disallowed_function_p,
16768         warn_disallowed_functions): Removed.
16769         * common.opt (Wdisallowed-function-list=): Removed.
16770         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
16771
16772 2009-03-28  Richard Guenther  <rguenther@suse.de>
16773
16774         PR tree-optimization/38723
16775         * tree-ssa-pre.c (compute_avail): Add all default definitions to
16776         the entry block.
16777
16778 2009-03-28  Jan Hubicka  <jh@suse.cz>
16779
16780         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
16781         test introduced by my previous patch.
16782
16783 2009-03-28  Richard Guenther  <rguenther@suse.de>
16784
16785         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
16786         the PHIs value undefined.
16787
16788 2009-03-28  Jan Hubicka  <jh@suse.cz>
16789
16790         * tree-pass.h (pass_fixup_cfg): New pass.
16791         * ipa-inline.c (inline_transform): Set
16792         always_inline_functions_inlined/after_inlining.
16793         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
16794         (pass_fixup_cfg): New pass.
16795         * passes.c (init_optimization_passes): Add fixup_cfg.
16796
16797 2009-03-28  Richard Guenther  <rguenther@suse.de>
16798
16799         PR tree-optimization/38458
16800         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
16801         argument use the arguments copy-of value.
16802
16803 2009-03-28  Richard Guenther  <rguenther@suse.de>
16804
16805         PR tree-optimization/38180
16806         * tree-ssa-ccp.c (get_default_value): Simplify.
16807         (likely_value): Likewise.
16808         (surely_varying_stmt_p): Properly handle VOP case.
16809         (ccp_initialize): Likewise.
16810         (ccp_fold): Handle propagating through *&.
16811         (fold_const_aggregate_ref): Also handle decls.
16812
16813 2009-03-28  Jan Hubicka  <jh@suse.cz>
16814
16815         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16816         * cgraph.h (cgraph_node): Likewise.
16817         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
16818         (cgraph_reset_node): Use process flag.
16819         (cgraph_mark_functions_to_output): Likewise.
16820         (cgraph_expand_function): Likewise.
16821         (cgraph_expand_all_functions): Likewise.
16822         (cgraph_output_in_order): Likewise.
16823         * dwarf2out.c (reference_to_unused): Likewise.
16824         * passes.c do_per_function_toporder): Likewise.
16825
16826 2009-03-28  Jan Hubicka  <jh@suse.cz>
16827
16828         Bring from lto-branch:
16829
16830         2008-09-03  Doug Kwan  <dougkwan@google.com>
16831
16832         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
16833         enums instead of reason strings.
16834         * cgraph.c (cgraph_create_edge): Same.
16835         (cgraph_inline_failed_string): New function.
16836         * cgraph.h (cgraph_inline_failed_t): New enum type.
16837         (cgraph_inline_failed_string): New prototype.
16838         (struct cgraph_edge): Change type of INLINED_FAILED from constant
16839         char pointer to cgraph_inline_failed_t.
16840         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
16841         (cgraph_default_inline_p): Ditto.
16842         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
16843         to cgraph_inline_failed_t pointer.
16844         * cif-code.def: New file.
16845         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
16846         reason string.
16847         (cgraph_check_inline_limits): Change type of REASON to pointer to
16848         cgraph_inline_failed_t.  Replace reason strings with enums.
16849         (cgraph_default_inline_p): Ditto.
16850         (cgraph_recursive_inlining_p): Ditto.
16851         (update_caller_keys): Change type of FAILED_REASON to
16852         cgraph_inline_failed_t.
16853         (cgraph_set_inline_failed): Change type of REASON to pointer to
16854         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
16855         convert enums to strings for text output.
16856         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
16857         to be of type cgraph_inline_failed_t.  Replace reason strings with
16858         enums.  Call cgraph_inline_failed_string to covert enums
16859         to strings for text output.
16860         (cgraph_decide_inlining): Replace reason strings with enums.
16861         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
16862         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
16863         for text output.
16864         * tree-inline.c (expand_call_inline): Change type of REASON
16865         to cgraph_inline_failed_t.  Replace reason strings with enums.
16866         Call cgraph_inline_failed_string for text output.
16867         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
16868         (cgraph.o): Ditto.
16869
16870 2009-03-28  Jan Hubicka  <jh@suse.cz>
16871
16872         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
16873         cgraph_clone_node): Remove master clone handling.
16874         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16875         * cgraph.h (master_clone): Remove.
16876         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16877         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
16878         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
16879
16880 2009-03-28  Jan Hubicka  <jh@suse.cz>
16881
16882         * cgraph.c (cgraph_function_body_availability): Functions declared
16883         inline are always safe to assume that it is not going to be replaced.
16884
16885 2009-03-28  Richard Guenther  <rguenther@suse.de>
16886
16887         PR tree-optimization/38513
16888         * tree-ssa-pre.c (eliminate): Remove redundant stores.
16889         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16890         EXC_PTR_EXPR and FILTER_EXPR.
16891         (get_ref_from_reference_ops): Likewise.
16892
16893 2009-03-28  Richard Guenther  <rguenther@suse.de>
16894
16895         PR tree-optimization/38968
16896         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
16897         Use FLOOR_MOD_EXPR to compute misalignment.
16898
16899 2009-03-28  Richard Guenther  <rguenther@suse.de>
16900
16901         PR tree-optimization/37795
16902         * tree.h (combine_comparisons): Declare.
16903         * fold-const.c (combine_comparisons): Export.
16904         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
16905         comparisons.
16906         (ifcombine_iforif): Use combine_comparisons.
16907
16908 2009-03-28  Jan Hubicka  <jh@suse.cz>
16909
16910         * tree-eh.c (inlinable_call_p): New function.
16911         (make_eh_edges): Use it.
16912         (verify_eh_edges): Use it.
16913         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
16914         * except.c (reachable_next_level): Add inlinable_function argument
16915         (sjlj_find_directly_reachable_regions): Update.
16916         (add_reachable_handler): Do not set saw_any_handlers.
16917         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
16918         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16919         Add new inlinable call parameter.
16920         (can_throw_internal, can_throw_external): Update.
16921         * except.h (can_throw_internal_1, can_throw_external_1,
16922         foreach_reachable_handler): Update declaration.
16923
16924 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
16925
16926         * config/arm/t-arm-coff, config/h8300/coff.h,
16927         config/i386/i386-aout.h, config/i386/i386-coff.h,
16928         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
16929         config/pdp11/2bsd.h, config/rs6000/aix41.h,
16930         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
16931         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
16932         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
16933         sys-types.h: Remove.
16934         * Makefile.in: Remove protoize and fixproto support and references
16935         in comments.
16936         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
16937         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
16938         Remove.
16939         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
16940         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
16941         unprotoize$(exeext).
16942         (rest.encap): Don't depend on $(STMP_FIXPROTO)
16943         (.PHONY): Don't depend on proto.
16944         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
16945         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
16946         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
16947         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
16948         build/gen-protos.o, build/scan.o, xsys-protos.h,
16949         build/fix-header$(build_exeext), build/fix-header.o,
16950         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
16951         stmp-install-fixproto): Remove.
16952         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
16953         SYSCALLS.c or fixproto files.
16954         (install-common): Don't install protoize.
16955         (install-headers-tar, install-headers-cpio, install-headers-cp):
16956         Don't depend on $(STMP_FIXPROTO).
16957         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
16958         install fixproto files or write out fixproto settings.
16959         (uninstall): Don't uninstall protoize.
16960         * config.gcc (use_fixproto): Remove.
16961         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
16962         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
16963         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
16964         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
16965         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
16966         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
16967         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
16968         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
16969         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
16970         * config/t-vxworks (STMP_FIXPROTO): Remove.
16971         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
16972         STMP_FIXPROTO): Remove.
16973         * config.in, configure: Regenerate.
16974         * crtstuff.c (gid_t, uid_t): Don't undefine.
16975         * doc/install.texi: Change m68k-coff to m68k-elf in example.
16976         (arm-*-coff, arm-*-aout: Remove target entries.
16977         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
16978         Remove mention of AIX 4.1.
16979         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
16980         * doc/invoke.texi (Running Protoize): Remove.
16981         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
16982         (Protoize Caveats): Remove.
16983         * tsystem.h: Update comments on headers assumed to exist.
16984
16985 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
16986
16987         * genautomata.c: Add a new year to the copyright.  Add a new
16988         reference.
16989         (struct insn_reserv_decl): Add comments for member bypass_list.
16990         (find_bypass): Remove.
16991         (insert_bypass): New.
16992         (process_decls): Use insert_bypass.
16993         (output_internal_insn_latency_func): Output all bypasses with the
16994         same input insn in one switch case.
16995
16996         * rtl.def (define_bypass): Describe bypass choice.
16997         * doc/md.texi (define_bypass): Ditto.
16998
16999 2009-03-27  Richard Guenther  <rguenther@suse.de>
17000
17001         * gimplify.c (mark_addressable): Export.
17002         * tree-flow.h (mark_addressable): Declare.
17003         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
17004         * tree-ssa.c (verify_phi_args): Verify that address taken
17005         variables have TREE_ADDRESSABLE set.
17006
17007 2009-03-27  Richard Guenther  <rguenther@suse.de>
17008
17009         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
17010         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
17011         Do not mark decls TREE_ADDRESSABLE.
17012         (build_fold_addr_expr): Adjust.
17013         (fold_addr_expr): Remove.
17014         (fold_unary): Use build_fold_addr_expr.
17015         (fold_comparison): Likewise.
17016         (split_address_to_core_and_offset): Likewise.
17017         * coverage.c (tree_coverage_counter_addr): Mark the array decl
17018         TREE_ADDRESSABLE.
17019         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
17020         (gimplify_modify_expr_to_memcpy): Mark source and destination
17021         addressable.
17022         * omp-low.c (create_omp_child_function): Mark the object decl
17023         TREE_ADDRESSABLE.
17024         (lower_rec_input_clauses): Mark the var we take the address of
17025         TREE_ADDRESSABLE.
17026         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
17027
17028 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17029
17030         PR middle-end/39315
17031         * cfgexpand.c (expand_one_stack_var_at): Change alignment
17032         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
17033
17034 2009-03-27  Richard Guenther  <rguenther@suse.de>
17035
17036         PR tree-optimization/39120
17037         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
17038         constraints.
17039         (handle_lhs_call): Process return constraints.  Add escape
17040         constraints if necessary.
17041         (handle_const_call): Fill out return constraints.  Make nested
17042         case more precise.  Avoid consttmp if possible.
17043         (handle_pure_call): Fill out return constraints.  Avoid
17044         callused if possible.
17045         (find_func_aliases): Simplify call handling.
17046
17047 2009-03-27  Richard Guenther  <rguenther@suse.de>
17048
17049         PR tree-optimization/39120
17050         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
17051         as a representative.
17052         (solve_graph): Do propagate CALLUSED.
17053         (handle_pure_call): Use a scalar constraint from CALLUSED for
17054         the return value.
17055         (find_what_p_points_to): CALLUSED shall not appear in poins-to
17056         solutions.
17057
17058 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17059
17060         PR c/39323
17061         * c-common.c (handle_aligned_attribute): Properly check alignment
17062         overflow.  Use (1U << i) instead of (1 << i).
17063
17064         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
17065
17066         * expr.h (get_mem_align_offset): Updated.
17067
17068         * tree.h (tree_decl_common): Change align to "unsigned int" and
17069         move it before pointer_alias_set.
17070
17071 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17072             Jakub Jelinek  <jakub@redhat.com>
17073
17074         PR target/38034
17075         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
17076         gr_register_operand with gr_reg_or_0_operand.
17077         (cmpxchg_rel_di): Likewise.
17078         (sync_lock_test_and_set<mode>): Likewise.
17079
17080 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17081
17082         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
17083         (true_regnum): Likewise.
17084
17085         * rtlanal.c (subreg_info): Moved to ...
17086         * rtl.h (subreg_info): Here.  New.
17087         (subreg_get_info): New.
17088
17089         * rtlanal.c (subreg_get_info): Make it extern.
17090
17091 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17092
17093         PR target/39472
17094         * config/i386/i386.c (ix86_abi): New.
17095         (override_options): Handle -mabi=.
17096         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
17097         (ix86_call_abi_override): Likewise.
17098         (init_cumulative_args): Likewise.
17099         (function_arg_advance): Likewise.
17100         (function_arg_64): Likewise.
17101         (function_arg): Likewise.
17102         (ix86_pass_by_reference): Likewise.
17103         (ix86_function_value_regno_p): Likewise.
17104         (ix86_build_builtin_va_list_abi): Likewise.
17105         (setup_incoming_varargs_64): Likewise.
17106         (is_va_list_char_pointer): Likewise.
17107         (ix86_init_machine_status): Likewise.
17108         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
17109         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
17110         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
17111         (ix86_function_abi): Make it static and return enum calling_abi.
17112         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
17113         with ix86_abi.
17114         (ix86_fn_abi_va_list): Updated.
17115
17116         * config/i386/i386.h (ix86_abi): New.
17117         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
17118         (CONDITIONAL_REGISTER_USAGE): Likewise.
17119         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
17120         (machine_function): Likewise.
17121
17122         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
17123         with ix86_abi.
17124         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
17125         (STACK_BOUNDARY): Likewise.
17126         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
17127
17128         * config/i386/i386.opt (mabi=): New.
17129
17130         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
17131         return enum calling_abi.
17132         (ix86_function_type_abi): Likewise.
17133         (ix86_function_abi): Removed.
17134
17135         * doc/invoke.texi: Document -mabi= option for x86.
17136
17137 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17138
17139         * builtins.c (real_dconstp): Delete.
17140         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
17141
17142 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
17143             Jakub Jelinek  <jakub@redhat.com>
17144
17145         PR debug/37959
17146         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
17147         (gen_subprogram_die): When a function is explicit, generate the
17148         DW_AT_explicit attribute.
17149         * langhooks.h (struct lang_hooks_for_decls): Add
17150         function_decl_explicit_p langhook.
17151         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
17152         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
17153
17154 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
17155
17156         * builtins.c (fold_builtin_memory_op): Optimize memmove
17157         into memcpy if we can prove source and destination don't overlap.
17158
17159         * tree-inline.c: Include gt-tree-inline.h.
17160         (clone_fn_id_num): New variable.
17161         (clone_function_name): New function.
17162         (tree_function_versioning): Use it.
17163         * Makefile.in (GTFILES): Add tree-inline.c.
17164
17165 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
17166
17167         * BASE-VER: Change to 4.5.0.
17168
17169 2009-03-27  Xinliang David Li  <davidxl@google.com>
17170
17171         PR tree-optimization/39557
17172         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
17173
17174 2009-03-27  Xinliang David Li  <davidxl@google.com>
17175
17176         PR tree-optimization/39548
17177         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
17178         candidate check.
17179
17180 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17181
17182         * c-common.c (pointer_int_sum): Use %wd on return from
17183         tree_low_cst.
17184
17185 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17186
17187         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
17188         on return from tree_low_cst.
17189
17190 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17191
17192         PR c++/36799
17193         * ginclude/stdarg.h (va_copy): Define also for
17194         __GXX_EXPERIMENTAL_CXX0X__.
17195
17196 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17197
17198         PR c++/35652
17199         * builtins.h (c_strlen): Do not warn here.
17200         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
17201         * c-common.c (pointer_int_sum): Take an explicit location.
17202         Warn about offsets out of bounds.
17203         * c-common.h (pointer_int_sum): Adjust declaration.
17204
17205 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17206
17207         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
17208         markup glitch.
17209
17210 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
17211
17212         PR c++/39554
17213         * opts.c (warn_if_disallowed_function_p): Don't assume
17214         get_callee_fndecl must return non-NULL.
17215
17216 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
17217
17218         PR rtl-optimization/39522
17219         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
17220         when reg_reloaded_valid is set.
17221
17222 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17223
17224         * config/spu/divv2df3.c: New file.
17225         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
17226         (DPBIT_FUNCS): Filter out _div_df.
17227
17228 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
17229
17230         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
17231         a jump insn, count that jump in the distance to the loop start.
17232
17233 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17234
17235         PR target/39523
17236         * config/sh/sh.c (calc_live_regs): Fix condition for global
17237         registers except PIC_OFFSET_TABLE_REGNUM.
17238
17239 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
17240
17241         PR/39518
17242         * doc/invoke.texi (-mconsole): New.
17243         (-mcygwin): New.
17244         (-mno-cygwin): New.
17245         (-mdll): New.
17246         (-mnop-fun-dllimport): New.
17247         (-mthread): New.
17248         (-mwin32): New.
17249         (-mwindows): New.
17250         (sub section "i386 and x86-64 Windows Options"): New.
17251
17252 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
17253
17254         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
17255         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
17256
17257 2009-03-25  Richard Guenther  <rguenther@suse.de>
17258
17259         PR middle-end/39497
17260         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
17261         of -Wno-error.
17262
17263 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
17264
17265         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
17266         neither of haifa/selective schedulers are working.
17267
17268 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17269
17270         * doc/invoke.texi (Debugging Options): Fix description of
17271         -fno-merge-debug-strings.
17272
17273 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
17274
17275         * config/cris/libgcc.ver: New version-script.
17276         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
17277
17278         * configure.ac <GAS features, nop mnemonic>: Add pattern
17279         crisv32-*-* for "nop".
17280         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
17281         * configure: Regenerate.
17282
17283 2009-03-24  Ira Rosen  <irar@il.ibm.com>
17284
17285         PR tree-optimization/39529
17286         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
17287         mark_sym_for_renaming for the tag copied to the new vector
17288         pointer.
17289
17290 2009-03-24  Arthur Loiret  <aloiret@debian.org>
17291
17292         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
17293         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
17294         EXTRA_SPEC_FUNCTIONS.
17295         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
17296         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
17297         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
17298         -march and -mtune options.
17299
17300 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
17301
17302         * config/m68k/t-rtems: Add m5329 multilib.
17303
17304 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
17305             Jakub Jelinek  <jakub@redhat.com>
17306
17307         PR debug/39524
17308         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
17309         nodes.
17310
17311 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17312
17313         PR c/39495
17314         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
17315         instead of c_parser_expression_conv, if original_code isn't one of the
17316         4 allowed comparison codes, fail.
17317
17318 2009-03-23  Richard Guenther  <rguenther@suse.de>
17319
17320         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
17321         * tree.h (struct tree_type): Likewise.
17322         * reload.h (struct insn_chain): Likewise.
17323         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
17324         * function.h (struct function): Likewise.
17325         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
17326
17327 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17328
17329         PR tree-optimization/39516
17330         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
17331
17332 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
17333
17334         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
17335         should be set true if BITS_PER_WORD of target is bigger than 32
17336
17337 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
17338
17339         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
17340         Translate -B-options to -rpath-link.  Correct existing
17341         rpath-link and conditionalize on !nostdlib.
17342
17343 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17344
17345         * doc/extend.texi (Function Attributes, Variable Attributes):
17346         Fix typos.
17347         * doc/invoke.texi (Debugging Options, Optimize Options)
17348         (i386 and x86-64 Options, MCore Options): Likewise.
17349
17350 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
17351
17352         PR debug/37890
17353         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
17354         it for block local namespace aliases.
17355         (gen_decl_die): Pass context_die to gen_namespace_die.
17356
17357 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17358
17359         PR c/39495
17360         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
17361         minimum or maximum value.
17362
17363 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
17364
17365         * reginfo.c (globalize_reg): Recompute derived reg sets.
17366
17367 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
17368
17369         PR target/39063
17370         * libgcc2.c (mprotect): Do not use signed arguments for
17371         VirtualProtect, use DWORD arguments.  Also fix the 'may
17372         be used uninitialized' warning for the np variable.
17373
17374 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17375
17376         PR target/39496
17377         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
17378         functions using regparm calling conventions when not optimizing.
17379         (ix86_function_sseregparm): Similarly for sseregparm calling
17380         conventions.
17381
17382 2009-03-19  Li Feng  <nemokingdom@gmail.com>
17383
17384         PR middle-end/39500
17385         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
17386         dependence if the first conflict is after niter iterations.
17387
17388 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
17389
17390         PR middle-end/38609
17391         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
17392         functions with dynamic stack-pointer adjustments.
17393
17394 2009-03-19  Ben Elliston  <bje@au.ibm.com>
17395
17396         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
17397         option; change to -msdata=data.
17398
17399 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17400
17401         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
17402         and -fopenmp.
17403
17404 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
17405
17406         PR target/35180
17407         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
17408
17409 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
17410
17411         * doc/invoke.texi (Code Gen Options): Expand discussion of
17412         -fno-common.
17413
17414 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
17415
17416         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
17417         * matrix-reorg.c (struct matrix_info): Likewise.
17418         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
17419         * rtl.h (struct mem_attrs): Likewise.
17420         * df.h (struct df): Likewise.
17421         * tree-data-ref.h (struct data_dependence_relation): Likewise.
17422         * ira-int.h (struct ira_allocno): Likewise.
17423         * df-scan.c (struct df_collection_rec): Likewise.
17424         * ira.c (struct equivalence): Likewise.
17425         * function.c (struct temp_slot): Likewise.
17426         * cfgloop.h (struct loop): Likewise.
17427
17428         PR debug/39485
17429         * function.c (use_register_for_decl): When not optimizing, disregard
17430         register keyword for variables with types containing methods.
17431
17432 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
17433
17434         PR middle-end/39447
17435         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
17436         (is_simple_operand): Call contains_component_ref_p before calling data
17437         reference analysis that would fail on COMPONENT_REFs.
17438
17439         * tree-vrp.c (search_for_addr_array): Fix formatting.
17440
17441 2009-03-18  Richard Guenther  <rguenther@suse.de>
17442
17443         * tree-vect-transform.c (vect_loop_versioning): Fold the
17444         generated comparisons.
17445         * tree-vectorizer.c (set_prologue_iterations): Likewise.
17446         (slpeel_tree_peel_loop_to_edge): Likewise.
17447
17448 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17449
17450         PR middle-end/37805
17451         * opts.c (print_specific_help): In addition to `undocumented',
17452         accept `separate' and `joined' flags if passed alone.  Describe
17453         output by the first matched one of those.
17454         (common_handle_option): Skip over empty strings.
17455         * gcc.c (display_help): Fix help string for `--help='.
17456         * doc/invoke.texi (Option Summary, Overall Options): With
17457         `--help=', classes and qualifiers can both be repeated, but
17458         only the latter can be negated.  One should not pass only
17459         negated qualifiers.  Fix markup and examples.
17460
17461         Revert
17462         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
17463         PR middle-end/37805
17464         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
17465         and -fhelp=separate.
17466
17467 2009-03-17  Jing Yu  <jingyu@google.com>
17468
17469         PR middle-end/39378
17470         * function.h (struct rtl_data): Move is_thunk from here...
17471         (struct function): ...to here.
17472         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
17473         * varasm.c (assemble_start_function): Change is_thunk from crtl to
17474         cfun.
17475         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
17476         cfun.
17477         (alpha_does_function_need_gp, alpha_start_function): Likewise.
17478         (alpha_output_function_end_prologue): Likewise.
17479         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
17480         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
17481         (rs6000_output_function_epilogue): Likewise.
17482         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
17483
17484 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
17485
17486         PR target/39482
17487         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
17488         from different units in a single alternative.
17489         (*truncdfsf_i387): Ditto.
17490         (*truncxfsf2_mixed): Ditto.
17491         (*truncxfdf2_mixed): Ditto.
17492
17493 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
17494
17495         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
17496         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
17497
17498         PR debug/39474
17499         * tree-ssa-live.c (remove_unused_locals): Don't remove local
17500         unused non-artificial variables when not optimizing.
17501
17502         PR debug/39471
17503         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
17504         DW_TAG_imported_module even if decl is IMPORTED_DECL with
17505         NAMESPACE_DECL in its DECL_INITIAL.
17506
17507         PR middle-end/39443
17508         * optabs.c (set_user_assembler_libfunc): New function.
17509         * expr.h (set_user_assembler_libfunc): New prototype.
17510         * c-common.c: Include libfuncs.h.
17511         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
17512         for memcmp, memset, memcpy, memmove and abort.
17513         * Makefile.in (c-common.o): Depend on libfuncs.h.
17514
17515         PR debug/39412
17516         * dwarf2out.c (gen_inlined_enumeration_type_die,
17517         gen_inlined_structure_type_die, gen_inlined_union_type_die,
17518         gen_tagged_type_instantiation_die): Removed.
17519         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
17520         do nothing.
17521
17522 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
17523
17524         PR testsuite/38526
17525         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
17526         its use.
17527         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
17528         (check-parallel-%): Ditto.
17529         (check-consistency): Ditto.
17530
17531 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
17532
17533         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
17534         local variable rhs by NULL_TREE.
17535
17536 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17537
17538         PR target/39477
17539         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
17540
17541 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17542
17543         PR target/39476
17544         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
17545
17546 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17547
17548         PR target/39473
17549         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
17550         for ms->sysv ABI calls only in 64bit mode.
17551
17552         * config/i386/i386.md (untyped_call): Support 32bit.
17553
17554 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17555
17556         * doc/extend.texi: Replace x86_65 with x86_64.
17557
17558 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
17559
17560         PR tree-optimization/39455
17561         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
17562         mismatches for POINTER_TYPE_P (type).
17563         (number_of_iterations_le): Likewise.
17564
17565 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17566
17567         * config/picochip/picochip.c: Removed profiling support.
17568         * config/picochip/picochip.md: Removed profiling instruction.
17569         * config/picochip/picochip.h: Removed profiling builtin.
17570
17571 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
17572
17573         * doc/install.texi (--with-host-libstdcxx): Document.
17574
17575 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
17576
17577         PR target/34299
17578         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
17579         generate a warning if the function name does not begin with
17580         "__vector" and the function has either the 'signal' or 'interrupt'
17581         attribute, from here to ...
17582         (avr_declare_function_name): ...here. New function.
17583         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
17584         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
17585
17586 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
17587
17588         PR bootstrap/39454
17589         * cse.c (fold_rtx): Don't modify original const_arg1 when
17590         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
17591         separate variable instead.
17592         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
17593         from out of range shift counts.
17594         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
17595
17596 2009-03-13  Catherine Moore  <clm@codesourcery.com>
17597
17598         * config/i386/x-mingw32 (host-mingw32.o): Replace
17599         diagnostic.h with $(DIAGNOSTIC_H).
17600
17601 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
17602
17603         PR target/39431
17604         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
17605         predicate.
17606         * config/i386/sync.md (sync_compare_and_swap<mode>,
17607         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
17608         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
17609         into a register.
17610         (sync_double_compare_and_swapdi_pic,
17611         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
17612         cmpxchg8b_pic_memory_operand instead of just memory_operand.
17613
17614 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17615
17616         PR target/39445
17617         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
17618
17619 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17620
17621         PR target/39327
17622         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17623         (avx_addsubv4df3): Likewise.
17624         (*avx_addsubv4sf3): Likewise.
17625         (sse3_addsubv4sf3): Likewise.
17626
17627 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17628
17629         PR target/38824
17630         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
17631
17632 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
17633
17634         PR debug/39432
17635         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
17636         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17637         registers for allocnos created from user-defined variables.
17638
17639 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17640
17641         PR target/39181
17642         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
17643         of non-integer mode as well.
17644
17645 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
17646
17647         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
17648         for functions for which the parameter types are unknown.
17649
17650 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
17651
17652         PR target/39137
17653         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
17654         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
17655         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
17656         * config/i386/i386.c (ix86_local_alignment): For
17657         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
17658         long long variables on the stack to avoid dynamic realignment.
17659         Allow the first argument to be a decl rather than type.
17660         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
17661
17662 2009-03-11  Nick Clifton  <nickc@redhat.com>
17663
17664         PR target/5362
17665         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
17666         options.
17667         Add description to mno-lsim option.
17668         * config/mcore/mcore.h: Remove comment about deprecated m4align
17669         option.
17670         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
17671         * doc/invoke.texi: Add description of mno-lsim and
17672         mstack-increment options.
17673
17674         * config/fr30/fr30.opt: Document the -mno-lsim option.
17675         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
17676         and -mno-lsim options.
17677
17678 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17679
17680         * fold-const.c (fold_comparison): Only call fold_inf_compare
17681         if the mode supports infinities.
17682
17683 2009-03-11  Jason Merrill  <jason@redhat.com>
17684
17685         PR debug/39086
17686         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
17687         end already did.  Notice GIMPLE_CALL modifications of the result.
17688         Don't copy debug information from an ignored decl or a decl from
17689         another function.
17690
17691 2009-03-10  Richard Guenther  <rguenther@suse.de>
17692             Nathan Froyd  <froydnj@codesourcery.com>
17693
17694         PR middle-end/37850
17695         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
17696         (__divMODE3): Likewise.
17697
17698 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
17699
17700         PR tree-optimization/39394
17701         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
17702         DECL_SIZE_UNIT of variable length FIELD_DECLs.
17703
17704 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17705
17706         * recog.c (verfiy_changes): Disallow renaming of hard regs in
17707         inline asms for register asm ("") declarations.
17708
17709 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
17710
17711         * fold-const.c (fold_unary): Fix comment.
17712
17713 2009-03-07  Jan Hubicka  <jh@suse.cz>
17714
17715         PR target/39361
17716         * tree-inline.c (setup_one_parameter): Do replacement of const
17717         argument by constant in SSA form.
17718
17719 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17720
17721         PR middle-end/38028
17722         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
17723         determine alignment passed to assign_stack_local.
17724         (assign_parms_unsplit_complex): Likewise.
17725         * except.c (sjlj_build_landing_pads): Likewise.
17726
17727 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17728
17729         PR middle-end/39360
17730         * tree-flow.h (add_referenced_var): Return bool instead of void.
17731         * tree-dfa.c (add_referenced_var): Return result of
17732         referenced_var_check_and_insert call.
17733         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
17734         of referenced_var_check_and_insert.
17735
17736         PR debug/39372
17737         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
17738         (gen_variable_die): Emit DW_AT_location on abstract static variable's
17739         DIE, don't emit it if abstract origin already has it.
17740         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
17741         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
17742
17743 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17744
17745         * genpreds.c (needs_variable): Fix parentheses at variable name
17746         detection.
17747         (write_tm_constrs_h): Indent generated code.
17748
17749 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17750
17751         * doc/extend.texi (Function Attributes): Add documentation
17752         for isr attributes.
17753
17754 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17755
17756         PR debug/39387
17757         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
17758         take locus from its DECL_SOURCE_LOCATION instead of input_location.
17759
17760 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
17761
17762         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
17763         the loop as bad.
17764
17765 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
17766
17767         PR debug/39379
17768         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
17769         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
17770
17771 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
17772
17773         * config/i386/i386.md (R8_REG, R9_REG): New constants.
17774         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
17775         constants instead of magic numbers.
17776         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
17777         (QI_REG_P): Ditto.
17778         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
17779         (x86_64_ms_abi_int_parameter_registers): Ditto.
17780         (x86_64_int_return_registers): Ditto.
17781         (ix86_maybe_switch_abi): Ditto.
17782         (ix86_expand_call): Ditto for clobbered_registers array.
17783         (ix86_hard_regno_mode_ok): Ditto.
17784         (x86_extended_QIreg_mentioned_p): Ditto.
17785
17786 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
17787
17788         PR tree-optimization/39349
17789         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
17790
17791         * combine.c (gen_lowpart_for_combine): Use omode when generating
17792         clobber.
17793
17794 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
17795
17796         PR rtl-optimization/39235
17797         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
17798
17799 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17800
17801         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
17802
17803 2009-03-04  Richard Guenther  <rguenther@suse.de>
17804
17805         PR tree-optimization/39362
17806         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
17807         that occur in abnormal PHIs should be varying.
17808
17809 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17810
17811         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
17812         Extend comments.
17813         (simple_iv):  Take loop as an argument instead of statement.
17814         * tree-scalar-evolution.h (simple_iv): Declaration changed.
17815         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
17816         to simple_iv.
17817         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
17818         Ditto.
17819         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
17820         * matrix-reorg.c (analyze_transpose): Ditto.
17821         * tree-data-ref.c (dr_analyze_innermost): Ditto.
17822         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
17823         * tree-predcom.c (ref_at_iteration): Ditto.
17824         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
17825
17826 2009-03-04  Richard Guenther  <rguenther@suse.de>
17827
17828         PR tree-optimization/39358
17829         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
17830         escaped_id and callused_id.
17831         (solve_graph): Likewise.
17832
17833 2009-03-04  Richard Guenther  <rguenther@suse.de>
17834
17835         PR tree-optimization/39339
17836         * tree-sra.c (try_instantiate_multiple_fields): Make it
17837         no longer ICE on the above.
17838
17839 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
17840
17841         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
17842         that fits within Pmode.
17843
17844 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17845
17846         PR middle-end/10109
17847         * tm.texi (LIBCALL_VALUE): Update description.
17848
17849 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17850
17851         PR middle-end/34443
17852         * doc/extend.texi (section): Update description.
17853
17854 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17855
17856         PR middle-end/39345
17857         * tree-inline.c (remapped_type): New.
17858         (can_be_nonlocal): Call remapped_type instead of remap_type.
17859
17860 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17861
17862         PR fortran/39354
17863         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
17864         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
17865
17866 2009-03-03  Richard Guenther  <rguenther@suse.de>
17867
17868         PR middle-end/39272
17869         * tree.c (tree_nonartificial_location): New function.
17870         * tree.h (tree_nonartificial_location): Declare.
17871         * builtins.c (expand_builtin_memory_chk): Provide location
17872         of the call location for artificial function pieces.
17873         (maybe_emit_chk_warning): Likewise.
17874         (maybe_emit_sprintf_chk_warning): Likewise.
17875         (maybe_emit_free_warning): Likewise.
17876         * expr.c (expand_expr_real_1): Likewise.
17877
17878 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17879
17880         PR tree-optimization/39343
17881         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
17882         COMPONENT_REF t has ARRAY_TYPE.
17883
17884 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
17885
17886         PR middle-end/39335
17887         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
17888         when the type precision of the induction variable should be
17889         larger than the type precision of nit.
17890         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
17891         * graphite.c (graphite_loop_normal_form): Same.
17892         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
17893
17894 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17895
17896         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
17897         (*call_1_rex64_ms_sysv): Use named constants instead of magic
17898         numbers to describe clobbered registers.
17899         (*call_value_0_rex64_ms_sysv): Ditto.
17900         * config/i386/mmx.md (mmx_emms): Ditto.
17901         (mmx_femms): Ditto.
17902
17903 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
17904
17905         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
17906         of ABI_64.
17907
17908 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17909
17910         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
17911         (spu_section_type_flags): New function.
17912
17913 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17914
17915         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
17916         reg_class_contents of FLOAT_REGS into a temporary.
17917
17918 2009-03-02  Richard Guenther  <rguenther@suse.de>
17919             Ira Rosen  <irar@il.ibm.com>
17920
17921         PR tree-optimization/39318
17922         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
17923         information to the vectorized statement.
17924
17925 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
17926
17927         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
17928         variable.  Use defined names instead of magic constants for REX SSE
17929         registers.
17930
17931 2009-03-01  Richard Guenther  <rguenther@suse.de>
17932
17933         PR tree-optimization/39331
17934         * omp-low.c (lower_send_shared_vars): Do not receive new
17935         values for the reference of DECL_BY_REFERENCE parms or results.
17936
17937 2009-03-01  Jan Hubicka  <jh@suse.cz>
17938
17939         PR debug/39267
17940         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
17941         BLOCK_NONLOCALIZED_VAR): New macros.
17942         (tree_block): Add nonlocalized_vars.
17943         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
17944         gen_decl_die): Add origin argument.  Allow generation of die with
17945         origin at hand only.
17946         (gen_member_die, gen_type_die_with_usage, force_decl_die,
17947         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
17948         of gen_*.
17949         (gen_block_die): Fix checking for unused blocks.
17950         (process_scope_var): Break out from .... ; work with origins only.
17951         (decls_for_scope) ... here; process nonlocalized list.
17952         (dwarf2out_ignore_block): Look for nonlocalized vars.
17953         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
17954         vars.
17955         (dump_scope_block): Dump them.
17956         * tree-inline.c (remap_decls): Handle nonlocalized vars.
17957         (remap_block): Likewise.
17958         (can_be_nonlocal): New predicate.
17959         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
17960
17961 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17962
17963         * configure: Regenerate.
17964
17965 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17966
17967         * optc-gen.awk: No need to duplicate option flags twice.
17968         Reuse help texts for duplicate options which do not have any.
17969
17970         * gcc.c (display_help): Document --version.
17971
17972         * gcc.c (main): If print_help_list and verbose_flag, ensure
17973         driver output comes before subprocess output.
17974
17975         * optc-gen.awk: Assign all remaining fields to help string,
17976         space-separated, for multi-line help in *.opt.
17977
17978         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
17979         -Wno-pedantic-ms-format is for MinGW targets only.
17980
17981         * doc/options.texi (Option file format): Fix bad indentation,
17982         restoring dropped sentence.
17983
17984 2009-02-28  Jan Hubicka  <jh@suse.cz>
17985
17986         * tree-inline.c (tree_function_versioning): Output debug info.
17987
17988 2009-02-28  Jan Hubicka  <jh@suse.cz>
17989
17990         PR debug/39267
17991         * tree-inline.c (setup_one_parameter): Do not copy propagate
17992         arguments when not optimizing.
17993
17994 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
17995
17996         PR target/39327
17997         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17998         (avx_addsubv4df3): Likewise.
17999         (*avx_addsubv4sf3): Likewise.
18000         (sse3_addsubv4sf3): Likewise.
18001         (*avx_addsubv2df3): Likewise.
18002         (sse3_addsubv2df3): Likewise.
18003         (avx_unpckhps256): Correct item selectors.
18004         (avx_unpcklps256): Likewise.
18005         (avx_unpckhpd256): Likewise.
18006         (avx_unpcklpd256): Likewise.
18007
18008 2009-02-28  Jan Hubicka  <jh@suse.cz>
18009
18010         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
18011         static vars.
18012         (copy_arguments_for_versioning): If var is declared don't declare it.
18013         (tree_function_versioning): First setup substitutions and then copy
18014         args.
18015
18016 2009-02-27  Jan Hubicka  <jh@suse.cz>
18017
18018         PR debug/39267
18019         * cgraph.h (varpool_output_debug_info): Remove.
18020         * cgraphunit.c (varpool_output_debug_info): Remove.
18021         * dwarf2out.c (deferred_locations_struct): New struct
18022         (deferred_locations): New type.
18023         (deferred_locations_list): New static var.
18024         (deffer_location): New function.
18025         (gen_variable_die): Use it.
18026         (decls_for_scope): Output info on local static vars.
18027         (dwarf2out_finish): Process deferred locations.
18028         * varpool.c (varpool_output_debug_info): Remove.
18029
18030 2009-02-27  Jan Hubicka  <jh@suse.cz>
18031
18032         PR debug/39267
18033         * tree.h (TREE_PROTECTED): Fix comment.
18034         (BLOCK_HANDLER_BLOCK): Remove.
18035         (struct tree_block): Remove handler_block add body_block.
18036         (inlined_function_outer_scope_p): New.
18037         (is_body_block): Remove.
18038         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
18039         * dwarf2out.c (is_inlined_entry_point): Remove.
18040         (add_high_low_attributes): Use inlined_function_outer_scope_p.
18041         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
18042         code.
18043         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
18044         * gimplify.c (gimplify_expr): Gimplify body blocks.
18045         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
18046         block with multiple subblocks.
18047         (dump_scope_block): Prettier output; dump more flags and info.
18048         (dump_scope_blocks): New.
18049         (remove_unused_locals): Use dump_scope_blocks.
18050         * tree-flow.h (dump_scope_blocks): Declare.
18051         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
18052         * stmt.c (is_body_block): Remove.
18053         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
18054         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
18055
18056 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
18057
18058         PR middle-end/39308
18059         * graphite.c (graphite_loop_normal_form): Do not call
18060         number_of_iterations_exit from a gcc_assert.
18061
18062 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18063
18064         * config/s390/s390.c (s390_swap_cmp): Look for conditional
18065         jumps if COND is NULL.
18066         (find_cond_jump): New function.
18067         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
18068         * config/s390/s390.md: Remove z10_cobra attribute value.
18069
18070 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
18071
18072         * config/alpha/alpha.h (alpha_expand_mov): Return false if
18073         force_const_mem returns NULL_RTX.
18074
18075 2009-02-26  Jan Hubicka  <jh@suse.cz>
18076
18077         PR debug/39267
18078         * cgraph.h (varpool_output_debug_info): Remove.
18079         * cgraphunit.c (varpool_output_debug_info): Remove.
18080         * dwarf2out.c (deferred_locations_struct): New struct
18081         (deferred_locations): New type.
18082         (deferred_locations_list): New static var.
18083         (deffer_location): New function.
18084         (gen_variable_die): Use it.
18085         (decls_for_scope): Output info on local static vars.
18086         (dwarf2out_finish): Process deferred locations.
18087         * varpool.c (varpool_output_debug_info): Remove.
18088
18089 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
18090
18091         PR rtl-optimization/39241
18092         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
18093         to subreg_offset_representable_p.
18094
18095 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
18096
18097         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
18098         execute function prototype.  Get f and nregs from max_reg_num
18099         and get_insns.  Remove the first backward pass as it's dead,
18100         guard the forward pass by flag_expensive_optimizations.
18101         (rest_of_handle_regmove): Delete.
18102         (pass_regmove): Replace it with regmove_optimize.
18103
18104 2009-02-25  Martin Jambor  <mjambor@suse.cz>
18105
18106         PR tree-optimization/39259
18107         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
18108         calls_alloca function flags.
18109         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
18110         calls are detected.
18111
18112 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
18113
18114         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
18115         flags_set_1_rtx, flags_set_1_set): Delete.
18116         (regmove_optimize): Do not call mark_flags_life_zones.
18117
18118 2009-02-24  Julian Brown  <julian@codesourcery.com>
18119
18120         PR target/35965
18121         * config/arm/arm.c (require_pic_register): Only set
18122         cfun->machine->pic_reg once per function.
18123
18124 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
18125
18126         * doc/invoke.texi (Link Options): Document an easier way to pass
18127         options that take arguments to the GNU linker using -Xlinker and -Wl.
18128
18129 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
18130
18131         PR target/33785
18132         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
18133
18134 2009-02-24  Richard Guenther  <rguenther@suse.de>
18135
18136         PR debug/39285
18137         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
18138
18139 2009-02-24  Richard Guenther  <rguenther@suse.de>
18140             Zdenek Dvorak  <ook@ucw.cz>
18141
18142         PR tree-optimization/39233
18143         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
18144         from converting them to a generic type.
18145
18146 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
18147
18148         PR tree-optimization/39260
18149         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
18150         contains a condition with a real type.
18151         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
18152
18153 2009-02-23  Jason Merrill  <jason@redhat.com>
18154
18155         PR c++/38880
18156         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
18157         narrowing_initializer_constant_valid_p.
18158         (narrowing_initializer_constant_valid_p): Don't return
18159         null_pointer_node for adding a pointer to itself.
18160
18161 2009-02-23  Jan Hubicka  <jh@suse.cz>
18162
18163         PR c/12245
18164         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
18165         resizing.
18166
18167 2009-02-23  Jan Hubicka  <jh@suse.cz>
18168
18169         PR tree-optimization/37709
18170         * tree.c (block_ultimate_origin): Move here from dwarf2out.
18171         * tree.h (block_ultimate_origin): Declare.
18172         * dwarf2out.c (block_ultimate_origin): Move to tree.c
18173         * tree-ssa-live.c (remove_unused_scope_block_p):
18174         Eliminate blocks containig no instructions nor live variables nor
18175         nested blocks.
18176         (dump_scope_block): New function.
18177         (remove_unused_locals): Enable removal of dead blocks by default;
18178         enable dumping at TDF_DETAILS.
18179
18180 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18181
18182         * config/i386/i386.c (classify_argument): Don't allow COImode
18183         and OImode.
18184         (function_arg_advance_32): Don't allow OImode.
18185         (function_arg_32): Likewise.
18186         (function_value_32): Likewise.
18187         (return_in_memory_32): Likewise.
18188         (function_arg_64): Remove OImode comment.
18189
18190 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18191
18192         PR target/39261
18193         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
18194         ix86_expand_vector_set for V4DImode in 64bit mode only.
18195         (ix86_expand_vector_init_one_var): Likewise.
18196
18197 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
18198
18199         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
18200
18201 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
18202
18203         PR bootstrap/39257
18204         * loop-iv.c: Revert last change.
18205         * emit-rtl.c: Likewise.
18206
18207 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
18208
18209         PR target/39256
18210         * config/i386/i386.c (type_natural_mode): Remove an extra
18211         space in the warning message.
18212         (function_value_32): Handle 32-byte vector modes.
18213         (return_in_memory_32): Likewise.
18214
18215 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
18216
18217         * loop-iv.c (truncate_value): New function.
18218         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
18219         of lowpart_subreg.
18220         (lowpart_subreg): Move to...
18221         * emit-rtl.c: ...here.
18222
18223 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
18224
18225         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
18226         accidental and undocumented change at revision 140860.
18227
18228 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
18229
18230         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
18231         take gimple_seq * arguments.
18232         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
18233         types_compatible_p langhook.
18234
18235 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
18236             Joseph Myers  <joseph@codesourcery.com>
18237
18238         * config/arm/arm.c (arm_builtin_va_list): New function.
18239         (arm_expand_builtin_va_start): Likewise.
18240         (arm_gimplify_va_arg_expr): Likewise.
18241         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
18242         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
18243         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
18244         (va_list_type): New variable.
18245         (arm_mangle_type): Mangle va_list_type appropriately.
18246
18247 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
18248
18249         PR middle-end/39157
18250         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
18251         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
18252         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
18253         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
18254         parameter to 1000 for -O1 by default.
18255         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
18256         parameter.
18257         * loop-invariant.c: Include params.h.
18258         (move_loop_invariants): Don't call move_single_loop_invariants on
18259         very large loops.
18260
18261 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
18262
18263         * calls.c (emit_library_call_value_1): Use slot_offset instead of
18264         offset when calculating bounds for indexing stack_usage_map.  Fixes
18265         a buffer overflow with certain target setups.
18266
18267 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
18268
18269         PR target/39240
18270         * calls.c (expand_call): Clear try_tail_call if caller and callee
18271         disagree in promotion of function return value.
18272
18273 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
18274
18275         PR target/39175
18276         * c-common.c (c_determine_visibility): If visibility changed and
18277         DECL_RTL has been already set, call make_decl_rtl to update symbol
18278         flags.
18279
18280 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18281
18282         PR c++/39188
18283         * varasm.c (assemble_variable): Don't check DECL_NAME when
18284         globalizing a variable.
18285
18286 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
18287
18288         PR c/38483
18289         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
18290         expression before any __builtin_trap call.
18291         * c-typeck.c (build_function_call): Convert and check function
18292         arguments before generating a call to a trap.  Evaluate the
18293         function arguments before the trap.
18294
18295 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
18296
18297         PR target/39228
18298         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
18299         (UNSPEC_FXAM_MEM): New unspec.
18300         (fxam<mode>2_i387_with_temp): New insn and split pattern.
18301         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
18302         memory using fxam<mode>2_i387_with_temp to remove excess precision.
18303
18304 2009-02-19  Richard Guenther  <rguenther@suse.de>
18305
18306         PR tree-optimization/39207
18307         PR tree-optimization/39074
18308         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
18309         storedanything_tree): New.
18310         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
18311         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
18312         (build_succ_graph): Add edges from STOREDANYTHING to all
18313         non-direct nodes.
18314         (init_base_vars): Initialize STOREDANYTHING.
18315         (compute_points_to_sets): Free substitution info after
18316         building the succ graph.
18317         (ipa_pta_execute): Likewise.
18318
18319         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
18320         field.
18321         (do_ds_constraint): Do not add to special var or non-pointer
18322         field solutions.
18323         (type_could_have_pointers): Split out from ...
18324         (could_have_pointers): ... here.  For arrays use the element type.
18325         (create_variable_info_for): Initialize may_have_pointers.
18326         (new_var_info): Likewise.
18327         (handle_lhs_call): Make the HEAP variable unknown-sized.
18328         (intra_create_variable_infos): Use a type with pointers for
18329         PARM_NOALIAS, make it unknown-sized.
18330
18331 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18332
18333         PR target/39224
18334         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
18335
18336 2009-02-18  Jason Merrill  <jason@redhat.com>
18337
18338         PR target/39179
18339         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
18340         value if DECL_EXTERNAL.
18341         * tree-sra.c (sra_walk_gimple_assign): Likewise.
18342         * target.h (gcc_target::binds_local_p): Clarify "module".
18343         * tree.h (TREE_PUBLIC): Clarify "module".
18344
18345 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
18346
18347         PR target/38891
18348         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
18349         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
18350
18351 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
18352
18353         PR target/39082
18354         * c.opt (Wabi): Support C and ObjC.
18355         (Wpsabi): New.
18356
18357         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
18358
18359         * config/i386/i386.c (classify_argument): Warn once about the ABI
18360         change when passing union with long double.
18361
18362         * doc/invoke.texi: Update -Wabi for warning psABI changes.
18363
18364 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
18365
18366         PR c/35447
18367         * c-parser.c (c_parser_compound_statement): Always enter and leave
18368         a scope.
18369
18370 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18371
18372         PR target/34587
18373         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
18374
18375 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
18376
18377         PR tree-optimization/36922
18378         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
18379         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
18380         Likewise.
18381
18382 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18383
18384         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
18385         to 0 for EABI64.
18386
18387 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18388
18389         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
18390
18391 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18392
18393         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
18394         tree sharing.
18395
18396 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
18397             Richard Sandiford  <rdsandiford@googlemail.com>
18398
18399         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
18400         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
18401         (loongson_biadd): ...this.
18402
18403 2009-02-17  Richard Guenther  <rguenther@suse.de>
18404
18405         PR tree-optimization/39202
18406         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
18407         a var make sure to follow existing collapses.
18408
18409 2009-02-17  Richard Guenther  <rguenther@suse.de>
18410
18411         PR middle-end/39214
18412         * langhooks.c (lhd_print_error_function): Check for NULL block.
18413
18414 2009-02-17  Richard Guenther  <rguenther@suse.de>
18415
18416         PR tree-optimization/39204
18417         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
18418         of the PHI arg.
18419
18420 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
18421
18422         * config/soft-fp/double.h: Update from glibc CVS.
18423
18424 2009-02-17  Richard Guenther  <rguenther@suse.de>
18425
18426         PR tree-optimization/39207
18427         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
18428         strict-aliasing warnings for pointers pointing to NULL.
18429
18430 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
18431
18432         PR c/35446
18433         * c-parser.c (c_parser_braced_init): Call pop_init_level when
18434         skipping until next close brace.
18435
18436 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
18437
18438         PR target/37049
18439         * config/i386/i386.c (ix86_expand_push): Set memory alignment
18440         to function argument boundary.
18441
18442 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
18443
18444         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
18445         in the lea_add. Reload eventually constraints it properly.
18446         * config/picochip/constraints.md: Remove the target constraint
18447         "b", since it is not needed anymore.
18448
18449 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
18450
18451         * gthr-dce.h: Uglify function parameter and local variable names.
18452         * gthr-gnat.h: Likewise.
18453         * gthr-mipssde.h: Likewise.
18454         * gthr-nks.h: Likewise.
18455         * gthr-posix95.h: Likewise.
18456         * gthr-posix.h: Likewise.
18457         * gthr-rtems.h: Likewise.
18458         * gthr-single.h: Likewise.
18459         * gthr-solaris.h: Likewise.
18460         * gthr-tpf.h: Likewise.
18461         * gthr-vxworks.h: Likewise.
18462         * gthr-win32.h: Likewise.
18463
18464 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18465
18466         PR target/39196
18467         * config/i386/i386.md: Restrict the new peephole2 to move
18468         between MMX/SSE registers.
18469
18470 2009-02-15  Richard Guenther  <rguenther@suse.de>
18471
18472         Revert
18473         2009-02-13  Richard Guenther  <rguenther@suse.de>
18474
18475         * configure.ac: Enable LFS.
18476         * configure: Re-generate.
18477         * config.in: Likewise.
18478
18479 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18480
18481         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
18482         spu_srqwbyte, spu_srqwbytebc): Define.
18483         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
18484         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
18485         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
18486         "shrqby_<mode>"): New insn-and-split patterns.
18487         * config/spu/spu.c (expand_builtin_args): Determine and return
18488         number of operands using spu_builtin_description data.
18489         (spu_expand_builtin_1): Use it.
18490
18491 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
18492
18493         PR target/38056
18494         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
18495         TARGET_CONST_GP.
18496
18497 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18498
18499         PR target/39149
18500         * config/i386/i386.c (override_options): Correct warning
18501         messages for -malign-loops, -malign-jumps and -malign-functions.
18502
18503 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18504
18505         PR target/39152
18506         * config/i386/i386.md: Restrict the new peephole2 to move
18507         between the general purpose registers.
18508
18509 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18510
18511         PR target/39162
18512         * config/i386/i386.c (type_natural_mode): Add a new argument.
18513         Return the original mode and warn ABI change if vector size is 32byte.
18514         (function_arg_advance): Updated.
18515         (function_arg): Likewise.
18516         (ix86_function_value): Likewise.
18517         (ix86_return_in_memory): Likewise.
18518         (ix86_sol10_return_in_memory): Likewise.
18519         (ix86_gimplify_va_arg): Likewise.
18520         (function_arg_32): Don't warn ABX ABI change here.
18521         (function_arg_64): Likewise.
18522
18523 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18524
18525         * loop-iv.c (implies_p): In the final case, test that operands 0
18526         of the two comparisons match.
18527
18528         * config/bfin/bfin.c (find_prev_insn_start): New function.
18529         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
18530         (find_next_insn_start): Move.
18531
18532 2009-02-13  Richard Guenther  <rguenther@suse.de>
18533
18534         * configure.ac: Enable LFS.
18535         * configure: Re-generate.
18536         * config.in: Likewise.
18537
18538 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
18539
18540         PR c/35444
18541         * c-parser.c (c_parser_parms_list_declarator): Discard pending
18542         sizes on syntax error after some arguments have been parsed.
18543
18544 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18545
18546         * doc/invoke.texi (-fira): Remove.
18547
18548 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18549
18550         * caller-save.c: Replace regclass.c with reginfo.c in comments.
18551         * recog.c: Likewise.
18552         * rtl.h: Likewise.
18553
18554 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
18555
18556         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
18557         (umul_ppmm): Likewise.
18558         (count_leading_zeros): Likewise.
18559         (count_trailing_zeros): Likewise.
18560         (UMUL_TIME): Likewise.
18561
18562 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18563
18564         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
18565         soft-fp/t-softfp to tmake_file.
18566
18567         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
18568         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
18569         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
18570         IA64_BUILTIN_INFQ]: New.
18571         (ia64_init_builtins): Initialize __builtin_infq,
18572         __builtin_fabsq and __builtin_copysignq if not HPUX.
18573         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
18574         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
18575
18576         * config/ia64/lib1funcs.asm (__divtf3): Define only if
18577         SHARED is defined.
18578         (__fixtfti): Likewise.
18579         (__fixunstfti): Likewise.
18580         (__floattitf): Likewise.
18581
18582         * config/ia64/libgcc-glibc.ver: New.
18583         * config/ia64/t-fprules-softfp: Likewise.
18584         * config/ia64/sfp-machine.h: Likewise.
18585
18586         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
18587         (LIBGCC2_TF_CEXT): Likewise.
18588         (TF_SIZE): Likewise.
18589         (TARGET_INIT_LIBFUNCS): Likewise.
18590
18591         * config/ia64/t-glibc (SHLINB_MAPFILES):
18592         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
18593
18594 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18595
18596         * config/i386/i386.c (construct_container): Rewrite processing
18597         BLKmode with X86_64_SSE_CLASS.
18598
18599 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
18600
18601         PR target/39152
18602         * config/i386/i386.md: Replace simplify_replace_rtx with
18603         replace_rtx in the new peephole2.
18604
18605 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
18606
18607         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
18608         loop unrolling do not happen at -O2.
18609
18610 2009-02-12  Michael Matz  <matz@suse.de>
18611
18612         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
18613
18614 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18615
18616         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
18617         for -g3.
18618
18619 2009-02-12  Ben Elliston  <bje@au.ibm.com>
18620
18621         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
18622         patterns when updating the back chain.  Missed in the 2009-02-10
18623         change.
18624
18625 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
18626
18627         * doc/extend.texi (Decimal Floating Types): Update identifier of
18628         draft TR and list of missing support.
18629
18630 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18631
18632         PR middle-end/39154
18633         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
18634         bit to variable length decl's flags, add it also to its
18635         pointer replacement variable.
18636
18637 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
18638             Jakub Jelinek  <jakub@redhat.com>
18639
18640         PR target/39118
18641         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
18642         (memory_blockage): New expander.
18643         (*memory_blockage): New insn pattern.
18644         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
18645         instead of general blockage at the end of function prologue when
18646         frame pointer is used to access red zone area.  Do not emit blockage
18647         when profiling, it is emitted in generic code.
18648         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
18649         function epilogue when frame pointer is used to access red zone area.
18650
18651 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
18652
18653         PR target/38824
18654         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
18655         by arithmetic with memory operands.
18656         * config/i386/predicates.md (commutative_operator): New.
18657
18658 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
18659
18660         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
18661         bulleted lists.
18662
18663 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18664
18665         * alias.h (record_alias_subset): Declare.
18666         * alias.c (record_alias_subset): Make global.
18667
18668 2009-02-10  Nick Clifton  <nickc@redhat.com>
18669
18670         * tree-parloops.c: Change license to GPLv3.
18671         * ipa-struct-reorg.c: Change license to GPLv3.
18672         * ipa-struct-reorg.h: Change license to GPLv3.
18673
18674 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
18675
18676         PR c/39084
18677         * c-decl.c (start_struct): Return NULL on error.
18678
18679 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
18680
18681         PR middle-end/39124
18682         * cfgloopmanip.c (remove_path): Call remove_bbs after
18683         cancel_loop_tree, not before it.
18684
18685         PR target/39139
18686         * function.h (struct function): Add has_local_explicit_reg_vars bit.
18687         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
18688         VAR_DECLs were seen.
18689         * tree-ssa-live.c (remove_unused_locals): Recompute
18690         cfun->has_local_explicit_reg_vars.
18691         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
18692         copies or clearings if cfun->has_local_explicit_reg_vars.
18693
18694 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
18695
18696         PR target/39118
18697         * config/i386/i386.c (expand_prologue): Emit blockage at the end
18698         of function prologue when frame pointer is used to access
18699         red zone area.
18700
18701 2009-02-10  Richard Guenther  <rguenther@suse.de>
18702
18703         PR middle-end/39127
18704         * gimplify.c (gimple_regimplify_operands): Always look if
18705         we need to create a temporary.
18706
18707 2009-02-10  Richard Guenther  <rguenther@suse.de>
18708
18709         PR tree-optimization/39132
18710         * tree-loop-distribution.c (todo): New global var.
18711         (generate_memset_zero): Trigger TODO_rebuild_alias.
18712         (tree_loop_distribution): Return todo.
18713
18714 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
18715
18716         PR target/39119
18717         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
18718         (x86_64_reg_class_name): Removed.
18719         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
18720         first one isn't X86_64_SSE_CLASS or any other ones aren't
18721         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
18722         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
18723         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
18724         and 3 X86_64_SSEUP_CLASS.
18725         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
18726         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
18727
18728 2009-02-10  Ben Elliston  <bje@au.ibm.com>
18729
18730         * config/rs6000/rs6000.md (allocate_stack): Always use an update
18731         form instruction to update the stack back chain word, even if the
18732         user has disabled the generation of update instructions.
18733         (movdi_<mode>_update_stack): New.
18734         (movsi_update_stack): Likewise.
18735         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
18736         always use an update form instruction to update the stack back
18737         chain word.
18738
18739 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
18740
18741         PR middle-end/38953
18742         * graphite.c (if_region_set_false_region): After moving a region in
18743         the false branch of a condition, remove the empty dummy basic block.
18744         (gloog): Remove wrong fix for PR38953.
18745
18746 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18747
18748         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
18749         generation due to implicit sign extension.
18750
18751 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18752
18753         PR middle-end/38981
18754         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
18755         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
18756
18757 2009-02-09  Richard Guenther  <rguenther@suse.de>
18758
18759         PR middle-end/35202
18760         * convert.c (convert_to_real): Disable (float)fn((double)x)
18761         to fnf(x) conversion if errno differences may occur and
18762         -fmath-errno is set.
18763
18764 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
18765
18766         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
18767         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18768         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18769
18770 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18771
18772         PR c/35434
18773         * c-common.c (handle_alias_attribute): Disallow attribute for
18774         anything not a FUNCTION_DECL or VAR_DECL.
18775
18776 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
18777
18778         PR c/39035
18779         * real.c (do_compare): Special-case compare of zero against
18780         decimal float value.
18781
18782 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18783
18784         PR c/36432
18785         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
18786         as indicating flexible array members unless the field itself is
18787         being declarared as the incomplete array.
18788
18789 2009-02-06  Jan Hubicka  <jh@suse.cz>
18790
18791         PR tree-optimization/38844
18792         * ipa-inline.c (try_inline): Stop inlining recursion when edge
18793         is already inlined.
18794
18795 2009-02-06  Richard Guenther  <rguenther@suse.de>
18796
18797         PR middle-end/38977
18798         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
18799         fork because we may expand it as __gcov_fork.
18800
18801 2009-02-06  Nick Clifton  <nickc@redhat.com>
18802
18803         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
18804
18805 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
18806
18807         PR tree-optimization/35659
18808         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
18809         vn_phi_eq): Shortcut if hashcode does not match.
18810         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
18811         NULL operands.
18812         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
18813         and avoid iterative_hash_expr.
18814         (FOR_EACH_VALUE_ID_IN_SET): New.
18815         (value_id_compare): Remove.
18816         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
18817         sort expressions by value id.
18818
18819 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18820
18821         PR target/38991
18822         * config/sh/predicates.md (general_movsrc_operand): Don't check
18823         the subreg of system registers here.
18824
18825 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
18826
18827         PR c++/39106
18828         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
18829         on the copied decl.
18830
18831 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
18832
18833         PR rtl-optimization/39110
18834         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
18835         addresses, not aligned ones.
18836
18837 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
18838             Richard Guenther  <rguenther@suse.de>
18839
18840         PR tree-optimization/39100
18841         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
18842         comment says and add edges.
18843
18844 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
18845
18846         PR c/35435
18847         * c-common.c (handle_tls_model_attribute): Ignore attribute for
18848         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
18849
18850 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
18851
18852         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
18853         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
18854         register_bb_in_sese, new_sese, free_sese): Moved.
18855         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
18856         outermost_loop_in_scop, build_scop_iteration_domain,
18857         expand_scalar_variables_ssa_name, get_vdef_before_scop,
18858         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
18859         Use loop_in_sese_p instead of loop_in_scop_p.
18860         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
18861         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
18862         (scopdet_basic_block_info): Fix bug in scop detection.
18863         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
18864         eq_loop_to_cloog_loop): Remove.
18865         (nb_loops_around_loop_in_scop, nb_loop
18866         ref_nb_loops): Moved here...
18867         * graphite.h (ref_nb_loops): ... from here.
18868         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
18869         (loop_domain_dim, loop_iteration_vector_dim): Remove.
18870         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
18871         * testsuite/gcc.dg/graphite/scop-19.c: New
18872
18873 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
18874             Hans-Peter Nilsson  <hp@axis.com>
18875
18876         PR rtl-optimization/37889
18877         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
18878         Move offset handling from PLUS to before the switch.  Use new
18879         arguments when considering SYMBOL_REFs too.
18880         (rtx_addr_can_trap_p): Pass dummy offset and size.
18881         (enum may_trap_p_flags): Remove.
18882         (may_trap_p_1): Pass size from MEM_SIZE.
18883
18884         PR rtl-optimization/38921
18885         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
18886         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
18887         * rtlanal.c (may_trap_after_code_motion_p): Delete.
18888         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
18889
18890 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18891
18892         AVX Programming Reference (January, 2009)
18893         * config/i386/sse.md (*vpclmulqdq): New.
18894
18895 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
18896
18897         PR tree-optimization/38977
18898         PR gcov-profile/38292
18899         * calls.c (special_function_p): Disregard __builtin_ prefix.
18900
18901 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
18902
18903         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
18904         non-indexable addresses even before reload.
18905
18906 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18907
18908         PR c/29129
18909         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
18910         as having variable size.  Do not give an error for unnamed
18911         parameters with [*] declarators.  Give a warning for type names
18912         with [*] declarators and mark them as variable size.
18913         * c-parser.c (c_parser_sizeof_expression): Do not give an error
18914         for sizeof applied to [*] type names.
18915
18916 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18917
18918         PR C++/36607
18919         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
18920
18921 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18922
18923         * gcc.c (process_command): Update copyright notice dates.
18924         * gcov.c (print_version): Likewise.
18925         * gcov-dump.c (print_version): Likewise.
18926         * mips-tfile.c (main): Likewise.
18927         * mips-tdump.c (main): Likewise.
18928
18929 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18930
18931         PR c/35433
18932         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
18933         for composite type involving a zero-length array type.
18934
18935 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18936
18937         PR target/35318
18938         * function.c (match_asm_constraints_1): Skip over
18939         initial optional % in the constraint.
18940
18941         PR inline-asm/39059
18942         * c-parser.c (c_parser_postfix_expression): If fixed point is not
18943         supported, don't accept FIXED_CSTs.
18944         * c-decl.c (finish_declspecs): Error if fixed point is not supported
18945         and _Sat is used without _Fract/_Accum.  Set specs->type to
18946         integer_type_node for cts_fract/cts_accum if fixed point is not
18947         supported.
18948
18949 2009-02-02  Catherine Moore  <clm@codesourcery.com>
18950
18951         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
18952
18953 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
18954
18955         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
18956         (ABI_HAS_64BIT_SYMBOLS): Use it.
18957         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
18958
18959 2009-02-02  Paul Brook  <paul@codesourcery.com>
18960
18961         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
18962
18963 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
18964
18965         PR inline-asm/39058
18966         * recog.h (asm_operand_ok): Add constraints argument.
18967         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
18968         recurse on matching constraint.
18969         (check_asm_operands): Pass constraints as 3rd argument to
18970         asm_operand_ok.  Don't look up matching constraint here.
18971         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
18972         to asm_operand_ok.
18973
18974 2009-02-02  Ben Elliston  <bje@au.ibm.com>
18975
18976         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
18977         TARGET_NARROW_VOLATILE_BITFIELD macro names.
18978
18979 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18980
18981         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
18982         information.  Remove some obsolete information.  Reorganize.
18983
18984         * config/pa/fptr.c: Revert license to GPL 2.
18985         * config/pa/milli64.S: Likewise.
18986
18987 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18988
18989         PR target/38904
18990         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
18991         LIBRARY name in, instead of hard-coding it.
18992         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
18993         extra target make frag to tmake_files according to EH model.
18994         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
18995         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
18996         frags that define makefile variable EH_MODEL appropriately.
18997         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
18998         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
18999         to "-sjlj" according to type of EH configured.
19000         (LIBGCC_SONAME):  Concatenate it to shared library base name.
19001         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
19002         to "_sjlj" according to type of EH configured.
19003         (LIBGCC_SONAME):  Concatenate it to shared library base name.
19004         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
19005         (SHLIB_LINK):  Add missing semicolon to if-else construct.
19006         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
19007         string value of "pe_dll" command-line option.
19008         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
19009         (SHLIB_SONAME):  Use it when overriding t-cygming default.
19010         (SHLIB_IMPLIB):  Override t-cygming default.
19011         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
19012         string value of "pe_dll" command-line option.
19013
19014 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
19015
19016         PR target/38952
19017         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
19018         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
19019
19020 2009-01-31  Richard Guenther  <rguenther@suse.de>
19021
19022         PR tree-optimization/38937
19023         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
19024         computing the transitive closure.
19025
19026 2009-01-30  Richard Guenther  <rguenther@suse.de>
19027
19028         PR tree-optimization/39041
19029         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
19030         Propagate variable indices only if the types match for this stmt.
19031
19032 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
19033
19034         PR target/39013
19035         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
19036         inline but never defined.
19037
19038 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
19039
19040         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
19041         (*insv_h_di_reg_extimm): New insn.
19042         (*insv_l<mode>_reg_extimm): New insn.
19043
19044 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19045
19046         * config/picochip/picochip.c (flag_conserve_stack): set
19047         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
19048         fconserve-stack. Reduce call-overhead used by inliner.
19049
19050 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
19051
19052         PR/38157
19053         * common.opt (flag_conserve_stack): Initialised to zero.
19054
19055 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
19056
19057         PR/39002
19058         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
19059         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
19060         method.
19061
19062 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
19063
19064         * ira-color.c (allocno_reload_assign): Update comments.
19065         * regmove.c (regmove_optimize): Likewise.
19066
19067         * ra.h: Removed.
19068
19069 2009-01-29  Robert Millan  <rmh@aybabtu.com>
19070
19071         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
19072         * config/i386/kopensolaris-gnu.h: New file.  Undefine
19073         `MD_UNWIND_SUPPORT'.
19074         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
19075
19076 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
19077
19078         PR tree-optimization/39007
19079         * tree-loop-distribution.c (generate_builtin): Use
19080         recompute_dominator to compute the immediate dominator of the
19081         basic block just after the loop.
19082
19083 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19084
19085         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
19086         (ASM_OUTPUT_DWARF_PCREL): Define.
19087
19088 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
19089
19090         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
19091         * doc/passes.texi: Remove entries about regclass, local-alloc, and
19092         global.  Modify entries about regmove and IRA.
19093
19094         * ra-conflict.c: Remove the file.
19095
19096         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
19097
19098         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
19099         (pass_regclass_init): Rename to pass_reginfo_init.
19100
19101         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
19102
19103         * toplev.h (flag_ira): Remove.
19104
19105         * caller-save.c (setup_save_areas): Remove flag_ira.
19106
19107         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
19108
19109         * global.c: Remove the file.
19110
19111         * opts.c (decode_options): Remove flag_ira.
19112
19113         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
19114
19115         * regmove.c: Modify file description.
19116         (find_use_as_address, try_auto_increment): Define them only if
19117         AUTO_INC_DEC is defined.
19118         (replacement_quality, replace_in_call_usage, fixup_match_1,
19119         stable_and_no_regs_but_for_p): Remove.
19120         (reg_set_in_bb): Make it static.
19121         (regmove_optimize): Remove flag_ira and code which worked for
19122         !flag_ira.
19123
19124         * local-alloc.c: Remove the file.
19125
19126         * common.opt (fira): Remove.
19127
19128         * ira.c: Include except.h.
19129         (eliminable_regset): Move from global.c.
19130         (mark_elimination): Ditto.  Remove flag_ira.
19131         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
19132         equiv_mem_modified, validate_equiv_mem_from_store,
19133         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
19134         contains_replace_regs, memref_referenced_p, memref_used_between_p,
19135         no_equiv, recorded_label_ref): Move from local-alloc.c.
19136         (update_equiv_regs): Ditto.  Make it static.
19137         (print_insn_chain, print_insn_chains): Move it from global.c.
19138         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
19139         (build_insn_chain): Ditto.  Make it static.
19140         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
19141         Rename to init_live_subregs.
19142         (gate_ira): Remove flag_ira.
19143
19144         * regclass.c: Rename reginfo.c.  Change file description.
19145         (FORBIDDEN_INC_DEC_CLASSES): Remove.
19146         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
19147         (init_reg_sets_1): Remove code for evaluation of
19148         reg_class_superclasses and losing_caller_save_reg_set.
19149         (init_regs): Remove init_reg_autoinc.
19150         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
19151         ok_for_base_p_nonstrict): Remove.
19152         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
19153         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
19154         corresponding entries.
19155         (dump_regclass, record_operand_costs, scan_one_insn,
19156         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
19157         record_address_regs, auto_inc_dec_reg_p): Remove.
19158         (gt-regclass.h): Rename to gt-reginfo.h.
19159
19160         * rtl.h (dump_global_regs, retry_global_alloc,
19161         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
19162
19163         * Makefile.in (RA_H): Remove.
19164         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
19165         Rename regclass.o to reginfo.o.
19166         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
19167         gt-reginfo.h.
19168         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
19169         (GTFILES): Rename regclass.c to reginfo.c.
19170
19171         * passes.c (init_optimization_passes): Remove pass_local_alloc and
19172         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
19173
19174         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
19175         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
19176         Remove flag_ira.
19177         (finish_spills): Ditto.  Remove code for !flag_ira.
19178
19179 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
19180
19181         PR middle-end/35854
19182         * doc/invoke.texi (rtl debug options): Complete rewrite.
19183         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
19184         to auto_inc_dec".
19185         * mode-switching.c (pass_mode_switching): Rename pass from
19186         "mode-sw" to "mode_sw".
19187         * except.c (pass_convert_to_eh_ranges): Rename pass from
19188         "eh-ranges" to "eh_ranges".
19189         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
19190         to "subreg1".
19191
19192
19193 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
19194             Alexander Monakov  <amonakov@ispras.ru>
19195
19196         PR middle-end/38857
19197         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
19198         register.
19199         (move_exprs_to_boundary): Change return type and pass through
19200         should_move from move_op.  Relax assert.  Update usage ...
19201         (schedule_expr_on_boundary): ... here.  Use should_move instead of
19202         cant_move.
19203         (move_op_orig_expr_found): Indicate that insn was disconnected from
19204         stream.
19205         (code_motion_process_successors): Do not call after_merge_succs
19206         callback if original expression was not found when traversing any of
19207         the branches.
19208         (code_motion_path_driver): Change return type.  Update prototype.
19209         (move_op): Update comment.  Add a new parameter (should_move).  Update
19210         prototype.  Set *should_move based on indication provided by
19211         move_op_orig_expr_found.
19212
19213 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
19214
19215         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
19216         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
19217         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
19218         * config/rs6000/rs6000.c (rs6000_override_options): Default
19219         avoid-indexed-addresses on for Power6, off for everything else.
19220         (avoiding_indexed_address_p): New function.
19221         (rs6000_legitimize_address): Use it.
19222         (rs6000_legitimate_address): Likewise.
19223         * config/rs6000/rs6000.md (movXX_updateX): Likewise
19224
19225 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
19226
19227         PR tree-optimization/38997
19228         * tree-loop-distribution.c (generate_memset_zero): Use
19229         POINTER_PLUS_EXPR for a pointer addition.
19230
19231 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
19232
19233         * config/s390/s390.md (bswap<mode>2): New pattern added.
19234
19235 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19236
19237         * config/s390/s390.md (*tls_load_31): Added type attribute.
19238
19239 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19240
19241         * config/s390/s390.md: Fix a few comments.
19242
19243 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
19244
19245         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
19246         (*tm<mode>_full): Fixed z10prop attribute.
19247         (*tst<mode>_extimm): Fixed z10prop attribute.
19248         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
19249         (*tstqiCCT_cconly): Fixed z10prop attribute.
19250         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
19251         (*movsi_larl): Fixed z10prop attribute.
19252         (*movsi_zarch): Fixed z10prop attribute.
19253         (*movsi_eas): Fixed z10prop attribute.
19254         (*movhi): Fixed z10prop attribute.
19255         (*movqi): Fixed z10prop attribute.
19256         (*movstrictqi): Fixed z10prop attribute.
19257         (*mov<mode>): Fixed z10prop attribute.
19258         (*movcc): Fixed z10prop attribute.
19259         (*sethighpartdi_64): Fixed z10prop attribute.
19260         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
19261         (*negdi2_sign_cc): Fixed z10prop attribute.
19262         (*negdi2_sign): Fixed z10prop attribute.
19263         (*absdi2_sign_cc): Fixed z10prop attribute.
19264         (*absdi2_sign): Fixed z10prop attribute.
19265         (*negabsdi2_sign_cc): Fixed z10prop attribute.
19266         (*negabsdi2_sign): Fixed z10prop attribute.
19267         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
19268         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
19269         (doloop_si64): Fixed z10prop attribute.
19270         (doloop_si31): Fixed z10prop attribute.
19271         (doloop_long): Fixed z10prop attribute.
19272         (indirect_jump): Fixed z10prop attribute.
19273         (nop): Fixed z10prop attribute.
19274         (main_base_64): Fixed z10prop attribute.
19275         (reload_base_64): Fixed z10prop attribute.
19276
19277 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19278
19279         PR rtl-optimization/38740
19280         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
19281         if !optimize.
19282         * config/mips/mips.c (mips_reorg): Likewise.
19283
19284 2009-01-28  Richard Guenther  <rguenther@suse.de>
19285
19286         PR tree-optimization/38926
19287         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
19288         with the correct value id to a value.
19289         (do_regular_insertion): Use the value number of edoubleprime
19290         for the value number of the expr.
19291
19292         Revert
19293         2008-08-21  Richard Guenther  <rguenther@suse.de>
19294
19295         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
19296         a PHI ask VN if it is already available.
19297         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
19298         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
19299
19300 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19301
19302         PR middle-end/38934
19303         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
19304         set to varying whenever max has TREE_OVERFLOW set, similarly
19305         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
19306
19307 2009-01-28  Richard Guenther  <rguenther@suse.de>
19308
19309         PR middle-end/38908
19310         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
19311         uninitialized aggregate uses in call arguments.
19312
19313 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
19314
19315         PR tree-optimization/38984
19316         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
19317         the nothing_id variable if -fno-delete-null-pointer-checks.
19318
19319 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
19320
19321         PR target/38988
19322         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
19323         (set_got_offset_rex64): Ditto.
19324
19325 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19326
19327         PR target/38941
19328         * doc/extend.texi: Improve local variable with asm reg.
19329
19330 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
19331
19332         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
19333         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
19334         was not supplied then set warn_packed_bitfield_compat to the
19335         default value of 1.
19336         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
19337         against 1.
19338
19339 2009-01-27  Richard Guenther  <rguenther@suse.de>
19340
19341         PR tree-optimization/38503
19342         * cfgexpand.c (expand_gimple_basic_block): Ignore
19343         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
19344         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
19345         variables that cannot have TBAA applied.
19346         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
19347         statements.
19348
19349 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
19350
19351         PR middle-end/38969
19352         * calls.c (initialize_argument_information): Do not wrap complex
19353         arguments in SAVE_EXPR.
19354
19355 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
19356
19357         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
19358         (INSTALL_LIBGCC): Revert typo commit.
19359
19360 2009-01-26  Richard Guenther  <rguenther@suse.de>
19361
19362         PR tree-optimization/38745
19363         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
19364         from special handling.
19365
19366 2009-01-26  Richard Guenther  <rguenther@suse.de>
19367
19368         PR tree-optimization/38745
19369         * tree-ssa.c (execute_update_addresses_taken): Do not include
19370         variables that cannot possibly be a register in not_reg_needs.
19371         Do not clear TREE_ADDRESSABLE on vars that may not become
19372         registers.
19373         * tree-ssa.c (update_alias_info_1): Include those in the set
19374         of addressable vars.
19375
19376 2009-01-26  Richard Guenther  <rguenther@suse.de>
19377
19378         PR middle-end/38851
19379         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
19380         * tree-ssa-dse.c: Include langhooks.h
19381         (execute_simple_dse): Remove stores with zero size.
19382
19383 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
19384
19385         PR c/38957
19386         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
19387         as PLUS_EXPR.
19388
19389 2009-01-24  Julian Brown  <julian@codesourcery.com>
19390
19391         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
19392         config/arm/linux-atomic.c.
19393         * config/arm/linux-atomic.c: New.
19394
19395 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
19396
19397         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
19398         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
19399         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
19400
19401 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19402
19403         PR c/38938
19404         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
19405         properly.
19406
19407 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
19408
19409         PR tree-optimization/38953
19410         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
19411         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
19412         (gloog): Split the exit of the scop when the scop exit is a loop exit.
19413         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
19414         changed the CFG.
19415
19416 2009-01-24  Paul Brook  <paul@codesourcery.com>
19417
19418         * config/arm/neon.md (neon_type): Move to arm.md.
19419         (neon_mov<VSTRUCT>): Add neon_type attribute.
19420         * config/arm/arm.md (neon_type): Move to here.
19421         (conds): Add "unconditioal" and use as default for NEON insns.
19422
19423 2009-01-24  Ben Elliston  <bje@au.ibm.com>
19424
19425         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
19426         void *' warning from -Wc++-compat.
19427         * Makefile.in (dominance.o-warn): Remove.
19428
19429 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
19430
19431         PR tree-optimization/38932
19432         * fold-const.c (fold_unary_ignore_overflow): New.
19433         * tree.h (fold_unary_ignore_overflow): Declare.
19434         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
19435         * tree-ssa-sccvn.c (visit_reference_op_load,
19436         simplify_unary_expression): Likewise.
19437
19438 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
19439
19440         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
19441         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
19442         regardless of their type.
19443         * c-common.c (handle_packed_attribute): Don't ignore packed on
19444         bitfields.
19445         * c.opt (Wpacked-bitfield-compat): New warning option.
19446         * stor-layout.c (place_field): Warn if offset of a field changed.
19447         * doc/extend.texi (packed): Mention the ABI change.
19448         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
19449         (Warning Options): Add it to the list.
19450
19451 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
19452
19453         * c-opts.c (c_common_post_options): Fix a typo in comments.
19454
19455 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
19456
19457         PR middle-end/38615
19458         * gimplify.c (gimplify_init_constructor): Fix promotion of const
19459         variables to static.
19460         * doc/invoke.texi (-fmerge-all-constants): Update description.
19461
19462 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
19463
19464         PR target/38931
19465         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
19466         (*movdi_1_rex64): Use type "mmx" for alternative 5.
19467
19468 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
19469
19470         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
19471         a word boundary.
19472         (LOCAL_ALIGNMENT): Similarly.
19473
19474 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19475             Joseph Myers  <joseph@codesourcery.com>
19476
19477         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
19478         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
19479         * config/arm/arm-tune.md: Regenerate.
19480         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
19481         -march=iwmmxt2.
19482
19483 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19484
19485         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
19486         version number to five.
19487
19488 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
19489
19490         PR c++/38930
19491         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
19492         * c-common.c (set_underlying_type): Likewise.
19493         (is_typedef_decl ): Likewise
19494         * tree.h: Likewise
19495         (set_underlying_type): Likewise.
19496         (is_typedef_type): Likewise.
19497
19498 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19499
19500         PR middle-end/38587
19501         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
19502         crossing setjmps.
19503
19504 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
19505
19506         PR bootstrap/37660
19507         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
19508         (LIBGCC_SPEC):  Don't define.
19509         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
19510
19511 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
19512
19513         PR rtl-optimization/38879
19514         * alias.c (base_alias_check): Unaligned access via AND address can
19515         alias all surrounding object types except those with sizes equal
19516         or wider than the size of unaligned access.
19517
19518 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
19519
19520         PR c++/26693
19521         * c-decl.c (clone_underlying_type): Move this ...
19522         * c-common.c (set_underlying_type): ... here.
19523         Also, make sure the function properly sets TYPE_STUB_DECL() on
19524         the newly created typedef variant type.
19525         (is_typedef_decl ): New entry point.
19526         * tree.h: Added a new member member_types_needing_access_check to
19527         struct tree_decl_non_common.
19528         (set_underlying_type): New entry point.
19529         (is_typedef_type): Likewise.
19530
19531 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
19532
19533         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
19534         Check whether two instructions have memory references that
19535         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
19536         are helper functions for traversing.
19537         * alias.h (insn_alias_sets_confilict_p): New prototypes.
19538         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
19539         not to draw dependency edge for instructions with non-conflicting
19540         alias sets.
19541
19542 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
19543
19544         PR other/38758
19545         * longlong.h: Update copyright years.  Use soft-fp license notice.
19546         Sync __clz_tab declaration with glibc.
19547
19548 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
19549
19550         PR target/30687
19551         * doc/extend.texi (syscall_linkage): New.
19552         (version_id): Modify.
19553
19554 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19555             Richard Guenther  <rguenther@suse.de>
19556
19557         PR tree-optimization/38747
19558         PR tree-optimization/38748
19559         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
19560         conversion if the base address is an indirect reference and the
19561         aliasing sets could cause issues.
19562
19563 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19564
19565         * common.opt (fgraphite, fgraphite-identity): Add comment for
19566         explaining why these options are not documented.
19567
19568 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19569
19570         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
19571         gimple_call_lhs is NULL.
19572
19573 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19574
19575         PR target/38868
19576         * emit-rtl.c (adjust_address_1): Make sure memref is never
19577         overwritten.
19578
19579 2009-01-20  Ben Elliston  <bje@au.ibm.com>
19580
19581         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19582         const qualifier from arg parameter. Remove unnecessary cast to char *.
19583         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19584         const qualifier from arg 2.
19585
19586 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19587
19588         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
19589
19590 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19591
19592         PR c/38869
19593         * rtl.h (reinit_regs): New prototype.
19594         * regclass.c: Include ira.h.
19595         (reinit_regs): New.
19596         * Makefile.in (regclass.o): Add ira.h.
19597         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
19598
19599 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
19600
19601         PR target/38736
19602         * c-common.c (handle_aligned_attribute): Use
19603         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
19604         default alignment value.
19605
19606         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
19607
19608         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
19609         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
19610
19611         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
19612         __BIGGEST_ALIGNMENT__.
19613
19614         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
19615
19616 2009-01-18  Richard Guenther  <rguenther@suse.de>
19617
19618         PR tree-optimization/38819
19619         * tree-flow.h (operation_could_trap_helper_p): Declare.
19620         * tree-eh.c (operation_could_trap_helper_p): Export.
19621         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
19622         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
19623         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
19624         are about to insert a possibly trapping instruction and fail
19625         in this case.
19626
19627 2009-01-18  Andreas Schwab  <schwab@suse.de>
19628
19629         * doc/install.texi (Configuration): Remove obsolete paragraph
19630         about use of --with-gnu-ld with --with-gnu-as.
19631
19632 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
19633
19634         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
19635         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
19636         Follow spelling conventions.
19637
19638 2009-01-18  Ben Elliston  <bje@au.ibm.com>
19639
19640         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
19641         C++ warning about implicit conversion from void * to struct
19642         bitmap_head_def *.
19643         (bitmap_obstack_free): Likewise for bitmap_element *.
19644         * Makefile.in (bitmap.o-warn): Remove.
19645
19646 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19647
19648         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
19649
19650 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
19651             Tobias Grosser  <tobi.grosser@amd.com>
19652
19653         * graphite.c (graphite_trans_scop_block): Do not block single
19654         nested loops.
19655
19656 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
19657
19658         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
19659         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
19660         test with assertion.
19661
19662 2009-01-16  Richard Guenther  <rguenther@suse.de>
19663
19664         PR tree-optimization/38835
19665         PR middle-end/36227
19666         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
19667         and INT + PTR -> (INT)(PTR p+ INT) folding.
19668         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
19669
19670 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
19671
19672         PR target/38554
19673         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
19674         the subreg from a lowpart subreg if it is also casting the value.
19675
19676 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19677             Tobias Grosser  <tobi.grosser@amd.com>
19678
19679         * graphite.c (compare_prefix_loops): New.
19680         (build_scop_canonical_schedules): Rewritten.
19681         (graphite_transform_loops): Move build_scop_canonical_schedules
19682         after build_scop_iteration_domain.
19683
19684 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19685             Tobias Grosser  <tobi.grosser@amd.com>
19686
19687         * graphite.c (add_conditions_to_domain): Add the loops to
19688         the dimension of the iteration domain.  Do copy the domain
19689         only when it exists.
19690         (build_scop_conditions_1): Do not call add_conditions_to_domain.
19691         (add_conditions_to_constraints): New.
19692         (can_generate_code_stmt, can_generate_code): Removed.
19693         (gloog): Do not call can_generate_code.
19694         (graphite_transform_loops): Call add_conditions_to_constraints
19695         after building the iteration domain.
19696
19697 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
19698
19699         PR tree-optimization/38789
19700         * tree-ssa-threadedge.c
19701         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19702         __builtin_constant_p.
19703
19704 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
19705
19706         * dce.c (delete_unmarked_insns): Reversed the order that insns are
19707         examined before deleting them.
19708
19709 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
19710
19711         * function.c (aggregate_value_p): Correctly extract the function
19712         type from CALL_EXPR_FN lookup.
19713
19714 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
19715
19716         * config/picochip/picochip.c (picochip_override_options): Revert
19717         CFI asm flag disable commited previously.
19718
19719 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
19720             Tobias Grosser  <tobi.grosser@amd.com>
19721             Jan Sjodin  <jan.sjodin@amd.com>
19722
19723         * graphite.c (scan_tree_for_params): On substractions negate
19724         all the coefficients of the term.
19725         (clast_to_gcc_expression_red): New.  Handle reduction expressions
19726         of more than two operands.
19727         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
19728         (get_vdef_before_scop): Handle also the case of default definitions.
19729
19730 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
19731
19732         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
19733         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
19734         Also use them when walking CALL_INSN_FUNCTION_USAGE.
19735
19736 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19737             Joey Ye  <joey.ye@intel.com>
19738
19739         PR middle-end/37843
19740         * cfgexpand.c (expand_stack_alignment): Don't update stack
19741         boundary nor check incoming stack boundary here.
19742         (gimple_expand_cfg): Update stack boundary and check incoming
19743         stack boundary here.
19744
19745 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
19746
19747         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
19748
19749 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
19750
19751         PR rtl-optimization/38245
19752         * calls.c (expand_call): Add stack arguments to
19753         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19754         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
19755         in regs and partially in memory or BLKmode arguments.
19756         (emit_library_call_value_1): Add stack arguments to
19757         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19758         ACCUMULATE_OUTGOING_ARGS).
19759         * dce.c: Include tm_p.h.
19760         (find_call_stack_args): New function.
19761         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
19762         argument.
19763         (mark_insn): Call find_call_stack_args for CALL_Ps.
19764         (prescan_insns_for_dce): Walk insns backwards in bb rather than
19765         forwards.  Allocate and free arg_stores bitmap if needed, pass it
19766         down to deletable_insn_p, don't mark stores set in arg_stores
19767         bitmap, clear the bitmap at the beginning of each bb.
19768         * Makefile.in (dce.o): Depend on $(TM_P_H).
19769
19770 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
19771
19772         PR target/22599
19773         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
19774         to make sure the insn is a conditional test (bug 22599).  Reformat a
19775         few long lines.
19776
19777 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
19778
19779         PR middle-end/38431
19780         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
19781         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
19782         (gloog): Do not call cleanup_tree_cfg.
19783         (graphite_transform_loops): Call cleanup_tree_cfg after all
19784         scops have been code generated.
19785
19786 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
19787         * doc/gty.texi (Invoking the garbage collector): Added new node
19788         and section documenting ggc_collect.
19789
19790 2009-01-14  Richard Guenther  <rguenther@suse.de>
19791
19792         PR tree-optimization/38826
19793         PR middle-end/38477
19794         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
19795         initialization notes only if we actually emitted a warning.
19796         (intra_create_variable_infos): Add constraints for a result decl
19797         that is passed by hidden reference.
19798         (build_pred_graph): Mark all related variables non-direct on
19799         address-taking.
19800
19801 2009-01-14  Nick Clifton  <nickc@redhat.com>
19802
19803         * ira-conflicts.c: Include addresses.h for the definition of
19804         base_reg_class.
19805         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
19806         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
19807
19808 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
19809
19810         PR target/38811
19811         * Makefile.in (ira-lives.o): Add except.h.
19812
19813         * ira-lives.c: Include except.h.
19814         (process_bb_node_lives): Process can_throw_internal.
19815
19816 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
19817
19818         PR rtl-optimization/38774
19819         * combine.c (simplify_set): When undoing cc_use change, don't do
19820         PUT_CODE on the newly created comparison, but instead put back the
19821         old comparison.
19822
19823 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
19824
19825         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
19826         values.  Remove duplicate arm8 entry.
19827
19828 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19829
19830         PR tree-optimization/38786
19831         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
19832         the SSA_NAME case of expand_scalar_variables_expr.
19833         Set the type of an expression to the type of its assign statement.
19834         (expand_scalar_variables_expr): Also gather the scalar computation
19835         used to index the memory access.  Do not pass loop_p.
19836         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
19837         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
19838         the gimple_stmt_iterator where it inserts new code.
19839         Do not pass loop_p.
19840         (copy_bb_and_scalar_dependences): Do not pass loop_p.
19841         (translate_clast): Update call to copy_bb_and_scalar_dependences.
19842
19843 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19844
19845         * graphite.h (debug_value): Removed.
19846         * graphite.c (debug_value): Removed.
19847
19848 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19849
19850         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
19851         ldrd/strd with two 32-bit instructions.
19852
19853 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19854
19855         * config/arm/arm.c (struct processors): Pass for speed down into
19856         cost helper functions.
19857         (const_ok_for_op): Handle COMPARE and inequality nodes.
19858         (arm_rtx_costs_1): Rewrite.
19859         (arm_size_rtx_costs): Update prototype.
19860         (arm_rtx_costs): Pass speed down to helper functions.
19861         (arm_slowmul_rtx_costs): Rework cost calculations.
19862         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
19863         (arm_9e_rtx_costs): Likewise.
19864
19865 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
19866
19867         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
19868         relocations of local symbols wider than UNITS_PER_WORD are not valid.
19869         (alpha_legitimize_address): Do not split local symbols wider than
19870         UNITS_PER_WORD into HIGH/LO_SUM parts.
19871
19872 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
19873
19874         PR bootstrap/38580
19875         * gcc.c (process_command): Replace call to execvp with calls
19876         to pex_one and exit.
19877
19878 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
19879
19880         PR target/29141
19881         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
19882         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
19883         variant for devices with 3-byte PC.
19884         (__tablejump_elpm__): New.
19885
19886 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19887
19888         PR c/32041
19889         * c-parser.c (c_parser_postfix_expression): Allow `->' in
19890         offsetof member-designator, handle it as `[0].'.
19891
19892 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19893
19894         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
19895         function when not using named sections on targets with named sections
19896         if branch distance is less than 262132.
19897
19898 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
19899
19900         * combine.c (combine_instructions):  Recompute
19901         optimize_this_for_speed_p  for each BB in the main combine loop.
19902
19903 2009-01-12  Tomas Bily  <tbily@suse.cz>
19904
19905         PR middlend/38385
19906         * tree-loop-distribution.c (prop_phis): New function.
19907         (generate_builtin): Call prop_phis.
19908         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
19909
19910 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19911
19912         PR tree-optimization/38807
19913         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
19914         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
19915
19916 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
19917
19918         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
19919         subreg of op0 to the original op0.
19920
19921 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
19922
19923         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
19924
19925 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
19926
19927         PR debug/7055
19928         * mips-tfile.c (parse_def): Fix parsing of def strings
19929         starting with digits.
19930
19931 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
19932
19933         PR target/38695
19934         * config/arm/arm.c (arm_is_long_call_p): Don't call
19935         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
19936
19937 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
19938
19939         * regrename.c (regrename_optimize): Fix dumping.
19940         (find_oldest_value_reg): Preserve REG_POINTER.
19941         (copy_hardreg_forward_1): Likewise.
19942
19943 2009-01-09  Diego Novillo  <dnovillo@google.com>
19944
19945         * gimple.h (struct gimple_statement_base) <uid>: Document
19946         the restrictions on its use.
19947         (gimple_uid): Tidy.
19948         (gimple_set_uid): Tidy.
19949
19950 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19951
19952         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
19953         zero guard even if align_bytes != 0 and count is smaller than
19954         size_needed.
19955
19956 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
19957
19958         PR rtl-optimization/38495
19959         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
19960         (add_range_and_copies_from_move_list): Print all added ranges.
19961         Add ranges to memory optimized destination.
19962
19963 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19964
19965         PR target/38686
19966         PR target/38708
19967         * config/i386/i386.c (override_options): Reject
19968         -mstringop-strategy=rep_8byte with -m32.
19969         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
19970         to 1.  Do count comparison against epilogue_size_needed at compile
19971         time even when count_exp was constant forced into register.  For
19972         size_needed don't jump to epilogue, instead just avoid aligning
19973         and invoke the body algorithm.  If need_zero_guard, add zero guard
19974         even if count is non-zero, but smaller than size_needed + number of
19975         bytes that could be stored for alignment.
19976         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
19977         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
19978         but smaller than size_needed + number of bytes that could be stored
19979         for alignment.  Compare size_needed with epilogue_size_needed instead
19980         of desired_align - align, don't adjust size_needed, pass
19981         epilogue_size_needed to the epilogue expanders.
19982
19983         PR c/35742
19984         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
19985
19986 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19987
19988         * pa.c (last_address): Change to unsigned.
19989         (update_total_code_bytes): Change argument to unsigned.  Don't
19990         check if insn addresses are set.
19991         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
19992         addresses are not set.
19993         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
19994
19995 2009-01-09  Nick Clifton  <nickc@redhat.com>
19996
19997         * config/sh/symbian.c: Replace uses of DECL_INLINE with
19998         DECL_DECLARED_INLINE_P.
19999
20000 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
20001
20002         PR middle-end/38347
20003         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
20004         GET_MODE (op0) in operand_subword_force calls.
20005
20006         PR middle-end/38771
20007         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
20008         fold_convert arg0 operands to TREE_TYPE (op0) first.
20009
20010 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
20011
20012         * params.def (ira-max-conflict-table-size): Decrease default value
20013         to 1000.
20014
20015 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
20016
20017         PR tree-optimization/37031
20018         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
20019         on parameter_set.
20020         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
20021         allocate it using gc instead of heap, use VEC_quick_push instead of
20022         VEC_safe_push.
20023         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
20024         instead of heap, use VEC_quick_push instead of VEC_safe_push.
20025         * tree-data-ref.h (struct access_matrix): Change matrix to gc
20026         allocated vector from heap allocated.
20027         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
20028         * tree-loop-linear.c (linear_transform_loops): Allocate nest
20029         vector only after perfect_loop_nest_depth call.
20030
20031 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
20032             Jan Sjodin  <jan.sjodin@amd.com>
20033
20034         PR tree-optimization/38559
20035         * graphite.c (debug_value, copy_constraint,
20036         swap_constraint_variables, scale_constraint_variable, ): New.
20037         (get_lower_bound, get_upper_bound): Removed.
20038         (graphite_trans_bb_strip_mine): Clean up this code that works
20039         only for constant number of iterations.  Fully copy upper and
20040         lower bound constraints, not only the constant part of them.
20041         * graphite.h (debug_value): Declared.
20042
20043 2009-01-08  Ira Rosen  <irar@il.ibm.com>
20044
20045         PR tree-optimization/37194
20046         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
20047         Don't add the cost of cost model guard in prologue to scalar
20048         outside cost in case of known number of iterations.
20049
20050 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
20051             Alan Modra  <amodra@bigpond.net.au>
20052
20053         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
20054         non-word-aligned REG+CONST addressing.
20055
20056 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
20057
20058         PR target/38706
20059         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
20060         free_after_compilation when outputting a thunk.
20061         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
20062         Do not call free_after_compilation here.
20063
20064 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
20065
20066         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
20067         (ix86_valid_target_attribute_inner_p): Ditto.
20068
20069 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
20070
20071         PR tree-optimization/38492
20072         PR tree-optimization/38498
20073         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
20074         * tree-chrec.h (scev_is_linear_expression): Declared.
20075         * graphite.c (graphite_cannot_represent_loop_niter): New.
20076         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
20077         (graphite_loop_normal_form): Use gcc_assert.
20078         (scan_tree_for_params): Use CASE_CONVERT.
20079         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
20080         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
20081         Use gcc_assert.  Discard scops that contain unhandled cases.
20082         (build_scop_conditions): Return a boolean status for unhandled cases.
20083         (strip_mine_profitable_p): Print the loop number, not its depth.
20084         (is_interchange_valid): Pass the depth of the loop nest, don't
20085         recompute it wrongly.
20086         (graphite_trans_bb_block): Same.
20087         (graphite_trans_bb_block): Print tentative of loop blocking.
20088         (graphite_trans_scop_block): Do not print that the loop has been
20089         blocked.
20090         (graphite_transform_loops): Do not handle scops that contain condition
20091         scalar phi nodes.
20092
20093 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
20094
20095         AVX Programming Reference (December, 2008)
20096         * config/i386/avxintrin.h (_mm256_stream_si256): New.
20097         (_mm256_stream_pd): Likewise.
20098         (_mm256_stream_ps): Likewise.
20099
20100         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
20101         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
20102         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
20103         (bdesc_special_args): Add __builtin_ia32_movntdq256,
20104         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
20105         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
20106         (ix86_expand_special_args_builtin): Likewise.
20107
20108         * config/i386/sse.md (AVXMODEDI): New.
20109         (avx_movnt<mode>): Likewise.
20110         (avx_movnt<mode>): Likewise.
20111         (<sse>_movnt<mode>): Remove AVX support.
20112         (sse2_movntv2di): Likewise.
20113
20114 2009-01-07  Richard Guenther  <rguenther@suse.de>
20115
20116         PR middle-end/38751
20117         * fold-const.c (extract_muldiv): Remove obsolete comment.
20118         (fold_plusminus_mult_expr): Undo MINUS_EXPR
20119         to PLUS_EXPR canonicalization for the canonicalization.
20120
20121 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
20122
20123         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
20124         hosted cross-compilers generating less efficient code.
20125
20126 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
20127
20128         * function.h (rtl_data): Add a dbr_scheduled_p field.
20129         * reorg.c (dbr_schedule): Set it.
20130         (gate_handle_delay_slots): Check it.
20131         * config/mips/mips.c (mips_base_delayed_branch): Delete.
20132         (mips_reorg): Check flag_delayed_branch instead of
20133         mips_base_delayed_branch.
20134         (mips_override_options): Don't set mips_base_delayed_branch
20135         or flag_delayed_branch.
20136
20137 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
20138
20139         PR rtl-optimization/38426.
20140         * ira.c (ira): Set current_function_is_leaf earlier.
20141
20142 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
20143
20144         PR rtl-optimization/38722
20145         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
20146         too early, only set a flag and modify after last possible
20147         undo_all point.
20148
20149 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
20150
20151         PR c/34252
20152         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
20153         * real.c (decimal_single_format): Correct values of emin and emax.
20154         (decimal_double_format): Ditto.
20155         (decimal_quad_format): Ditto.
20156         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
20157         computation of DECnn_MIN and DECnn_MAX for corrected values of
20158         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
20159         __DECnn_MIN__, and adjust its computation for the corrected value
20160         of emin.
20161
20162 2009-01-06  Jan Hubicka  <jh@suse.cz>
20163
20164         PR target/38744
20165         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
20166
20167 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
20168
20169         * doc/contrib.texi (Contributors): Slightly adjust the end note.
20170         Add Robert Clark to the list of testers.
20171
20172 2009-01-06  Jan Hubicka  <jh@suse.cz>
20173             Kai Tietz  <kai.tietz@onevision.com>
20174
20175         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
20176         * config/i386/i386.c (ix86_expand_call): Add clobbers.
20177
20178 2009-01-06  Jan Hubicka  <jh@suse.cz>
20179             Kai Tietz  <kai.tietz@onevision.com>
20180
20181         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
20182         for w64 ABI.
20183         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
20184         (ix86_nsaved_regs): Count only general purpose regs.
20185         (ix86_nsaved_sseregs): New.
20186         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
20187         to 16 for w64; compute padding and size of sse reg save area.
20188         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
20189         general purpose regs.
20190         (ix86_emit_save_sse_regs_using_mov): New.
20191         (ix86_expand_prologue): Save SSE regs if needed.
20192         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
20193         (ix86_emit_restore_sse_regs_using_mov): New.
20194         (ix86_expand_epilogue): Save SSE regs if needed.
20195
20196 2009-01-06  Jan Hubicka  <jh@suse.cz>
20197             Kai Tietz  <kai.tietz@onevision.com>
20198
20199         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
20200         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
20201         functions when accumulate outgoing args is off.
20202
20203 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
20204
20205         PR bootstrap/38742
20206         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
20207         before using pseudos_have_intersected_live_ranges_p.
20208
20209         * ira-int.h (ira_assert): Always define.
20210
20211 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
20212
20213         AVX Programming Reference (December, 2008)
20214         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
20215         (_mm256_permute2_pd): Likewise.
20216         (_mm_permute2_ps): Likewise.
20217         (_mm256_permute2_ps): Likewise.
20218         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
20219         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
20220
20221         * config/i386/i386.c (ix86_builtins): Remove
20222         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
20223         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
20224         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
20225         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
20226         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
20227         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
20228         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
20229         __builtin_ia32_vpermil2ps256.
20230         (ix86_init_mmx_sse_builtins): Updated.
20231         (ix86_expand_args_builtin): Likewise.
20232
20233 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20234
20235         * pa.c (output_call): Relocate non-jump insns in the delay slot of
20236         long absolute calls when generating PA 2.0 code.
20237
20238 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
20239
20240         PR rtl-optimization/38583
20241         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
20242
20243         * params.def (ira-max-conflict-table-size): New.
20244
20245         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
20246
20247         * ira.h (ira_conflicts_p): New external definition.
20248
20249         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
20250         table.  Report this.  Return result of building.
20251         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
20252         building conflict table.
20253
20254         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
20255         (ira_color): Use ira_conflicts_p.
20256
20257         * global.c: Include ira.h.
20258         (pseudo_for_reload_consideration_p, build_insn_chain): Use
20259         ira_conflicts_p.
20260
20261         * Makefile.in (global.o): Add ira.h.
20262
20263         * ira-build.c (mark_all_loops_for_removal,
20264         propagate_some_info_from_allocno): New.
20265         (remove_unnecessary_allocnos): Call
20266         propagate_some_info_from_allocno.
20267         (remove_low_level_allocnos): New.
20268         (remove_unnecessary_regions): Add parameter.  Call
20269         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
20270         parameter to remove_unnecessary_regions.
20271         (ira_build): Remove all regions but root if the conflict table was
20272         not built.  Update conflict hard regs for allocnos crossing calls.
20273
20274         * ira.c (ira_conflicts_p): New global.
20275         (ira): Define and use ira_conflicts_p.
20276
20277         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20278         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
20279         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
20280
20281 2009-01-06  Ben Elliston  <bje@au.ibm.com>
20282
20283         * gengtype-lex.l (YY_NO_INPUT): Define.
20284
20285 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20286
20287         PR c/34911
20288         * c-common.c (handle_vector_size_attribute): Also reject
20289         BOOLEAN_TYPE types.
20290
20291 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
20292
20293         PR tree-optimization/38492
20294         * graphite.c (rename_map_elt, debug_rename_elt,
20295         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
20296         rename_map_elt_info, eq_rename_map_elts,
20297         get_new_name_from_old_name, bb_in_sese_p): Moved around.
20298         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
20299         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
20300         (sese_build_livein_liveouts): New.
20301         (new_sese, free_sese): New.
20302         (new_scop): Call new_sese.
20303         (free_scop): Call free_sese.
20304         (rename_variables_from_edge, rename_phis_end_scop): Removed.
20305         (register_old_new_names): Renamed register_old_and_new_names.
20306         (register_scop_liveout_renames, add_loop_exit_phis,
20307         insert_loop_close_phis, struct igp,
20308         default_liveout_before_guard, add_guard_exit_phis,
20309         insert_guard_phis, copy_renames): New.
20310         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
20311         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
20312         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
20313         (scop_adjust_phis_for_liveouts): New.
20314         (gloog): Call scop_adjust_phis_for_liveouts.
20315
20316         * graphite.h (struct sese): Documented.  Added fields liveout,
20317         num_ver and livein.
20318         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
20319         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
20320         (struct scop): Added field liveout_renames.
20321         (SCOP_LIVEOUT_RENAMES): New.
20322
20323 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20324
20325         PR tree-optimization/38510
20326         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
20327         (translate_clast): Call recompute_all_dominators before
20328         graphite_verify.
20329         (gloog): Call recompute_all_dominators before graphite_verify.
20330
20331 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20332             Jan Sjodin  <jan.sjodin@amd.com>
20333
20334         PR tree-optimization/38500
20335         * graphite.c (create_sese_edges): Call fix_loop_structure after
20336         splitting blocks.
20337
20338 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
20339
20340         * config.gcc: Add m32r*-*-rtems*.
20341         * config/m32r/rtems.h: New file.
20342
20343 2009-01-05  Ben Elliston  <bje@au.ibm.com>
20344
20345         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
20346         (.po.pox): Likewise.
20347         (po/gcc.pot): Likewise.
20348
20349 2009-01-04  David S. Miller  <davem@davemloft.net>
20350
20351         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
20352         (STARTING_FRAME_OFFSET): Always set to zero.
20353
20354 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20355
20356         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
20357         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
20358         fixed-point types, and vectors of the same.
20359
20360 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20361
20362         * config/mips/sync.md (*mb_barrier): Rename to...
20363         (*memory_barrier): ...this.
20364
20365 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20366
20367         * doc/extend.texi (Function Attributes): Move @cindex after @item
20368         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
20369         and put in alphabetical order. Fix 'target' name and put in order.
20370         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
20371         typos.
20372
20373 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
20374
20375         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
20376         (memory_barrier): Expand as unspec instead of unspec_volatile.
20377         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20378         (*memory_barrier): Define as unspec instead of unspec_volatile.
20379         Use (match_dup 0) as input operand.
20380
20381         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
20382         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
20383         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
20384         scratch register.  Remove operand 1.
20385         (*stbar): Define as unspec instead of unspec_volatile.
20386         Use (match_dup 0) as input operand, remove (const_int 8).
20387         (*membar): Define as unspec instead of unspec_volatile.
20388         Use (match_dup 0) as input operand, remove input operand 2.
20389
20390         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
20391         (memory_barrier): Expand as unspec instead of unspec_volatile.
20392         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20393         (*memory_barrier): Define as unspec instead of unspec_volatile.
20394         Use (match_dup 0) as input operand.
20395
20396         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
20397         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20398         Set volatile flag on operand 0.
20399         (*memory_barrier): New insn pattern.
20400
20401         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
20402         insn operands.
20403         (*memory_barrier): Use (match_dup 0) as input operand.
20404
20405         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
20406         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20407         Set volatile flag on operand 0.
20408         (*mb_internal): New insn pattern.
20409
20410         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
20411
20412 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20413
20414         PR middle-end/38586
20415         * function.c (struct temp_slot): Move to the section of the file
20416         that deals with temp slots.  Remove field 'address'.
20417         (temp_slot_address_table): New hash table of address -> temp slot.
20418         (struct temp_slot_address_entry): New struct, items for the table.
20419         (temp_slot_address_compute_hash, temp_slot_address_hash,
20420         temp_slot_address_eq, insert_temp_slot_address): Support functions
20421         for the new table.
20422         (find_temp_slot_from_address): Rewrite to use the new hash table.
20423         (remove_unused_temp_slot_addresses): Remove addresses of temp
20424         slots that have been made available.
20425         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
20426         worker function for remove_unused_temp_slot_addresses.
20427         (assign_stack_temp_for_type): Don't clear the temp slot address list.
20428         Add the temp slot address to the address -> temp slot map.
20429         (update_temp_slot_address): Update via insert_temp_slot_address.
20430         (free_temp_slots): Call remove_unused_temp_slot_addresses.
20431         (pop_temp_slots): Likewise.
20432         (init_temp_slots): Allocate the address -> temp slot map, or empty
20433         the map if it is already allocated.
20434         (prepare_function_start): Initialize temp slot processing.
20435
20436 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20437
20438         PR middle-end/38584
20439         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
20440         Calculate the size of all stack vars assuming no packing of stack
20441         vars will happen, replacing a quadratic algorithm with a linear one.
20442
20443 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20444
20445         PR target/38707
20446         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
20447         can't be used.
20448
20449 2009-01-03  Diego Novillo  <dnovillo@google.com>
20450
20451         * doc/contrib.texi: Update contributions.
20452
20453 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20454
20455         PR c++/38705
20456         * builtins.c (fold_builtin_memory_op): Give up if either operand
20457         is volatile.  Set srctype or desttype to non-qualified version
20458         of the other type.
20459
20460         PR c/38700
20461         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
20462         and FUNCTION_DECLs.
20463
20464 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
20465
20466         PR rtl-optimization/35805
20467         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
20468         problem if fast dce is able to remove any instructions.
20469         * dce.c (dce_process_block): Fix dump message.
20470
20471 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
20472
20473         PR 33649
20474         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
20475
20476 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
20477
20478         PR middle-end/38690
20479         * tree-flow.h (op_code_prio, op_prio): New prototypes.
20480         * tree-pretty-print.c (op_code_prio): New function.
20481         (op_prio): No longer static.  Use op_code_prio.
20482         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
20483         Use op_prio and op_code_prio to determine if () should be
20484         printed around operand(s) or not.
20485
20486         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
20487         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
20488         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
20489         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
20490         pp_character instead of pp_string for single letter printing.
20491
20492 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20493
20494         * doc/extend.texi: Fix '#pragma GCC option' typo.
20495
20496 2009-01-02  Richard Guenther  <rguenther@suse.de>
20497
20498         * doc/install.texi (--enable-checking): Mention different
20499         default for stage1.
20500         (--enable-stage1-checking): Document.
20501
20502 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
20503
20504         PR middle-end/30142
20505         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
20506         case to be an error.
20507
20508 2009-01-02  Ben Elliston  <bje@au.ibm.com>
20509
20510         * config/fp-bit.h (pack_d): Constify argument.
20511         * config/fp-bit.c (makenan): Constify return type. Remove casts.
20512         (isnan): Constify argument.
20513         (isinf): Likewise.
20514         (iszero): Likewise.
20515         (pack_d): Likewise.
20516         (_fpadd_parts): Constify return type.
20517         (_fpmul_parts): Likewise.
20518         (_fpdiv_parts): Likewise.
20519
20520 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
20521
20522         PR c/36489
20523         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
20524         warn about overwriting initializer with side-effects or
20525         -Woverride-init if !IMPLICIT.
20526         (output_init_element): Likewise.  Pass IMPLICIT down to
20527         add_pending_init.
20528         (process_init_element): Add IMPLICIT argument.  Pass it down
20529         to output_init_element.
20530         (push_init_element, pop_init_level, set_designator): Adjust
20531         process_init_element callers.
20532         (set_nonincremental_init, set_nonincremental_init_from_string):
20533         Adjust add_pending_init callers.
20534         (output_pending_init_elements): Adjust output_init_element callers.
20535         * c-tree.h (process_init_element): Adjust prototype.
20536         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
20537         process_init_element callers.
20538
20539 \f
20540 Copyright (C) 2009 Free Software Foundation, Inc.
20541
20542 Copying and distribution of this file, with or without modification,
20543 are permitted in any medium without royalty provided the copyright
20544 notice and this notice are preserved.