OSDN Git Service

PR c/39902
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
2
3         PR c/39902
4         * simplify-rtx.c (simplify_binary_operation_1): Disable
5         simplifications for decimal float operations.
6
7 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
8
9         PR middle-end/40943
10         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
11         operand of INDIRECT_REF.
12
13 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
14
15         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
16         constants referencing TLS symbols.
17
18 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
19
20         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
21         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
22
23 2009-08-03  Richard Guenther  <rguenther@suse.de>
24
25         * tree.c (make_vector_type): Build a main variant first,
26         get the canonical one and then build the variant.
27         * tree-ssa.c (useless_type_conversion_p_1): Handle
28         fixed-point types.
29         (useless_type_conversion_p): Conversions to pointers to
30         incomplete record types are useless.
31
32 2009-08-03  Richard Guenther  <rguenther@suse.de>
33
34         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
35         file will be created.
36         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
37         * toplev.c (compile_file): Adjust comment.
38
39 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
40
41         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
42         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
43         (TARGET_PROMOTE_FUNCTION_MODE): Define.
44         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
45         (sh_promote_function_mode): Fix typo.
46
47 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
48
49         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
50
51 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
52
53         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
54         declaration arguments.
55
56 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
57
58         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
59         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
60         (ix86_split_ashl): Ditto.
61         (ix86_expand_vector_init_one_nonzero): Ditto.
62         (ix86_expand_vector_set): Ditto.
63         (ix86_expand_reduc_v4sf): Ditto.
64
65 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66
67         * explow.c (promote_function_mode): Remove assert.
68         * config/sh/sh.c (sh_promote_function_mode): Declare.
69
70 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
71
72         * config/pa/pa.c (pa_promote_function_mode): Declare.
73         Change to static.  Fix promote_mode call.
74
75         * gthr-dce.h (CONST_CAST2): Define if not defined.
76         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
77
78         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
79
80 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
81
82         * expr.c (store_constructor): Use promote_decl_mode.  Remove
83         now write-only variable unsignedp.
84         (expand_expr_real_1): Use promote_decl_mode.
85         * expr.h (promote_function_mode, promote_decl_mode): New.
86         (promote_mode): Remove last argument.
87         * function.c (assign_temp): Drop last argument of promote_mode.
88         (assign_parm_find_data_types): Use promote_function_mode.
89         (assign_parm_setup_reg): Likewise.
90         (expand_function_end): Use promote_function_mode.
91         * calls.c (initialize_argument_information): Use promote_function_mode.
92         (precompute_arguments): Use promote_mode instead of checking if
93         only PROMOTE_FUNCTION_MODE is defined.
94         (expand_call): When making sibcall decisions, use promote_function_mode.
95         Below, remove an if for targetm.calls.promote_function_return and
96         and use promote_function_mode.
97         (emit_library_call_value_1): Use promote_function_mode, fix bug
98         where promote_mode was passed FOR_CALL == 0 for a return value in an
99         assertion.
100         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
101         * explow.c (promote_function_mode, promote_decl_mode): New.
102         (promote_mode): Keep only the FOR_CALL == 0 case.
103         * combine.c (setup_incoming_promotion): Remove test of
104         promote_function_args.  Use promote_function_mode.
105         * stmt.c (expand_value_return): Use promote_decl_mode.
106         (expand_decl): Use promote_decl_mode.
107
108         * expr.c (store_constructor): Use promote_decl_mode.  Remove
109         now write-only variable unsignedp.
110         (expand_expr_real_1): Use promote_decl_mode.
111         * expr.h (promote_function_mode, promote_decl_mode): New.
112         (promote_mode): Remove last argument.
113         * function.c (assign_temp): Drop last argument of promote_mode.
114         (assign_parm_find_data_types): Use promote_function_mode.
115         (assign_parm_setup_reg): Likewise.
116         (expand_function_end): Use promote_function_mode.
117         * calls.c (initialize_argument_information): Use promote_function_mode.
118         (precompute_arguments): Use promote_mode instead of checking if
119         only PROMOTE_FUNCTION_MODE is defined.
120         (expand_call): When making sibcall decisions, use promote_function_mode.
121         Below, remove an if for targetm.calls.promote_function_return and
122         and use promote_function_mode.
123         (emit_library_call_value_1): Use promote_function_mode, fix bug
124         where promote_mode was passed FOR_CALL == 0 for a return value in an
125         assertion.
126         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
127         * explow.c (promote_function_mode, promote_decl_mode): New.
128         (promote_mode): Keep only the FOR_CALL == 0 case.
129         * combine.c (setup_incoming_promotion): Remove test of
130         promote_function_args.  Use promote_function_mode.
131         * stmt.c (expand_value_return): Use promote_decl_mode.
132         (expand_decl): Use promote_decl_mode.
133
134         * explow.c (promote_function_mode): Just call the target hook.
135         * targhooks.c (default_promote_function_mode,
136         default_promote_function_mode_always_promote): New.
137         * targhooks.h (default_promote_function_mode,
138         default_promote_function_mode_always_promote): Declare.
139         * target.h (promote_function_args, promote_function_return): Remove.
140         (promote_function_mode): New.
141         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
142         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
143         (TARGET_PROMOTE_FUNCTION_MODE): New.
144         (TARGET_CALLS): Adjust.
145         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
146         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
147
148         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
149         * config/s390/s390.c (s390_promote_function_mode): ... here,
150         with pointer handling.
151         (TARGET_PROMOTE_FUNCTION_MODE): Define.
152         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
153
154         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
155         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
156         with pointer handling.
157         (TARGET_PROMOTE_FUNCTION_MODE): Define.
158         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
159         
160         * config/sh/sh-protos.h (sh_promote_function_mode): New.
161         * config/sh/sh.c (sh_promote_function_mode): New.
162         (TARGET_PROMOTE_FUNCTION_MODE): Define.
163         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
164
165         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
166         * config/cris/cris.c (cris_promote_function_mode): ... here.
167         (TARGET_PROMOTE_FUNCTION_MODE): Define.
168         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
169
170         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
171         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
172         (TARGET_PROMOTE_FUNCTION_MODE): Define.
173         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
174
175         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
176         * config/arm/arm.c (arm_promote_function_mode): ... here, without
177         complex type handling.
178         (TARGET_PROMOTE_FUNCTION_MODE): Define.
179         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
180
181         * config/pa/pa.c (pa_promote_function_mode): New.
182         (TARGET_PROMOTE_FUNCTION_MODE): Define.
183         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
184
185         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
186         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
187         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
188         * config/xtensa/xtensa.c: Likewise.
189         * config/stormy16/stormy16.c: Likewise.
190         * config/iq2000/iq2000.c: Likewise.
191         * config/rs6000/rs6000.c: Likewise.
192         * config/picochip/picochip.c: Likewise.
193         * config/arc/arc.c: Likewise.
194         * config/mcore/mcore.c: Likewise.
195         * config/score/score.c: Likewise.
196         * config/mips/mips.c: Likewise.
197         * config/bfin/bfin.c: Likewise.
198         * config/ia64/ia64.c: Likewise (disabled though).
199
200         * config/frv/frv.h: Remove pointless remark.
201
202         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
203         TARGET_PROMOTE_FUNCTION_ARGS,
204         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
205         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
206
207 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
208
209         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
210         -floop-parallelize-all.
211         * toplev.c (process_options): Rename flag_graphite_force_parallel to
212         flag_loop_parallelize_all.
213         * tree-ssa-loop.c (gate_graphite_transforms): Same.
214         * graphite.c (graphite_transform_loops): Same.
215         * common.opt: Same.
216         * graphite-poly.c (apply_poly_transforms): Same.
217
218 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
219
220         PR tree-optimization/40914
221         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
222         if set, then check the delta field of the PMF record.
223         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
224         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
225         call is stored in the delta.
226
227 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
228
229         * config/mips/mips.md (*clear_upper32_dext): New pattern.
230
231 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
232
233         * config/i386/bsd.h (ASM_BYTE): New define.
234         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
235         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
236         .byte.  Use fputs or putc instead of fprintf where appropriate.
237         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
238         fputs or putc instead of fprintf where appropriate.
239         * config/i386/i386elf.h: Ditto.
240         * config/i386/sysv4.h: Ditto.
241         
242         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
243         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
244         (*tls_global_dynamic_64): Ditto.
245
246 2009-07-31  Christian Bruel  <christian.bruel@st.com>   
247
248         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
249         
250 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
251
252         * config/arm/arm.c (arm_arm_address_cost): Fix typo. 
253         Remove dead code for MINUS.
254
255 2009-07-31  Anthony Green  <green@moxielogic.com>
256
257         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
258         $r12 in prologue.
259         (moxie_expand_epilogue): Ditto for epilogue.
260         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
261         incoming arguments.
262         (moxie_function_arg): Ditto.
263         (moxie_pass_by_reference): Ditto.
264         (moxie_arg_partial_bytes): Ditto.
265         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
266         (FUNCTION_ARG_ADVANCE) Ditto.
267         (REG_PARM_STACK_SPACE) Ditto.
268         (FUNCTION_ARG_REGNO_P) Dito.
269
270         * config.gcc: Add moxie linux config support.
271         * gcc/config/moxie/uclinux.h: New file.
272
273 2009-07-31  DJ Delorie  <dj@redhat.com>
274
275         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
276         (UNSPECV_SP_SWITCH_E): New.
277         (sp_switch_1): Change to an unspec.
278         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
279         replace $r15.
280         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
281         reference the new stack's address
282
283 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
284
285         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
286         graphite-clast-to-gimple.o, graphite-dependences.o,
287         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
288         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
289         (graphite-blocking.o,
290         graphite-clast-to-gimple.o, graphite-dependences.o,
291         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
292         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
293         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
294         * cfgloop.h (struct loop): Add can_be_parallel field.
295         * common.opt (fgraphite-identity): Moved up.
296         (fgraphite-force-parallel): New flag.
297         * graphite.c: Rewrite.
298         * graphite.h: Rewrite.
299         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
300         after Graphite.
301         * toplev.c (graphite_out_file): New file descriptor.
302         (graphite_in_file): New.
303         (process_options): flag_graphite_force_parallel cannot be used without
304         Graphite.
305         * tree-ssa-loop.c: Include toplev.h.
306         (gate_graphite_transforms): Enable flag_graphite for
307         flag_graphite_force_parallel.
308
309 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
310
311         * ChangeLog.graphite: New.
312         * graphite-blocking.c: New.
313         * graphite-clast-to-gimple.c: New.
314         * graphite-clast-to-gimple.h: New.
315         * graphite-dependences.c: New.
316         * graphite-dependences.h: New.
317         * graphite-interchange.c: New.
318         * graphite-poly.c: New.
319         * graphite-poly.h: New.
320         * graphite-ppl.c: New.
321         * graphite-ppl.h: New.
322         * graphite-scop-detection.c: New.
323         * graphite-scop-detection.h: New.
324         * graphite-sese-to-poly.c: New.
325         * graphite-sese-to-poly.h: New.
326         * sese.c: New.
327         * sese.h: New.
328
329 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
330
331         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
332         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
333
334 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
335
336         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
337         (scev_is_linear_expression): Return false if the evolution is not
338         affine multivariate.
339
340 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
341
342         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
343         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
344
345 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
346
347         * tree-data-ref.c (debug_data_references): New.
348         (debug_data_reference): New.
349         * tree-data-ref.h (debug_data_references): Declared.
350         (debug_data_reference): Declared.
351
352 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
353
354         * tree-data-ref.c (stmt_simple_memref_p: Removed.
355         * tree-data-ref.h (scop_p): Removed.
356         (struct data_reference): Remove field scop.
357         (DR_SCOP): Removed.
358         (stmt_simple_memref_p): Removed.
359
360 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
361
362         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
363         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
364         basic block empty.
365
366 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
367
368         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
369
370 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
371
372         * doc/invoke.texi (-fgraphite-identity): Documented.
373
374 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
375
376         * tree-scalar-evolution.c: Fix comment.
377         (instantiate_scev_1): Return unknow from scev instantiation if the
378         result is not above instantiate_below.
379
380 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
381
382         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
383         static anymore.  Instantiate the symbols that may have been introduced
384         by chrec_apply.
385         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
386         Declared.
387
388 2009-07-30  DJ Delorie  <dj@redhat.com>
389
390         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
391         .vliw directive to VLIW sections.
392
393 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
394
395         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
396         New variables.
397         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
398         (AUTOHEADER): New variable.
399         ($(srcdir)/cstamp-h.in): Use it.
400
401 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
402             Pat Haugen  <pthaugen@us.ibm.com>
403             Revital Eres <ERES@il.ibm.com>
404
405         * config/rs6000/vector.md (VEC_F): Add VSX support.
406         (VEC_A): Ditto.
407         (VEC_N): Ditto.
408         (mov<mode>): Ditto.
409         (vector_load_<mode>): Ditto.
410         (vector_store_<mode>): Ditto.
411         (vector GPR move split): Ditto.
412         (vec_reload_and_plus_<mptrsize>): Ditto.
413         (vec_reload_and_reg_<mptrsize>): Ditto.
414         (add<mode>3): Ditto.
415         (sub<mode>3): Ditto.
416         (mul<mode>3): Ditto.
417         (neg<mode>2): Ditto.
418         (abs<mode>2): Ditto.
419         (smin<mode>3): Ditto.
420         (smax<mode>3): Ditto.
421         (vector_eq<mode>): Ditto.
422         (vector_gt<mode>): Ditto.
423         (vector_ge<mode>): Ditto.
424         (vector_gtu<mode>): Ditto.
425         (vector_select_<mode>_uns): Ditto.
426         (vector_eq_<mode>_p): Ditto.
427         (vector_gt_<mode>_p): Ditto.
428         (vector_ge_<mode>_p): Ditto.
429         (vector_gtu_<mode>_p): Ditto.
430         (cr6_test_for_zero): Ditto.
431         (cr6_test_for_zero_reverse): Ditto.
432         (cr6_test_for_lt): Ditto.
433         (cr6_test_for_lt_reverse): Ditto.
434         (xor<mode>3): Ditto.
435         (ior<mode>3): Ditto.
436         (and<mode>3): Ditto.
437         (one_cmpl<mode>2): Ditto.
438         (nor<mode>2): Ditto.
439         (andc<mode>2): Ditto.
440         (float<VEC_int<mode>2): Ditto.
441         (unsigned_float<VEC_int><mode>2): Ditto.
442         (fix_trunc<mode><VEC_int>2): Ditto.
443         (fixuns_trunc<mode><VEC_int>2): Ditto.
444         (vec_init<mode>):
445         (vec_set<mode>): Ditto.
446         (vec_extract<mode>): Ditto.
447         (vec_interleave_highv4sf): Ditto.
448         (vec_interleave_lowv4sf): Ditto.
449         (vec_realign_load_<mode>): Ditto.
450         (vec_shl_<mode>): Ditto.
451         (vec_shr_<mode>): Ditto.
452         (div<mode>3): New patterns for VSX.
453         (vec_interleave_highv2df): Ditto.
454         (vec_interleave_lowv2df): Ditto.
455         (vec_pack_trunc_v2df): Ditto.
456         (vec_pack_sfix_trunc_v2df): Ditto.
457         (vec_pack_ufix_trunc_v2df): Ditto.
458         (vec_unpacks_hi_v4sf): Ditto.
459         (vec_unpacks_lo_v4sf): Ditto.
460         (vec_unpacks_float_hi_v4si): Ditto.
461         (vec_unpacku_float_lo_v4si): Ditto.
462         (vec_unpacku_float_hi_v4si): Ditto.
463         (vec_unpacks_float_lo_v4si): Ditto.
464         (movmisalign<mode>): Ditto.
465         (vector_ceil<mode>2): New patterns for vectorizing math library.
466         (vector_floor<mode>2): Ditto.
467         (vector_btrunc<mode>2): Ditto.
468         (vector_copysign<mode>3): Ditto.
469
470         * config/rs6000/predicates.md (easy_vector_constant_msb): New
471         predicate for setting the high bit in each word, used for copysign.
472
473         * config/rs6000/ppc-asm.h (f19): Whitespace.
474         (f32-f63): Define if VSX.
475         (v0-v31): Define if Altivec.
476         (vs0-vs63): Define if VSX.
477
478         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
479
480         * config/rs6000/power7.md: New file, provide tuning parameters for
481         -mcpu=power7.
482
483         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
484         (rs6000_cpu_cpp_builtins): Ditto.
485         (altivec_overloaded_builtins): Ditto.
486         (altivec_resolve_overloaded_builtin): Ditto.
487
488         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
489         debug switch to disable vectorizing simple math builtin
490         functions.
491
492         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
493         Vectorize simple math builtin functions.
494         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
495         hook to vectorize math builtins.
496         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
497         (rs6000_builtin_conversion): Add VSX/power7 support.
498         (rs6000_builtin_vec_perm): Ditto.
499         (vsplits_constant): Add support for loading up a vector constant
500         with just the high bit set in each part.
501         (rs6000_expand_vector_init): Add VSX/power7 support.
502         (rs6000_expand_vector_set): Ditto.
503         (rs6000_expand_vector_extract): Ditto.
504         (rs6000_emit_move): Ditto.
505         (bdesc_3arg): Ditto.
506         (bdesc_2arg): Ditto.
507         (bdesc_1arg): Ditto.
508         (rs6000_expand_ternop_builtin): Ditto.
509         (altivec_expand_builtin): Ditto.
510         (rs6000_expand_unop_builtin): Ditto.
511         (rs6000_init_builtins): Ditto.
512         (altivec_init_builtins): Ditto.
513         (builtin_function_type): Ditto.
514         (rs6000_common_init_builtins): Ditto.
515         (rs6000_handle_altivec_attribute); Ditto.
516         (rs6000_mangle_type): Ditto.
517         (rs6000_vector_mode_supported_p): Ditto.
518         (rs6000_mode_dependent_address): Altivec addresses with AND -16
519         are mode dependent.
520
521         * config/rs6000/vsx.md: New file for VSX support.
522
523         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
524         identifing values with just the most significant bit set.
525         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
526         vectorized builtins.
527
528         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
529         (UNSPEC_VRFIM): Delete.
530         (splitter for loading up vector with most significant bit): New
531         splitter for vectorizing copysign.
532         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
533         vectorizing simple math functions.
534         (altivec_vrfip): Add support for vectorizing simple math functions.
535         (altivec_vrfim): Ditto.
536         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
537
538         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
539         (power7.md, vsx.md): Include for power7 support.
540         (copysigndf3): Use VSX instructions if -mvsx.
541         (negdf2_fpr): Ditto.
542         (absdf2_fpr): Ditto.
543         (nabsdf2_fpr): Ditto.
544         (adddf3_fpr): Ditto.
545         (subdf3_fpr): Ditto.
546         (muldf3_fpr): Ditto.
547         (divdf3_fpr): Ditto.
548         (fix_truncdfdi2_fpr): Ditto.
549         (cmpdf_internal1): Ditto.
550         (fred, fred_fpr): Convert into expander/insn to add VSX support.
551         (btruncdf2, btruncdf2_fpr): Ditto.
552         (ceildf2, ceildf2_fpr): Ditto.
553         (floordf2, floordf2_fpr): Ditto.
554         (floatdidf2, floatdidf2_fpr): Ditto.
555         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
556         (fmsubdf4_fpr): Ditto.
557         (fnmadddf4_fpr_1): Ditto.
558         (fnmadddf4_fpr_2): Ditto.
559         (fnmsubdf4_fpr_1): Ditto.
560         (fnmsubdf4_fpr_2): Ditto.
561         (fixuns_truncdfdi2): Add expander for VSX support.
562         (fix_truncdfdi2): Ditto.
563         (fix_truncdfsi2): Ditto.
564         (ftruncdf2): Ditto.
565         (btruncsf2): Whitespace.
566         (movdf_hardfloat32): Add support for VSX registers.
567         (movdf_softfloat32): Ditto.
568         (movdf_hardfloat64): Ditto.
569         (movdf_hardfloat64_mfpgpr): Ditto.
570         (movdf_softfloat64): Ditto.
571         (movti splitters): Add check for vector registers supporting
572         TImode in the future.
573         (bpermd): Add power7 bpermd instruction.
574
575         * config/rs6000/altivec.h (vec_div): Define if VSX.
576         (vec_mul): Ditto.
577         (vec_msub): Ditto.
578         (vec_nmadd): Ditto.
579         (vec_nearbyint): Ditto.
580         (vec_rint): Ditto.
581         (vec_sqrt): Ditto.
582         (all predicates): Use the generic builtin function, and not the V4SF
583         specific function so that the predicates will work with VSX's V2DF.
584         (vec_all_*): Ditto.
585         (vec_any_*): Ditto.
586
587         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
588         Document new VSX functions and types.
589
590         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
591         switches.
592
593         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
594         "wa", and "j" constraints.  Modify "v" to talk about Altivec
595         instead of just vector.
596
597 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
598
599         PR debug/26475
600         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
601         location for phi arguments.
602         (rewrite_update_phi_arguments): Find locations for reaching defs.
603         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
604         Add location to add_phi_arg calls.
605         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
606         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
607         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
608         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
609         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
610         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
611         * tree-phinodes.c (make_phi_node): Initialize location.
612         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
613         (add_phi_arg): Add location parameter.
614         (remove_phi_arg_num): Move location when moving phi argument.
615         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set 
616         location.
617         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
618         slpeel_update_phi_nodes_for_guard1,
619         slpeel_update_phi_nodes_for_guard2,
620         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
621         vect_loop_versioning): Set locations.
622         * tree-parloops.c (create_phi_for_local_result,
623         transform_to_exit_first_loop, create_parallel_loop): Add locations.
624         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
625         * tree-vect-loop.c (get_initial_def_for_induction,
626         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
627         locations.
628         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
629         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
630         (gimple_phi_arg_set_location): New.  Set locus.
631         (gimple_phi_arg_has_location): New.  Check for locus.
632         (redirect_edge_var_map_location): New.  Return locus from var_map.
633         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
634         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
635         combining PHI arguments.
636         (cond_store_replacement): Set location.
637         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
638         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
639         scop_add_exit_phis_edge): Add locations.
640         * tree-cfgcleanup.c (remove_forwarder_block,
641         remove_forwarder_block_with_phi): Add locations.
642         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
643         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
644         locations.
645         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
646         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
647         flush_pending_stmts): Add source location.
648         * lambda-code.c (perfect_nestify): Maintain location stack with argument
649         stack to preserve locations.
650         * tree-vect-stmts.c (vectorizable_load): Add location.
651         * tree-inline.c (copy_phis_for_bb): Copy locus.
652         (setup_one_parameter): Add call locus to inlined parameter stmts.
653         (initialize_inlined_parameters): Pass in call location as parameter
654         assignment locus.
655         (tree_function_versioning): Pass location to setup_one_parameter.
656         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
657         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
658         copy and edge lists.
659         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
660         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a 
661         locus parameter and override the stmt default if provided.
662         (new_elim_graph, clear_elim_graph, delete_elim_graph,
663         elim_graph_add_edge, elim_graph_remove_succ_edge,
664         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
665         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
666         eliminate_phi):  Add locus info in elimination graph for each edge and
667         value copy.
668         (insert_backedge_copies): Copy locus if present.
669         * tree-flow.h (struct _edge_var_map): Add locus field.
670         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
671         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
672         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add 
673         locations.
674         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
675         
676 2009-07-30  Martin Jambor  <mjambor@suse.cz>
677
678         PR tree-optimization/40570
679         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
680         use inlining loops.
681
682 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
683
684         * ssa-loop-manip.c: Include langhooks.h.
685         (rewrite_phi_with_iv): New.
686         (rewrite_all_phi_nodes_with_iv): New.
687         (canonicalize_loop_ivs): Move here from tree-parloops.c.
688         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
689         * tree-parloops.c (loop_parallel_p): Move out all conditions
690         except dependency check.
691         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
692         (gen_parallel_loop): Call canonicalize_loop_ivs without
693         reduction_list argument.
694         (build_new_reduction): New.
695         (gather_scalar_reductions): New.
696         (try_get_loop_niter): New.
697         (try_create_reduction_list): New.
698         (parallleize_loops): Change the parallel conditions check.
699         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
700         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
701
702 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
703
704         * opt-functions.awk (opt_args): Allow argument to be enclosed in
705         curly braces.
706         * doc/options.texi (Option properties):  Mention new quoting syntax.
707
708 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
709
710         * config/alpha/alpha.c (alpha_start_function):
711         Handle VMS_DEBUG_MAIN_POINTER
712         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
713         * doc/invoke.texi: Document -mdebug-main switch.
714
715 2009-07-29  Richard Henderson  <rth@redhat.com>
716
717         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
718         (cgraph_create_edge_including_clones): Likewise.
719         * tree-inline.c (copy_bb): Operate on the correct edges
720         when updating the callgraph.
721
722 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
723
724         * config/alpha/vms-cc.c: Deleted.
725         * config/alpha/vms-ld.c: Deleted.
726         * config/alpha/t-vms64: Moved to config/vms
727         * config/alpha/vms-crt0-64.c: Moved to config/vms
728         * config/alpha/vms-crt0.c: Moved to config/vms
729         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
730         * config/alpha/vms-psxcrt0.c: Moved to config/vms
731         * config/alpha/xm-vms.h: Moved to config/vms
732         * config/alpha/x-vms: Moved to config/vms
733         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
734         config/vms/t-vms.
735         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
736         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
737         (version): Set.
738         * config/vms/t-vms64: Moved here from config/alpha
739         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
740         (argc,argv,envp): Enforce 32bit malloc'ing.
741         * config/vms/vms-psxcrt0-64.c: Likewise.
742         * config/vms/vms-crt0.c: Moved here from config/alpha.
743         * config/vms/vms-psxcrt0.c: Likewise.
744         * config/vms/vms-crtl-64.h: New file.
745         * config/vms/vms-crtl.h: New file.
746         * config/vms/vms.opt: New file.
747         * config/vms/xm-vms64.h: New file.
748         * config/vms/xm-vms.h: Moved here from config/alpha.
749         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
750         Set.
751         * config/vms/x-vms: Moved here from config/alpha.
752         (version, VMS_EXTRA_PARTS): Moved to t-vms.
753         (vms-ld.o, vms-cc.o): Removed.
754         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
755
756 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
757
758         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
759         correct stack (obvious VMS fix).
760
761 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
762
763         * dwarf2out.c (output_file_names): Output VMS style file name, size,
764         date, version info if VMS_DEBUGGING_INFO defined.
765         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
766         size, date calculating code moved here.
767
768 2009-07-29  Paul Brook  <paul@codesourcery.com>
769
770         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
771         do_push/do_pop.
772
773 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
774
775         PR target/40577
776         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
777         to DImode when generating insq_le insn.
778
779 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
780
781         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
782         New macro set for VMS_DEBUGGGING_INFO.
783         (AT_string_form): Use it.
784
785 2009-07-28  DJ Delorie  <dj@redhat.com>
786
787         * config/mep/mep.c (vtext_section): New.
788         (vftext_section): New.
789         (ftext_section): New.
790         (mep_select_section): Add support for functions.
791         (mep_unique_section): Likewise.
792         (mep_asm_init_sections): Likewise.
793         (mep_encode_section_info): Remove it from here.
794
795         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
796
797 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
798
799         * tree.h (TREE_DEPRECATED): Document it is used for types too.
800         (TYPE_VECTOR_OPAQUE): Use default_def_flag
801
802 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
803
804         * dwarf2out.c (output_file_names): Test new macro
805         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
806         (add_comp_dir_attribute): Likewise.
807
808 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
809
810         * config/i386/mingw-w64.h (LINK_SPEC): Add
811         separating space between commands.
812
813 2009-07-28  Jan Hubicka  <jh@suse.cz>
814
815         PR tree-optimization/40759
816         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
817         for renaming.
818
819 2009-07-27  DJ Delorie  <dj@redhat.com>
820
821         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
822         types are dword-aligned.
823         (mep_expand_va_start): Likewise.
824
825 2009-07-27  Olivier Hainque  <hainque@adacore.com>
826             Douglas B Rupp  <rupp@gnat.com>
827
828         * convert.c (convert_to_pointer): Don't assume the target
829         pointer type is POINTER_SIZE long. Fetch its precision instead.
830
831 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
832
833         * system.h (fopen): Undefine if macro.
834
835 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
836
837         * dwarf2out.c (output_cfi_p): Removed.
838         (output_cfis): New function.
839         (output_fde): New function, split from output_call_frame_info.
840         (output_call_frame_info): Use it.
841         (dwarf2out_switch_text_section): Use output_cfis.
842
843 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
844
845         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
846         TARGET_BI_ARCH is specified without enabling SJLJ.
847         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
848         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
849
850 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
851
852         * arm.md (negdi2): Use DImode if forcing a value into a register.
853
854 2009-07-26  Ira Rosen  <irar@il.ibm.com>
855
856         PR tree-optimization/40801
857         * tree-vect-stmts.c (vectorizable_call): Get previous copy
858         of vector operand from the previous copy of vector statement.
859         Pass the correct definition type value to
860         vect_get_vec_def_for_stmt_copy().
861
862 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
863
864         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
865         const char ** conversion.
866
867 2009-07-25 David Daney <ddaney@caviumnetworks.com>
868
869         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
870         fancy_abort() if !ENABLE_ASSERT_CHECKING.
871         (gcc_unreachable): Invoke __builtin_unreachable() if
872         !ENABLE_ASSERT_CHECKING.
873
874 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
875
876         PR rtl-optimization/40445
877         * emit-rtl.c (next_nonnote_insn_bb): New function.
878         * rtl.h (next_nonnote_insn_bb): Declare new function.
879         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
880         with no successors that is the successor of the ENTRY_BLOCK.
881         Continue from the top after removing an empty fallthrough block.
882         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
883         of next_nonnote_insn.
884
885 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
886
887         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
888         
889 2009-07-25  Martin Jambor  <mjambor@suse.cz>
890
891         * c-common.c (c_common_attribute_table): New element for noclone.
892         (handle_noclone_attribute): New function. Forward-declare.
893         * tree-inline.c (tree_versionable_function_p): Check for noclone
894         attribute.
895         * doc/extend.texi (Labels as Values): Document need for noclone.
896         (Function Attributes): Document noclone attribute.
897
898 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
899
900         PR rtl-optimization/34999
901         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
902         and dw_fde_switched_cold_to_hot fields.
903         (output_cfi_p): New function.
904         (output_call_frame_info): If fde->dw_fde_switched_sections,
905         output 2 FDEs instead of one with corrupted header.
906         (dwarf2out_do_cfi_startproc): New function.
907         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
908         and fde->dw_fde_switched_cold_to_hot.
909         (dwarf2out_switch_text_section): Compute
910         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
911         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
912         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
913         Otherwise, compute fde->dw_fde_switch_cfi.
914
915 2009-07-24  Cary Coutant  <ccoutant@google.com>
916
917         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
918
919 2009-07-24  Cary Coutant  <ccoutant@google.com>
920
921         * cfghooks.c (split_block): Copy discriminator to new block.
922         * tree-cfg.c (assign_discriminator): Check location of last
923         instruction in block as well as first.
924
925 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
926
927         * config/i386/linux.c: Use fputs or putc instead of fprintf
928         where appropriate.
929         * config/i386/gas.h: Ditto.
930         * config/i386/x86-64.h: Ditto.
931         * config/i386/att.h: Ditto.
932
933 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
934
935         * expmed.c (emit_store_flag): Use a recursive call to optimize the
936         xor case.
937
938 2009-07-24  Martin Jambor  <mjambor@suse.cz>
939
940         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
941         (ipa_push_func_to_list_1): Declare.
942         (ipa_push_func_to_list): New function.
943
944         * ipa-prop.c (ipa_push_func_to_list_1): New function.
945         (ipa_init_func_list): Call ipa_push_func_to_list_1.
946         (ipa_push_func_to_list): Removed.
947         (ipa_pop_func_from_list): Clear node_enqueued flag.
948
949 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
950         
951         * config/s390/s390.c (override_options): Default
952         max-unrolled-insns to 100 for z10 tuning.
953
954 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
955
956         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
957         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
958         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
959         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
960         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
961         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
962         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
963
964 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
965
966         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
967         use default set in mingw32.h header.
968         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
969         64-bit /mingw/include path.
970         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
971         path.
972
973 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
974
975         PR rtl-optimization/40209
976         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
977
978 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
979
980         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
981         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
982         with the rest of string where appropriate.  Use fputs or putc
983         instead of fprintf where appropriate.
984
985 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
986             Pat Haugen  <pthaugen@us.ibm.com>
987             Revital Eres <ERES@il.ibm.com>
988
989         * config/rs6000/vector.md: New file.  Move most of the vector
990         expander support here from altivec.md to allow for the VSX vector
991         unit in the future.  Add support for secondary_reload patterns.
992         Rewrite the patterns for vector comparison, and vector comparison
993         predicate instructions so that the RTL expresses the desired
994         behavior, instead of using unspec.
995
996         * config/rs6000/constraints.md ("f" constraint): Use
997         rs6000_constraints to hold the precalculated register class.
998         ("d" constraint): Ditto.
999         ("wd" constraint): New constraint for VSX.
1000         ("wf" constraint): Ditto.
1001         ("ws" constraint): Ditto.
1002         ("wa" constraint): Ditto.
1003         ("wZ" constraint): Ditto.
1004         ("j" constraint): Ditto.
1005
1006         * config/rs6000/predicates.md (vsx_register_operand): New
1007         predicate for VSX.
1008         (vfloat_operand): New predicate for vector.md.
1009         (vint_operand): Ditto.
1010         (vlogical_operand): Ditto.
1011         (easy_fp_constant): If VSX, 0.0 is an easy constant.
1012         (easy_vector_constant): Add VSX support.
1013         (altivec_indexed_or_indirect_operand): New predicate for
1014         recognizing Altivec style memory references with AND -16.
1015
1016         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
1017         for vector secondary reload support.
1018         (rs6000_vector_reg_class): Delete, replacing it with
1019         rs6000_constraints.
1020         (rs6000_vsx_reg_class): Ditto.
1021         (rs6000_constraints): New array to hold the register classes of
1022         each of the register constraints that can vary at runtime.
1023         (builtin_mode_to_type): New static array for builtin function type
1024         creation.
1025         (builtin_hash_table): New static hash table for builtin function
1026         type creation.
1027         (TARGET_SECONDARY_RELOAD): Define target hook.
1028         (TARGET_IRA_COVER_CLASSES): Ditto.
1029         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
1030         registers are 128 bits if VSX memory reference instructions are used.
1031         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
1032         unit is being used.
1033         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
1034         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
1035         Print several of the scheduling related parameters.
1036         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
1037         rs6000_constraints instead of rs6000_vector_reg_class.  Move
1038         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
1039         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
1040         Altivec.  Add VSX support.  Setup for secondary reload support on
1041         Altivec/VSX registers.
1042         (rs6000_override_options): Make power7 set the scheduling groups
1043         like the power5.  Add support for new debug switches to override
1044         the scheduling defaults.  Temporarily disable -mcpu=power7 from
1045         setting -mvsx.  Add support for debug switches -malways-hint,
1046         -msched-groups, and -malign-branch-targets.
1047         (rs6000_buitlin_conversion): Add support for returning unsigned
1048         vector conversion functions to fix regressions due to stricter
1049         type checking.
1050         (rs6000_builtin_mul_widen_even): Ditto.
1051         (rs6000_builtin_mul_widen_odd): Ditto.
1052         (rs6000_builtin_vec_perm): Ditto.
1053         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
1054         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
1055         to zero a register.
1056         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
1057         generated upstream.
1058         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
1059         VSX types for bit operations.  Changes to accomidate vector.md.
1060         (bdesc_2arg): Ditto.
1061         (bdesc_1arg): Ditto.
1062         (struct builtin_description_predicates): Rewrite predicate
1063         handling so that RTL describes the operation, instead of passing
1064         the instruction to be used as a string argument.
1065         (bdesc_altivec_preds): Ditto.
1066         (altivec_expand_predicate_builtin): Ditto.
1067         (altivec_expand_builtin): Ditto.
1068         (rs6000_expand_ternop_builtin): Use a switch instead of an if
1069         statement for vsldoi support.
1070         (altivec_expand_ld_builtin): Change to use new names from vector.md.
1071         (altivec_expand_st_builtin): Ditto.
1072         (paired_expand_builtin): Whitespace changes.
1073         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
1074         builtin_mode_to_type table for secondary reload.  Call
1075         builtin_function_type to build random builtin functions.
1076         (altivec_init_builtins): Change to use builtin_function_type to
1077         create builtin function types dynamically as we need them.
1078         (builtin_hash_function): New support for hashing the tree types
1079         for builtin function as we need it, rather than trying to build
1080         all of the trees that we need.  Add initial preliminary VSX support.
1081         (builtin_function_type): Ditto.
1082         (builtin_function_eq): Ditto.
1083         (builtin_hash_struct): Ditto.
1084         (rs6000_init_builtins): Ditto.
1085         (rs6000_common_init_builtins): Ditto.
1086         (altivec_init_builtins): Ditto.
1087         (rs6000_common_init_builtins): Ditto.
1088         (enum reload_reg_type): New enum for simplifing reg classes.
1089         (rs6000_reload_register_type): Simplify register classes into GPR,
1090         Vector, and other registers.  Altivec and VSX addresses in reload.
1091         (rs6000_secondary_reload_inner): Ditto.
1092         (rs6000_ira_cover_classes): New target hook, that returns the
1093         appropriate cover classes, based on -mvsx being used or not.
1094         (rs6000_secondary_reload_class): Add VSX support.
1095         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
1096         (get_vsel_insn): Ditto.
1097         (rs6000_emit_vector_compare): Rewrite vector conditional support
1098         so that where we can, we use RTL operators, instead of blindly use
1099         UNSPEC.
1100         (rs6000_emit_vector_select): Ditto.
1101         (rs6000_emit_vector_cond_expr): Ditto.
1102         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
1103         (create_TOC_reference): Add -mdebug=addr support.
1104         (emit_frame_save): VSX loads/stores need register indexed addressing.
1105
1106         * config/rs6000/rs6000.md: Include vector.md.
1107
1108         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
1109
1110         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1111         support for V2DI, V2DF in logical, permute, select operations.
1112
1113         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
1114         switch for vsx/power7.
1115         (-mvsx-scalar-memory): Ditto.
1116         (-mvsx-align-128): Ditto.
1117         (-mallow-movmisalign): Ditto.
1118         (-mallow-df-permute): Ditto.
1119         (-msched-groups): Ditto.
1120         (-malways-hint): Ditto.
1121         (-malign-branch-targets): Ditto.
1122         
1123         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
1124         hook instead.
1125         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
1126         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
1127         (rs6000_vector_reg_class): Delete.
1128         (rs6000_vsx_reg_class): Ditto.
1129         (enum rs6000_reg_class_enum): New enum for the constraints that
1130         vary based on target switches.
1131         (rs6000_constraints): New array to hold the register class for all
1132         of the register constraints that vary based on the switches used.
1133         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
1134         (enum rs6000_builtins): Add unsigned varients for the builtin
1135         declarations returned by target hooks for expanding multiplies,
1136         select, and permute operations.  Add VSX builtins.
1137         (enum rs6000_builtin_type_index): Add entries for VSX.
1138         (V2DI_type_node): Ditto.
1139         (V2DF_type_node): Ditto.
1140         (unsigned_V2DI_type_node): Ditto.
1141         (bool_long_type_node): Ditto.
1142         (intDI_type_internal_node): Ditto.
1143         (uintDI_type_internal_node): Ditto.
1144         (double_type_internal_node): Ditto.
1145
1146         * config/rs6000/altivec.md (whole file): Move all expanders to
1147         vector.md from altivec.md.  Rename insn matching functions to be
1148         altivec_foo.
1149         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
1150         (altivec_vcmp*): Ditto.
1151         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
1152         (VM): New iterator for moves that includes the VSX types.
1153         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
1154         (altivec_vperm_<mode>_uns): New, for unsigned types.
1155         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
1156         (altivec_eq<mode>): Ditto.
1157         (altivec_gt<mode>): Ditto.
1158         (altivec_gtu<mode>): Ditto.
1159         (altivec_eqv4sf): Ditto.
1160         (altivec_gev4sf): Ditto.
1161         (altivec_gtv4sf): Ditto.
1162         (altivec_vcmpbfp_p): Ditto.
1163
1164 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
1165
1166         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to 
1167         unsigned HWI.
1168
1169 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
1170
1171         PR target/40832
1172         * config/i386/i386.c (output_387_ffreep): Rewrite to use
1173         ASM_SHORT instead of .word.
1174         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
1175         instead of .word in asm template.
1176
1177 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
1178
1179         PR target/37488
1180         * ira-lives.c (bb_has_abnormal_call_pred): New function.
1181         (process_bb_node_lives): Use it.
1182
1183         * ira.c (setup_cover_and_important_classes): Don't setup
1184         ira_important_class_nums.  Add cover classes to the end of
1185         important classes.
1186         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
1187         New.
1188         (find_reg_class_closure): Use reorder_important_classes.
1189
1190         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
1191
1192         * config/i386/i386.c (i386_ira_cover_classes): New function.
1193         (TARGET_IRA_COVER_CLASSES): Redefine.
1194
1195         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
1196         importance of order of cover classes in the array.
1197         
1198 2009-07-22  Diego Novillo  <dnovillo@google.com>
1199
1200         * tree-pass.h (TDF_EH): Define.
1201         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
1202         contains TDF_EH, print the EH region number holding GS.
1203         * tree-dump.c (dump_options): Add "eh".
1204         * doc/invoke.texi: Document it.
1205
1206 2009-07-22  Doug Kwan  <dougkwan@google.com>
1207
1208         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
1209
1210 2009-07-22  Michael Matz  <matz@suse.de>
1211
1212         PR tree-optimization/35229
1213         PR tree-optimization/39300
1214
1215         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
1216         (inhibit_phi_insertion): New function.
1217         (insert_into_preds_of_block): Call it for REFERENCEs.
1218         (init_pre): Initialize and finalize scalar evolutions.
1219         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
1220
1221 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
1222
1223         * config/i386/predicates.md (zero_extended_scalar_load_operand):
1224         Use CONST_VECTOR_NUNITS to determine number of elements.
1225
1226 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
1227
1228         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
1229         (U, W): Constraints are now deprecated and will be removed if we
1230         run out of letters.     
1231         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
1232         the file.
1233         ("prefetch"): Add the stcmh instruction for prefetching.
1234         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
1235         changes.
1236         (s390_short_displacement): Return always true if compiling for
1237         machines not providing the long displacement facility.
1238         (s390_mem_constraint): Support the new constraint letter Z.
1239         (s390_check_qrst_address): New function.
1240
1241 2009-07-21  DJ Delorie  <dj@redhat.com>
1242
1243         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
1244         alone too.
1245
1246 2009-07-21  Jason Merrill  <jason@redhat.com>
1247
1248         * c-common.c (max_tinst_depth): Increase default to 1024.
1249
1250 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1251
1252         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
1253         (vec_unpacku_float_lo_v4si): Ditto.
1254
1255 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
1256
1257         PR target/40811
1258         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
1259         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
1260         (builtin_description): Add __builtin_ia32_cvtudq2ps.
1261         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
1262
1263 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
1264
1265         PR tree-optimization/40813
1266         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
1267         it.
1268
1269 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1270
1271         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
1272         with a NOP_EXPR if needed.
1273
1274 2009-07-21  Paul Brook <paul@codesourcery.com>
1275
1276         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
1277         Terminate debug dump with newline.
1278
1279 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1280
1281         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
1282         Cast "1" to unsigned HOST_WIDE_INT.
1283         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
1284         deposit length to the maximum length - lsb.  Extend length if
1285         HOST_BITS_PER_WIDE_INT is 32.
1286
1287 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
1288
1289         * cgraph.h (constant_pool_htab): New function.
1290         (constant_descriptor_tree): Move from varasm.c.
1291         * varasm.c (constant_pool_htab): New function.
1292         (constant_descriptor_tree): Move to cgraph.h.
1293
1294 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
1295
1296         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
1297
1298 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
1299
1300         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
1301         $(VARRAY_H).
1302
1303 2009-07-20  Xinliang David Li  <davidxl@google.com>
1304
1305         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
1306
1307 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
1308
1309         * config/mips/mips.md (move_type): Add arith.
1310         (type): Handle arith.
1311         (zero_extendsidi2): Rename this into ...
1312         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
1313         (zero_extendsidi2): New expander.
1314         (*zero_extendsidi2_dext): New pattern.
1315
1316 2009-07-20  Nick Clifton  <nickc@redhat.com>
1317
1318         * config.gcc (mips64-*-*): Add definition of tm_defines in order
1319         to set MIPS_ABI_DEFAULT.
1320         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
1321
1322 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
1323
1324         * tree-object-size.c (addr_object_size): Handle unions with
1325         array in it as last field of structs in __bos (, 1) as __bos (, 0).
1326
1327         PR tree-optimization/40792
1328         * tree.c (build_function_type_skip_args): Remove bogus assert.
1329
1330 2009-07-20  Jan Hubicka  <jh@suse.cz>
1331             Martin Jambor  <mjambor@suse.cz>
1332
1333         * cgraph.h (combined_args_to_skip): New field.
1334         * cgraph.c (cgraph_create_virtual_clone): Properly handle
1335         combined_args_to_skip and args_to_skip.
1336         * tree-inline.c (update_clone_info): New function.
1337         (tree_function_versioning): Call update_clone_info.
1338         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
1339         functions.
1340         (cgraph_materialize_all_clones): More extensive dumping, working
1341         with combined_args_to_skip rather than args_to_skip.
1342
1343 2009-07-20  Ira Rosen  <irar@il.ibm.com>
1344
1345         * tree-vectorizer.h (vectorizable_condition): Add parameters.
1346         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
1347         (get_initial_def_for_reduction): Likewise.
1348         (vectorizable_reduction): Skip the check of first operand in case
1349         of COND_EXPR. Add check that it is outer loop vectorization if
1350         nested cycle was detected. Call vectorizable_condition() for 
1351         COND_EXPR. If reduction epilogue cannot be created do not fail for
1352         nested cycles (if it is not double reduction). Assert that there
1353         is only one type in the loop in case of COND_EXPR. Call
1354         vectorizable_condition() to vectorize COND_EXPR.
1355         * tree-vect-stmts.c (vectorizable_condition): Update comment.
1356         Add parameters. Allow nested cycles if called from 
1357         vectorizable_reduction(). Use reduction vector variable if provided.
1358         (vect_analyze_stmt): Call vectorizable_reduction() before
1359         vectorizable_condition().
1360         (vect_transform_stmt): Update call to vectorizable_condition().
1361
1362 2009-07-20  Christian Bruel  <christian.bruel@st.com>
1363         
1364         * config/sh/sh.opt (-mfmovd): Resurrect and document.
1365         * doc/invoke.texi (-mfmovd): Likewise.
1366         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
1367         
1368 2009-07-20  Jan Hubicka  <jh@suse.cz>
1369
1370         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
1371         when handling SSA name.
1372
1373 2009-07-19  Jan Hubicka  <jh@suse.cz>
1374
1375         PR tree-optimization/40676
1376         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
1377         virtual PHIs in empty BBs.
1378
1379 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1380
1381         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
1382         re-expanded the compound use gen_lowpart instead to convert to the
1383         desired mode.
1384
1385 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1386
1387         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
1388         OUTER_CONST arguments.
1389         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
1390         the new wider mode will be masked off.
1391         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
1392
1393 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1394
1395         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
1396         high-order bits are zero.
1397
1398 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
1399
1400         * combine.c (simplify_shift_const_1): Split code to determine
1401         shift_mode into ...
1402         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
1403         new bits shifted in are identical to the old sign bit.
1404
1405 2009-07-18  Richard Guenther  <rguenther@suse.de>
1406
1407         PR c/40787
1408         * gimplify.c (gimplify_call_expr): Reject code using results from
1409         functions returning void.
1410
1411 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1412
1413         * doc/md.texi: Document the new PowerPC "es" constraint.
1414         Document that "m" can include automodified addresses on this target,
1415         and explain how %U must be used.  Extend the "Q" and "Z" documentation
1416         to suggest "es" as well as "m".
1417         * config/rs6000/constraints.md (es): New memory constraint.
1418         (Q, Z): Update strings to match new documentation.
1419
1420 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
1421
1422         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
1423         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
1424         * config/rs6000/predicates.md (volatile_mem_operand): Use
1425         offsettable_nonstrict_memref_p.
1426         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
1427         (*floatunssidf2_internal): Likewise.
1428         (*fix_truncdfsi2_internal): Likewise.
1429         (*fix_trunctfsi2_internal): Likewise.
1430
1431 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
1432
1433         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
1434         atmega32u2 devices.
1435         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1436
1437 2009-07-17  Richard Guenther  <rguenther@suse.de>
1438
1439         PR c/40401
1440         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
1441         (pass_warn_unused_result): Likewise.
1442         (TODO_set_props): Remove.
1443         * omp-low.c (diagnose_omp_structured_block_errors): Change to
1444         run as a pass.
1445         (pass_diagnose_omp_blocks): Define.
1446         * c-decl.c (pop_file_scope): Do not finalize the CU here.
1447         (c_gimple_diagnostics_recursively): Remove.
1448         (finish_function): Do not call it.
1449         (c_write_global_declarations): Continue after errors.
1450         Finalize the CU here.
1451         * c-gimplify.c (c_genericize): Do not gimplify here.
1452         * c-common.c (c_warn_unused_result): Move ...
1453         * tree-cfg.c (do_warn_unused_result): ... here.
1454         (run_warn_unused_result): New function.
1455         (gate_warn_unused_result): New function.
1456         (pass_warn_unused_result): New pass.
1457         * c-common.h (c_warn_unused_result): Remove.
1458         * flags.h (flag_warn_unused_result): Declare.
1459         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
1460         * opts.c (flag_warn_unused_result): Initialize to false.
1461         * toplev.c (compile_file): Add comment.
1462         * omp-low.c (create_omp_child_function): Do not register
1463         the function with the frontend.
1464         (diagnose_omp_structured_block_errors): Prepare to be
1465         called as optimization pass.
1466         (gate_diagnose_omp_blocks): New function.
1467         (pass_diagnose_omp_blocks): New pass.
1468         * cgraph.h (cgraph_optimize): Remove.
1469         (cgraph_analyze_function): Likewise.
1470         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
1471         * cgraphunit.c (cgraph_lower_function): Lower nested functions
1472         before their parents here.
1473         (cgraph_finalize_function): Not here.
1474         (cgraph_analyze_function): Gimplify functions here.
1475         (cgraph_finalize_compilation_unit): Continue after errors.
1476         Optimize the callgraph from here.
1477         (cgraph_optimize): Make static.
1478         * langhooks.c (write_global_declarations): Finalize the CU.
1479         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
1480         (gimplify_function_tree): Assert we gimplify only once.
1481         Set PROP_gimple_any property.
1482         * tree-nested.c (gimplify_all_functions): New function.
1483         (lower_nested_functions): Gimplify all nested functions.
1484         * gimple.h (diagnose_omp_structured_block_errors): Remove.
1485         * passes.c (init_optimization_passes): Add pass_warn_unused_result
1486         and pass_diagnose_omp_blocks after gimplification.  Do not
1487         set TODO_set_props on all_lowering_passes.
1488         (execute_one_pass): Do not handle TODO_set_props.
1489         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
1490         (gimplify.o): Add tree-pass.h dependency.
1491         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
1492         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
1493         (unsave_r): Likewise.
1494         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
1495         temporary variable.
1496
1497 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
1498
1499         * doc/service.texi (Service): Restore previously removed link,
1500         which isn't broken after all.
1501
1502 2009-07-17  Richard Guenther  <rguenther@suse.de>
1503
1504         PR tree-optimization/40321
1505         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
1506         PHI nodes to the maximal set.
1507         (make_values_for_phi): Add PHI arguments to the maximal set.
1508         (execute_pre): Dump PHI_GEN and the maximal set.
1509
1510 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
1511
1512         PR c++/40780
1513         * gimplify.c (gimplify_conversion): Don't change non-conversions into
1514         VIEW_CONVERT_EXPR.
1515
1516 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1517
1518         * doc/extend.texi (Nested Functions): Replace broken link with
1519         textual reference.
1520         * doc/service.texi (Service): Remove broken link.
1521
1522 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1523
1524         PR bootstrap/40781
1525         * builtins.c (expand_builtin_memcmp): Use loc instead of
1526         EXPR_LOCATION (exp).
1527         (expand_builtin_strncmp): Likewise.
1528
1529 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
1530             Manuel López-Ibáñez  <manu@gcc.gnu.org>
1531
1532         PR 40435 
1533         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
1534         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
1535         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
1536         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
1537         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
1538         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
1539         tree-inline.c, c-common.c, c-common.h, gimple.c,
1540         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
1541         convert.c: Add location argument to fold_{unary,binary,ternary},
1542         fold_build[123], build_call_expr, build_size_arg,
1543         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
1544         fold_build1_initializer, fold_build2_initializer,
1545         fold_build3_initializer, fold_build_call_array,
1546         fold_build_call_array_initializer, fold_single_bit_test,
1547         omit_one_operand, omit_two_operands, invert_truthvalue,
1548         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
1549         combine_comparisons, fold_builtin_*, fold_call_expr,
1550         build_range_check, maybe_fold_offset_to_address, round_up,
1551         round_down.
1552
1553 2009-07-16  Jason Merrill  <jason@redhat.com>
1554
1555         PR libstdc++/37907
1556         * c-common.c (c_common_reswords): Add __is_standard_layout
1557         and __is_trivial.
1558         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
1559         * doc/implement-cxx.texi: New.
1560         * doc/gcc.texi: Include it.
1561
1562 2009-07-16  DJ Delorie  <dj@redhat.com>
1563
1564         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
1565         compares that may be indirectly affected by previous instructions.
1566
1567 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1568
1569         * builtins.c (do_mpc_arg2): New.
1570         (fold_builtin_2): Fold builtin cpow.
1571         * real.h (HAVE_mpc_pow): New.
1572
1573 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
1574
1575         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
1576         comparison to skip unprofitable schedule
1577
1578 2009-07-16  Simon Baldwin  <simonb@google.com>
1579
1580         * gcc.c (option_map): New flag -no-canonical-prefixes.
1581         * (display_help): Print help text for new flag.
1582         * (process_command): Move options translation and language specifics
1583         and handle new flag early.  Use it to set a function pointer to a
1584         prefix builder.  Replace make_relative_prefix calls with calls to
1585         the function pointed to.  Ignore new flag in regular options handling.
1586         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
1587
1588 2009-07-15  DJ Delorie  <dj@redhat.com>
1589
1590         * config/mep/mep.md (sibcall_internal): Change register to avoid
1591         argument registers.
1592         (sibcall_value_internal): Likewise.
1593
1594 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1595
1596         PR rtl-optimization/40710
1597         * resource.c (mark_target_live_regs): Reset DF problem to LR.
1598
1599 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
1600
1601         * config/mips/mips.md (*extenddi_truncate<mode>,
1602         *extendsi_truncate<mode>): Change type attribute to move_type
1603         with shift_shift.  Split out code handling exts from here ...
1604         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
1605         pattern.
1606         (*extendhi_truncateqi): Change type attribute to move_type with
1607         shift_shift.  Split out code handling exts from here ...
1608         (*extendhi_truncateqi_exts): ... to this new pattern.
1609
1610 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
1611
1612         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
1613         instead of "and" with inverted sign bit mask value.  Use
1614         "nonimmediate_operand" for operand 1 and operand 2 predicate.
1615         Allocate registers only for operand 4 and operand 5.
1616
1617 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
1618
1619         PR middle-end/40747
1620         * fold-const.c (fold_cond_expr_with_comparison): When folding
1621         < and <= to MIN, make sure the MIN uses the same type as the
1622         comparison's operands.
1623
1624 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
1625
1626         * arm.md (ior_xor): New code iterator.
1627         (split for ior/xor with shift and zero-extend): New split pattern.
1628         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
1629
1630 2009-07-15  Richard Guenther  <rguenther@suse.de>
1631
1632         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
1633         offset member.
1634
1635 2009-07-15  Richard Guenther  <rguenther@suse.de>
1636
1637         PR middle-end/40753
1638         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
1639
1640 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1641
1642         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
1643         handle 2.6.30 kernel.
1644
1645 2009-07-15  DJ Delorie  <dj@redhat.com>
1646
1647         * config/mep/mep.md (sibcall_internal): Change register to allow
1648         for 24-bit addresses.
1649         (sibcall_value_internal): Likewise.
1650
1651 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1652         
1653         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
1654         that are enabled/disabled by the flags introduced by a previous patch.
1655         
1656 2009-07-14  DJ Delorie  <dj@redhat.com>
1657
1658         * config/mep/mep.md (sibcall_internal): Include non-toggling
1659         non-jmp case.
1660         (sibcall_value_internal): Likewise.
1661
1662 2009-07-14  Taras Glek  <tglek@mozilla.com>
1663             Rafael Espindola  <espindola@google.com>
1664
1665         * doc/sourcebuild.texi: Document install-plugin target.
1666         * configure.ac: Added install-plugin target to language makefiles.
1667         * configure: Regenerate.
1668         * Makefile.in: (install-plugin): Install more headers,
1669         depend on lang.install-plugin.
1670
1671 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1672
1673         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
1674         translation.
1675         
1676 2009-07-14  DJ Delorie  <dj@redhat.com>
1677
1678         * config/mep/mep.c (mep_vliw_jmp_match): New function.
1679         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
1680         * config/mep/mep.md (sibcall_internal): Change test from
1681         mep_vliw_mode_match to mep_vliw_jmp_match.
1682         (sibcall_value_internal): Likewise.
1683
1684 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
1685
1686         * config/i386/sse.md (copysign<mode>3): New expander.
1687         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
1688         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
1689         Use ix86_build_const_vector.
1690         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
1691         IX86_BUILTIN_CPYSGNPD.
1692         (builtin_description): Add __builtin_ia32_copysignps and
1693         __builtin_ia32_copysignpd.
1694         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
1695         and BUILT_IN_COPYSIGNF.
1696
1697 2009-07-13  Jason Merrill  <jason@redhat.com>
1698
1699         * builtins.c (can_trust_pointer_alignment): New fn.
1700         (get_pointer_alignment): Factor it out from here.
1701         * tree.h: Declare it.
1702
1703 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
1704
1705         * config/rs6000/predicates.md (offsettable_mem_operand): Test
1706         RTX_AUTOINC class.
1707
1708 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
1709
1710         PR debug/40705
1711         PR c++/403057
1712         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
1713
1714 2009-07-14  Richard Guenther  <rguenther@suse.de>
1715             Andrey Belevantsev <abel@ispras.ru>
1716
1717         PR middle-end/40745
1718         * cfgexpand.c (partition_stack_vars): Do not bother to update
1719         alias information when not optimizing.
1720
1721 2009-07-14  Richard Guenther  <rguenther@suse.de>
1722             Andrey Belevantsev <abel@ispras.ru>
1723
1724         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
1725         (pt_solution_set): Likewise.
1726         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
1727         * tree-ssa-structalias.c (pt_solution_set): New function.
1728         * final.c (rest_of_clean_state): Free SSA data structures.
1729         * print-rtl.c (print_decl_name): Remove.
1730         (print_mem_expr): Implement in terms of print_generic_expr.
1731         * alias.c (ao_ref_from_mem): New function.
1732         (rtx_refs_may_alias_p): Likewise.
1733         (true_dependence): Query alias-export info.
1734         (canon_true_dependence): Likewise.
1735         (write_dependence_p): Likewise.
1736         * tree-dfa.c (get_ref_base_and_extent): For void types leave
1737         size unknown.
1738         * emit-rtl.c (component_ref_for_mem_expr): Remove.
1739         (mem_expr_equal_p): Use operand_equal_p.
1740         (set_mem_attributes_minus_bitpos): Do not use
1741         component_ref_for_mem_expr.
1742         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
1743         (update_alias_info_with_stack_vars): Likewise.
1744         (partition_stack_vars): Call update_alias_info_with_stack_vars.
1745         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
1746         explicitly nor clear stmt operands.
1747         Free the decl-to-pointer map.
1748         * tree-optimize.c (execute_free_datastructures): Do not free
1749         SSA data structures here.
1750         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
1751         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
1752         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
1753         dependencies.
1754         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
1755
1756 2009-07-13  DJ Delorie  <dj@redhat.com>
1757
1758         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
1759         unrolling at the right iteration count.
1760
1761         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
1762         calculations.
1763
1764 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
1765         
1766         * haifa-sched.c (rank_for_schedule): Introduced flags to
1767         enable/disable individual scheduling heuristics.
1768         * common.opt: Introduced flags to enable/disable individual
1769         heuristics in the scheduler.    
1770         * doc/invoke.texi: Introduced flags to enable/disable individual
1771         heuristics in the scheduler.
1772         
1773 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
1774
1775         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
1776         config/i386/mingw-tls.c.
1777         * config/i386/mingw-tls.c: Removed.
1778
1779 2009-07-13  Ira Rosen  <irar@il.ibm.com>
1780
1781         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the 
1782         checks access only relevant statements.
1783         (vectorizable_reduction): Likewise.
1784
1785 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
1786
1787         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
1788         just for 32-bit case.
1789
1790 2009-07-12  Jan Hubicka  <jh@suse.cz>
1791
1792         PR tree-optimization/40585
1793         * except.c (expand_resx_expr): When there already is resume
1794         instruction, produce linked list.
1795         (build_post_landing_pads): Assert that resume is empty.
1796         (connect_post_landing_pads): Handle resume lists.
1797         (dump_eh_tree): Dump resume list.
1798
1799 2009-07-12  Ira Rosen  <irar@il.ibm.com>
1800
1801         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
1802         with additional argument.
1803         * tree-vectorizer.h (enum vect_def_type): Add
1804         vect_double_reduction_def.
1805         (vect_is_simple_reduction): Add argument.
1806         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
1807         indentation.
1808         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
1809         vect_is_simple_reduction with additional argument.
1810         (vect_analyze_loop_operations): Handle exit phi nodes in case of
1811         double reduction.
1812         (reduction_code_for_scalar_code): Handle additional codes by
1813         returning ERROR_MARK for them. Fix comment and indentation.
1814         (vect_is_simple_reduction): Fix comment, add argument to specify
1815         double reduction. Detect double reduction.
1816         (get_initial_def_for_induction): Fix indentation.
1817         (get_initial_def_for_reduction): Fix comment and indentation.
1818         Handle double reduction. Create initial definitions that do not
1819         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
1820         (vect_create_epilog_for_reduction): Fix comment, add argument to
1821         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
1822         epilogue result extraction. Create double reduction phi node and
1823         replace relevant uses.
1824         (vectorizable_reduction): Call vect_is_simple_reduction with
1825         additional argument. Fix indentation. Update epilogue code treatment
1826         according to the changes in reduction_code_for_scalar_code. Check
1827         for double reduction. Call vect_create_epilog_for_reduction with
1828         additional argument.
1829         * tree-vect-stmts.c (process_use): Handle double reduction, update
1830         documentation.
1831         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
1832         (vect_get_vec_def_for_operand): Likewise.
1833
1834 2009-07-12  Danny Smith  <dansmister@gmail.com>
1835
1836         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
1837         dllexport if !TREE_PUBLIC.
1838         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
1839
1840 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
1841
1842         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
1843         (avr_extra_arch_macro) Remove declatation.
1844         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
1845         (avr_extra_arch_macro) Declare as static.
1846         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
1847
1848 2009-07-11  Jan Hubicka  <jh@suse.cz>
1849
1850         PR middle-end/48388
1851         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
1852
1853 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR debug/40713
1856         * dwarf2out.c (dw_fde_struct): Add in_std_section and
1857         cold_in_std_section bits.
1858         (dwarf2out_begin_prologue): Initialize them.
1859         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
1860         if already covered by text_section or cold_text_section range.
1861
1862         PR rtl-optimization/40667
1863         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
1864         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
1865         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
1866         * config/i386/i386.c (ix86_minimum_alignment): New function.
1867         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
1868         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
1869         * emit-rtl.c (gen_reg_rtx): Likewise.
1870         * function.c (assign_parms): Likewise.  If nominal_type needs
1871         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
1872         rather than passed_type's alignment.
1873
1874         PR target/40668
1875         * function.c (assign_parm_setup_stack): Adjust
1876         MEM_OFFSET (data->stack_parm) if promoted_mode is different
1877         from nominal_mode on big endian.
1878
1879 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
1880
1881         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
1882
1883 2009-07-10  DJ Delorie  <dj@redhat.com>
1884
1885         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
1886
1887 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
1888
1889         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
1890         attribute.
1891         (thumb2_cbnz): Likewise.
1892
1893 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
1894
1895         PR target/39079
1896         * config.gcc (supported_defaults): Add synci.
1897         (with_synci): Add validation.
1898         (all_defaults): Add synci.
1899         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
1900         ISA_HAS_SYNCI.
1901         (synci): Same.
1902         * config/mips/mips.opt (msynci): New option.
1903         * config/mips/mips.c (mips_override_options): Warn on use of
1904         -msynci for targets that do now support it.
1905         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
1906         msynci.
1907         * gcc/doc/invoke.texi (-msynci): Document the new option.
1908         * doc/install.texi (--with-synci): Document the new option.
1909
1910 2009-07-10  Richard Guenther  <rguenther@suse.de>
1911
1912         PR tree-optimization/40496
1913         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
1914         the PHI result with a compatible type.
1915
1916 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1917
1918         PR 25509
1919         PR 40614
1920         * c.opt (Wunused-result): New.
1921         * doc/invoke.texi: Document it.
1922         * c-common.c (c_warn_unused_result): Use it.
1923
1924 2009-07-09  DJ Delorie  <dj@redhat.com>
1925
1926         * targhooks.c (default_target_can_inline_p): Rename from
1927         default_target_option_can_inline_p.
1928         * targhooks.h (default_target_can_inline_p): Likewise.
1929         * target-def.h (TARGET_CAN_INLINE_P): Rename from
1930         TARGET_OPTION_CAN_INLINE_P.
1931         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
1932         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
1933         (mep_target_can_inline_p): Rename from
1934         mep_target_option_can_inline_p.
1935
1936         PR target/40626
1937         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
1938         registers used to pass vectors.
1939
1940         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
1941
1942 2009-07-09  Tom Tromey  <tromey@redhat.com>
1943
1944         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
1945         * config/mmix/mmix.c: Include dwarf2.h.
1946         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
1947         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
1948         * config/sh/sh.c: Include dwarf2.h.
1949         * config/i386/i386.c: Include dwarf2.h.
1950         * Makefile.in (DWARF2_H): Remove 'elf'.
1951         * except.c: Include dwarf2.h.
1952         * unwind-dw2.c: Include dwarf2.h.
1953         * dwarf2out.c: Include dwarf2.h.
1954         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
1955         * unwind-dw2-fde.c: Include dwarf2.h.
1956         * dwarf2asm.c: Include dwarf2.h.
1957
1958 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1959
1960         * haifa-sched.c (insn_finishes_cycle_p): New static function.
1961         (max_issue): Use it.
1962         * sched-int.h (struct sched_info: insn_finishes_block_p): New
1963         scheduler hook.
1964         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
1965         (region_sched_info): Update.
1966         * sched-ebb.c (ebb_sched_info): Update.
1967         * modulo-sched.c (sms_sched_info): Update.
1968         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
1969
1970 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1971
1972         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
1973
1974 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
1975
1976         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen. 
1977
1978 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
1979
1980         PR middle-end/40692
1981         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
1982         arg1 with arg01 if arg1 is already INTEGER_CST.
1983
1984 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1985
1986         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
1987         Transform (and (truncate)) into (truncate (and)).
1988
1989 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
1990
1991         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
1992         creating LHS paradoxical subregs.  Fix surrounding returns to
1993         use NULL_RTX rather than 0.
1994
1995 2009-07-08  DJ Delorie  <dj@redhat.com>
1996
1997         * config/mep/mep.c: (mep_option_can_inline_p): New.
1998         (TARGET_OPTION_CAN_INLINE_P): Define.
1999
2000 2009-07-08  Mark Wielaard  <mjw@redhat.com>
2001
2002         PR debug/40659
2003         * dwarf2out.c (add_data_member_location_attribute): When we have
2004         only a constant offset don't emit a new location description using
2005         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
2006         dwarf_version > 2.
2007
2008 2009-07-08  Richard Henderson  <rth@redhat.com>
2009
2010         PR target/38900
2011         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
2012         (enum reg_class): Add CLOBBERED_REGS.
2013         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2014         * config/i386/i386.c (ix86_conditional_register_usage): Moved
2015         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
2016         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
2017         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
2018         force 64-bit sibcalls into R11.
2019         * config/i386/constraints.md (U): New constraint.
2020         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
2021         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
2022         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
2023
2024 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
2025
2026         * basic-block.h (dump_regset, debug_regset): Remove duplicate
2027         prototypes.
2028         * c-objc-common.h (c_initialize_diagnostics): Ditto.
2029         * ebitmap.h (dump_ebitmap): Ditto.
2030         * optabs.h (optab_libfunc): Ditto.
2031         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
2032         * tree-flow.h (vect_can_force_dr_alignment_p,
2033         get_vectype_for_scalar_type): Ditto.
2034         (vectorize_loops): Move prototype to ...
2035         * tree-vectorizer.h: ... here. Also, adjust comment.
2036         (vect_set_verbosity_level): Remove duplicate prototype.
2037         * tree-ssa-loop.c: Include tree-vectorizer.h.
2038         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
2039
2040 2009-07-08  Nick Clifton  <nickc@redhat.com>
2041
2042         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
2043         forward slash.
2044
2045 2009-07-08  DJ Delorie  <dj@redhat.com>
2046
2047         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
2048         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
2049         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
2050         written to.
2051         * config/mep/intrinsics.md: Regenerated.
2052         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
2053         registers when asm() or calls are detected.
2054
2055 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2056
2057         PR c++/31246
2058         * gimplify.c (gimplify_expr): Propagate no_warning flag when
2059         gimplifying.
2060         * gimple (gimple_build_call_from_tree): Likewise.
2061         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
2062         no_warning flag before warning.
2063
2064 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2065
2066         * tree.c (set_expr_locus): Remove.
2067         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
2068         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
2069         EXPR_LOCATION.
2070         * gimplify.c (internal_get_tmp_var): Likewise.
2071         (gimplify_call_expr): Likewise.
2072         (gimplify_one_sizepos): Likewise.
2073
2074 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
2075
2076         PR debug/40666
2077         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
2078         to variables for debugging purposes.
2079
2080 2009-06-23  Mark Loeser  <mark@halcy0n.com>
2081
2082         PR build/40010
2083         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
2084
2085 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2086
2087         * pretty-print.c (pp_base_format): Remove %J.
2088         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2089         gcc_cxxdiag_char_table): Likewise.
2090         (init_dynamic_diag_info): Likewise.
2091
2092 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2093
2094         * pretty-print.c (pp_base_format): Remove %H.
2095         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2096         gcc_cxxdiag_char_table): Likewise.
2097         (init_dynamic_diag_info): Likewise.
2098         * config/mep/mep.c (mep_select_section): Likewise.
2099
2100 2009-07-07  Duncan Sands  <baldrick@free.fr>
2101
2102         * final.c (pass_clean_state): Give the pass a name.
2103         * passes.c (pass_rest_of_compilation): Likewise.
2104         * tree-optimize.c (pass_all_optimizations): Likewise.
2105
2106 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
2107
2108         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
2109         an extra 'decl' for error_at.
2110
2111 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
2112
2113         PR middle-end/40669
2114         * tree-tailcall.c (adjust_return_value_with_ops,
2115         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
2116         if it has complex or vector type.
2117
2118 2009-07-07  Olivier Hainque  <hainque@adacore.com>
2119
2120         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
2121         pthread symbols.
2122
2123 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
2124
2125         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
2126
2127 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2128
2129         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
2130         * c-decl.c: Likewise.
2131         * function.c: Likewise.
2132         * varasm.c: Likewise.
2133         * tree-ssa.c: Likewise.
2134         * c-common.c: Likewise.
2135         * tree-cfg.c: Likewise.
2136         * config/spu/spu.c: Likewise.
2137         * config/ia64/ia64.c: Likewise.
2138         * config/v850/v850.c: Likewise.
2139
2140 2009-07-06  DJ Delorie  <dj@redhat.com>
2141
2142         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
2143         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
2144         unspecified accesses to control registers.
2145         * config/mep/intrinsics.md: Regenerate.
2146         * config/mep/intrinsics.h: Regenerate.
2147         * config/mep/mep-intrin.h: Regenerate.
2148
2149 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2150
2151         * c-lex.c: Replace %H by an explicit location. Update all calls.
2152         * c-common.c: Likewise.
2153         * c-decl.c: Likewise.
2154         * c-typeck.c: Likewise.
2155         * fold-const.c: Likewise.
2156         * gimplify.c: Likewise.
2157         * stmt.c: Likewise.
2158         * tree-cfg.c: Likewise.
2159         * tree-ssa-loop-niter.c: Likewise.
2160         * tree-vrp.c: Likewise.
2161         * value-prof.c: Likewise.
2162
2163 2009-07-06  Diego Novillo  <dnovillo@google.com>
2164
2165         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
2166         if it has one.  Handle cases where VAR does not have an
2167         annotation or cfun is NULL.
2168
2169 2009-07-06  Diego Novillo  <dnovillo@google.com>
2170
2171         * tree.c: Include debug.h.
2172         (initialize_tree_contains_struct): New.
2173         (init_ttree): Call it.
2174         (tree_node_structure_for_code): Factor out of ...
2175         (tree_node_structure): ... here.
2176         * treestruct.def (TS_PHI_NODE): Remove.
2177         (TS_GIMPLE_STATEMENT): Remove.
2178
2179 2009-07-06  Diego Novillo  <dnovillo@google.com>
2180
2181         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
2182         (debug_tree_chain): Handle cycles.
2183
2184 2009-07-06  Nick Clifton  <nickc@redhat.com>
2185             DJ Delorie  <dj@redhat.com>
2186
2187         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2188         __FMOVD_ENABLED__ is defined.
2189         * config/sh/sh.h
2190         (TARGET_FMOVD): Provide a default definition.
2191         (MASK_FMOVD): Likewise.
2192         (TARGET_CPU_CPP_BUILTINS): Define
2193         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2194         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2195         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
2196         (split for DF load from memory into register): Also handle
2197         MEMs which consist of REG+DISP addressing.
2198         (split for DF store from register to memory): Likewise.
2199         (movsf_ie): Always use single fp_mode.
2200         * config/sh/sh.c (sh_override_options): Do not automatically
2201         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2202         that to the -mfmovd command line switch.
2203         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
2204         (fldi_ok): Always allow.
2205         * config/sh/sh.opt (mfmovd): Remove this switch.
2206         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2207
2208 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
2209             Kaz Kojima  <kkojima@gcc.gnu.org>
2210
2211         PR rtl-optimization/30807
2212         * postreload.c (reload_combine): For every new use of REG_SUM,
2213         record the use of BASE.
2214
2215 2009-07-06  Jan Hubicka  <jh@suse.cz>
2216
2217         * params.def: Revert my accidental commit at 2009-06-30.
2218
2219 2009-07-04  Ian Lance Taylor  <iant@google.com>
2220
2221         PR target/40636
2222         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
2223         EXPORTED_CONST.
2224         (mingw_format_attribute_overrides): Likewise.
2225
2226 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
2227
2228         PR debug/40596
2229         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
2230         don't check cfa.reg.  Instead of cfa.indirect use
2231         fde && fde->drap_reg != INVALID_REGNUM test.
2232
2233 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2234
2235         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
2236
2237 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
2238
2239         PR target/40587
2240         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
2241
2242 2009-07-03  Richard Guenther  <rguenther@suse.de>
2243
2244         PR tree-optimization/40640
2245         * tree-switch-conversion.c (build_arrays): Perform arithmetic
2246         in original type.
2247
2248 2009-07-03  Jan Hubicka  <jh@suse.cz>
2249
2250         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
2251         for size, reduce amount of inlining.
2252
2253 2009-07-03  Richard Guenther  <rguenther@suse.de>
2254
2255         PR middle-end/34163
2256         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
2257         if t +- x is known to not overflow and the conversion widens the
2258         operation.
2259         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
2260
2261 2009-07-03  Jan Hubicka  <jh@suse.cz>
2262
2263         * ipa-pure-const.c (analyze): Update loop optimizer init.
2264         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
2265         try_remove_empty_loop, remove_empty_loops): Remove.
2266         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
2267         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
2268         to mark regular loops as neccesary.
2269         (degenerate_phi_p): New function.
2270         (propagate_necessity, remove_dead_phis): Use it.
2271         (forward_edge_to_pdom): Likewise.
2272         (eliminate_unnecessary_stmts): Take care to remove uses of results of
2273         virtual PHI nodes that became unreachable.
2274         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
2275         * tree-flow.h (remove_empty_loops): Remove.
2276         * passes.c (init_optimization_passes): Remove.
2277
2278 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
2279
2280         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
2281         can_create_pseudo_p.
2282         (*fix_trunc<mode>_i387_1): Ditto.
2283         (*floathi<mode>2_1): Ditto.
2284         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
2285         (*fistdi2_1): Ditto.
2286         (*fist<mode>2_1): Ditto.
2287         (frndintxf2_floor): Ditto.
2288         (*fist<mode>2_floor_1): Ditto.
2289         (frndintxf2_ceil): Ditto.
2290         (*fist<mode>2_ceil_1): Ditto.
2291         (frndintxf2_trunc): Ditto.
2292         (frndintxf2_mask_pm): Ditto.
2293         (fxam<mode>2_i387_with_temp): Ditto.
2294         * config/i386/sse.md (mulv16qi3): Ditto.
2295         (*sse2_mulv4si3): Ditto.
2296         (mulv2di3): Ditto.
2297         (sse4_2_pcmpestr): Ditto.
2298         (sse4_2_pcmpistr): Ditto.
2299
2300 2009-07-03  Jan Hubicka  <jh@suse.cz>
2301
2302         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
2303         (mark_stmt_necessary): Set it.
2304         (mark_operand_necessary): Set it.
2305         (mark_control_dependent_edges_necessary): Set it.
2306         (mark_virtual_phi_result_for_renaming): New function.
2307         (get_live_post_dom): New function.
2308         (forward_edge_to_pdom): New function.
2309         (remove_dead_stmt): Fix handling of control dependences.
2310         (tree_dce_init): Init new bitmap.
2311         (tree_dce_done): Free it.
2312
2313 2009-07-02  Richard Guenther  <rguenther@suse.de>
2314
2315         PR bootstrap/40617
2316         * tree-ssa-structalias.c (new_var_info): Initialize
2317         is_restrict_var.
2318
2319 2009-07-02  Jan Hubicka  <jh@suse.cz>
2320
2321         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
2322         local.
2323
2324 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
2325
2326         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
2327         instead of recomputing it.  Adjust calls.
2328         (emit_store_flag): Adjust recursive calls.
2329
2330 2009-07-02  Richard Guenther  <rguenther@suse.de>
2331
2332         * tree-ssa-live.c (remove_unused_locals): Do not remove
2333         heap variables.
2334         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
2335         of DECL_EXTERNAL for HEAP variables.
2336         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
2337         HEAP variables.  Do not adjust RESTRICT vars.
2338         (find_what_var_points_to): Nobody cares if something
2339         points to READONLY.
2340
2341 2009-07-02  Ben Elliston  <bje@au.ibm.com>
2342
2343         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
2344         pc_low and pc_high declarations to the top of the function.
2345
2346 2009-07-01  DJ Delorie  <dj@redhat.com>
2347
2348         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
2349         registers as fixed.
2350         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
2351         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
2352         unspecified accesses to control registers.
2353         * config/mep/intrinsics.md: Regenerate.
2354         * config/mep/intrinsics.h: Regenerate.
2355         * config/mep/mep-intrin.h: Regenerate.
2356
2357 2009-07-01  Anthony Green  <green@moxielogic.com>
2358
2359         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
2360         instruction when possible.
2361         (moxie_expand_prologue): Ditto.  Also, save an instruction and
2362         some complexity by popping off of $r12 instead of $sp.
2363         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
2364         operands.
2365
2366 2009-07-01  Richard Henderson  <rth@redhat.com>
2367
2368         PR bootstrap/40347
2369         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
2370         contained no insns, reposition note before last insn.
2371
2372 2009-07-01  Richard Henderson  <rth@redhat.com>
2373
2374         PR debug/40431
2375         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
2376         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
2377
2378 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2379
2380         PR bootstrap/40558
2381         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
2382         darwin9 for printing reg addresses with %y.
2383
2384 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2385
2386         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
2387         truncation from operands in binary operations.
2388
2389 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
2390
2391         Revert:
2392         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
2393         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
2394         subreg of op0 to the original op0.
2395
2396         * expmed.c (store_bit_field_1): Use a temporary as the destination
2397         instead of a paradoxical subreg when we need to truncate the result.
2398
2399 2009-07-01  DJ Delorie  <dj@redhat.com>
2400
2401         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
2402         names to VLIW variants.
2403         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
2404         * config/mep/intrinsics.md: Regenerate.
2405         * config/mep/intrinsics.h: Regenerate.
2406         * config/mep/mep-intrin.h: Regenerate.
2407
2408 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
2409
2410         PR debug/40462
2411         * jump.c (returnjump_p): Revert last patch.
2412         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
2413
2414 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2415
2416         PR target/40575
2417         * pa.md (casesi32p): Use jump table label to determine the offset
2418         of the jump table.
2419         (casesi64p): Likewise.
2420
2421         * pa.c (forward_branch_p): Return bool type.  Use instruction
2422         addresses when available.  Assert that INSN has a jump label.
2423         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
2424         have a jump label.
2425
2426 2009-07-01  Richard Guenther  <rguenther@suse.de>
2427
2428         PR tree-optimization/19831
2429         * tree-ssa-dce.c (propagate_necessity): Calls to functions
2430         that only act as barriers do not make any previous stores necessary.
2431         * tree-ssa-structalias.c (handle_lhs_call): Delay making
2432         HEAP variables global, do not add a constraint from nonlocal.
2433         (find_func_aliases): Handle escapes through return statements.
2434         (compute_points_to_sets): Make escaped HEAP variables global.
2435
2436 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2437
2438         PR bootstrap/40597
2439         * expmed.c (emit_store_flag): Perform a conversion if necessary,
2440         after reducing a DImode cstore to SImode.
2441
2442 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
2443
2444         * expr.c (expand_expr_real_1): Reinstate fallthrough to
2445         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
2446
2447 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
2448
2449         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
2450         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
2451         to 0.
2452         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
2453         and umod_optab if TARGET_BSD_DIVMOD.
2454         * config/vax/lib1funcs.asm: New file.
2455         * config/vax/t-linux: New file.
2456         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
2457
2458 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
2459
2460         PR c++/40566
2461         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
2462         to type arguments that have void type.
2463
2464         PR debug/40573
2465         * dwarf2out.c (gen_formal_parameter_die): Call
2466         equate_decl_number_to_die if node is different from origin.
2467
2468 2009-06-30  Anthony Green  <green@moxielogic.com>
2469
2470         Clean up moxie port for --enable-build-with-cxx.
2471         * config/moxie/moxie.c (moxie_function_value): First two
2472         parameters are const_tree, not tree.
2473         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
2474         (REG_CLASS_NAMES): Ditto.
2475         (REGNO_REG_CLASS): Ditto.
2476         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
2477         (moxie_function_value): Fix constyness of arguments.
2478
2479 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2480
2481         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
2482         finalize_size_functions before further processing.
2483         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
2484         (variable_size): Call self_referential_size on size expressions
2485         that contain a PLACEHOLDER_EXPR.
2486         (size_functions): New static variable.
2487         (copy_self_referential_tree_r): New static function.
2488         (self_referential_size): Likewise.
2489         (finalize_size_functions): New global function.
2490         * tree.c: Include tree-inline.h.
2491         (push_without_duplicates): New static function.
2492         (find_placeholder_in_expr): New global function.
2493         (substitute_in_expr) <tcc_declaration>: Return the replacement object
2494         on equality.
2495         <tcc_expression>: Likewise.
2496         <tcc_vl_exp>: If the replacement object is a constant, try to inline
2497         the call in the expression.
2498         * tree.h (finalize_size_functions): Declare.
2499         (find_placeholder_in_expr): Likewise.
2500         (FIND_PLACEHOLDER_IN_EXPR): New macro.
2501         (substitute_placeholder_in_expr): Update comment.
2502         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
2503         is true.
2504         (copy_tree_body_r): Likewise.
2505         (copy_tree_body): New static function.
2506         (maybe_inline_call_in_expr): New global function.
2507         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
2508         (maybe_inline_call_in_expr): Declare.
2509         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
2510         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
2511         GIMPLE_H.
2512
2513 2009-06-30  Richard Guenther  <rguenther@suse.de>
2514
2515         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
2516         continue walking.
2517         (propagate_necessity): Do not mark reaching defs of stores
2518         as necessary.
2519
2520 2009-06-30  Jan Hubicka  <jh@suse.cz>
2521
2522         * cfgloopanal.c (check_irred): Move into ...
2523         (mark_irreducible_loops): ... here; return true if ireducible
2524         loops was found.
2525         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
2526         (analyze_function): Try to prove loop finiteness.
2527         * cfgloop.h (mark_irreducible_loops): Update prototype.
2528         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
2529
2530 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
2531
2532         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
2533
2534 2009-06-30  Ira Rosen  <irar@il.ibm.com>
2535
2536         PR tree-optimization/40542
2537         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile 
2538         types.
2539
2540 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2541
2542         PR tree-optimization/40582
2543         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
2544         than useless_type_conversion_p.
2545         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
2546         proper place.
2547
2548 2009-06-30  Martin Jambor  <mjambor@suse.cz>
2549
2550         PR middle-end/40554
2551         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2552
2553 2009-06-30  Richard Guenther  <rguenther@suse.de>
2554
2555         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
2556         use ao_ref references.
2557         (walk_aliased_vdefs): Likewise.
2558         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
2559         * tree-ssa-dce.c (struct ref_data): Remove.
2560         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
2561         (mark_aliased_reaching_defs_necessary): Adjust.
2562         (mark_all_reaching_defs_necessary_1): Likewise.
2563
2564 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
2565
2566         PR boostrap/40597
2567         * expmed.c (emit_cstore): New name of emit_store_flag_1.
2568         (emit_store_flag_1): Extract from emit_store_flag, adjust
2569         calls to (what now is) emit_cstore.
2570         (emit_store_flag): Call emit_store_flag_1 and also use it
2571         for what used to be recursive calls.
2572
2573 2009-06-30  Wei Guozhi  <carrot@google.com>
2574
2575         PR/40416
2576         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
2577         if the target bb post dominates from bb.
2578         * config/i386/i386.c (memory_address_length): Check existence of base
2579         register before using it.
2580
2581 2009-06-30  Nick Clifton  <nickc@redhat.com>
2582             DJ Delorie  <dj@redhat.com>
2583
2584         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
2585         __FMOVD_ENABLED__ is defined.
2586         * config/sh/sh.h
2587         (TARGET_FMOVD): Provide a default definition.
2588         (MASK_FMOVD): Likewise.
2589         (TARGET_CPU_CPP_BUILTINS): Define
2590         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
2591         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
2592         two fmov instructions depending upon whether TARGET_FMOVD is
2593         enabled.
2594         (split for DF load from memory into register): Also handle
2595         MEMs which consist of REG+DISP addressing.
2596         (split for DF store from register to memory): Likewise.
2597         * config/sh/sh.opt (mfmovd): Remove this switch.
2598         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
2599         * config/sh/sh.c (sh_override_options): Do not automatically
2600         enable TARGET_MOVD for the SH2A when supporting doubles - leave
2601         that to the -mfmovd command line switch.
2602
2603         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
2604         the SH4 and SH4A.
2605         (fldi_ok): Always allow.
2606         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
2607
2608 2009-06-29  DJ Delorie  <dj@redhat.com>
2609
2610         * doc/install.texi (mep-x-elf): Correct chip's full name.
2611
2612 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2613
2614         * doc/extend.texi: Fix typo.
2615
2616 2009-06-29  Tom Tromey  <tromey@redhat.com>
2617
2618         * dwarf2.h: Remove.
2619         * Makefile.in (DWARF2_H): New variable.
2620         (except.o): Use it.
2621         (dwarf2out.o): Likewise.
2622         (dwarf2asm.o): Likewise.
2623         * config/i386/t-i386: Use DWARF2_H.
2624         * except.c: Include elf/dwarf2.h.
2625         * unwind-dw2.c: Include elf/dwarf2.h.
2626         * dwarf2out.c: Include elf/dwarf2.h.
2627         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
2628         <dtprel>: New field.
2629         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
2630         (size_of_loc_descr): Likewise.
2631         (output_loc_operands_raw): Likewise.
2632         (output_loc_operands): Handle new dtprel field.
2633         (loc_checksum): Update.
2634         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
2635         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
2636         * unwind-dw2-fde.c: Include elf/dwarf2.h.
2637         * dwarf2asm.c: Include elf/dwarf2.h.
2638         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
2639         * config/mmix/mmix.c: Include elf/dwarf2.h.
2640         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
2641         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
2642         * config/sh/sh.c: Include elf/dwarf2.h.
2643         * config/i386/i386.c: Include elf/dwarf2.h.
2644
2645 2009-06-29  DJ Delorie  <dj@redhat.com>
2646
2647         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
2648
2649         * doc/extend.texi: Add MeP attributes and pragmas.
2650         * doc/invoke.text: Add MeP Options.
2651         * doc/contrib.texi: Add MeP contribution.
2652         * doc/md.texi: Add MeP constraints.
2653         * doc/install.texi: Add MeP target.
2654
2655 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
2656
2657         * target.h (struct gcc_target): Add frame_pointer_required field.
2658         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
2659         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
2660         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
2661         hook.
2662         * reload1.c (update_eliminables): (Ditto.).
2663         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
2664         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
2665         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
2666
2667         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
2668
2669         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
2670         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2671         (arm_frame_pointer_required): New function.
2672
2673         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
2674         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2675         (avr_frame_pointer_required_p): Declare as static.
2676         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
2677
2678         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
2679         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2680         (bfin_frame_pointer_required): Make as static, change return type
2681         to bool.
2682         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
2683
2684         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
2685         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2686         (cris_frame_pointer_required): New function.
2687         
2688         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
2689
2690         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
2691         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2692         (fr30_frame_pointer_required): New function.
2693         
2694         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
2695         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2696         (frv_frame_pointer_required): Make as static, change return type
2697         to bool.
2698         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
2699
2700         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
2701         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2702         (ix86_frame_pointer_required): Make as static, change return type to
2703         bool.
2704         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
2705
2706         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
2707         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2708
2709         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
2710
2711         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
2712         
2713         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
2714
2715         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
2716         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2717         (mips_frame_pointer_required): Make as static.
2718         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
2719         
2720         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
2721         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2722         (mmix_frame_pointer_required): Mew function.
2723
2724         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
2725         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2726
2727         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
2728
2729         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
2730
2731         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
2732
2733         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
2734         (CAN_ELIMINATE): Redefine.
2735         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
2736         (sparc_frame_pointer_required): New function.
2737         (sparc_can_eliminate): New function.
2738         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
2739
2740         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
2741         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2742
2743         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
2744         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
2745         (xtensa_frame_pointer_required): Make as static, change return type
2746         to bool.
2747         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
2748         Remove.
2749
2750 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
2751
2752         * doc/plugins.texi: Document PLUGIN_START_UNIT.
2753         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
2754         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
2755         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
2756         (register_callback): Handle PLUGIN_START_UNIT.
2757         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
2758
2759 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2760
2761         * tree.c (process_call_operands): Propagate TREE_READONLY from the
2762         operands.
2763         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
2764         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
2765
2766 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
2767
2768         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
2769         move cost.
2770
2771 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
2772
2773         * doc/extend.texi (Additional Floating Types): __float128 is also
2774         supported on i386 targets.
2775
2776 2009-06-29  Richard Guenther  <rguenther@suse.de>
2777
2778         PR middle-end/14187
2779         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
2780         flag.
2781         (pt_solutions_same_restrict_base): Declare.
2782         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
2783         flag.
2784         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
2785         (make_constraint_from, make_copy_constraint): Move earlier.
2786         (make_constraint_from_heapvar): New function.
2787         (make_constraint_from_restrict): Likewise.
2788         (handle_lhs_call): Use it.
2789         (find_func_aliases): Use it to track conversions to restrict
2790         qualified pointers.
2791         (struct fieldoff): Add only_restrict_pointers flag.
2792         (push_fields_onto_fieldstack): Initialize it.
2793         (create_variable_info_for): Track global restrict qualified pointers.
2794         (intra_create_variable_infos): Use make_constraint_from_heapvar.
2795         Track restrict qualified pointer arguments.
2796         (set_uids_in_ptset): Use varinfo is_global_var flag.
2797         (find_what_var_points_to): Set the vars_contains_restrict flag.
2798         Always create the points-to solution for sets including restrict tags.
2799         (pt_solutions_same_restrict_base): New function.
2800         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
2801         qualified pointers use pt_solutions_same_restrict_base as
2802         additional source for disambiguation.
2803
2804 2009-06-29  Richard Guenther  <rguenther@suse.de>
2805
2806         PR middle-end/38212
2807         * alias.c (find_base_decl): Remove.
2808         (get_deref_alias_set_1): Remove restrict handling.
2809         * c-common.c (c_apply_type_quals_to_decl): Do not set
2810         DECL_POINTER_ALIAS_SET.
2811         * gimplify.c (find_single_pointer_decl_1): Remove.
2812         (find_single_pointer_decl): Likewise.
2813         (internal_get_tmp_var): Remove restrict handling.
2814         (gimple_regimplify_operands): Likewise.
2815         * omp-low.c (expand_omp_atomic_pipeline): Do not set
2816         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
2817         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
2818         * tree.c (restrict_base_for_decl): Remove.
2819         (init_ttree): Do not allocate it.
2820         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
2821         LABEL_DECL_UID for label decls.
2822         (copy_node_stat): Do not copy restrict information.
2823         (decl_restrict_base_lookup): Remove.
2824         (decl_restrict_base_insert): Likewise.
2825         (print_restrict_base_statistics): Likewise.
2826         (dump_tree_statistics): Do not call print_restrict_base_statistics.
2827         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
2828         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
2829         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
2830         (LABEL_DECL_UID): Adjust.
2831         (DECL_BASED_ON_RESTRICT_P): Remove.
2832         (DECL_GET_RESTRICT_BASE): Likewise.
2833         (SET_DECL_RESTRICT_BASE): Likewise.
2834         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
2835
2836         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
2837         instead of DECL_POINTER_ALIAS_SET.
2838         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2839         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
2840         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
2841
2842 2009-06-29  Richard Guenther  <rguenther@suse.de>
2843
2844         PR tree-optimization/40579
2845         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
2846         the IL to simplify has constants that overflowed.
2847
2848 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
2849
2850         PR tree-optimization/40550
2851         * tree-vect-generic.c (expand_vector_operations_1): Compute in
2852         vector_compute_type only when the size of vector_compute_type is
2853         less than the size of type.
2854
2855 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
2856
2857         * fold-const.c (contains_label_1): Fix comments.
2858         (contains_label_p): Do not walk trees multiple time.
2859
2860 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2861
2862         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
2863         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
2864         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
2865         ix86_fp_comparison_operator.
2866         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
2867         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
2868         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
2869         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
2870         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
2871         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
2872         (related splits): Change predicate to ix86_fp_comparison_operator.
2873         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
2874         instead of ix86_fp_comparison_codes.
2875         (ix86_trivial_fp_comparison_operator,
2876         ix86_fp_comparison_operator): New.
2877         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
2878         (ix86_expand_compare): Eliminate last two parameters.
2879         (ix86_fp_jump_nontrivial_p): Kill.
2880         * config/i386/i386.c (put_condition_code): Eliminate call to
2881         ix86_fp_comparison_codes and subsequent assertion.
2882         (ix86_fp_comparison_codes): Eliminate.
2883         (ix86_fp_swap_condition): New.
2884         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
2885         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
2886         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
2887         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
2888         and ix86_fp_swap_condition.
2889         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
2890         Use ix86_fp_comparison_strategy.
2891         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
2892         (ix86_fp_jump_nontrivial_p): Eliminate.
2893         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
2894         call to ix86_expand_compare.
2895         (ix86_split_fp_branch, ix86_expand_setcc,
2896         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
2897         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
2898
2899 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2900
2901         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
2902         related to jump_clobbers.
2903         * config/arm/arm.md (conds): Remove jump_clob case.
2904         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
2905         splits): Change comparison_operator to arm_comparison_operator.
2906         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
2907         Eliminate.
2908
2909 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2910
2911         * dojump.c (do_compare_rtx_and_jump): Try swapping the
2912         condition for floating point modes.
2913         * expmed.c (emit_store_flag_1): Move here a bigger part
2914         of emit_store_flag.
2915         (emit_store_flag): Try swapping the condition for floating point
2916         modes.
2917         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
2918
2919 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2920
2921         * expr.c (expand_expr_real_1): Just use do_store_flag.
2922         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
2923         emit_store_flag_force.
2924         * expmed.c (emit_store_flag_force): Copy here trick
2925         previously in expand_expr_real_1.  Try reversing the comparison.
2926         (emit_store_flag_1): Work if target is NULL.
2927         (emit_store_flag): Work if target is NULL, using the result mode
2928         from the comparison.  Use split_comparison, restructure final part
2929         to simplify conditionals.
2930
2931 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
2932
2933         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
2934         * dojump.c (do_jump): Change handling of floating-point
2935         ops to use just do_compare_and_jump.
2936         (split_comparison): New.
2937         (do_compare_rtx_and_jump): Add here logic coming previously
2938         in do_jump, using split_comparison.
2939
2940 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
2941
2942         PR target/40489
2943         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
2944
2945 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2946
2947         * tree-ssa-alias.c: Fix unintentional commit.
2948
2949 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2950
2951         * passes.c (execute_one_pass): Fix unintentional commit.
2952
2953 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2954
2955         * df-problems.c (df_set_seen, df_unset_seen): Delete.
2956         (df_rd_local_compute, df_md_local_compute): Inline them.
2957
2958         (df_md_scratch): New.
2959         (df_md_alloc, df_md_free): Allocate/free it.
2960         (df_md_local_compute): Only include live registers in init.
2961         (df_md_transfer_function): Prune the in-set computed by
2962         the confluence function, and the gen-set too.
2963
2964 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2965
2966         PR rtl-optimization/26854
2967         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
2968         * df-problems.c (df_rd_add_problem): Fix comment.
2969         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
2970         df_md_simulate_artificial_defs_at_top,
2971         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
2972         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
2973         df_md_transfer_function, df_md_init, df_md_confluence_0,
2974         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
2975         problem_MD, df_md_add_problem): New.
2976         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
2977         df_md_get_bb_info): New.
2978         (DF_LAST_PROBLEM_PLUS1): Adjust.
2979
2980         * Makefile.in (fwprop.o): Include domwalk.h.
2981         * fwprop.c: Include domwalk.h.
2982         (reg_defs, reg_defs_stack): New.
2983         (bitmap_only_bit_between): Remove.
2984         (process_defs): New.
2985         (process_uses): Use reg_defs and local_md instead of
2986         bitmap_only_bit_between and local_rd.
2987         (single_def_use_enter_block): New, from build_single_def_use_links.
2988         (single_def_use_leave_block): New.
2989         (build_single_def_use_links): Remove code moved to
2990         single_def_use_enter_block, invoke domwalk.
2991         (use_killed_between): Adjust comment.
2992
2993 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2994
2995         * bitmap.h (bitmap_ior_and_into): New.
2996         * bitmap.c (bitmap_ior_and_into): New.
2997
2998 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2999
3000         * domwalk.h (struct dom_walk_data): Remove all callbacks except
3001         before_dom_children_before_stmts and after_dom_children_after_stmts.
3002         Rename the two remaining callbacks to just before_dom_children and 
3003         after_dom_children. Remove other GIMPLE statement walking bits.
3004         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
3005         * graphite.c: Do not include domwalk.h.
3006         * tree-into-ssa.c (interesting_blocks): New global.
3007         (struct mark_def_sites_global_data): Remove it and names_to_rename.
3008         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
3009         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
3010         now that they're not domwalk callbacks.
3011         (rewrite_initialize_block): Rename to...
3012         (rewrite_enter_block): ... this, place after called functions.  Test
3013         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
3014         (rewrite_finalize_block): Rename to...
3015         (rewrite_leave_block): ... this, place after called functions.
3016         (rewrite_update_init_block): Rename to...
3017         (rewrite_update_enter_block): ... this, place after called functions.
3018         Test interesting_blocks, call rewrite_update_stmt and 
3019         rewrite_update_phi_arguments.
3020         (rewrite_update_fini_block): Rename to...
3021         (rewrite_leave_block): ... this, place after called functions.
3022         (rewrite_blocks): Remove last argument, simplify initialization of
3023         walk_data.
3024         (mark_def_sites_initialize_block): Rename to...
3025         (mark_def_sites_block): ... this, call mark_def_sites.
3026         (mark_def_sites_blocks): Remove argument, simplify initialization of
3027         walk_data.
3028         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
3029         (update_ssa): Likewise.
3030         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
3031         callback.
3032         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
3033         (dom_opt_initialize_block): Rename to...
3034         (dom_opt_enter_block): ... this, place after called functions.  Walk
3035         statements here, inline propagate_to_outgoing_edges.
3036         (dom_opt_finalize_block): Rename to...
3037         (dom_opt_leave_block): ... this, place after called functions.
3038         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
3039         domwalk callback.
3040         (dse_enter_block, dse_record_phi): New.
3041         (dse_record_phis): Delete.
3042         (dse_finalize_block): Rename to...
3043         (dse_leave_block): ... this.
3044         (tree_ssa_dse): Simplify initialization of walk_data.
3045         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
3046         Adjust initialization of walk_data.
3047         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
3048         * tree-ssa-loop-phiopt.c (get_non_trapping):
3049         Adjust initialization of walk_data.
3050         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
3051         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
3052         it's not a domwalk callback.
3053         (uncprop_initialize_block): Rename to...
3054         (dse_enter_block): ... this, call uncprop_into_successor_phis.
3055         (dse_finalize_block): Rename to...
3056         (dse_leave_block): ... this.
3057         (tree_ssa_uncprop): Simplify initialization of walk_data.
3058         * Makefile.in: Adjust dependencies.
3059
3060 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
3061
3062         * arm.md (casesi): Fix test for Thumb1.
3063         (thumb1_casesi_internal_pic): Likewise.
3064         (thumb1_casesi_dispatch): Likewise.
3065
3066 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
3067
3068         * config/arm/arm-cores.def: Added core cortex-m0.
3069         * config/arm/arm-tune.md: Regenerated.
3070         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
3071
3072 2009-06-26  DJ Delorie  <dj@redhat.com>
3073
3074         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
3075
3076         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
3077         the scheduler doesn't tag jump insns.
3078
3079 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3080
3081         * c-decl.c (merge_decls): Re-indent.
3082
3083 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
3084
3085         PR c/39902
3086         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3087         Special-case decimal float constants.
3088
3089 2009-06-26  Richard Henderson  <rth@redhat.com>
3090
3091         * function.h (struct function): Add cannot_be_copied_reason,
3092         and cannot_be_copied_set.
3093         * tree-inline.c (has_label_address_in_static_1): Rename from
3094         inline_forbidden_p_2; don't set inline_forbidden_reason here.
3095         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
3096         don't set inline_forbidden_reason.
3097         (copy_forbidden): New function, split out of inline_forbidden_p.
3098         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
3099         (inline_forbidden_p): Use copy_forbidden.
3100         (tree_versionable_function_p): Likewise.
3101         (inlinable_function_p): Merge into tree_inlinable_function_p.
3102         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
3103         * ipa-cp.c (ipcp_versionable_function_p): New function.
3104         (ipcp_cloning_candidate_p): Use it.
3105         (ipcp_node_modifiable_p): Likewise.
3106
3107 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
3108
3109         * builtins.c (expand_builtin_alloca): Handle builtin alloca
3110         that is marked not to be inlined. Remove flag_mudflap use.
3111         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
3112         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
3113
3114 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
3115
3116         PR bootstrap/40338
3117         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
3118         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
3119
3120 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
3121
3122         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
3123         shared libgcc.
3124         (__mingwthr_remove_key_dtor): Likewise.
3125
3126 2009-06-26  Richard Guenther  <rguenther@suse.de>
3127
3128         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
3129
3130 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3131
3132         PR middle-end/40525
3133         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
3134         try the non-cond_exec path also.
3135
3136 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3137
3138         PR target/40468
3139         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
3140         (output_cbranch): Use new functions.
3141         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
3142         Likewise.
3143
3144 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3145             Pat Haugen  <pthaugen@us.ibm.com>
3146             Revital Eres <ERES@il.ibm.com>
3147
3148         * config/rs6000/rs6000.c (print_operand): Correct lossage message
3149         for %c error.  Add %x support to print VSX registers as a unified
3150         register set, instead of separate float and altivec registers.
3151         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
3152         %y case, and add support for VSX pre-modify addresses.
3153         (output_toc): Add assert for CONST containing an integer constant
3154         in the PLUS case.
3155         (rs6000_adjust_cost): Add POWER7 support.
3156         (insn_must_be_first_in_group): Ditto.
3157         (insn_must_be_last_in_group): Ditto.
3158         (rs6000_emit_popcount): Ditto.
3159         (rs6000_vector_mode_supported_p): Ditto.
3160
3161         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
3162         Change some of the functions called by macros to being called
3163         through a pointer, so debug functions can be inserted if
3164         -mdebug=addr or -mdebug=cost. 
3165         (rs6000_preferred_reload_class_ptr): Ditto.
3166         (rs6000_secondary_reload_class_ptr): Ditto.
3167         (rs6000_secondary_memory_needed_ptr): Ditto.
3168         (rs6000_cannot_change_mode_class_ptr): Ditto.
3169         (rs6000_secondary_reload_inner): Ditto.
3170         (rs6000_legitimize_reload_address): Ditto.
3171         (rs6000_legitimize_reload_address_ptr): Ditto.
3172         (rs6000_mode_dependent_address): Ditto.
3173         (rs6000_mode_dependent_address_ptr): Ditto.
3174
3175         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
3176         function to return true if the mode allows reg + integer
3177         addresses.
3178         (virtual_stack_registers_memory_p): New function to return true if
3179         the address refers to a virtual stack register.
3180         (rs6000_legitimate_offset_address_p): Move code to say whether a
3181         mode supports reg+int addressing to reg_offset_addressing_ok_p and
3182         call it.
3183         (rs6000_legitimate_address_p): Add checks for modes that only can
3184         do reg+reg addressing.  Start adding VSX support.
3185         (rs6000_legitimize_reload_address): Ditto.
3186         (rs6000_legitimize_address): Ditto.
3187         (rs6000_debug_legitimate_address_p): New debug functions for
3188         -mdebug=addr and -mdebug=cost.
3189         (rs6000_debug_rtx_costs): Ditto.
3190         (rs6000_debug_address_costs): Ditto.
3191         (rs6000_debug_adjust_cost): Ditto.
3192         (rs6000_debug_legitimize_address): Ditto.
3193         (rs6000_legitimize_reload_address_ptr): Point to call normal
3194         function or debug function.  Make functions called via pointer
3195         static.
3196         (rs6000_mode_dependent_address_ptr): Ditto.
3197         (rs6000_secondary_reload_class_ptr): Ditto.
3198         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
3199         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
3200         into a friendlier error.
3201         (rs6000_init_builtins): Add initial VSX support.
3202         (rs6000_adjust_cost): Fix some spacing issues.
3203
3204         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
3205         (REG_CLASS_NAMES): Ditto.
3206         (REG_CLASS_CONTENTS): Ditto.
3207         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
3208         pointer, to add -mdebug=addr support.
3209         (CANNOT_CHANGE_MODE_CLASS): Ditto.
3210         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
3211         -mdebug=addr support.
3212         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
3213         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
3214         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
3215
3216         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
3217         16-bit values.
3218         (bswapsi*): Set attribute types for load/store.  Add combiner
3219         patterns to eliminate zero extend on 64-bit.
3220         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
3221         stdbrx if the hardware supports those instructions.
3222
3223 2009-06-25  Ian Lance Taylor  <iant@google.com>
3224
3225         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
3226         (Link Options): Document -static-libstdc++.
3227
3228 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3229
3230         PR target/38731
3231         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
3232         DATA_ALIGNMENT instead.
3233
3234 2009-06-25  Richard Guenther  <rguenther@suse.de>
3235
3236         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
3237         indirect references against the callused/escaped solutions.
3238         (call_may_clobber_ref_p_1): Likewise.
3239
3240 2009-06-25  Martin Jambor  <mjambor@suse.cz>
3241
3242         PR tree-optimization/40493
3243         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
3244         (enum unscalarized_data_handling): New type.
3245         (handle_unscalarized_data_in_subtree): Return what has been done.
3246         (load_assign_lhs_subreplacements): Handle left flushes differently.
3247         (sra_modify_assign): Use unscalarized_data_handling, simplified
3248         condition determining whether to remove the statement.
3249
3250 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
3251
3252         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
3253         excerpt - @ should be doubled for texinfo.
3254
3255 2009-06-24  Ian Lance Taylor  <iant@google.com>
3256
3257         * config/arc/arc.c: Include "df.h".
3258         (arc_attribute_table): Make static.  Move higher in file.
3259         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
3260         (output_shift): Initialize n later to avoid warning.
3261         * config/arm/arm.c (arm_attribute_table): Make static.  Move
3262         higher in file.
3263         * config/avr/avr.c (avr_attribute_table): Make static.  Move
3264         higher in file.
3265         (reg_class_tab): Change array type from int to enum reg_class.
3266         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
3267         LABEL_REF.
3268         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
3269         (lshrhi3_out): Likewise.
3270         (class_likely_spilled_p): Change return type to bool.
3271         (avr_rtx_costs): Use local code variable with enum type.
3272         * config/avr/avr.md (movmemhi): Use add_reg_note.
3273         (andhi3, andsi3): Don't use AS2 with "and".
3274         (iorhi3, iorsi3): Don't use AS2 with "or".
3275         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
3276         * config/crx/crx.c: Include "df.h".
3277         (crx_attribute_table): Make static.
3278         * config/m32r/m32r.c: Include "df.h".
3279         (m32r_attribute_table): Make static.  Move higher in file.
3280         (pop): Use add_reg_note.
3281         (block_move_call): Change 0 to LCT_NORMAL in function call.
3282         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
3283         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
3284         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
3285         declare, not just when TREE_CODE is defined.
3286         * config/m68hc11/m68hc11.c: Include "expr.h".
3287         (m68hc11_attribute_table): Make static.  Move higher in file.
3288         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
3289         function call.
3290         (m68hc11_register_indirect_p): Likewise.
3291         (m68hc11_function_arg_padding): Change return type to enum
3292         direction.
3293         (emit_move_after_reload): Use add_reg_note.
3294         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
3295         (m68hc11_split_logical): Likewise.
3296         (m68hc11_rtx_costs): Add local code_and outer_code variables with
3297         enum type.
3298         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
3299         to VOIDmode in function call.
3300         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
3301         tree is defined.
3302         (m68hc11_split_logical): Update declaration.
3303         (m68hc11_function_arg_padding): Update declaration.
3304         * config/mcore/mcore.c (regno_reg_class): Change form array of int
3305         to array of enum reg_class.
3306         (mcore_attribute_table): Make static.  Move higher in file.
3307         (mcore_rtx_costs): Add cast to enum type.
3308         * config/mcore/mcore.h (regno_reg_class): Update declaration.
3309         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
3310         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
3311         in file.
3312         * config/sh/predicates.md (trapping_target_operand): Rename and to
3313         and_expr.
3314         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
3315         higher in file.
3316         * config/spu/spu.c (spu_attribute_table): Make static.  Move
3317         higher in file.
3318         * config/v850/v850.c (v850_attribute_table): Make static.  Move
3319         higher in file.
3320         (v850_rtx_costs): Use local code with enum type.
3321         (expand_epilogue): Add cast.
3322         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
3323
3324 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
3325
3326         PR target/40515
3327         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
3328         -m2a-single-only and -m2a-nofpu.
3329         * config/sh/sh.opt: Document m2a generates FPU code.  
3330
3331 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
3332
3333         * defaults.h (CAN_ELIMINATE): Provide default.
3334         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
3335         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
3336         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
3337         * config/spu/spu.h (CAN_ELIMINATE): Delete.
3338         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
3339         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
3340         * config/cris/cris.h (CAN_ELIMINATE): Delete.
3341         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
3342         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
3343         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
3344
3345 2009-06-24  DJ Delorie  <dj@redhat.com>
3346
3347         * mep-ext-cop.cpu: Fix copyright notice.
3348         * mep-default: Fix copyright notice.
3349         * mep-core: Fix copyright notice.
3350         * mep: Fix copyright notice.
3351         * mep-ivc2: Fix copyright notice.
3352         * mep-c5: Fix copyright notice.
3353
3354 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
3355
3356         * doc/contrib.texi (Contributors): 
3357
3358 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3359         
3360         PR middle-end/40501
3361         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
3362         src and dst operands if necessary.
3363
3364 2009-06-23  DJ Delorie  <dj@redhat.com>
3365
3366         Add MeP port.
3367         * config.gcc: Add mep support.
3368         * recog.c: Resurrect validate_replace_rtx_subexp().
3369         * recog.h: Likewise.
3370         * config/mep/: Add new port:
3371         * config/mep/constraints.md: New file.
3372         * config/mep/default.h: New file.
3373         * config/mep/intrinsics.h: New file.
3374         * config/mep/intrinsics.md: New file.
3375         * config/mep/ivc2-template.h: New file.
3376         * config/mep/mep-c5.cpu: New file.
3377         * config/mep/mep-core.cpu: New file.
3378         * config/mep/mep-default.cpu: New file.
3379         * config/mep/mep-ext-cop.cpu: New file.
3380         * config/mep/mep-intrin.h: New file.
3381         * config/mep/mep-ivc2.cpu: New file.
3382         * config/mep/mep-lib1.asm: New file.
3383         * config/mep/mep-lib2.c: New file.
3384         * config/mep/mep-pragma.c: New file.
3385         * config/mep/mep-protos.h: New file.
3386         * config/mep/mep-tramp.c: New file.
3387         * config/mep/mep.c: New file.
3388         * config/mep/mep.cpu: New file.
3389         * config/mep/mep.h: New file.
3390         * config/mep/mep.md: New file.
3391         * config/mep/mep.opt: New file.
3392         * config/mep/predicates.md: New file.
3393         * config/mep/t-mep: New file.
3394
3395 2009-06-23  Ian Lance Taylor  <iant@google.com>
3396
3397         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
3398         from loose_warn into c_loose_warn and from strict_warn into
3399         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
3400         --enable-build-with-cxx.  Set and substitute
3401         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
3402         * Makefile.in (CXXFLAGS): New variable.
3403         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
3404         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
3405         the default is the same as $(STRICT_WARN).
3406         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
3407         (CXX): New variable.
3408         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
3409         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
3410         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
3411         (HOST_LIBS): New variable.
3412         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
3413         (ALL_CXXFLAGS): New variable.
3414         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
3415         * doc/install.texi (Configuration): Document
3416         --enable-build-with-cxx, --with-stage1-ldflags,
3417         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
3418         * configure: Rebuild.
3419
3420 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3421
3422         * config/arm/arm.c (arm_override_options): Fix braces and formatting
3423         from previous commit.
3424
3425 2009-06-23  Ian Lance Taylor  <iant@google.com>
3426
3427         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
3428
3429 2009-06-23  Ian Lance Taylor  <iant@google.com>
3430
3431         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
3432         with ATTRIBUTE_UNUSED.
3433
3434 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3435             Pat Haugen  <pthaugen@us.ibm.com>
3436             Revital Eres  <eres@il.ibm.com>
3437
3438         * config.in (HAVE_AS_POPCNTD): Add default definition.
3439         (HAVE_AS_LWSYNC): Ditto.
3440
3441         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
3442         release number.
3443         (gcc_cv_as_powerpc_cmpb): Ditto.
3444         (gcc_cv_as_powerpc_dfp): Ditto.
3445         (gcc_cv_as_powerpc_vsx): Ditto.
3446         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
3447         supporting the popcntd/lwsync instructions.
3448         (gcc_cv_as_powerpc_lwsync): Ditto.
3449         * configure: Regenerate.
3450
3451         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
3452         -mcpu=native and -mcpu=power7.
3453         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
3454
3455         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
3456         a variable instead of a mask to reduce the number of mask bits.
3457         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
3458         (-mbit-word): Ditto.
3459         (-mregnames): Ditto.
3460         * config/rs6000/rs6000.opt (-mupdate): Ditto.
3461         (-mfused-madd): Ditto.
3462
3463         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
3464         2.06 instructions.
3465         (-mvsx): New switch for VSX instructions.
3466         (-misel): Move from a variable to a mask to allow it to be set by
3467         -mcpu=.
3468
3469         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
3470         function declaration to an array declaration.
3471         (rs6000_hard_regno_nregs): New external array declaration.
3472
3473         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
3474         files included by rs6000.md.
3475
3476         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3477         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
3478
3479         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
3480         a target mask.
3481         (rs6000_debug_reg): New -mdebug= variables.
3482         (rs6000_debug_addr): Ditto.
3483         (rs6000_debug_cost): Ditto.
3484         (rs6000_pmode): New variable to hold Pmode.
3485         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
3486         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
3487         calculated at compiler start.
3488         (rs6000_hard_regno_nregs): Change function to an array which holds
3489         HARD_REGNO_NREGS calculated at compiler start.
3490         (rs6000_explicit_options): Delete isel field.
3491         (rs6000_vector_unit): New array to hold which vector unit
3492         supports arithmetic options for a given type.
3493         (rs6000_vector_mem): New array to hold which vector unit supports
3494         memory reference operations for a given type.
3495         (rs6000_vector_align): New array to given the alignment of each
3496         vector type.
3497         (power7_cost): New basic costs for power7.
3498         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
3499         (rs6000_hard_regno_nregs_internal): New function, moved from
3500         HARD_REGNO_NREGS, to calculate the number of registers each hard
3501         register takes for each type.
3502         (rs6000_debug_reg_print): New function for -mdebug=reg support.
3503         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
3504         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
3505         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
3506         unit information here so it is calculated once at compiler startup
3507         time.
3508         (rs6000_override_options): Make -misel a target mask.  Add more
3509         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
3510         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
3511         -mdebug=cost.
3512         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
3513         (rs6000_handle_option): Move -misel from variable to target mask.
3514         (rs6000_builtin_mask_for_load): Add VSX support.
3515         (rs6000_conditional_register_usage): Ditto.
3516         (USE_ALTIVEC_FOR_ARG_P): Ditto.
3517         (function_arg_boundary): Ditto.
3518         (rs6000_expand_builtin): Ditto.
3519         (def_builtin): Make abort message a little friendlier.
3520         (rs6000_emit_int_cmove): Add support for 64-bit isel.
3521
3522         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
3523         assembler support the popcntd instruction instead of a vsx
3524         instruction to enable power7 support.
3525         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
3526         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
3527         option to the assembler if -mcpu=native.
3528         (ASM_CPU_NATIVE_SPEC): Ditto.
3529         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
3530         ISA 2.06 features.
3531         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
3532         the lwsync instruction.
3533         (enum processor_type): Add PROCESSOR_POWER7.
3534         (rs6000_debug_reg): New -mdebug= options.
3535         (rs6000_debug_addr): Ditto.
3536         (rs6000_debug_cost): Ditto.
3537         (rs6000_isel): Delete.
3538         (enum rs6000_vector): New enum to say what vector unit we have.
3539         (VECTOR_UNIT_*): New macros to say which vector unit has
3540         arithmetic operations for a given type.
3541         (VECTOR_MEM_*): New macros to say which vector unit has memory
3542         operations for a given type.
3543         (TARGET_LDBRX): Whether the machine supports the ldbrx
3544         instruction.
3545         (TARGET_ISEL): Delete, -misel moved to be a mask.
3546         (TARGET_ISEL64): New macro for 64-bit isel support.
3547         (UNITS_PER_VSX_WORD): New macro.
3548         (POINTER_SIZE): Move to be an external variable, rather than
3549         calculating whether we are generating 32 ot 64-bit code.
3550         (Pmode): Ditto.
3551         (STACK_BOUNDARY): Add VSX support.
3552         (LOCAL_ALIGNMENT): Ditto.
3553         (SLOW_UNALIGNED_ACCESS): Ditto.
3554         (VSX_REGNO_P): New macro for VSX support.
3555         (VFLOAT_REGNO_P): Ditto.
3556         (VINT_REGNO_P): Ditto.
3557         (VLOGICAL_REGNO_P): Ditto.
3558         (VSX_VECTOR_MODE): Ditto.
3559         (VSX_SCALAR_MODE): Ditto.
3560         (VSX_MODE): Ditto.
3561         (VSX_MOVE_MODE): Ditto.
3562         (VSX_REG_CLASS_P): Ditto.
3563         (HARD_REGNO_NREGS): Instead of calling a function, use an array
3564         lookup.
3565         (UNITS_PER_SIMD_WORD): Add VSX support.
3566         (MODES_TIEABLE_P): Ditto.
3567         (STARTING_FRAME_OFFSET): Ditto.
3568         (STACK_DYNAMIC_OFFSET): Ditto.
3569         (EPILOGUE_USES): Ditto.
3570         (REGNO_REG_CLASS): Move to array lookup.
3571         (CLASS_MAX_NREGS): Ditto.
3572         (rs6000_vector_reg_class): Add declaration.
3573         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
3574         overlap with the floating point and Altivec registers.
3575
3576         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
3577
3578         * config/rs6000/driver-rs6000.c (asm_names): New static array to
3579         give the appropriate asm switches if -mcpu=native.
3580         (host_detect_local_cpu): Add support for "asm".
3581         (host_detect_local_cpu): Follow GNU code guidelines for name.
3582
3583         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
3584         -mbit-word to a variable instead of being a target mask.
3585
3586         * config/rs6000/sync.md (lwsync): If the assembler supports it,
3587         emit the lwsync instruction instead of emitting the instruction as
3588         an integer constant.
3589
3590         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
3591         fixuns_trundfsi2, move expander into rs6000.md.
3592
3593         * config/rs6000/rs6000.md (cpu): Add power7.
3594         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
3595         (logical predicate patterns): Change the single instruction
3596         primitives that set CR0 to be fast_compare instead of compare.
3597         (norsi*): Ditto.
3598         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
3599         (popcntddi2): Ditto.
3600         (popcount<mode>): Ditto.
3601         (floating multiply/add insns): Name the floating point
3602         multiply/add insns.
3603         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
3604         (isel_unsigned_<mode>): Ditto.
3605         (fixuns_trundfsi2): Move expander here from spe.md.
3606         (smindi3): Define if we have -misel on 64-bit systems.
3607         (smaxdi3): Ditto.
3608         (umindi3): Ditto.
3609         (umaxdi3): Ditto.
3610
3611 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
3612
3613         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
3614         extra_objs.
3615         * config/avr/avr.c (avr_current_device): New variable.
3616         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
3617         (avr_arch, mcu_type_s): Move to avr.h.
3618         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
3619         default_data_section_start fields.
3620         (avr_arch): Moved from avr.c.
3621         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
3622         library_name fields.
3623         (avr_current_device, avr_mcu_types, avr_arch_types,
3624         avr_device_to_arch, avr_device_to_data_start,
3625         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
3626         (EXTRA_SPEC_FUNCTIONS): Define.
3627         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
3628         options mapping. Use device_to_arch and device_to_data_start insted.
3629         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
3630         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
3631         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
3632         * config/avr/driver-avr.c: New file.
3633         * config/avr/avr-devices.c: New file.
3634
3635 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
3636
3637         * var-tracking.c (unshare_variable): Force initialized to
3638         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
3639         (set_variable_part): Likewise.
3640         (struct variable_union_info): Remove pos_src field.
3641         (vui_vec, vui_allocated): New variables.
3642         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
3643         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
3644         == 1 use a simpler sorting algorithm.  Compute pos field right
3645         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
3646         Avoid quadratic comparison if !flag_var_tracking_uninit.
3647         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
3648         unshare_variable unconditionally.   
3649         (dataflow_set_different_2): Removed.
3650         (dataflow_set_different): Don't traverse second hash table.
3651         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
3652         unconditionally to var_reg_set or var_mem_set.
3653         (emit_notes_in_bb): Likewise.
3654         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
3655         unshare_variable.
3656         (emit_note_insn_var_location): Don't set initialized to
3657         VAR_INIT_STATUS_INITIALIZED early.
3658         (vt_finalize): Free vui_vec if needed, clear vui_vec and
3659         vui_allocated.
3660         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
3661
3662         * tree-object-size.c (addr_object_size): Instead of checking
3663         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
3664         are no FIELD_DECLs following it.
3665
3666 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
3667
3668         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
3669         order to match bswaps with signed source operands.
3670
3671 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3672
3673         * sdbout.c (sdbout_one_type): Fix braces in switch.
3674
3675 2009-06-23  Richard Guenther  <rguenther@suse.de>
3676
3677         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
3678         member.
3679         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
3680         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
3681         var_callused, callused_tree, var_storedanything, storedanything_tree,
3682         var_integer, integer_tree): Remove global variables.
3683         (new_var_info): Do not pass new id, append the new var to the
3684         global variable vector.
3685         (do_ds_constraint): Use is_global_var member of the variable-info.
3686         (new_scalar_tmp_constraint_exp): Adjust.
3687         (create_function_info_for): Likewise.
3688         (create_variable_info_for): Likewise.
3689         (find_what_var_points_to): Remove dead code.
3690         (init_base_vars): Simplify.
3691         (compute_points_to_sets): Adjust.
3692
3693 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3694
3695         * combine.c (try_combine): Dump information about the insns we're
3696         combining.
3697
3698 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
3699
3700         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
3701         check when calling force_to_mode on TRUNCATE's operand.
3702
3703 2009-06-22  Ian Lance Taylor  <iant@google.com>
3704
3705         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
3706
3707 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3708
3709         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
3710
3711 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3712
3713         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
3714         override library linkage flags such as -static-libgcc or
3715         -shared-libgcc.
3716
3717 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3718
3719         * config/m68k/m68k-devices.def: Add line for MCF5221x.
3720
3721 2009-06-22  Ian Lance Taylor  <iant@google.com>
3722
3723         * config/linux.opt: Put mglibc ahead of muclibc.
3724
3725         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
3726         for duplicate decls.
3727
3728 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3729
3730         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
3731
3732 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
3733
3734         PR objc/28050
3735         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
3736         instead of NULL if a parser error occurs.
3737
3738 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3739
3740         * dwarf2out.c (dwarf2_debug_hooks): Initialize
3741         non-DWARF2_DEBUGGING_INFO version.
3742
3743 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
3744
3745         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
3746         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
3747
3748         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
3749         (LIBGCC2_TF_CEXT): Define.
3750         (TF_SIZE): Define.
3751
3752 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3753
3754         PR target/40463
3755         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
3756
3757 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3758
3759         * config/arm/arm.c (arm_override_options): Disable
3760         -mcaller-super-interworking and -mcallee-super-interworking.
3761         * doc/invoke.texi (ARM Options): Document this.
3762
3763 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
3764
3765         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
3766         * config/arm/constraints.md (j): New constraint for movw operands.
3767         (N): Remove thumb2 meaning.
3768         * config/arm/arm.md (*arm_movw): Delete.
3769         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
3770         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
3771         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
3772
3773 2009-06-22  Martin Jambor  <mjambor@suse.cz>
3774
3775         PR tree-optimization/40492
3776         * tree-sra.c (sra_modify_assign): Pass zero offsets to
3777         build_ref_for_offset.
3778
3779 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
3780
3781         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
3782         JUMP_TABLE_DATA_P predicates where applicable.
3783         * auto-inc-dec.c: Ditto.
3784         * builtins.c: Ditto.
3785         * caller-save.c: Ditto.
3786         * calls.c: Ditto.
3787         * cfgcleanup.c: Ditto.
3788         * cfglayout.c: Ditto.
3789         * cfgrtl.c: Ditto.
3790         * combine.c: Ditto.
3791         * combine-stack-adj.c: Ditto.
3792         * cse.c: Ditto.
3793         * cselib.c: Ditto.
3794         * dbxout.c: Ditto.
3795         * df-scan.c: Ditto.
3796         * dse.c: Ditto.
3797         * dwarf2asm.c: Ditto.
3798         * dwarf2out.c: Ditto.
3799         * emit-rtl.c: Ditto.
3800         * except.c: Ditto.
3801         * explow.c: Ditto.
3802         * expmed.c: Ditto.
3803         * expr.c: Ditto.
3804         * final.c: Ditto.
3805         * function.c: Ditto.
3806         * fwprop.c: Ditto.
3807         * gcse.c: Ditto.
3808         * genpreds.c: Ditto.
3809         * genrecog.c: Ditto.
3810         * ifcvt.c: Ditto.
3811         * ira-costs.c: Ditto.
3812         * ira-lives.c: Ditto.
3813         * jump.c: Ditto.
3814         * loop-iv.c: Ditto.
3815         * lower-subreg.c: Ditto.
3816         * modulo-sched.c: Ditto.
3817         * optabs.c: Ditto.
3818         * postreload.c: Ditto.
3819         * print-rtl.c: Ditto.
3820         * recog.c: Ditto.
3821         * reginfo.c: Ditto.
3822         * regmove.c: Ditto.
3823         * reload1.c: Ditto.
3824         * reload.c: Ditto.
3825         * reorg.c: Ditto.
3826         * rtlanal.c: Ditto.
3827         * rtl.c: Ditto.
3828         * sched-vis.c: Ditto.
3829         * sdbout.c: Ditto.
3830         * sel-sched-ir.c: Ditto.
3831         * simplify-rtx.c: Ditto.
3832         * targhooks.c: Ditto.
3833         * var-tracking.c: Ditto.
3834         * vmsdbgout.c: Ditto.
3835
3836 2009-06-22  Matthias Klose  <doko@ubuntu.com>
3837
3838         * Makefile.in (install-plugin): Always use DESTDIR.
3839
3840 2009-06-22  Olivier Hainque  <hainque@adacore.com>
3841         
3842         * config/pa/pa.c (output_call): Don't optimize post call jumps
3843         into return address adjustments if the call may throw.
3844
3845 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
3846
3847         * arm.c (thumb1_output_casesi): New function.
3848         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
3849         optimizing for size or PIC.
3850         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
3851         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
3852         (casesi): Handle Thumb-1 when optimizing for size or PIC.
3853         (thumb1_casesi_internal_pic): New expand rule.
3854         (thumb1_casesi_dispatch): New pattern.
3855         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
3856         thumb-1 mode.
3857         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
3858         in the text seciton when PIC or optimizing for size.
3859         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
3860         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
3861         preservation properties of code.
3862         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
3863         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
3864         (__gnu_thumb1_case_si): New function.
3865         * t-arm (LIB1ASMSRC): Define here.
3866         (LIB1ASMFUNCS): Add some common functions.
3867         * t-arm-elf (LIB1ASMSRC): Delete.
3868         (LIB1ASMFUNCS): Append to existing set.
3869         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3870         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3871         * t-symbian (LIB1ASMFUNCS): Likewise.
3872         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3873         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3874
3875 2009-06-21  Richard Guenther  <rguenther@suse.de>
3876
3877         PR tree-optimization/38729
3878         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
3879         to loops with a single exit if -fno-expensive-optimizations.
3880
3881 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
3882
3883         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
3884         (dataflow_set): Change vars type from htab_t to shared_hash.
3885         (shared_hash_pool, empty_shared_hash): New variables.
3886         (vars_clear): Removed.
3887         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
3888         shared_hash_find_slot_unshare, shared_hash_find_slot,
3889         shared_hash_find_slot_noinsert, shared_hash_find): New
3890         static inlines.
3891         (shared_hash_unshare, shared_hash_destroy): New functions.
3892         (unshare_variable): Unshare set->vars if shared, use
3893         shared_hash_htab.
3894         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
3895         (get_init_value, find_src_set_src, dump_dataflow_set,
3896         clobber_variable_part, emit_notes_for_differences): Use
3897         shared_hash_htab.
3898         (dataflow_set_init): Remove second argument, set vars to
3899         empty_shared_hash instead of creating a new htab.
3900         (dataflow_set_clear): Call shared_hash_destroy and set vars
3901         to empty_shared_hash instead of calling vars_clear.
3902         (dataflow_set_copy): Don't call vars_copy, instead just share
3903         the src htab with dst.
3904         (variable_union): Use shared_hash_*, use initially NO_INSERT
3905         lookup if set->vars is shared.  Don't keep slot cleared before
3906         calling unshare_variable.  Unshare set->vars if needed.
3907         Even ->refcount == 1 vars must be unshared if set->vars is shared
3908         and var needs to be modified.
3909         (variable_canonicalize): New function.
3910         (dataflow_set_union): If dst->vars is empty, just share src->vars
3911         with dst->vars and traverse with variable_canonicalize to canonicalize
3912         and unshare what is needed.
3913         (dataflow_set_different): If old_set and new_set use the same shared
3914         htab, they aren't different.  If number of htab elements is different,
3915         htabs are different.  Use shared_hash_*.
3916         (dataflow_set_destroy): Call shared_hash_destroy instead of
3917         htab_delete.
3918         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
3919         second argument to dataflow_set_init.
3920         (vt_initialize): Likewise.  Initialize shared_hash_pool and
3921         empty_shared_hash, move bb in/out initialization afterwards.
3922         Use variable_htab_free instead of NULL as changed_variables del hook.
3923         (variable_was_changed): Change type of second argument to pointer to
3924         dataflow_set.  When inserting var into changed_variables, bump
3925         refcount.  Unshare set->vars if set is shared htab and slot needs to
3926         be cleared.
3927         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
3928         lookup if set->vars is shared.  Unshare set->vars if needed.
3929         Even ->refcount == 1 vars must be unshared if set->vars is shared
3930         and var needs to be modified.  Adjust variable_was_changed caller.
3931         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
3932         vars must be unshared if set->vars is shared and var needs to be
3933         modified.  Adjust variable_was_changed caller.
3934         (emit_note_insn_var_location): Don't pool_free var.
3935         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
3936         instead of 1.
3937         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
3938         free_alloc_pool on shared_hash_pool.
3939
3940 2009-06-20  Anthony Green  <green@moxielogic.com>
3941
3942         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
3943         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
3944
3945 2009-06-20  Richard Guenther  <rguenther@suse.de>
3946
3947         * tree-ssa-structalias.c (find_func_aliases): For memset use
3948         a constraint from NULL if we memset to zero.
3949         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
3950         we explicitly handle that do not read from memory.
3951         (call_may_clobber_ref_p_1): Properly handle builtins that may
3952         set errno.
3953
3954 2009-06-20  Richard Guenther  <rguenther@suse.de>
3955
3956         PR tree-optimization/40495
3957         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
3958         (new_scalar_tmp_constraint_exp): New function.
3959         (process_constraint): Do not create temporary decls.
3960         (process_all_all_constraints): Likewise.
3961         (handle_const_call): Likewise.
3962         (create_function_info_for): Do not set decl.
3963
3964 2009-06-19  Ian Lance Taylor  <iant@google.com>
3965
3966         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
3967         (rs6000_attribute_table): Make static; move before use.
3968
3969 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3970
3971         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
3972         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
3973         Propagate the TREE_READONLY flag without overwriting it.
3974         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
3975         Propagate the TREE_READONLY flag onto the result.
3976         (process_call_operands): Move around.  Use correct constant value.
3977
3978 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3979
3980         PR target/40482
3981         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
3982         * config/arm/arm.md: Likewise.
3983
3984 2009-06-19  Ian Lance Taylor  <iant@google.com>
3985
3986         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
3987         to GIMPLE_ERROR_MARK.
3988
3989         * c-typeck.c (build_conditional_expr): Add op1_original_type and
3990         op2_original_type parameters.  Warn about using different enum types.
3991         * c-parser.c (c_parser_conditional_expression): Pass original
3992         types to build_conditional_expr.
3993         * c-tree.h (build_conditional_expr): Update declaration.
3994
3995 2009-06-19  Ian Lance Taylor  <iant@google.com>
3996
3997         * config/i386/i386.c (ix86_function_specific_save): Test that
3998         fields match values, rather than testing the values are in a
3999         certain range.
4000
4001 2009-06-19  Richard Guenther  <rguenther@suse.de>
4002
4003         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4004         ADDR_EXPR pointers.
4005         (ptr_derefs_may_alias_p): Likewise.
4006         (ptr_deref_may_alias_ref_p_1): New function.
4007         (ptr_deref_may_alias_ref_p): Likewise.
4008         (ref_maybe_used_by_call_p_1): Handle builtins that are not
4009         covered by looking at the ESCAPED solution.
4010         (call_may_clobber_ref_p_1): Likewise.
4011         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
4012         Handle NULL_TREE offset.  Do not produce redundant constraints.
4013         (process_all_all_constraints): New helper function.
4014         (do_structure_copy): Use it.
4015         (handle_lhs_call): Likewise.
4016         (find_func_aliases): Handle some builtins with pointer arguments
4017         and/or return values explicitly.
4018
4019 2009-06-19  Ian Lance Taylor  <iant@google.com>
4020
4021         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
4022
4023 2009-06-19  Ian Lance Taylor  <iant@google.com>
4024
4025         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
4026
4027 2009-06-19  Ian Lance Taylor  <iant@google.com>
4028
4029         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
4030         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
4031         version.
4032
4033         * c-decl.c (finish_decl): If -Wc++-compat, warn about
4034         uninitialized const.
4035
4036 2009-06-19  Ian Lance Taylor  <iant@google.com>
4037
4038         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
4039         all uses.
4040
4041         * c-decl.c (in_struct, struct_types): Remove.
4042         (struct c_binding): Add in_struct field.
4043         (c_binding_ptr): Define type, along with VEC.
4044         (struct c_struct_parse_info): Define.
4045         (struct_parse_info): New static variable.
4046         (bind): Initialize in_struct field.
4047         (start_struct): Remove enclosing_in_struct and
4048         enclosing_struct_types parameters.  Add
4049         enclosing_struct_parse_info parameter.  Change all callers.  Set
4050         struct_parse_info rather than in_struct and struct_types.
4051         (grokfield): If -Wc++-compat and there is a symbol binding for the
4052         field name, set the in_struct flag and push it on the
4053         struct_parse_info->fields vector.
4054         (warn_cxx_compat_finish_struct): New static function.
4055         (finish_struct): Remove enclosing_in_struct and
4056         enclosing_struct_types parameters.  Add
4057         enclosing_struct_parse_info parameter.  Change all callers.  Don't
4058         set C_TYPE_DEFINED_IN_STRUCT here.  Call
4059         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
4060         parameter.  Only push on struct_types if warn_cxx_compat.
4061         (finish_enum): Only push on struct_types if warn_cxx_compat.
4062         (declspecs_add_type): Add loc parameter.  Change all callers.
4063         Change all error calls to error_at.  Pass loc, not input_location,
4064         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
4065         defined in a struct.  If -Wc++-compat and parsing a struct, record
4066         that a typedef name was used.
4067         * c-parser.c (c_parser_declspecs): Get location to pass to
4068         declspecs_add_type.
4069         (c_parser_struct_or_union_specifier): Update calls to start_struct
4070         and finish_struct.
4071         * c-tree.h (struct c_struct_parse_info): Declare.
4072         (finish_struct, start_struct): Update declarations.
4073         (declspecs_add_type): Update declaration.
4074
4075 2009-06-19  Ian Lance Taylor  <iant@google.com>
4076
4077         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
4078         variable with an anonymous type.
4079
4080 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4081
4082         * see.c: Remove for real.
4083
4084 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
4085
4086         * optabs.h (enum optab_index): Add new OTI_significand.
4087         (significand_optab): Define corresponding macro.
4088         * optabs.c (init_optabs): Initialize significand_optab.
4089         * genopinit.c (optabs): Implement significand_optab using
4090         significand?f2 patterns.
4091         * builtins.c (expand_builtin_mathfn): Handle
4092         BUILT_IN_SIGNIFICAND{,F,L}.
4093         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
4094         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4095
4096         * config/i386/i386.md (significandxf2, significand<mode>2): New
4097         expanders to implement significandf, significand and significandl
4098         built-ins as inline x87 intrinsics.
4099
4100 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
4101
4102         * config/avr/avr.c (avr_override_options): Remove setting value of
4103         PARAM_INLINE_CALL_COST.
4104
4105 2009-06-18  Richard Henderson  <rth@redhat.com>
4106
4107         PR 40488
4108         * tree-pass.h (TDF_ASMNAME): New.
4109         * tree-dump.c (dump_options): Add asmname.
4110         * doc/invoke.texi: Document it.
4111
4112         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
4113         (dump_decl_name): ...here.
4114         (dump_function_name): New flags arg; mind TDF_ASMNAME.
4115         (dump_generic_node): Update dump_function_name calls.
4116         (print_call_name): New flags arg; update all dump calls.
4117         * diagnostic.h (print_call_name): Update.
4118         * gimple-pretty-print.c (dump_gimple_call): Update.
4119
4120 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4121
4122         PR target/40470
4123         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
4124
4125 2009-06-18  Diego Novillo  <dnovillo@google.com>
4126
4127         * doc/plugins.texi: Document plugin_is_GPL_compatible.
4128         * plugin.c (str_license): Declare.
4129         (try_init_one_plugin): Assert that the symbol
4130         'plugin_is_GPL_compatible' exists.
4131
4132 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
4133
4134         * see.c: Remove.
4135         * Makefile.in (OBJS-common): Remove see.o.
4136         (see.o): Remove.
4137         * common.opt (fsee): Mark as preserved for backward compatibility.
4138         * opts.c (common_handle_option): Add OPT_fsee to the backward 
4139         compatibility section.
4140         * passes.c (init_optimization_passes, pass_see): Remove pass.
4141         * timevar.def (TV_SEE): Remove.
4142         * tree-pass.h (pass_see): Remove declaration.
4143         * doc/invoke.texi (-fsee): Remove documentation.
4144         
4145 2009-06-18  Martin Jambor  <mjambor@suse.cz>
4146
4147         * tree-sra.c: Include statistics.h
4148         (sra_stats): New variable.
4149         (sra_initialize): Clear sra_stats.
4150         (create_access_replacement): Increment sra_stats.replacements.
4151         (get_access_replacement): Do not return twice.
4152         (analyze_all_variable_accesses): Increment statistics counter by the
4153         number of scalarized aggregates.
4154         (generate_subtree_copies): Increment sra_stats.subtree_copies.
4155         (sra_modify_expr): Increment sra_stats.exprs.
4156         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
4157         (sra_modify_assign): Increment sra_stats.exprs,
4158         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
4159         (perform_intra_sra): Update statistics counters.
4160         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
4161
4162 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4163
4164         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
4165         (arm_scalar_mode_supported_p): New function.
4166
4167 2009-06-18  Paul Brook  <paul@codesourcery.com>
4168             Sandra Loosemore  <sandra@codesourcery.com>
4169
4170         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
4171         (__extendhfsf2, __truncsfhf2): Define.
4172         * config/arm/fp16.c: New file.
4173         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
4174         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
4175
4176 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
4177
4178         * doc/extend.texi (Half-Precision): New section.
4179         * doc/invoke.texi (Option Summary): List -mfp16-format.
4180         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
4181         * config/arm/arm.opt (mfp16-format=): New.
4182         * config/arm/arm.c: Include intl.h.
4183         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
4184         (TARGET_INVALID_RETURN_TYPE): Redefine.
4185         (TARGET_PROMOTED_TYPE): Redefine.
4186         (TARGET_CONVERT_TO_TYPE): Redefine.
4187         (arm_fp16_format): Define.
4188         (all_fpus): Add entry for neon-fp16.
4189         (fp_model_for_fpu): Likewise.
4190         (struct fp16_format): Declare.
4191         (all_fp16_formats): Define.
4192         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
4193         functions.
4194         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
4195         and no ldrh.
4196         (arm_legitimate_index_p): Treat HFmode like HImode.
4197         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
4198         (coproc_secondary_reload_class): Special-case HFmode.
4199         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
4200         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
4201         (arm_init_fp16_builtins): New.
4202         (arm_init_builtins): Call it.
4203         (arm_invalid_parameter_type): New.
4204         (arm_invalid_return_type): New.
4205         (arm_promoted_type): New.
4206         (arm_convert_to_type).
4207         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
4208         format.
4209         (arm_emit_fp16_const): New function.
4210         (arm_mangle_type): Mangle __fp16 as "Dh".
4211         * config/arm/arm.h (TARGET_VFPD32): Make it know about
4212         FPUTYPE_NEON_FP16.
4213         (TARGET_NEON_FP16): New.
4214         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
4215         (enum fputype): Add FPUTYPE_NEON_FP16.
4216         (enum arm_fp16_format_type): Declare.
4217         (arm_fp16_format): Declare.
4218         (LARGEST_EXPONENT_IS_NORMAL): Define.
4219         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
4220         * config/arm/arm-modes.def (HFmode): Define.
4221         * config/arm/vfp.md: (*movhf_vfp): New.
4222         (extendhfsf2): New.
4223         (truncsfhf2): New.
4224         * config/arm/arm.md: (fpu): Add neon_fp16.
4225         (floatsihf2, floatdihf2): New.
4226         (fix_trunchfsi2, fix_trunchfdi2): New.
4227         (truncdfhf2): New.
4228         (extendhfdf2): New.
4229         (movhf): New.
4230         (*arm32_movhf): New.
4231         (*thumb1_movhf): New.
4232         (consttable_2): Add check for HFmode constants.
4233         (consttable_4): Handle HFmode constants.
4234
4235 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
4236
4237         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
4238
4239 2009-06-17  Olivier Hainque  <hainque@adacore.com>
4240
4241         * collect2.c (main): Use CONST_CAST2 to perform char ** to
4242         const char ** conversion in AIX specific section.
4243         
4244 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
4245
4246         * config/i386/i386.c (ix86_special_builtin_type): Remove
4247         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
4248         (bdesc_special_args): Updated.
4249         (ix86_init_mmx_sse_builtins): Likewise.
4250         (ix86_expand_special_args_builtin): Likewise.
4251
4252 2009-06-17  Richard Henderson  <rth@redhat.com>
4253
4254         * tree-pretty-print.c (maybe_dump_asm_name): New.
4255         (dump_decl_name): Use it.
4256         (PRINT_FUNCTION_NAME): Merge into...
4257         (dump_function_name): ... here.  Use maybe_dump_asm_name.
4258
4259 2009-06-17  Cary Coutant  <ccoutant@google.com>
4260
4261         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
4262         Change caller.
4263         * debug.c (struct gcc_debug_hooks): Change placeholder for
4264         source_line hook.
4265         (debug_nothing_int_charstar_int): Replaced by...
4266         (debug_nothing_int_charstar_int_bool): ...this.
4267         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
4268         source_line prototype.
4269         (debug_nothing_int_charstar_int): Replaced by...
4270         (debug_nothing_int_charstar_int_bool): ...this.
4271         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
4272         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
4273         Output is_stmt operand when necessary.
4274         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
4275         (notice_source_line): Add is_stmt parameter.
4276         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
4277         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
4278         Change callers.
4279         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
4280         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
4281
4282 2009-06-17  Ian Lance Taylor  <iant@google.com>
4283
4284         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
4285         Change all uses.
4286         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
4287         call uses.
4288
4289 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
4290
4291         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
4292         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
4293         tree_strip_sign_nop_conversions and
4294         tree_ssa_strip_useless_type_conversions rather than stripping
4295         the operations here.
4296         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
4297         Declare them.
4298         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
4299         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
4300         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
4301         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
4302         functions.
4303
4304 2009-06-17  Michael Eager  <eager@eagercon.com>
4305
4306         * config/rs6000/constraints.md (register_constraint "d"): New.
4307         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
4308         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4309         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
4310         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
4311         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4312         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
4313         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
4314         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
4315         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
4316         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
4317         __fctiwz): Same.
4318         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
4319         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
4320         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
4321         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
4322         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
4323         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
4324         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
4325         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
4326         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
4327         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
4328         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
4329         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
4330         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
4331         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
4332
4333 2009-06-16  Ian Lance Taylor  <iant@google.com>
4334
4335         * profile.c (total_num_never_executed): Don't define.
4336         (compute_branch_probabilities): Don't count or print
4337         num_never_executed.
4338         (init_branch_prob): Don't set total_num_never_executed.
4339         (end_branch_prob): Don't print total_num_never_executed.
4340
4341 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
4342
4343         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
4344
4345 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
4346
4347         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
4348         (nabstd2_fpr): Same.
4349
4350 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
4351
4352         * expr.c (expand_assignment): Change complex type check.
4353
4354 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
4355
4356         * doc/plugins.texi (Building GCC plugins): Added new section. 
4357
4358 2009-06-17  Ian Lance Taylor  <iant@google.com>
4359
4360         * c-pch.c (get_ident): Don't set size of templ array.
4361         (pch_init): Don't set size of partial_pch array.
4362
4363         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
4364         string constant to intialize an array whose size is the length of
4365         the string.
4366
4367 2009-06-17  Richard Guenther  <rguenther@suse.de>
4368
4369         PR tree-optimization/40389
4370         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
4371         to addressable types.
4372         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
4373
4374 2009-06-17  Richard Guenther  <rguenther@suse.de>
4375
4376         PR middle-end/40460
4377         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
4378         if there is no evolution of left in the loop bail out.
4379         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
4380         chrec_fold_multiply.
4381
4382 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
4383             Janis Johnson  <janis187@us.ibm.com>
4384
4385         PR target/39254
4386         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
4387         for the symbol ref of a constant that is the source of a move
4388         - nor for any other not-obvious-label-ref constants.
4389
4390 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
4391
4392         * plugin.c (position_pass): Skip newly inserted pass during list
4393         traversal to avoid repeated insertion.
4394
4395 2009-06-16  Ian Lance Taylor  <iant@google.com>
4396
4397         * vec.h (VEC_stack_alloc): Define different version if
4398         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
4399         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
4400         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
4401         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
4402
4403 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4404
4405         * config.gcc (extra_headers): Add ia32intrin.h for x86.
4406
4407         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
4408         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
4409         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
4410         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
4411         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
4412         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4413         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4414         (bdesc_special_args): Add __builtin_ia32_rdtsc and
4415         __builtin_ia32_rdtscp.
4416         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
4417         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
4418         and __builtin_ia32_rorhi.
4419         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
4420         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
4421         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
4422         (ix86_expand_args_builtin): Likewise.
4423         (ix86_expand_special_args_builtin): Likewise.
4424
4425         * config/i386/i386.md (UNSPECV_RDTSCP): New.
4426         (UNSPECV_RDTSC): Likewise.
4427         (UNSPECV_RDPMC): Likewise.
4428         (*bsr): Renamed to ...
4429         (bsr): This
4430         (*bsr_rex64): Renamed to ...
4431         (bsr_rex64): This.
4432         (rdpmc): New.
4433         (*rdpmc): Likewise.
4434         (*rdpmc_rex64): Likewise.
4435         (rdtsc): Likewise.
4436         (*rdtsc): Likewise.
4437         (*rdtsc_rex64): Likewise.
4438         (rdtscp): Likewise.
4439         (*rdtscp): Likewise.
4440         (*rdtscp_rex64): Likewise.
4441
4442         * config/i386/ia32intrin.h: New.
4443
4444         * config/i386/x86intrin.h: Include <ia32intrin.h>.
4445
4446 2009-06-16  Ian Lance Taylor  <iant@google.com>
4447
4448         * ira-build.c (copy_info_to_removed_store_destinations):
4449         Initialize parent_a.
4450
4451 2009-06-16  Ian Lance Taylor  <iant@google.com>
4452
4453         * c-decl.c (grokdeclarator): Change size_varies to bool.
4454
4455 2009-06-16  Ian Lance Taylor  <iant@google.com>
4456
4457         * sel-sched.c: Make forward declarations of move_op_hooks and
4458         fur_hooks explicitly extern.
4459
4460 2009-06-16  Ian Lance Taylor  <iant@google.com>
4461
4462         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
4463         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
4464
4465 2009-06-16  Ian Lance Taylor  <iant@google.com>
4466
4467         * resource.c (mark_referenced_resources): Change
4468         include_delayed_effects parameter to bool.  Change all callers.
4469         (mark_end_of_function_resources): Likewise.
4470         * reorg.c (insn_references_resource_p): Likewise.
4471         (insn_sets_resource_p): Likewise.
4472         * resource.h (mark_referenced_resources): Update declaration.
4473         (mark_end_of_function_resources): Update declaration.
4474
4475 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4476
4477         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
4478
4479 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
4480
4481         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
4482         GCC can bootstrap on AIX with GNU Binutils 2.20.
4483
4484 2009-06-16  Ian Lance Taylor  <iant@google.com>
4485
4486         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
4487
4488 2009-06-16  Ian Lance Taylor  <iant@google.com>
4489
4490         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
4491         inline, not extern inline.
4492         (exact_log2): Likewise.
4493         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
4494         test CLZ_HWI.
4495         (exact_log2): Likewise, but don't test CTZ_HWI.
4496
4497 2009-06-16  Ian Lance Taylor  <iant@google.com>
4498
4499         * bitmap.c (bitmap_clear): Don't declare as inline.
4500         * gimple.c (gimplify_assign): Likewise.
4501         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4502         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
4503         (sched_scan_info): Remove duplicate definition.
4504
4505 2009-06-16  Ian Lance Taylor  <iant@google.com>
4506
4507         * c-common.c (skip_evaluation): Don't define.
4508         (c_inhibit_evaluation_warnings): Define global variable.
4509         (overflow_warning): Check c_inhibit_evaluation_warnings rather
4510         than skip_evaluation.
4511         (convert_and_check, warn_for_div_by_zero): Likewise.
4512         * c-common.h (skip_evaluation): Don't declare.
4513         (c_inhibit_evaluation_warnings): Declare.
4514         * c-parser.c (c_parser_typeof_specifier): Set
4515         c_inhibit_evaluation_warnings rather than skip_evaluation.
4516         (c_parser_conditional_expression): Likewise.
4517         (c_parser_binary_expression): Likewise.
4518         (c_parser_sizeof_expression): Likewise.
4519         (c_parser_alignof_expression): Likewise.
4520         * c-typeck.c (build_indirect_ref): Check
4521         c_inhibit_evaluation_warnings rather than skip_evaluation.
4522         (build_conditional_expr, build_binary_op): Likewise.
4523
4524 2009-06-16  Richard Guenther  <rguenther@suse.de>
4525
4526         * tree-ssa-alias.c (is_escape_site): Remove.
4527         * tree-ssa-alias.h (enum escape_type): Remove.
4528         (is_escape_site): Likewise.
4529         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
4530         via casts and asms without deferring to is_escape_site.
4531
4532 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
4533
4534         PR middle-end/40446
4535         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
4536         use gen_lowpart if op0 has complex mode.
4537
4538 2009-06-16  Richard Guenther  <rguenther@suse.de>
4539
4540         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
4541         variables add them to ESCAPED.
4542         (find_func_aliases): Do not make all indirectly stored values escaped.
4543
4544 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
4545
4546         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
4547         make_decl_one_only.
4548
4549 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4550
4551         PR tree-optimization/40432
4552         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
4553         check whether we need to force gimple register operand.
4554
4555 2009-06-16  Martin Jambor  <mjambor@suse.cz>
4556
4557         PR tree-optimization/40413
4558         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
4559         build_ref_for_offset.
4560         (propagate_subacesses_accross_link): Fix a typo in a comment.
4561
4562 2009-06-16  Ira Rosen  <irar@il.ibm.com>
4563
4564         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
4565         with additional parameter.
4566         * tree-vectorizer.h (enum vect_def_type): Add new value
4567         vect_nested_cycle.
4568         (enum vect_relevant): Add comments.
4569         (vect_is_simple_reduction): Add new argument.
4570         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
4571         Detect nested cycles.
4572         (vect_is_simple_reduction): Update documentation, add an argument to
4573         distinguish inner-loop reduction from nested cycle, detect nested
4574         cycles, fix printings and indentation, don't swap operands in case
4575         of nested cycle.
4576         (get_initial_def_for_reduction): Handle subtraction.
4577         (vect_create_epilog_for_reduction): Add new argument to specify
4578         reduction variable.
4579         (vect_finalize_reduction): Handle subtraction, fix comments.
4580         (vectorizable_reduction): Handle nested cycles. In case of nested
4581         cycle keep track of the reduction variable position. Call 
4582         vect_is_simple_reduction with additional parameter. Use original
4583         statement code in reduction epilogue for nested cycle. Call
4584         vect_create_epilog_for_reduction with additional parameter.
4585         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
4586         inner-loop vectorization.
4587         (vect_recog_widen_sum_pattern): Likewise.
4588         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
4589         and reductions.
4590         (vect_mark_stmts_to_be_vectorized): Likewise.
4591         (vect_get_vec_def_for_operand): Handle nested cycles.
4592
4593 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4594
4595         * doc/invoke.texi (Debugging Options): Fix option index entries
4596         for -fdump-statistics, -frandom-seed add entries for
4597         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
4598         (FRV Options): Fix entries for -mTLS, -mtls.
4599         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
4600         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
4601         (M68hc1x Options): Fix @itemx for -mnominmax.
4602         (MCore Options): Fix entry for -mno-lsim.
4603         (MMIX Options): Fix entry for -mabi=mmixware.
4604         (PDP-11 Options): Fix entry for -mbcopy-builtin.
4605
4606 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
4607
4608         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
4609         Mention the plugin mode of gengtype.
4610         * doc/gty.texi (Source Files Containing Type Information): Likewise.
4611         * gengtype.c: Updated copyright.
4612         (plugin_files, nb_plugin_files) Added new static variables.
4613         (measure_input_list) Care about plugin_files.
4614         (write_rtx_next): Added early return in plugin mode.
4615         (create_file): Updated copyright year in generated file. Added
4616         asserts.
4617         (oprintf): Added early return if NULL outf.
4618         (get_output_file_with_visibility): Care of plugin_files.
4619         (get_output_file_name): May return null.
4620         (write_local): Added early return.
4621         (put_mangled_filename): Ditto.
4622         (finish_root_table): Added check for base_files.
4623         (write_roots): Care about null when plugins.
4624         (main): Added plugin mode.
4625
4626 2009-06-15  Ian Lance Taylor  <iant@google.com>
4627
4628         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
4629         * gcov.c (read_count_file): Add braces around variables declared
4630         before label.
4631
4632         * c.opt (Wjump-misses-init): New warning.
4633         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
4634         -Wall and -Wc++-compat if not already set.
4635         (c_common_post_options): Clear warn_jump_misses_init if it was not
4636         set.
4637         * c-decl.c (struct c_binding): Change type field to a union with
4638         new label field.  Make it the first field in the struct.  Update
4639         references to type to use u.type instead.
4640         (struct c_spot_bindings): Define.
4641         (struct c_goto_bindings): Define.
4642         (c_goto_bindings_p): Define, along with VECs.
4643         (struct c_label_vars): Define.
4644         (struct c_scope): Add has_label_bindings field.
4645         (bind_label, set_spot_bindings): New static functions.
4646         (decl_jump_unsafe, update_spot_bindings): New static functions.
4647         (update_label_decls): New static function.
4648         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
4649         Update binding u.label field to shadowed field.
4650         (c_binding_start_stmt_expr): New function.
4651         (c_binding_end_stmt_expr): New function.
4652         (pushdecl): Don't call c_begin_vm_scope.
4653         (make_label): Add defining and p_label_vars parameters.  Change
4654         all callers.
4655         (lookup_label): Correct test for whether a label has not yet been
4656         defined.  Call bind_label rather than bind.
4657         (warn_about_goto): New static function.
4658         (lookup_label_for_goto): New function.
4659         (declare_label): Call bind_label rather than bind.
4660         (check_earlier_gotos): New static function.
4661         (define_label): Don't give errors about jumping into statement
4662         expressions or scopes of variably modified types.  Call
4663         set_spot_bindings and check_earlier_gotos.  Call bind_label
4664         instead of bind.  Don't set label_context_stack_se or
4665         label_context_stack_vm.
4666         (c_get_switch_bindings): New function.
4667         (c_release_switch_bindings): New function.
4668         (c_check_switch_jump_warnings): New function.
4669         (start_function): Don't set label_context_stack_se or
4670         label_context_stack_vm.
4671         (finish_function): Likewise.
4672         * c-typeck.c (label_context_stack_se): Don't define.
4673         (label_context_stack_vm): Don't define.
4674         (c_finish_goto_label): Call lookup_label_for_goto rather than
4675         lookup_label.  Don't give errors about jumping into a statement
4676         expression or the scope of a variably modified type.  Don't set
4677         label_context_stack_se or label_context_stack_vm.
4678         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
4679         fields.  Add bindings field.
4680         (c_start_case): Don't set deleted fields.  Set bindings field.
4681         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
4682         or blocked_vm.  Call c_check_switch_jump_warnings.
4683         (c_finish_case): Don't test blocked_stmt_expr field.  Call
4684         c_release_switch_bindings.
4685         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
4686         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4687         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
4688         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
4689         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
4690         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
4691         (c_begin_vm_scope, c_end_vm_scope): Don't define.
4692         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
4693         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
4694         (C_DECL_UNJUMPABLE_VM): Don't define.
4695         (C_DECL_UNDEFINABLE_VM): Don't define.
4696         (struct c_label_list): Don't define.
4697         (struct c_label_context_se): Don't define.
4698         (struct c_label_context_vm): Don't define.
4699         (struct c_spot_bindings): Declare.
4700         (c_bindings_start_stmt_expr): Declare.
4701         (c_bindings_end_stmt_expr): Declare.
4702         (lookup_label_for_goto): Declare.
4703         (c_get_switch_bindings, c_release_switch_bindings): Declare.
4704         (c_check_switch_jump_warnings): Declare.
4705         (label_context_stack_se, label_context_stack_vm): Don't declare.
4706         (c_finish_goto_label): Update declaration.
4707         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
4708         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
4709         (Warning Options): Document -Wjump-misses-init.
4710
4711 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
4712
4713         * tree-object-size.c (addr_object_size): Fix a pasto in the last
4714         change.
4715
4716 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4717
4718         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
4719
4720 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4721
4722         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
4723
4724 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
4725
4726         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
4727
4728 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
4729
4730         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
4731         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4732         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
4733         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
4734         * dwarf2asm.c (dw2_force_const_mem): Update call to
4735         make_decl_one_only.
4736         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
4737         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
4738         * langhooks.c (lhd_comdat_group): Remove.
4739         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
4740         * tree.h (DECL_COMDAT_GROUP): New.
4741         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
4742         (tree_decl_with_vis): Add comdat_group. Remove one_only.
4743         (make_decl_one_only): Change signature.
4744         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
4745         make_decl_one_only.
4746         (make_decl_one_only): Change signature.
4747         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
4748
4749 2009-06-15  Richard Guenther  <rguenther@suse.de>
4750
4751         PR middle-end/40439
4752         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
4753
4754 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4755
4756         * tree-ssa-math-opts.c: Remove extra divide.
4757
4758 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4759
4760         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
4761
4762 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4763
4764         * passes.c: Add bswap pass.
4765         * tree-pass.h: Add pass_optimize_bswap declaration.
4766         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
4767         Include rtl.h, expr.h and optabs.h for optab_handler check.
4768         (struct symbolic_number, pass_optimize_bswap): New definition.
4769         (do_shift_rotate, verify_symbolic_number_p): New functions.
4770         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
4771         (gate_optimize_bswap): New function.
4772         * tree.c (widest_int_cst_value): New function.
4773         * tree.h (widest_int_cst_value): Prototype added.
4774
4775 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
4776
4777         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
4778         REG_EQUAL/REG_EQUIV notes.
4779
4780 2009-06-14  Richard Guenther  <rguenther@suse.de>
4781
4782         PR middle-end/40389
4783         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
4784         has its address taken if NRV was applied and it is addressable.
4785         * tree-ssa-structalias.c (get_constraint_for_address_of): New
4786         function split out from ...
4787         (get_constraint_for_1): ... here.
4788         (handle_rhs_call): Use it to mark the return slot escaped if
4789         it is addressable and NRV was applied.
4790
4791 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4792
4793         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
4794         Change first argument type to location_t.
4795         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
4796         Do not set input_location.
4797         Use loc instead of input_location throughout.
4798
4799 2009-06-13  Richard Guenther  <rguenther@suse.de>
4800
4801         PR tree-optimization/40421
4802         * tree-predcom.c (should_unroll_loop_p): Remove.
4803         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
4804
4805 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4806
4807         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4808         Add location argument.
4809
4810 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4811
4812         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
4813         build_decl.
4814         * config/s390/s390.c (s390_build_builtin_va_list): Same.
4815         (s390_gimplify_va_arg): Pass location to create_artificial_label.
4816         * config/spu/spu-protos.h: Add location to
4817         spu_resolve_overloaded_builtin.
4818         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
4819         spu_build_builtin_va_list.
4820         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
4821         argument.  Pass location to build_function_call_vec.
4822         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
4823         build_decl.
4824         (emit_fpu_switch): Same.
4825         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
4826         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
4827         to build_decl and create_artificial_label.
4828         (xtensa_gimplify_va_arg_expr): Same.
4829         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
4830         (xstormy16_gimplify_va_arg_expr): Same.
4831         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
4832         * config/arm/arm.c (arm_build_builtin_va_list): Same.
4833         * config/mips/mips.c (mips_build_builtin_va_list): Same.
4834         (mips16_build_function_stub): Same.
4835         (mips16_build_call_stub): Same.
4836
4837 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
4838
4839         PR target/40327
4840         * arm/constraints.md (Pa, Pb): New constraints.
4841         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a 
4842         split pattern to deal with them.
4843
4844 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
4845
4846         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
4847         fix index entry for -Xpreprocessor.
4848
4849 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
4850
4851         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4852         Add location argument to build_decl call.
4853         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
4854         (rs6000_init_builtins): Same.
4855         (spe_init_builtins): Same.
4856         (rs6000_gimplify_va_arg): Add location argument to
4857         create_artificial_label call.
4858
4859 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
4860
4861         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
4862         * combine-stack-adj.c (pass_stack_adjustments): Use it.
4863         * Makefile.in: Fix GGC dependency for gcse.o.
4864
4865 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
4866
4867         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
4868         * gimple-pretty-print.c (dump_gimple_stmt): Same.
4869         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
4870         created.
4871         * c-parser.c (c_parser_binary_expression): Use current column while
4872         building binary operations.
4873         * common.opt (fshow-column): Enable by default.
4874         * tree-vrp.c (check_array_ref): Use warning_at.
4875         (check_array_bounds): Use location from call back if expr has no
4876         location.
4877         * tree.h: Add location argument to maybe_fold_*.
4878         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
4879         (maybe_fold_offset_to_array_ref): Add location argument and use it.
4880         (maybe_fold_offset_to_component_ref): Same.
4881         (maybe_fold_offset_to_reference): Same.
4882         (maybe_fold_offset_to_address): Same.
4883         (maybe_fold_stmt_indirect): Same.
4884         (maybe_fold_stmt_addition): Same.
4885         (fold_stmt_r): Pass location to maybe_fold_*.
4886         (fold_gimple_assign): Same.
4887         * c-tree.h: Add location argument to finish_decl,
4888         default_function_array_conversion, store_init_value.
4889         * c-decl.c (define_label): Use error_at.
4890         (c_make_fname_decl): Pass location to finish_decl.
4891         (finish_decl): New location argument.
4892         (build_compound_literal): Pass location to store_init_value.
4893         (grokdeclarator): Pass location to finish_decl.
4894         (grokfield): Same.
4895         * c-typeck.c (array_to_pointer_conversion): New location argument.
4896         (function_to_pointer_conversion): Same.
4897         (default_function_array_conversion): Same.
4898         (parser_build_unary_op): Pass location to overflow_warning.
4899         (parser_build_binary_op): Same.  Use warning_at.
4900         (build_unary_op): Pass location to array_to_pointer_conversion.
4901         (build_c_cast): Pass location to digest_init.
4902         (build_modify_expr): New location argument.
4903         (convert_for_assignment): Same.
4904         (store_init_value): Same.
4905         (digest_init): Same.
4906         (output_init_element): Pass location to digest_init and
4907         array_to_pointer_conversion.
4908         (c_finish_return): Pass location to convert_for_assignment.
4909         * gimplify.c (gimplify_conversion): Pass location to
4910         maybe_fold_offset_to_address.
4911         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
4912         to maybe_fold_stmt_addition.
4913         * c-omp.c (c_finish_omp_atomic): Pass new location to
4914         build_modify_expr.
4915         (c_finish_omp_for): Same.
4916         * c-common.c (overflow_warning): New argument.
4917         * c-common.h: New argument to build_modify_expr, overflow_warning.
4918         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
4919         finish_decl.
4920         (c_parser_initializer): Pass location to
4921         default_function_array_conversion.
4922         (c_parser_initelt): Same.
4923         (c_parser_initval): Same.
4924         (c_parser_asm_operands): Same.
4925         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
4926         (c_parser_conditional_expression): Same.
4927         (c_parser_binary_expression): Add location info to stack.  Use it.
4928         (c_parser_unary_expression): Pass location to
4929         default_function_array_conversion, parser_build_unary_op,
4930         build_indirect_ref, c_parser_postfix_expression_after_primary.
4931         (c_parser_postfix_expression_after_primary): New location argument.
4932         Use it.
4933         (c_parser_expression_conv): Pass location to
4934         default_function_array_conversion.
4935         (c_parser_expr_list): Same.
4936         (c_parser_omp_atomic): Same.
4937         (c_parser_omp_for_loop): Same.
4938         * c-tree.h: (struct c_declarator): Add comment to id_loc.
4939         (build_array_declarator): New argument.
4940         * c-decl.c (build_array_declarator): Add location argument.
4941         (grokdeclarator): Set id_loc for cdk_array.
4942         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
4943         build_array_declarator.
4944         * tree.c (build_omp_clause): Add location argument.
4945         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
4946         (OMP_CLAUSE_LOCATION): New macro.
4947         (struct tree_omp_clause): Add location field.
4948         (build_omp_clause): Add argument.
4949         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
4950         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
4951         build_omp_clause.
4952         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
4953         (cp_parser_omp_clause_collapse): Same.
4954         (cp_parser_omp_clause_default): Same.
4955         (cp_parser_omp_clause_if): Same.
4956         (cp_parser_omp_clause_nowait): Same.
4957         (cp_parser_omp_clause_num_threads): Same.
4958         (cp_parser_omp_clause_ordered): Same.
4959         (cp_parser_omp_clause_schedule): Same.
4960         (cp_parser_omp_clause_untied): Same.
4961         (cp_parser_omp_for_loop): Same.
4962         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
4963         * c-tree.h (c_start_case): Add location argument.
4964         (c_process_expr_stmt): Same.
4965         (c_finish_goto_*): Same.
4966         * tree-parloops.c (initialize_reductions): Pass location to
4967         build_omp_clause.
4968         (create_parallel_loop): Same.
4969         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
4970         (gfc_trans_omp_reduction_list): Same.
4971         (gfc_trans_omp_clauses): Same.
4972         (gfc_trans_omp_do): Same.
4973         * c-typeck.c (c_finish_goto_label): Same.
4974         (c_finish_goto_ptr): New location argument.
4975         (c_start_case): Same.
4976         (emit_side_effect_warnings): Same.
4977         (c_process_expr_stmt): Same.
4978         (c_finish_stmt_expr): Same.
4979         (c_finish_omp_clauses): Use error_at instead of error.
4980         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
4981         build_omp_clause.
4982         * c-omp.c (c_split_parallel_clauses): New location argument.
4983         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
4984         to build_omp_clause.
4985         (convert_local_reference_stmt): Same.
4986         (convert_gimple_call): Same.
4987         * c-common.h (c_split_parallel_clauses): New argument.
4988         * c-parser.c (c_parser_statement_after_labels): Pass location to
4989         c_finish_goto_label.
4990         (c_parser_switch_statement): Pass location to c_start_case.
4991         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
4992         and c_process_expr_stmt.
4993         (c_parser_omp_variable_list): Add location argument.
4994         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
4995         (c_parser_omp_clause_default): Same.
4996         (c_parser_omp_clause_if): Same.
4997         (c_parser_omp_clause_num_threads): Same.
4998         (-c_parser_omp_clause_ordered): Same.
4999         (c_parser_omp_clause_reduction): Pass location to
5000         c_parser_omp_variable_list.
5001         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
5002         (c_parser_omp_clause_untied): Same.
5003         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
5004         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
5005
5006         * c-tree.h (check_for_loop_decls, undeclared_variable,
5007         build_component_ref, build_array_ref, build_external_ref,
5008         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
5009         build_conditional_expr, build_compound_expr, c_cast_expr,
5010         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
5011         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
5012         argument.
5013         * c-semantics.c (build_stmt): Same.
5014         (build_case_label): Same.
5015         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
5016         (undeclared_variable): New argument.
5017         (make_label): Same.
5018         (lookup_label): Pass location on down.
5019         (define_label): Same.
5020         (finish_decl): Same.
5021         (build_compound_literal): Same.
5022         (finish_struct): Same.
5023         (finish_function): Do not set location here.
5024         (check_for_loop_decls): New argument.
5025         * tree.c (save_expr): Set location.
5026         (build_empty_stmt): New argument.
5027         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
5028         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
5029         * builtins.c (gimplify_va_arg_expr): Use locations.
5030         (expand_builtin_sync_operation): Same.
5031         * c-typeck.c (build_component_ref): New argument.
5032         (build_array_ref): Same.
5033         (build_external_ref): Same.
5034         (c_expr_sizeof_expr): Same.
5035         (c_expr_sizeof_type): Same.
5036         (parser_build_unary_op): Same.
5037         (build_conditional_expr): Same.
5038         (build_compound_expr): Pass location on down.
5039         (build_compound_expr): New argument.
5040         (build_c_cast): Same.
5041         (c_cast_expr): Same.
5042         (build_asm_expr): Same.
5043         (c_finish_return): Same.
5044         (c_process_expr_stmt): Pass location on down.
5045         (c_finish_stmt_expr): New argument.
5046         (push_clenaup): Same.
5047         (c_finish_omp_parallel): Same.
5048         (c_finish_omp_task): Same.
5049         * gimplify.c (gimplify_call_expr): Pass location on down.
5050         * c-omp.c (c_finish_omp_master): New argument.
5051         (c_finish_omp_critical): Same.
5052         (c_finish_omp_ordered): Same.
5053         (c_finish_omp_barrier): Same.
5054         (-c_finish_omp_taskwait): Same.
5055         (c_finish_omp_atomic): Same.
5056         (c_finish_omp_flush): Same.
5057         * tree-inline.c (copy_tree_body_r): Pass location on down.
5058         (inline_forbidden_p): Remove use of input_location.
5059         * c-gimplify.c (c_build_bind_expr): New argument.
5060         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
5061         (c_sizeof_or_alignof_type): New argument.
5062         (c_alignof_expr): Same.
5063         (build_va_arg): Same.
5064         (c_add_case_label): Same.
5065         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
5066         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
5067         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
5068         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
5069         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
5070         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
5071         New argument.
5072         * stub-objc.c (objc_build_selector_expr): Same.
5073         (objc_build_throw_stmt): Same.
5074         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
5075         (c_parser_initelt): Same.
5076         (c_parser_compound_statement): Same.
5077         (c_parser_compound_statement_nostart): Same.
5078         (c_parser_label): Same.
5079         (c_parser_statement_after_labels): Same.
5080         (c_parser_if_body): Same.
5081         (c_parser_else_body): Same.
5082         (c_parser_if_statement): Same.
5083         (c_parser_switch_statement): Same.
5084         (c_parser_while_statement): Same.
5085         (c_parser_do_statement): Same.
5086         (c_parser_for_statement): Same.
5087         (c_parser_asm_statement): Same.
5088         (c_parser_conditional_expression): Same.
5089         (c_parser_binary_expression): Same.
5090         (c_parser_cast_expression): Same.
5091         (c_parser_unary_expression): Same.
5092         (c_parser_sizeof_expression): Same.
5093         (c_parser_alignof_expression): Same.
5094         (c_parser_postfix_expression): Same.
5095         (c_parser_expression): Same.
5096         (c_parser_objc_receiver): Same.
5097         (c_parser_omp_variable_list): Same.
5098         (c_parser_omp_structured_block): Same.
5099         (c_parser_omp_atomic): New argument.
5100         (c_parser_omp_barrier): Same.
5101         (c_parser_omp_critical): Same.
5102         (c_parser_omp_flush): Pass location on down.
5103         (c_parser_omp_for_loop): New argument.
5104         (c_parser_omp_for): Same.
5105         (c_parser_omp_master): Same.
5106         (c_parser_omp_ordered): Same.
5107         (c_parser_omp_sections_scope): Same.
5108         (c_parser_omp_sections): Same.
5109         (c_parser_omp_parallel): Same.
5110         (c_parser_omp_single): Same.
5111         (c_parser_omp_task): Same.
5112         (c_parser_omp_taskwait): Pass location on down.
5113         (c_parser_omp_construct): Same.
5114         (c_parser_omp_threadprivate): Same.
5115         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
5116         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
5117         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
5118         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
5119         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
5120         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
5121         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
5122         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
5123         config/i386/i386.c, stmt.c:
5124         Add location argument to the following function definitions and/or
5125         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
5126         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
5127         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
5128         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
5129         do_case, c_finish_bc_stmt, build_compound_literal,
5130         build_function_call.
5131         * c-decl.c (build_compound_literal): Add location argument.
5132         Make all diagnostic calls use location.
5133         (start_struct): Same.
5134         (finish_struct): Same.
5135         (start_enum): Same.
5136         (build_enumerator): Same.
5137         (start_function): Same.
5138         (grokdeclarator): Make all diagnostic calls use location.
5139         (store_parm_decls_oldstyle): Same.
5140         * c-typeck.c (build_function_call): Add location argument.
5141         Make all diagnostic calls use location.
5142         (do_case): Same.
5143         (c_finish_bc_stmt): Same.
5144         * tree-nested.c (get_trampoline_type): Add argument.
5145         Pass location to build_decl.
5146         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
5147         * rtl.h (RTL_LOCATION): New.
5148         * c-common.c (c_add_case_label): Add location argument.
5149         Make all diagnostic calls use location.
5150         * c-common.h: Add location argument to make_fname_decl, do_case,
5151         c_add_case_label, build_function_call, resolve_overloaded_builtin.
5152         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
5153         Set it appropriately for every case.  Pass enum_loc to start_enum
5154         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
5155         parser_xref_tag.
5156         (c_parser_struct_or_union_specifier): Save location.  Use it for
5157         start_struct, finish_struct, and parser_xref_tag.
5158
5159 2009-06-12  Ian Lance Taylor  <iant@google.com>
5160
5161         * fold-const.c (fold_unary): Rename local variable and to and_expr.
5162
5163         * c-opts.c (c_common_handle_option): For -Wc++-compat set
5164         cpp_opts->warn_cxx_operator_names.
5165
5166 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5167
5168         PR tree-opt/38865
5169         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
5170         is returns NULL and OP is a VCE, look through the VCE.
5171
5172 2009-06-12  Ian Lance Taylor  <iant@google.com>
5173
5174         PR bootstrap/40430
5175         * collect2.c (main): Use CONST_CAST2 in code inside #if
5176         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
5177
5178 2009-06-12  Joey Ye  <joey.ye@intel.com>
5179
5180         PR middle-end/39146
5181         * cfgexpand.c (get_decl_align_unit): Update
5182         max_used_stack_slot_alignment with align instead of
5183         stack_alignment_needed.
5184
5185         * function.c (assign_stack_local_1): Update
5186         max_used_stack_slot_alignment with alignment_in_bits instead
5187         of stack_alignment_needed.
5188         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
5189         here.
5190
5191 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
5192
5193         * dwarf2out.c (last_var_location_insn): New variable.
5194         (dwarf2out_end_epilogue): Clear last_var_location_insn.
5195         (dwarf2out_var_location): Don't record anything after last real
5196         insn.  Only change labels if there were any real instructions
5197         in between last note and this one, or if changed sections.
5198
5199 2009-06-11  Richard Henderson  <rth@redhat.com>
5200
5201         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
5202         note when storing the frame pointer in a register.
5203         (FRP): Don't redefine to nothing for epilogue.
5204         (alpha_expand_epilogue): Mark register and sp restores.
5205         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
5206
5207         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
5208         when gen_lowpart is needed.
5209
5210 2009-06-11  Richard Henderson  <rth@redhat.com>
5211
5212         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
5213
5214         * dwarf2out.c (need_data_align_sf_opcode): New.
5215         (div_data_align): Move earlier.
5216         (def_cfa_1, reg_save): Use it.
5217
5218 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
5219
5220         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
5221         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
5222         (ix86_handle_option): Handle OPT_mcrc32.
5223         (ix86_target_string): Add -mcrc32.
5224         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
5225
5226         * config/i386/i386.h (TARGET_CRC32): New.
5227
5228         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
5229         (sse4_2_crc32di): Likewise.
5230
5231         * config/i386/i386.opt (mcrc32): New.
5232
5233         * doc/invoke.texi: Document -mcrc32.
5234
5235 2009-06-11  Richard Henderson  <rth@redhat.com>
5236
5237         * common.opt (gdwarf-): Accept a version number.
5238         * doc/invoke.texi (gdwarf-): Update docs.
5239         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
5240         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
5241         version level, and record it.
5242
5243         * dwarf2.h (DW_CIE_VERSION): Remove.
5244         * dwarf2out.c (DWARF_VERSION): Remove.
5245         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
5246         (output_call_frame_info): Use CIE version 3 for dwarf3,
5247         or if the return register column is out of range for version 1.
5248         (dwarf_stack_op_name): Add all dwarf3 values.
5249         (DEBUG_PUBTYPES_SECTION): New.
5250         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
5251         encoding change for dwarf3.
5252         (output_die) [dw_val_class_die_ref]: Likewise.
5253         (output_compilation_unit_header): Emit correct version for dwarf3.
5254         (output_line_info): Likewise.
5255         (output_pubnames): Update for DWARF_VERSION removal.
5256         (output_aranges): Likewise.
5257         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
5258         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
5259         (dwarf2out_finish): Likewise.
5260
5261 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5262
5263         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
5264         in r148403.
5265
5266 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
5267
5268         PR c/39252
5269         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
5270         * builtins.c (expand_builtin_unreachable): New function.
5271         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
5272         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
5273         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
5274         successors.
5275         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
5276         searching for missing barriers.
5277
5278 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5279
5280         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
5281         when -fprofile-generate* was passed.
5282         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
5283
5284 2009-06-11  Anthony Green  <green@moxielogic.com>
5285
5286         * config/moxie/moxie.md: Define length attribute for all instructions.
5287         (rCC): Define.
5288         (*b<cond:code>): Support limited branch ranges for new PC-relative
5289         branch instructions.
5290         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
5291
5292 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
5293
5294         * config/i386/i386.c (min_insn_size): Use get_attr_length
5295         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
5296         For __asm return 0.
5297
5298         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
5299         instead of emit_insn_before.
5300
5301 2009-06-10  Ian Lance Taylor  <iant@google.com>
5302
5303         PR bootstrap/40408
5304         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
5305         GIMPLE_SWITCH.
5306
5307 2009-06-10  Revital Eres  <eres@il.ibm.com>
5308
5309         * passes.c (init_optimization_passes): Reschedule
5310         predictive-commoning pass before complete unroll pass.
5311
5312 2009-06-10  Martin Jambor  <mjambor@suse.cz>
5313
5314         * cgraph.c (cgraph_node_can_be_local_p): New function.
5315         (cgraph_make_node_local): New function.
5316         * cgraph.h (cgraph_node_can_be_local_p): Declare.
5317         (cgraph_make_node_local): Declare.
5318
5319 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
5320
5321         * tree.h (tree_base): Add packed_flag and user_align fields.
5322         Decrease size of spare field.
5323         (TYPE_USER_ALIGN): Use user_align from tree_base.
5324         (DECL_USER_ALIGN): Likewise.
5325         (TYPE_PACKED): Use packed_flag from tree_base.
5326         (DECL_PACKED): Likewise.
5327         (tree_type): Delete packed_flag and user_align fields.  Widen
5328         precision field.  Widen mode field and shuffle fields to align
5329         mode on an 8-bit boundary.
5330         (tree_decl_common): Delete decl_flag_1 and user_align fields.
5331         Renumber decl_flag_* fields.  Fix comments.  Widen
5332         decl_common_unused field.
5333         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
5334         (DECL_EXTERNAL): Likewise.
5335         (DECL_BIT_FIELD): Likewise.
5336         (DECL_NONADDRESSABLE_P): Likewise.
5337         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
5338         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
5339
5340 2009-06-10  Ian Lance Taylor  <iant@google.com>
5341
5342         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
5343         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
5344         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
5345         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
5346         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
5347         DEF_VEC_ALLOC_FUNC_P.
5348         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
5349         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
5350         DEF_VEC_ALLOC_FUNC_O.
5351         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
5352         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
5353         DEF_VEC_ALLOC_FUNC_I.
5354         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
5355         (vec_stack_p_reserve_exact_1): Declare.
5356         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
5357         (vec_stack_free): Declare.
5358         (VEC_stack_alloc): Define.
5359         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
5360         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
5361         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
5362         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
5363         for void_p.
5364         (stack_vecs): New static variable.
5365         (vec_stack_p_reserve_exact_1): New function.
5366         (vec_stack_o_reserve_1): New static function.
5367         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
5368         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
5369         (vec_stack_free): New function.
5370         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
5371         (VEC_df_ref_stack_alloc): Define.
5372         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
5373         DEF_VEC_ALLOC_P_STACK.
5374         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
5375         (struct df_collection_rec): Change _vec fields to VEC.  Remove
5376         _use fields.
5377         (df_free_collection_rec): Adjust for new fields.
5378         (df_insn_rescan): Use new df_collection_rec fields.
5379         (df_notes_rescan, df_canonize_collection_rec): Likewise.
5380         (df_ref_create_structure, df_ref_record): Likewise.
5381         (df_get_conditional_uses, df_get_call_refs): Likewise.
5382         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
5383         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
5384         (df_record_exit_block_uses, df_bb_verify): Likewise.
5385         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
5386         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
5387         Remove count parameter.  Change return type to void.  Change all
5388         callers.
5389         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
5390         Remove count parameter.  Change return type to void.  Change all
5391         callers.
5392         (df_install_refs): Change old_vec parameter to VEC.  Remove count
5393         parameter.  Change all callers.
5394         (df_install_mws): Change old_vec parameter to VEC.  Remove count
5395         parameter.  Change all callers.
5396         (df_refs_verify): Change new_rec parameter to VEC.  Change call
5397         callers.
5398         (df_mws_verify): Likewise.
5399
5400 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
5401
5402         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
5403
5404 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5405
5406         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
5407
5408 2009-06-10  Anthony Green  <green@moxielogic.com>
5409
5410         * config/moxie/crti.asm: New file.
5411         * config/moxie/crtn.asm: New file.
5412         * config/moxie/moxie.c: New file.
5413         * config/moxie/moxie.h: New file.
5414         * config/moxie/sfp-machine.h: New file.
5415         * config/moxie/moxie-protos.h: New file.
5416         * config/moxie/t-moxie: Created.
5417         * config/moxie/t-moxie-softfp: Created.
5418         * config/moxie/moxie.md: Created.
5419         * config/moxie/constraints.md: Created.
5420         * config.gcc: Add moxie support.
5421         * doc/md.texi (Machine Constraints): Add moxie constraints.
5422         * doc/contrib.texi (Contributors): Mention moxie port.
5423         * doc/install.texi (Specific): Mention the moxie port.
5424
5425 2009-06-09  Ian Lance Taylor  <iant@google.com>
5426
5427         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
5428         compiling with C++.
5429         * optabs.c (optab_table): Only use designated initializers if
5430         HAVE_DESIGNATED_INITIALIZERS is defined.
5431         (convert_optab_table): Likewise.
5432         (init_optabs): Always call init_insn_codes if
5433         HAVE_DESIGNATED_INITIALIZERS is not defined.
5434
5435 2009-06-09  Ian Lance Taylor  <iant@google.com>
5436
5437         * targhooks.c (default_builtin_vectorized_function): Change fn
5438         parameter to unsigned int.
5439         (default_builtin_vectorized_conversion): Change code parameter to
5440         unsigned int.
5441         (default_builtin_reciprocal): Change fn parameter to unsigned int.
5442         * targhooks.h: Update declarations.
5443         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
5444         parameter to unsigned int.
5445
5446         * c-typeck.c (comptypes_check_enum_int): New static function.
5447         (comptypes_internal): Add enum_and_int_p parameter.  Change all
5448         callers.
5449         (comp_target_types): Add location parameter.  Change all callers.
5450         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
5451         Change all callers.
5452         (function_types_compatible_p, type_lists_compatible_p): Likewise.
5453         (build_conditional_expr): Add colon_loc parameter.  Change all
5454         callers.
5455         (convert_for_assignment): Add location parameter.  Change all callers.
5456         * c-parser.c (c_parser_conditional_expression): Pass location of
5457         colon to build_conditional_expr.
5458         * c-tree.h (build_conditional_expr): Update declaration.
5459
5460 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5461
5462         * graphite.c: Revert previous patch.
5463
5464 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5465
5466         PR bootstrap/40103
5467         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
5468
5469 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5470
5471         * tree-ssa-loop-prefetch.c
5472         (loop_prefetch_arrays): Fixed a portability problem in printf format
5473         string.
5474
5475 2009-06-09  Martin Jambor  <mjambor@suse.cz>
5476
5477         PR tree-optimization/40351
5478         * tree-sra.c (propagate_subacesses_accross_link): Check that a
5479         refrence to a potential artifical subaccess can be constructed.
5480
5481 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5482
5483         * config/sh/sh-protos.h (sh_optimization_options): Declare.
5484         (sh_override_options): Likewise.
5485         * config/sh/sh.c: Include params.h.
5486         (sh_optimization_options): New.
5487         (sh_override_options): Likewise.
5488         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
5489         (OVERRIDE_OPTIONS): Use sh_override_options.
5490
5491 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5492
5493         * dwarf2out.c (emit_cfa_remember): New variable.
5494         (add_fde_cfi): If emit_cfa_remember, recurse to add
5495         DW_CFA_remember_state first.
5496         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
5497         instead just set emit_cfa_remember.
5498
5499 2009-06-08  Jan Hubicka  <jh@suse.cz>
5500
5501         PR debug/40126
5502         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
5503
5504 2009-06-08  Jan Hubicka  <jh@suse.cz>
5505
5506         PR middle-end/39834
5507         * cgraphunit.c (save_inline_function_body): Do not copy transform
5508         hooks for saved inline bodies.
5509         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
5510         for given function.
5511
5512 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
5513
5514         * jump.c (returnjump_p): Handle delayed branches.  Add missing
5515         function comment.
5516
5517 2009-06-08  Jan Hubicka  <jh@suse.cz>
5518
5519         PR middle-end/40102
5520         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
5521         original node might've been modified.
5522         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
5523
5524 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
5525
5526         * tree-object-size.c (addr_object_size): Add OSI argument.
5527         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
5528         (compute_builtin_object_size, expr_object_size): Adjust callers.
5529         (plus_stmt_object_size): Call addr_object_size instead of
5530         compute_builtin_object_size.
5531
5532 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
5533             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5534         
5535         * tree-ssa-loop-prefetch.c 
5536         (gather_memory_references): Introduced a counter for the number of 
5537         memory references.
5538         (anything_to_prefetch_p): Introduced a counter for the number of 
5539         prefetches.
5540         (is_loop_prefetching_profitable): New function with a cost model 
5541         for prefetching.
5542         (loop_prefetch_arrays): Use the new cost model to determine if 
5543         prefetching is profitable.
5544         * params.def (MIN_INSN_TO_PREFETCH_RATIO, 
5545         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5546         * params.h (MIN_INSN_TO_PREFETCH_RATIO, 
5547         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5548         * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO, 
5549         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
5550         
5551 2009-06-08  Michael Matz  <matz@suse.de>
5552
5553         PR debug/40012
5554         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
5555         partitions use the same.
5556         (expand_one_var): Deal with DECL_RTL sometimes begin set also
5557         for basevars of SSA_NAMEs.
5558         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
5559         to not expand them twice.
5560         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
5561         multiple places.
5562
5563 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
5564
5565         * common.opt (fcompare-debug=, fcompare-debug-second): New.
5566         (fdump-final-insns=, gtoggle): New.
5567         * doc/invoke.texi: Document them.
5568         * final.c (rest_of_clean_state): Dump final insn stream.
5569         * gcc.c (invoke_as): Hook in -fcompare-debug.
5570         (static_spec_functions): Add compare-debug-dump-opt,
5571         compare-debug-self-opt and compare-debug-auxbase-opt.
5572         (compare_debug, compare_debug_second, compare_debug_opt): New.
5573         (switches_debug_check, n_switches_debug_check): New.
5574         (debug_auxbase_opt, debug_check_temp_file): New.
5575         (process_command): Handle -fno-compare-debug, -fcompare-debug and
5576         -fcompare-debug=*.
5577         (do_self_spec): Handle arguments after switches.
5578         (do_spec_1): Add .gk extension to temp file basenames for compare.
5579         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
5580         (cc1_options): Use it instead of normal auxbase computation for
5581         the second compare-debug compilation.
5582         (compare_files): New.
5583         (main): Set up and implement compare debug mode.
5584         (compare_debug_dump_opt_spec_function): New.
5585         (compare_debug_self_opt_spec_function): New.
5586         (compare_debug_auxbase_opt_spec_function): New.
5587         * toplev.c (process_options): Handle flag_gtoggle,
5588         flag_dump_final_insns.
5589         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
5590         during -fcompare-debug-second compilation.
5591
5592 2009-06-07  Ian Lance Taylor  <iant@google.com>
5593
5594         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
5595         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
5596
5597         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
5598         with no default node.  Change warning with %H to warning_at.
5599         Don't clear warn_switch around case checking.
5600         * doc/invoke.texi (Warning Options): Clarify distinction between
5601         -Wswitch and -Wswitch-enum.
5602
5603 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5604
5605         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
5606
5607 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5608
5609         * gbl-ctors.h: Add header guard.
5610
5611 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5612
5613         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
5614         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
5615         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
5616         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
5617         prototypes for removed functions.
5618         (expressions_equal_p): Move to ...
5619         * tree-ssa-sccvn.h: ... here and ...
5620         * matrix-reorg.c: ... adjust includes.
5621
5622 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5623
5624         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
5625
5626 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5627
5628         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
5629         (finish_function): Remove erroneous whitespace.
5630
5631 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5632
5633         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
5634         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
5635
5636 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5637
5638         * errors.c (internal_error): Commentary typo fix.
5639         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
5640         * tree-ssa-pre.c: Ditto.
5641
5642 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5643
5644         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
5645         them is supposed to hold actual statements.
5646
5647 2009-06-06  Ian Lance Taylor  <iant@google.com>
5648
5649         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
5650         empty statements can now have attributes.
5651
5652 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
5653
5654         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
5655         * config/mips/mips.md: Ditto.
5656
5657 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5658
5659         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
5660         _RELOCATABLE.
5661         (__eabi_uconvert): Likewise.
5662
5663 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
5664
5665         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
5666         CFI_* definitions with IN_GCC.
5667
5668 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
5669
5670         * xcoffout.h (xcoffout_source_line): Update prototype.
5671
5672 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5673
5674         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
5675         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
5676
5677 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5678
5679         PR middle-end/40340
5680         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
5681         inlined_function_outer_scope_p blocks for artificial inlines
5682         even at -g0/-g1.
5683         * tree.c (tree_nonartificial_location): Rewrite using
5684         block_nonartificial_location.
5685
5686 2009-06-05  Revital Eres  <eres@il.ibm.com>
5687             Leehod Baruch  <leehod@il.ibm.com>
5688
5689         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
5690         (expand_expr_real_1): Remove comment.
5691         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5692         Vectorize misaligned access when the target supports it.
5693         (vect_supportable_dr_alignment): Check for unaligned access support.
5694         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
5695         and remove asset.
5696
5697 2009-06-05  Julian Brown  <julian@codesourcery.com>
5698
5699         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
5700         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
5701
5702 2009-06-05  Richard Guenther  <rguenther@suse.de>
5703
5704         PR bootstrap/40350
5705         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
5706         as possibly unused.
5707
5708 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
5709
5710         * config/s390/s390.c (global_not_special_regno_p): New static inline.
5711         (save_gprs): Don't tell unwinder when a global register is saved.
5712         (s390_emit_epilogue): Emit needed epilogue unwind info.
5713
5714 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5715
5716         * dwarf2out.c (deferred_asm_name): New.
5717         (add_name_and_src_coords_attributes): Defer creation of
5718         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
5719         computed yet.
5720         (move_linkage_attr): New.
5721         (dwarf2out_finish): Revisit deferrals and emit attributes at the
5722         right place.
5723
5724 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
5725
5726         * tree-nested.c (finalize_nesting_tree_1): Declare the
5727         frame_decl in the binding tree.
5728
5729 2009-06-04  Cary Coutant  <ccoutant@google.com>
5730
5731         * basic-block.h (struct basic_block_def): Add discriminator field.
5732         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
5733         callers.
5734         * debug.c (do_nothing_debug_hooks): Add additional entry.
5735         (debug_nothing_int_charstar_int): New function.
5736         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
5737         (debug_nothing_int_charstar_int): New declaration.
5738         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
5739         discriminator value in .loc directive.
5740         * final.c (last_discriminator): New variable.
5741         (discriminator): New variable.
5742         (final_start_function): Initialize above variables, pass current
5743         discriminator to debug hook.
5744         (notice_source_line): Check for discriminator change.
5745         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
5746         * sdbout.c (sdbout_source_line): New parameter.
5747         * tree-cfg.c (struct locus_discrim_map): New structure type.
5748         (discriminator_per_locus): New hash table.
5749         (build_gimple_cfg): Allocate and free discriminator hash table.
5750         (make_edges): Call assign_discriminator.
5751         (locus_map_hash): New function.
5752         (locus_map_eq): New function.
5753         (next_discriminator_for_locus): New function.
5754         (same_line_p): New function.
5755         (assign_discriminator): New function.
5756         (make_cond_expr_edges): Call assign_discriminator.
5757         (make_gimple_switch_edges): Likewise.
5758         (first_non_label_stmt): New function.
5759         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
5760         all callers.
5761         * xcoffout.c (xcoffout_source_line): Add new parameter.
5762
5763         * configure.ac (gcc_cv_as_discriminator): New configury check for
5764         gas support for discriminator.
5765         * configure: Regenerate.
5766         * config.in: Regenerate.
5767
5768 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5769
5770         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
5771         val after checking for integers.
5772
5773 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
5774
5775         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
5776         X64_REGPARM_MAX.
5777         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
5778         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
5779         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
5780         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
5781         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
5782         X64_SSE_REGPARM_MAX.
5783         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
5784         X64_SSE_REGPARM_MAX.
5785
5786 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5787
5788         * gcc.c (report_times_to_file): New.
5789         (execute): Implement it.
5790         (process_command): Support -time=.
5791         * doc/invoke.texi: Document it.
5792
5793 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5794
5795         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
5796         that have value exprs.
5797
5798 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
5799
5800         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
5801         declarations for constants until...
5802         (dw2_output_indirect_constant_1): ... this point.
5803
5804 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
5805
5806         PR target/10242
5807         * arm.md (arm_addsi3): Don't try to split an add with an
5808         eliminable register until after reload has completed.
5809
5810 2009-06-03  Ian Lance Taylor  <iant@google.com>
5811
5812         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
5813         * genattrtab.c (write_length_unit_log): Likewise.
5814         * genchecksum.c (dosum): Likewise.
5815         * gengtype.c (write_rtx_next): Likewise.
5816         (finish_root_table, write_roots): Likewise.
5817         * gimple.c (gimple_ops_offset_): Likewise.
5818         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
5819         * config/arc/arc.c (arc_attribute_table): Likewise.
5820         * config/arm/arm.c (arm_attribute_table): Likewise.
5821         * config/avr/avr.c (avr_attribute_table): Likewise.
5822         * config/crx/crx.c (crx_attribute_table): Likewise.
5823         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
5824         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
5825         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
5826         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
5827         * config/sh/sh.c (sh_attribute_table): Likewise.
5828         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
5829         * config/spu/spu.c (spu_attribute_table): Likewise.
5830         * config/v850/v850.c (v850_attribute_table): Likewise.
5831
5832         * config/alpha/alpha.c (vms_attribute_table): Make static.
5833         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
5834         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
5835         * config/mips/mips.c (mips_attribute_table): Likewise.
5836
5837         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
5838         $(SYSTEM_H).
5839         (cc1-checksum.o): Likewise.
5840
5841 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
5842
5843         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
5844
5845 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
5846
5847         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
5848         insn if it is changing sp.  Use gen_add3_insn instead of
5849         conditionally gen_addsi3 and gen_adddi3.
5850         (offset_below_red_zone_p): New static inline function.
5851         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
5852         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
5853         * config/rs6000/ppc-asm.h: Include auto-host.h.
5854         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
5855         CFI_RESTORE): Define.
5856         * config/rs6000/crtresxgpr.asm: Add unwind info.
5857         * config/rs6000/crtresxfpr.asm: Likewise.
5858         * config/rs6000/crtresgpr.asm: Likewise.
5859         * config/rs6000/crtresfpr.asm: Likewise.
5860         * config/rs6000/crtsavgpr.asm: Likewise.
5861         * config/rs6000/crtsavfpr.asm: Likewise.
5862
5863         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
5864         argument of DWARF2_FRAME_REG_OUT macros.
5865
5866 2009-06-03  Julian Brown  <julian@codesourcery.com>
5867
5868         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
5869         words or less (including TImode) in core registers.
5870
5871 2009-06-03  Richard Guenther  <rguenther@suse.de>
5872
5873         PR middle-end/40328
5874         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
5875
5876 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
5877
5878         * statistics.c (statistics_counter_event): Do not record event 
5879         in pass dump if its number == -1.
5880         (curr_statistics_hash): Add assert that we never get passes 
5881         with static number == -1.
5882
5883 2009-06-03  Richard Guenther  <rguenther@suse.de>
5884             Andrey Belevantsev  <abel@ispras.ru>
5885
5886         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only 
5887         non-BLKmode arrays addressable.
5888
5889 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
5890
5891         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
5892         * config/m68k/m68k.h: ... here.
5893         * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
5894         m68k and fido.
5895
5896 2009-06-03  Martin Jambor  <mjambor@suse.cz>
5897
5898         PR tree-optimization/40323
5899         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
5900         assignment.
5901
5902 2009-06-03  Richard Guenther  <rguenther@suse.de>
5903
5904         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
5905         consistently.
5906
5907 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
5908
5909         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
5910         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
5911         JUMP_TABLE_DATA_P where applicable.
5912         * config/sh/sh.c: Ditto.
5913         * config/sh/sh.h: Ditto.
5914         * config/sh/sh.md: Ditto.
5915         * config/sh/symbian.c: Ditto.
5916
5917 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
5918
5919         * config/i386/driver-i386.c (describe_cache): Optimize
5920         concatenation of strings.  Use snprintf instead of sprintf.
5921         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
5922         target when not compiling with GCC.
5923
5924 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
5925
5926         * config/sh/sh.c: Revert last change.
5927         (sh_expand_epilogue): Emit a blockage insn before the frame
5928         pointer adjustment unconditionally.
5929
5930 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5931
5932         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
5933         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
5934         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
5935         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
5936         to COLLECT_GCC_OPTIONS.
5937
5938 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5939
5940         * collect2.c (target_system_root): New variable.
5941         (main): Handle --sysroot=.
5942         (ignore_library): Strip the sysroot from the library path.
5943
5944 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5945
5946         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
5947         (collect2.o): Depend on collect2-aix.h.
5948         (collect2-aix.o): New rule.
5949         * collect2-aix.h: New file.
5950         * collect2-aix.c: Likewise.
5951         * collect2.c: Include collect2-aix.h.  Don't undefine
5952         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
5953         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
5954         Use TARGET_AIX_VERSION instead of _AIX51.
5955         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
5956         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
5957         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
5958         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
5959         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
5960
5961 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5962
5963         * collect2.c (ignore_library): Avoid premature post-increment
5964         and null deference.
5965
5966 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
5967
5968         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
5969         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
5970         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
5971         CROSS_DIRECTORY_STRUCTURE too.
5972         (LINK_LIBG_SPEC): Likewise.
5973         (LIB_SPEC): Add %R to sysroot paths.
5974         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
5975         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
5976         * config/rs6000/aix51.h: As for aix43.h.
5977         * config/rs6000/aix52.h: Likewise.
5978         * config/rs6000/aix53.h: Likewise.
5979         * config/rs6000/aix61.h: Likewise.
5980         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
5981         to the beginning of sysroot paths.
5982
5983 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5984
5985         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
5986         INSN_LISTs that are out of the REG_NOTE range.
5987
5988 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
5989
5990         * loop-unroll.c (struct iv_to_split): Add pointer to next.
5991         (struct var_to_expand): Likewise.
5992         (struct opt_info): Add head and tail for linked lists of the above.
5993         (analyze_insn_to_expand_var): Initialize next.
5994         (analyze_iv_to_split_insn): Likewise.
5995         (analyze_insns_in_loop): Create linked lists.
5996         (allocate_basic_variable): Simplify for use without hash table.
5997         (insert_var_expansion_initialization): Likewise, make it type-safer.
5998         (combine_var_copies_in_loop_exit): Likewise.
5999         (apply_opt_in_copies): Walk lists rather than hash tables.
6000         (release_var_copies): Simplified and inlined by hand into...
6001         (free_opt_info): ... this function.
6002
6003 2009-06-02  Richard Guenther  <rguenther@suse.de>
6004
6005         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
6006         for field decls.
6007
6008 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6009
6010         * cfgexpand.c (gimple_expand_cfg): Discard the source location
6011         only for builtins that are not overridden.
6012
6013 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6014
6015         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
6016         label string.
6017
6018 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6019
6020         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
6021
6022 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6023
6024         * combine.c (move_deaths): Compare LUIDs within the same BB only.
6025
6026 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
6027
6028         * common.opt (fdump-unnumbered-links): New.
6029         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
6030         * print-rtl.c (flag_dump_unnumbered_links): New.
6031         (print_rtx): Test it.
6032
6033 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
6034
6035         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
6036         push/pop multiple to 8-byte alignment.
6037
6038 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
6039
6040         * config/i386/i386.c (queued_cfa_restores): New static variable.
6041         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
6042         functions.
6043         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
6044         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
6045         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
6046         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
6047         note unconditionally.
6048         (ix86_emit_restore_regs_using_mov): Likewise.
6049         (ix86_emit_restore_sse_regs_using_mov): Likewise.
6050         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
6051         it through to ix86_emit_restore_reg_using_pop.
6052         (ix86_emit_leave): Add RED_OFFSET argument.  Call
6053         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
6054         instead of adding REG_CFA_OFFSET note unconditionally.
6055         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
6056         the above functions.  Call ix86_add_queued_cfa_restore_notes when
6057         needed.
6058
6059         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
6060         force output of the label even for dwarf2out_do_cfi_asm.
6061         (add_fde_cfi): If -g2 and above and cfi might change CFA,
6062         force creation of CFI label and chain DW_CFA_set_loc jumping to it
6063         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
6064         caller.
6065         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
6066         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
6067         dwarf2out_cfi_label callers.
6068         * tree.h (dwarf2out_cfi_label): Adjust prototype.
6069         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
6070         Adjust dwarf2out_cfi_label callers.
6071         * config/vax/vax.c (vax_output_function_prologue): Likewise.
6072
6073         * config/i386/i386.h (struct machine_cfa_state,
6074         struct machine_function): Guard with ifndef USED_FOR_TARGET
6075         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
6076
6077         PR other/40024
6078         * emutls.c (__emutls_get_address): Change arr->size to mean number
6079         of allocated arr->data entries instead of # of slots + 1.
6080
6081         PR middle-end/40316
6082         * recog.c (peep2_reinit_state): New function.
6083         (peephole2_init_state): Use it at the end of a basic block and also
6084         when seeing a RTX_FRAME_RELATED_P insn.
6085
6086 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
6087
6088         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
6089         fixuns_truncrfdi2): New.
6090         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
6091         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
6092         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
6093         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
6094         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
6095         *recip_approx): Remove.
6096         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
6097         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
6098         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
6099         move to div.md.
6100         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
6101         setf_exp_rf): New.
6102
6103 2009-06-01  Ian Lance Taylor  <iant@google.com>
6104
6105         * attribs.c (register_attribute): Use CONST_CAST.
6106         * collect2.c (main): Use CONST_CAST2.
6107         (scan_prog_file): Likewise.
6108         * gcc.c (process_command, main): Likewise.
6109         * toplev.c (toplev_main): Likewise.
6110
6111         * c-typeck.c (handle_warn_cast_qual): New static function,
6112         partially broken out of build_c_cast.
6113         (build_c_cast): Call handle_warn_cast_qual.
6114         * doc/invoke.texi (Warning Options): Document new effect of
6115         -Wcast-qual.
6116
6117 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
6118
6119         * diagnostic.c (diagnostic_build_prefix): Always print columns.
6120         (diagnostic_report_current_module): Print columns.
6121         * common.opt (flag_show_column): Enable by default.
6122
6123 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
6124
6125         * alias.c (find_base_term): Check for NULL term before returning.
6126
6127 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6128
6129         Revert due to PR40320:
6130         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6131         * calls.c (emit_library_call_value_1): Don't force_operand for move
6132         and push insns.
6133
6134 2009-06-01  Olivier Hainque  <hainque@adacore.com>
6135             Eric Botcazou  <ebotcazou@adacore.com>
6136
6137         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
6138         to be processed as a bitfield for constructor output purposes.
6139         * output.h (initializer_constant_valid_for_bitfield_p): Declare
6140         new function.
6141         * varasm.c (oc_local_state): New type, output_constructor
6142         local state to support communication with helpers.
6143         (oc_outer_state): New type, output_constructor outer state of
6144         relevance in recursive calls.
6145         (output_constructor_array_range): New output_constructor helper,
6146         extracted code for an array range element.
6147         (output_constructor_regular_field): New output_constructor helper,
6148         extracted code for an element that is not a bitfield.
6149         (output_constructor_bitfield): New output_constructor helper,
6150         extracted code for a bitfield element.  Accept an OUTER state
6151         argument for recursive processing.  Recurse on record or array
6152         CONSTRUCTOR values, possibly past noop conversions.
6153         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
6154         VALUE is a valid constant-valued expression for use in a static
6155         bit-field initializer.
6156         (output_constructor): Rework to use helpers.  Accept and honor an
6157         OUTER state argument for recursive calls.  Return total size.  Be
6158         prepared for nested constructors initializing bitfields.
6159         (output_constant): Feed OUTER in calls to output_constructor.
6160
6161 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6162
6163         * calls.c (emit_library_call_value_1): Don't force_operand for move
6164         and push insns.
6165
6166 2009-06-01  Nick Clifton  <nickc@redhat.com>
6167
6168         * doc/invoke.texi (IA-64 Options): Fix typo.
6169
6170 2009-06-01  Ira Rosen  <irar@il.ibm.com>
6171
6172         PR tree-optimization/39129
6173         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
6174         printed message.
6175         (vect_do_peeling_for_loop_bound): Use
6176         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6177         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6178         (vect_loop_versioning): Likewise.
6179         (vect_create_cond_for_alias_checks): Fix indentation.
6180         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
6181         macros.
6182         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
6183         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
6184         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
6185         "control flow in loop".
6186         (vect_estimate_min_profitable_iters): Use
6187         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
6188         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
6189         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
6190         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
6191         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
6192         statement belongs to a group of strided accesses with the exact code
6193         check.
6194         (vectorizable_load): Likewise.
6195         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
6196         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
6197
6198 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
6199
6200         * config/freebsd-stdint.h: New file.
6201         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
6202         Add freebsd-stdint.h to tm_file.
6203
6204 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
6205
6206         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
6207         (thumb2_extendhidi2): Likewise.
6208
6209 2009-05-31  Ian Lance Taylor  <iant@google.com>
6210
6211         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
6212
6213 2009-05-31  Ian Lance Taylor  <iant@google.com>
6214
6215         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
6216         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
6217         (ipa-reference.o): Depend upon gt-ipa-reference.h.
6218
6219 2009-05-31  Jason Merrill  <jason@redhat.com>
6220
6221         * tree-pretty-print.c (print_call_name): Take the callee, not the
6222         call itself.  Make non-static.  Use dump_function_name for functions.
6223         (dump_generic_node): Adjust.
6224         * diagnostic.h: Declare print_call_name.
6225         * gimple-pretty-print.c (dump_gimple_call): Use it.
6226
6227 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6228
6229         * config/sh/sh.md (ashldi3_std): New define_expand.
6230         (ashldi3): Use it.
6231
6232 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6233
6234         PR target/40313
6235         * config/sh/sh.c: Include debug.h.
6236         (sh_expand_epilogue): Emit a blockage insn before the frame
6237         pointer adjustment also when dwarf2out_do_frame returns true.
6238
6239 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
6240
6241         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
6242         (thumb2_extendqidi2): New pattern.
6243
6244 2009-05-31  Ira Rosen  <irar@il.ibm.com>
6245
6246         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
6247         mark phis for renaming.
6248         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
6249         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
6250         Call mark_sym_for_renaming.
6251         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
6252         * tree-vect-loop.c (vect_transform_loop): Remove
6253         vect_memsyms_to_rename initialization and a call to
6254         mark_set_for_renaming.
6255
6256 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
6257
6258         PR middle-end/40304
6259         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
6260         frame related even if !set_cfa && style < 0.
6261
6262 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
6263
6264         * config/i386/mingw-tls.c: New file.
6265         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
6266         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
6267         defining _WIN32 but not __CYGWIN__.
6268
6269 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6270
6271         * configure.ac: Add MPC support.
6272         
6273         * config.in, configure: Regenerate.     
6274
6275 2009-05-29  Richard Henderson  <rth@redhat.com>
6276
6277         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
6278         NOTE_INSN_BASIC_BLOCK.
6279         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
6280         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
6281         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
6282         to be deleted.
6283         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
6284         add in_use field.
6285         (add_cfi): Disable check redefining cfa away from drap.
6286         (lookup_cfa_1): Add remember argument; handle remember/restore.
6287         (lookup_cfa): Pass remember argument.
6288         (cfa_remember): New.
6289         (compute_barrier_args_size_1): Remove sibcall check.
6290         (dwarf2out_frame_debug_def_cfa): New.
6291         (dwarf2out_frame_debug_adjust_cfa): New.
6292         (dwarf2out_frame_debug_cfa_offset): New.
6293         (dwarf2out_frame_debug_cfa_register): New.
6294         (dwarf2out_frame_debug_cfa_restore): New.
6295         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
6296         (dwarf2out_begin_epilogue): New.
6297         (dwarf2out_frame_debug_restore_state): New.
6298         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
6299         DW_CFA_restore_state.
6300         (output_cfi_directive): Likewise.
6301         (convert_cfa_to_fb_loc_list): Likewise.
6302         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
6303         * dwarf2out.h: Update.
6304         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
6305         (copy_insn_1): Early out for null.
6306         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
6307         and dwarf2out_frame_debug_restore_state.
6308         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
6309         (prologue_insn_hash, epilogue_insn_hash): New.
6310         (free_after_compilation): Adjust freeing accordingly.
6311         (record_insns): Create hash table if needed; push insns into
6312         hash instead of array.
6313         (maybe_copy_epilogue_insn): New.
6314         (contains): Search hash table instead of array.
6315         (sibcall_epilogue_contains): Remove.
6316         (thread_prologue_and_epilogue_insns): Split eh_return insns
6317         and mark them as epilogues.
6318         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
6319         scanning in terms of basic blocks.
6320         * insn-notes.def (CFA_RESTORE_STATE): New.
6321         * jump.c (returnjump_p_1): Accept EH_RETURN.
6322         (eh_returnjump_p_1, eh_returnjump_p): New.
6323         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
6324         CFA_REGISTER, CFA_RESTORE): New.
6325         * rtl.def (EH_RETURN): New.
6326         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
6327
6328         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
6329         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
6330
6331         * config/i386/i386.c (gen_push): Update cfa state.
6332         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
6333         add a CFA_ADJUST_CFA note.
6334         (ix86_dwarf_handle_frame_unspec): Remove.
6335         (ix86_expand_prologue): Update cfa state.
6336         (ix86_emit_restore_reg_using_pop): New.
6337         (ix86_emit_restore_regs_using_pop): New.
6338         (ix86_emit_leave): New.
6339         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
6340         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
6341         * config/i386/i386.h (struct machine_cfa_state): New.
6342         (ix86_cfa_state): New.
6343         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
6344         (eh_return_internal): Merge from eh_return_<mode>,
6345         use eh_return rtx, split w/ epilogue.
6346
6347 2009-05-29  Ian Lance Taylor  <iant@google.com>
6348
6349         * builtins.c (validate_gimple_arglist): Don't use va_arg with
6350         enum type.
6351         * calls.c (emit_library_call_value_1): Likewise.
6352
6353         * c-typeck.c (c_build_va_arg): New function.
6354         * c-tree.h (c_build_va_arg): Declare.
6355         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
6356         instead of build_va_arg.
6357
6358 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6359
6360         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
6361         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
6362         (ptr_difference_cost): Use affine combinations to compute it.
6363         (difference_cost): Likewise.
6364         (get_computation_cost_at): Compute more accurate cost for addresses
6365         if the ratio is a multiplier allowed in addresses.
6366         For non-addresses, consider that an additional offset or symbol is
6367         added only once.
6368
6369 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6370
6371         * config/i386/i386.c (ix86_decompose_address): Avoid useless
6372         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
6373
6374         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
6375         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
6376         (prefix_rex): For UNIT_MMX don't imply the prefix by default
6377         if MODE_DI.
6378         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
6379         to 1 for TYPE_SSE{IADD1,CVT1}.
6380         (prefix_vex_imm8): Removed.
6381         (length_vex): Only pass 1 as second argument to
6382         ix86_attr_length_vex_default if prefix_extra is 0.
6383         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
6384         (length): For prefix vex computation use length_immediate
6385         attribute instead of prefix_vex_imm8.
6386         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
6387         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
6388         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
6389         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
6390         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
6391         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
6392         a space in between the operands.
6393         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
6394         if one operand is 0xff and the other one si, di, bp or sp.
6395         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
6396         other one si, di, bp or sp.
6397         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
6398         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
6399         type and mode attributes.
6400         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
6401         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
6402         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
6403         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
6404         prefix_data16 attribute iff MODE_DF.
6405         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
6406         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
6407         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
6408         constm128_operand in length_immediate computation.
6409         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
6410         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
6411         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
6412         length_immediate attribute to 1.
6413         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
6414         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
6415         for certain alternatives.
6416         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
6417         prefix_data16 attribute if MODE_V1DF.
6418         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
6419         length_immediate to 1.
6420         (set_got_rex64, set_rip_rex64): Remove length attribute, set
6421         length_address to 4, set mode attribute to MODE_DI.
6422         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
6423         (fxam<mode>2_i387): Set length attribute to 4.
6424         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
6425         *prefetch_3dnow_rex): Override length_address attribute.
6426         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
6427         attributes.
6428         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
6429         (constm128_operand): Removed.
6430         * config/i386/i386.c (memory_address_length): For
6431         disp && !index && !base in 64-bit mode account for SIB byte if
6432         print_operand_address can't optimize disp32 into disp32(%rip)
6433         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
6434         for fs: or gs: segment.
6435         (ix86_attr_length_immediate_default): When checking if shortform
6436         is possible, truncate immediate to the length of the non-shortened
6437         immediate.
6438         (ix86_attr_length_address_default): Ignore MEM_P operands
6439         with X constraint.
6440         (ix86_attr_length_vex_default): Only check for DImode on
6441         GENERAL_REG_P operands.
6442         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
6443         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
6444         (sse_cvttps2pi): Clear prefix_rep attribute.
6445         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
6446         attribute.
6447         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
6448         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
6449         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
6450         iff operand 2 is const_int_operand.
6451         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
6452         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
6453         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
6454         instead of vex.
6455         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
6456         prefix_data16.
6457         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
6458         prefix_data16 attribute for movlpd and movhpd instructions.
6459         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
6460         length_immediate for shufpd instruction.
6461         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
6462         (avx_cmpp<avxmodesuffixf2c><mode>3,
6463         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
6464         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
6465         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
6466         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
6467         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
6468         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
6469         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
6470         prefix_data16 attribute for the first alternative to 1.
6471         (*avx_loadlps): Override length_immediate for the first alternative.
6472         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
6473         attributes for second alternative.
6474         (*vec_concatv2sf_sse4_1): Override length_immediate and
6475         prefix_data16 attributes for second alternative.
6476         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
6477         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
6478         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
6479         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
6480         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
6481         prefix_data16 and length_immediate to 1.
6482         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
6483         to 1.
6484         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
6485         prefix_extra attribute for variants that don't have 0f prefix alone.
6486         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
6487         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
6488         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
6489         *sse4_1_pextrd): Set length_immediate to 1.
6490         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
6491         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
6492         to 1.
6493         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
6494         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
6495         length_immediate to 1 for second alternative.
6496         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
6497         prefix_extra and length_immediate attributes for the first
6498         alternative.
6499         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
6500         first alternative.
6501         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
6502         to 1 for the first and third alternative.
6503         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
6504         alternative.
6505         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
6506         attribute.
6507         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
6508         attribute to 0.
6509         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
6510         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
6511         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
6512         *avx_psign<mode>3): Set prefix_extra attribute to 1.
6513         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
6514         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
6515         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
6516         ssse3_psign<mode>3): Override prefix_rex attribute.
6517         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
6518         (ssse3_palignrti): Override length_immediate to 1.
6519         (ssse3_palignrdi): Override length_immediate to 1, override
6520         prefix_rex attribute.
6521         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
6522         (sse4a_extrqi): Override length_immediate to 2.
6523         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
6524         (sse4a_insertq): Override prefix_data16 to 0.
6525         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
6526         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
6527         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
6528         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
6529         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
6530         and length_immediate to 1.
6531         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
6532         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
6533         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
6534         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
6535         and length_immediate to 1.
6536         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
6537         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
6538         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
6539         avx_ptest256): Override prefix_extra to 1.
6540         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
6541         Override prefix_data16 and length_immediate to 1.
6542         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
6543         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
6544         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
6545         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
6546         prefix_data16 to 0 and prefix_extra to 2.
6547         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
6548         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
6549         attribute.
6550         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
6551         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
6552         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
6553         and prefix_extra to 2.
6554         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
6555         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
6556         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
6557         avx_vpermilvar<mode>3,
6558         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
6559         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
6560         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
6561         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
6562         Override prefix_extra to 1.
6563         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
6564         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
6565         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
6566         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
6567         prefix_extra and length_immediate to 1.
6568         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
6569         modrm to 0.
6570         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
6571         to 1 for the first alternative.
6572         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
6573         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
6574         cases.
6575         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
6576         *movv2sf_internal_avx, *movv2sf_internal): Override
6577         prefix_rep attribute for certain alternatives.
6578         (*mov<mode>_internal): Override prefix_rep or prefix_data16
6579         attributes for certain alternatives.
6580         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
6581         attributes for certain alternatives.
6582         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
6583         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
6584         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
6585         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
6586         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
6587         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
6588         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
6589         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
6590         length_immediate to 1 if operand 2 is const_int_operand.
6591         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
6592         *vec_extractv2si_1): Set length_immediate attribute to 1.
6593         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
6594         using old 3DNOW insn rather than SSE/3DNOW_A.
6595         (mmx_emms, mmx_femms): Clear modrm attribute.
6596
6597 2009-05-29  Martin Jambor  <mjambor@suse.cz>
6598
6599         * tree-sra.c:  New implementation of SRA.
6600
6601         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
6602         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
6603         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
6604         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
6605         (SRA_MAX_STRUCTURE_COUNT): Removed.
6606         (SRA_FIELD_STRUCTURE_RATIO): Removed.
6607         * doc/invoke.texi (sra-max-structure-size): Removed.
6608         (sra-field-structure-ratio): Removed.
6609
6610 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6611
6612         PR middle-end/40291
6613         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
6614         before expansion.
6615
6616 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
6617
6618         PR rtl-optimization/40101
6619         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
6620         seqno.  Adjust comment.
6621         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when 
6622         inserting bookkeeping before a jump, the jump is not scheduled.
6623         When no positive seqno found, provide a value.  Add comment.
6624
6625 2009-05-29  Richard Guenther  <rguenther@suse.de>
6626
6627         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
6628         short-cutting on the first component.
6629
6630 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6631
6632         PR middle-end/39958
6633         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
6634         for trees other than decls/types.
6635
6636 2009-05-29  Richard Guenther  <rguenther@suse.de>
6637
6638         * tree-ssa-operands.c (get_expr_operands): Do not handle
6639         INDIRECT_REFs in the handled-component case.  Remove
6640         unused get_ref_base_and_extent case.
6641         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
6642         tree_low_cst and host_integerp where possible.
6643         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
6644         codes for equivalence.
6645         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
6646
6647 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
6648
6649         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
6650         to tmake_file for i[34567]86-*-cygwin*. 
6651
6652 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
6653
6654         PR target/40017
6655         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
6656         (altivec_categorize_keyword, init_vector_keywords,
6657         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
6658         similar to bool.
6659
6660 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
6661
6662         * tree.c (handle_dll_attribute): Check if node is
6663         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
6664
6665 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
6666
6667         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
6668         component.
6669         (thumb2_zero_extendqidi2): Likewise.
6670
6671 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
6672
6673         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
6674         instead of gen_movrt.
6675         * config/sh/sh.md (movrt): Remove.
6676
6677 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
6678
6679         * doc/invoke.texi (IA-64 Options):
6680         Add -msdata, -mfused-madd, -mno-inline-float-divide, 
6681         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
6682         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
6683         -msched-prefer-non-control-spec-insns,
6684         -msched-stop-bits-after-every-cycle,
6685         -msched-count-spec-in-critical-path,
6686         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
6687         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
6688         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
6689         and -msched-spec-verbose.
6690
6691 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
6692
6693         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
6694         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
6695         error if used.
6696         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
6697
6698 2009-05-28  Richard Guenther  <rguenther@suse.de>
6699
6700         * tree-ssa-alias.c (ao_ref_init): New function.
6701         (ao_ref_base): Likewise.
6702         (ao_ref_base_alias_set): Likewise.
6703         (ao_ref_alias_set): Likewise.
6704         (refs_may_alias_p_1): Change signature.
6705         (refs_may_alias_p): Adjust.
6706         (refs_anti_dependent_p): Likewise.
6707         (refs_output_dependent_p): Likewise.
6708         (call_may_clobber_ref_p_1): Change signature.
6709         (call_may_clobber_ref_p): Adjust.
6710         (stmt_may_clobber_ref_p_1): New function split out from ...
6711         (stmt_may_clobber_ref_p): ... here.
6712         (maybe_skip_until): Adjust signature.
6713         (get_continuation_for_phi): Likewise.
6714         (walk_non_aliased_vuses): Likewise.
6715         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
6716         (ao_ref_init): Declare.
6717         (ao_ref_base): Likewise.
6718         (ao_ref_alias_set): Likewise.
6719         (stmt_may_clobber_ref_p_1): Likewise.
6720         (walk_non_aliased_vuses): Adjust.
6721         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
6722         (get_ref_from_reference_ops): remove.
6723         (vn_reference_lookup_2): Adjust signature.
6724         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
6725         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
6726         (vn_reference_lookup): Adjust.
6727         (vn_reference_insert): Likewise.
6728         (vn_reference_insert_pieces): Adjust signature.
6729         (visit_reference_op_call): Adjust.
6730         * tree-ssa-pre.c (get_expr_type): Simplify.
6731         (phi_translate_1): Adjust.
6732         (compute_avail): Likewise.
6733         (translate_vuse_through_block): Do not re-build trees.
6734         (value_dies_in_block_x): Likewise.
6735         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
6736         fields.
6737         (vn_reference_lookup_pieces): Adjust declaration.
6738         (vn_reference_insert_pieces): Likewise.
6739
6740 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
6741
6742         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
6743         with checking disabled.
6744
6745 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
6746
6747         PR target/37216
6748
6749         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
6750         macro definition for support of three-operand format aligned
6751         .comm directive in assembler on cygwin/pe/mingw target OS.
6752         * configure:  Regenerate.
6753         * config.h:  Regenerate.
6754
6755         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
6756         aligned form of .comm directive if -mpe-aligned-commons is in effect.
6757         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
6758
6759         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
6760         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
6761
6762 2009-05-28  Ira Rosen  <irar@il.ibm.com>
6763
6764         PR tree-optimization/40254
6765         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
6766         in analysis of basic blocks.
6767
6768 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
6769
6770         PR middle-end/33699
6771         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
6772         * target-def.h (TARGET_CONST_ANCHOR): New macro.
6773         (TARGET_INITIALIZER): Use it.
6774         * cse.c (CHEAPER): Move it up to the other macros.
6775         (insert): Rename this ...
6776         (insert_with_costs): ... to this.  Add cost parameters.  Update
6777         function comment.
6778         (insert): New function.  Call insert_with_costs.
6779         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
6780         find_reg_offset_for_const, try_const_anchors): New functions.
6781         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
6782         when using a const-anchor.  Call insert_const_anchors.
6783         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
6784         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
6785
6786 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
6787
6788         * tree-inline.c (remap_decls): Enable nonlocalized variables
6789         when not optimizing.
6790
6791 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
6792
6793         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
6794         Simplify other tests involving optimize.
6795
6796 2009-05-27  Tom Tromey  <tromey@redhat.com>
6797
6798         * unwind-dw2.c (_Unwind_DebugHook): New function.
6799         (uw_install_context): Call _Unwind_DebugHook.
6800
6801 2009-05-27  Tom Tromey  <tromey@redhat.com>
6802
6803         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
6804
6805 2009-05-27  Ian Lance Taylor  <iant@google.com>
6806
6807         * Makefile.in (LINKER, LINKER_FLAGS): Define.
6808         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
6809         (ALL_LINKERFLAGS): Define.
6810         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
6811         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
6812         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
6813         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
6814         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
6815         $(LINKER_FOR_BUILD).
6816         (build/gcov-iov$(build_exeext)): Likewise.
6817
6818 2009-05-27  Julian Brown  <julian@codesourcery.com>
6819
6820         * gcse.c (target.h): Include.
6821         (can_assign_to_reg_without_clobbers_p): Check that the target allows
6822         copy of argument to a pseudo register.
6823
6824 2009-05-27  Diego Novillo  <dnovillo@google.com>
6825
6826         * tree-ssa-live.c (dump_scope_block): Document arguments.
6827         (dump_scope_blocks): Document.
6828         (debug_scope_blocks): New.
6829         * tree-flow.h (debug_scope_blocks): Declare.
6830
6831 2009-05-21  Denis Chertykov  <denisc@overta.ru>
6832
6833         * doc/contrib.texi (Contributors): Add myself to the list.
6834
6835 2009-05-27  Olivier Hainque  <hainque@adacore.com>
6836
6837         * expr.c (target_align): New function.  Alignment the TARGET of an
6838         assignment may be assume to have.
6839         (highest_pow2_factor_for_target): Use it instead of relying on
6840         immediate tree attributes of TARGET, not necessarily honored when
6841         intermediate bitfields are involved.
6842         
6843 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6844
6845         PR target/40266
6846         * config/i386/driver-i386.c (host_detect_local_cpu): Support
6847         AVX, SSE4, AES, PCLMUL and POPCNT.
6848
6849 2009-05-27  Diego Novillo  <dnovillo@google.com>
6850
6851         * tree-pretty-print.c (dump_location): New.
6852         (dump_generic_node): Call it.
6853         Factor code to handle BLOCK nodes ...
6854         (dump_block_node): ... here.
6855
6856 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
6857
6858         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
6859         with it.
6860         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
6861         included.
6862         * gcc-plugin.h: Include config.h and system.h.
6863         (IN_GCC): Define if not defined.
6864
6865 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
6866
6867         PR middle-end/40249
6868         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
6869         with -fno-inline.
6870
6871 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
6872
6873         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
6874         applicable.
6875         * config/m32r/m32r.h: Ditto.
6876         * config/m32r/m32r.md: Ditto.
6877         * config/m32r/predicates.md: Ditto.
6878
6879 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
6880
6881         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
6882
6883 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
6884
6885         * doc/plugins.texi
6886         (Loading plugins): typo.
6887         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
6888         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
6889         (Interacting with the GCC Garbage Collector): Added new section.
6890         (Giving information about a plugin): Added new section for
6891         PLUGIN_INFO.
6892         * ggc.h (ggc_register_root_tab): Added declaration.
6893         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
6894         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
6895         (register_callback): Improved comment in declaration.
6896         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
6897         (extra_root_vec) Added static variable for dynamic roots registration.
6898         (ggc_register_root_tab) Added new routine.
6899         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
6900         PLUGIN_GGC_MARKING event.
6901         * ggc-zone.c: Include plugin.h.
6902         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
6903         * ggc-page.c: Include plugin.h.
6904         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
6905         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
6906         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
6907         (register_callback): check lack of callbacks for
6908         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
6909         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
6910         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
6911         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
6912         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
6913         dependency on plugin.h.
6914         (plugin.o): Added dependency on ggc.h...
6915
6916 2009-05-26  Richard Guenther  <rguenther@suse.de>
6917
6918         PR middle-end/40248
6919         Revert
6920         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
6921         with mismatched comparison modes.
6922
6923         * expr.c (expand_expr_real_1): Expand the operand of a
6924         VIEW_CONVERT_EXPR in its natural mode.
6925
6926 2009-05-26  Ian Lance Taylor  <iant@google.com>
6927
6928         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
6929         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
6930         (ALL_COMPILERFLAGS): Define.
6931         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
6932         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
6933         (collect2$(exeext), collect2.o): Likewise.
6934         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
6935         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
6936         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
6937         (libbackend.o, intl.o, cppdefault.o): Likewise.
6938         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
6939         (build/%.o): Use $(COMPILER_FOR_BUILD).
6940         (build/gen%$(build_exeext)): Likewise.
6941         (build/gcov-iov$(build_exeext)): LIkewise.
6942         * config/t-darwin (darwin.o): Use $(COMPILER).
6943         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
6944         * config/t-sol2 (sol2-c.o): Likewise.
6945         (sol2.o): Likewise.
6946         * config/t-vxworks (vxworks.o): Likewise.
6947         * config/x-darwin (host-darwin.o): Likewise.
6948         * config/x-hpux (host-hpux.o): Likewise.
6949         * config/x-linux (host-linux.o): Likewise.
6950         * config/x-solaris (host-solaris.o): Likewise.
6951         * config/alpha/x-alpha (driver-alpha.o): Likewise.
6952         * config/arm/t-arm (arm-c.o): Likewise.
6953         * config/arm/t-pe (pe.o): Likewise.
6954         * config/arm/t-wince-pe (pe.o): Likewise.
6955         * config/i386/t-cygming (winnt.o): Likewise.
6956         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
6957         * config/i386/t-cygwin (cygwin1.o): Likewise.
6958         (cygwin2.o): Likewise.
6959         * config/i386/t-i386 (i386-c.o): Likewise.
6960         * config/i386/t-interix (winnt.o): Likewise.
6961         * config/i386/t-netware (netware.o): Likewise.
6962         * config/i386/t-nwld (nwld.o): Likewise.
6963         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
6964         * config/i386/x-i386 (driver-i386.o): Likewise.
6965         * config/i386/x-cygwin (host-cygwin.o): Likewise.
6966         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
6967         * config/ia64/t-ia64 (ia64-c.o): Likewise.
6968         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
6969         * config/mips/x-native (driver-native.o): Likewise.
6970         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
6971         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
6972         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
6973         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
6974         * config/score/t-score-elf (score7.o): Likewise.
6975         (score3.o): Likewise.
6976         * config/sh/t-sh (sh-c.o): Likewise.
6977         * config/sh/t-symbian (sh-c.o): Likewise.
6978         (symbian.o): Likewise.
6979         * config/spu/t-spu-elf (spu-c.o): Likewise.
6980         * config/v850/t-v850 (v850-c.o): Likewise.
6981         * config/v850/t-v850e (v850-c.o): Likewise.
6982
6983 2009-05-26  Richard Guenther  <rguenther@suse.de>
6984
6985         PR tree-optimization/40122
6986         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
6987         VECTOR_CSTs if possible.
6988         (fold_gimple_assign): Likewise.
6989
6990 2009-05-26  Richard Guenther  <rguenther@suse.de>
6991
6992         PR middle-end/40252
6993         * fold-const.c (fold_binary): Use the correct types for building
6994         rotates.
6995
6996 2009-05-26  Richard Guenther  <rguenther@suse.de>
6997
6998         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
6999         redundant calls to merge_alias_info.
7000         (bump_vector_ptr): Likewise.
7001         * tree-ssa-copy.c (merge_alias_info): Remove.
7002         (replace_exp_1): Remove call to merge_alias_info.
7003         (propagate_tree_value): Likewise.
7004         (fini_copy_prop): Propagate points-to info.
7005         * tree-flow.h (merge_alias_info): Remove.
7006
7007 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
7008
7009         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
7010
7011 2009-05-25  Jan Hubicka  <jh@suse.cz>
7012
7013         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
7014         * cgraph.h (struct inline_summary): New filed self_wize,
7015         size_inlining_benefit, self_time and time_inlining_benefit.
7016         (struct cgraph_global_info): Replace insns by time ans size fields.
7017         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
7018         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
7019         (ipcp_update_callgraph): Do not touch function bodies.
7020         * ipa-inline.c: Include except.h
7021         (MAX_TIME): New constant.
7022         (overall_insns): Remove.
7023         (leaf_node_p): New.
7024         (overall_size, max_benefit): New static variables.
7025         (cgraph_estimate_time_after_inlining): New function.
7026         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
7027         (cgraph_clone_inlined_nodes): Update size.
7028         (cgraph_mark_inline_edge): Update size.
7029         (cgraph_estimate_growth): Use size info.
7030         (cgraph_check_inline_limits): Check size.
7031         (cgraph_default_inline_p): Likewise.
7032         (cgraph_edge_badness): Compute badness based on benefit and size cost.
7033         (cgraph_decide_recursive_inlining): Check size.
7034         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
7035         and times.
7036         (cgraph_decide_inlining): Likewise.
7037         (cgraph_decide_inlining_incrementally): Likewise; honor
7038         PARAM_EARLY_INLINING_INSNS.
7039         (likely_eliminated_by_inlining_p): New predicate.
7040         (estimate_function_body_sizes): New function.
7041         (compute_inline_parameters): Use it.
7042         * except.c (must_not_throw_labels): New function.
7043         * except.h (must_not_throw_labels): Declare.
7044         * tree-inline.c (init_inline_once): Kill inlining_weigths
7045         * tree-ssa-structalias.c: Avoid uninitialized warning.
7046         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
7047         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
7048         (PARAM_INLINE_CALL_COST): Remove.
7049         (PARAM_EARLY_INLINING_INSNS): New.
7050
7051 2009-05-25  Richard Guenther  <rguenther@suse.de>
7052
7053         PR tree-optimization/36327
7054         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
7055         callback for reference translation or lookup at the point of may-defs.
7056         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
7057         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
7058         for union COMPONENT_REFs.
7059         (vn_reference_lookup_3): New callback.  Lookup from memset
7060         and CONSTRUCTOR assignment, translate through struct copies.
7061         (vn_reference_lookup_pieces): Make sure to not free the
7062         passed operands array.  Adjust walk_non_aliased_vuses call.
7063         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
7064         make sure we do not leak memory.
7065
7066 2009-05-25  Richard Guenther  <rguenther@suse.de>
7067
7068         * tree-ssa-alias.h (dump_points_to_solution): Declare.
7069         * tree-inline.c (expand_call_inline): Reset the escaped and
7070         callused solutions.
7071         * tree-ssa-structalias.c (pass_build_ealias): New.
7072         * tree-pass.h (pass_build_ealias): Declare.
7073         * passes.c (init_optimization_passes): Add PTA during 
7074         early optimizations.
7075         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
7076         and CALLUSED solutions.
7077         (dump_points_to_solution): New function, split out from ...
7078         (dump_points_to_info_for): ... here.
7079         * tree-parloops.c (parallelize_loops): Reset the escaped and
7080         callused solutions.
7081
7082 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7083
7084         PR bootstrap/40027
7085         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
7086         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
7087
7088 2009-05-25  Ira Rosen  <irar@il.ibm.com>
7089
7090         PR tree-optimization/40238
7091         * tree-vect-stmts.c (vect_init_vector): Insert initialization
7092         statements after basic block's labels.
7093         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info() 
7094         to free the allocated memory.
7095
7096 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7097
7098         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
7099         return address with a USE.
7100
7101 2009-05-24  Richard Guenther  <rguenther@suse.de>
7102
7103         PR middle-end/40233
7104         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
7105         array type from the main variant of the inner type.
7106
7107 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7108
7109         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
7110         definition to bool (from int) to un-break build.
7111         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
7112
7113 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
7114
7115         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
7116         discard_stmt_changes): Delete.
7117         * tree-ssa-operands.c (scb_stack): Delete.
7118         (init_ssa_operands): Do not initialize it.
7119         (fini_ssa_operands): Do not free it.
7120         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
7121
7122         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with 
7123         update_stmt, remove the others.  Fix comments.
7124         * tree-dfa.c (optimize_stack_restore): Likewise.
7125         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
7126         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
7127         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7128         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
7129         Likewise.
7130         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
7131         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
7132         (dom_opt_finalize_block): Likewise, adjusting access to
7133         stmts_to_rescan.
7134         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
7135         (stmts_to_rescan): Change item type to gimple.
7136         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
7137
7138 2009-05-24  Ira Rosen  <irar@il.ibm.com>
7139
7140         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
7141         * tree-pass.h (pass_slp_vectorize): New pass.
7142         * params.h (SLP_MAX_INSNS_IN_BB): Define.
7143         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
7144         * tree-vectorizer.c (timevar.h): Include.
7145         (user_vect_verbosity_level): Declare.
7146         (vect_location): Fix comment.
7147         (vect_set_verbosity_level): Update user_vect_verbosity_level
7148         instead of vect_verbosity_level.
7149         (vect_set_dump_settings): Add an argument. Ignore user defined
7150         verbosity if dump flags require higher level of verbosity. Print to
7151         stderr only for loop vectorization.
7152         (vectorize_loops): Update call to vect_set_dump_settings.
7153         (execute_vect_slp): New function.
7154         (gate_vect_slp): Likewise.
7155         (struct gimple_opt_pass pass_slp_vectorize): New.
7156         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
7157         access its members.
7158         (vec_info_for_bb): New function.
7159         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
7160         (VECTORIZATION_ENABLED): New macro.
7161         (SLP_ENABLED, SLP_DISABLED): Likewise.
7162         (vect_is_simple_use): Add bb_vec_info argument.
7163         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
7164         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7165         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7166         vect_schedule_slp, vect_analyze_slp): Likewise.
7167         (vect_analyze_stmt): Add slp_tree argument.
7168         (find_bb_location): Declare.
7169         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
7170         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
7171         (vect_analyze_loop_operations, vect_analyze_loop,
7172         get_initial_def_for_induction, vect_create_epilog_for_reduction,
7173         vect_finalize_reduction, vectorizable_reduction,
7174         vectorizable_live_operation, vect_transform_loop): Likewise.
7175         * tree-data-ref.c (dr_analyze_innermost): Update comment,
7176         skip evolution analysis if analyzing a basic block.
7177         (dr_analyze_indices): Likewise.
7178         (initialize_data_dependence_relation): Skip the test whether the
7179         object is invariant for basic blocks.
7180         (compute_all_dependences): Skip dependence analysis for data
7181         references in basic blocks.
7182         (find_data_references_in_stmt): Don't fail in case of invariant
7183         access in basic block.
7184         (find_data_references_in_bb): New function.
7185         (find_data_references_in_loop): Move code to
7186         find_data_references_in_bb and add a call to it.
7187         (compute_data_dependences_for_bb): New function.
7188         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
7189         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
7190         that STEP is 0.
7191         (vect_analyze_data_ref_dependence): Check for interleaving in case of
7192         unknown dependence in basic block and fail in case of dependence in
7193         basic block.
7194         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
7195         dependence instances from either loop or basic block vectorization
7196         info.
7197         (vect_compute_data_ref_alignment): Check if it is loop vectorization
7198         before calling nested_in_vect_loop_p.
7199         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
7200         dependence instances from either loop or basic block vectorization
7201         info.
7202         (vect_verify_datarefs_alignment): Likewise.
7203         (vect_enhance_data_refs_alignment): Adjust function calls.
7204         (vect_analyze_data_refs_alignment): Likewise.
7205         (vect_analyze_group_access): Fix printing. Skip different checks if
7206         DR_STEP is 0. Keep strided stores either in loop or basic block
7207         vectorization data structure. Fix indentation.
7208         (vect_analyze_data_ref_access): Fix comments, allow zero step in
7209         basic blocks.
7210         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
7211         dependence instances from either loop or basic block vectorization
7212         info.
7213         (vect_analyze_data_refs): Update comment. Call
7214         compute_data_dependences_for_bb to analyze basic blocks.
7215         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
7216         case of loop vectorization. In case of basic block vectorization use
7217         data-ref itself as a base.
7218         (vect_create_data_ref_ptr): In case of basic block vectorization:
7219         don't advance the pointer, add new statements before the current
7220         statement.  Adjust function calls.
7221         (vect_supportable_dr_alignment): Support only aligned accesses in
7222         basic block vectorization.
7223         * common.opt (ftree-slp-vectorize): New flag.
7224         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
7225         (vect_pattern_recog_1): Likewise.
7226         * tree-vect-stmts.c (process_use): Likewise.
7227         (vect_init_vector): Add new statements in the beginning of the basic
7228         block in case of basic block SLP.
7229         (vect_get_vec_def_for_operand): Adjust function calls.
7230         (vect_finish_stmt_generation): Likewise.
7231         (vectorizable_call): Add assert that it is loop vectorization, adjust
7232         function calls.
7233         (vectorizable_conversion, vectorizable_assignment): Likewise.
7234         (vectorizable_operation): In case of basic block SLP, take
7235         vectorization factor from statement's type and skip the relevance
7236         check. Adjust function calls.
7237         (vectorizable_type_demotion): Add assert that it is loop
7238         vectorization, adjust function calls.
7239         (vectorizable_type_promotion): Likewise.
7240         (vectorizable_store): Check for outer loop only in case of loop
7241         vectorization. Adjust function calls. For basic blocks, skip the
7242         relevance check and don't advance pointers.
7243         (vectorizable_load): Likewise.
7244         (vectorizable_condition): Add assert that it is loop vectorization,
7245         adjust function calls.
7246         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
7247         that it is not reduction, get vector type, call only supported
7248         functions, skip loop specific parts.
7249         (vect_transform_stmt): Check for outer loop only in case of loop
7250         vectorization.
7251         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
7252         (vect_is_simple_use): Fix comment, add new argument, fix conditions
7253         for external definition.
7254         * passes.c (pass_slp_vectorize): New pass.
7255         * tree-vect-slp.c (find_bb_location): New function.
7256         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
7257         check for patterns only in loops.
7258         (vect_build_slp_tree): Add argument, adjust function calls, fail in
7259         case of multiple types in basic block SLP.
7260         (vect_mark_slp_stmts_relevant): New function.
7261         (vect_supported_load_permutation_p): Fix comment.
7262         (vect_analyze_slp_instance): Add argument. In case of basic block
7263         SLP, take vectorization factor from statement's type, check that
7264         unrolling factor is 1. Adjust function call. Save SLP instance in
7265         either loop or basic block vectorization structure. Return FALSE,
7266         if SLP failed.
7267         (vect_analyze_slp): Add argument. Get strided stores groups from
7268         either loop or basic block vectorization structure. Return FALSE
7269         if basic block SLP failed.
7270         (new_bb_vec_info): New function.
7271         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
7272         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
7273         (vect_schedule_slp): Add argument. Get SLP instances from either
7274         loop or basic block vectorization structure. Set vectorization factor
7275         to be 1 for basic block SLP.
7276         (vect_slp_transform_bb): New function.
7277         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
7278
7279 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
7280
7281         * final.c (shorten_branches): Do not align labels for jump tables.
7282         (final_scan_insn): Use JUMP_TABLE_DATA_P.
7283
7284 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7285
7286         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
7287         Remove outdated reference to flow.c and fix nits.
7288         * doc/gccint.texi: Tweak RTL description.
7289         * doc/rtl.texi: Likewise.
7290
7291 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
7292
7293         * config/avr/avr.c: Change my email address.
7294         * config/avr/avr.h: Likewise.
7295         * config/avr/avr.md: Likewise.
7296         * config/avr/avr-protos.h: Likewise.
7297         * config/avr/libgcc.S: Likewise.
7298
7299 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
7300
7301         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
7302         (spu_split_load, spu_split_store): Change return type to int.
7303         (spu_split_convert): Declare.
7304         * config/spu/predicates.md (spu_mem_operand): Remove.
7305         (spu_mov_operand): Update.
7306         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
7307         * config/spu/spu.c (regno_aligned_for_load): Remove.
7308         (reg_aligned_for_addr, spu_expand_load): Define.
7309         (spu_expand_extv): Reimplement and handle MEM.
7310         (spu_expand_insv): Handle MEM.
7311         (spu_sched_reorder): Handle insn's with length 0.
7312         (spu_legitimate_address_p): Reimplement.
7313         (store_with_one_insn_p): Return TRUE for any mode with size
7314         larger than 16 bytes.
7315         (address_needs_split): Define.
7316         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
7317         operands.
7318         (spu_convert_move): Define.
7319         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
7320         (spu_split_store): Change all MEM's to TImode.
7321         (spu_init_expanders): Preallocate registers that correspond to
7322         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
7323         mark_reg_pointer.
7324         (spu_split_convert): Define.
7325         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
7326         (_move<mode>, _movdi, _movti): Update predicate and condition.
7327         (load, store): Change to define_split.
7328         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
7329         extend<mode>ti2.
7330         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
7331         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
7332         define_insn_and_split of lshr<mode>3.
7333         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
7334         (<v>ashr<mode>3_imm): Define.
7335         (extv, extzv, insv): Allow MEM operands.
7336         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
7337         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
7338         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
7339         (_spu_convert2): Change to define_insn_and_split and remove the
7340         corresponding define_peephole2.
7341         (stack_protect_set, stack_protect_test, stack_protect_test_si):
7342         Change predicates to memory_operand.
7343
7344 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7345
7346         * config/arm/thumb2.md: Add 16-bit multiply instructions.
7347
7348 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7349
7350         PR tree-optimization/40219
7351         * tree.c (iterative_hash_expr): Make sure the builtin function is
7352         a normal builtin function and not a front end or back end builtin
7353         before indexing into the built_in_decls array.
7354
7355 2009-05-22  Richard Guenther  <rguenther@suse.de>
7356
7357         PR middle-end/38964
7358         * alias.c (write_dependence_p): Do not use TBAA for answering
7359         anti-dependence or output-dependence.
7360         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
7361         (emit_pointer_definition): Remove.
7362         (emit_alias_warning): Likewise.
7363         (find_what_var_points_to): Remove TBAA pruning code.
7364         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
7365         violations.
7366         (compute_points_to_sets): Remove code computing the set of
7367         dereferenced pointers.
7368         * tree-data-ref.c (dr_may_alias_p): Properly use the split
7369         oracle for querying anti and output dependencies.
7370         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
7371         if TBAA may be applied.
7372         (refs_anti_dependent_p): New function.
7373         (refs_output_dependent_p): Likewise.
7374         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
7375         (refs_output_dependent_p): Likewise.
7376         * doc/tree-ssa.texi (Memory model): New section.
7377         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7378         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7379         * cfgexpand.c (expand_gimple_basic_block): Do not handle
7380         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
7381         * expr.c (expand_expr_real_1): Likewise.
7382         * gimple-low.c (lower_stmt): Likewise.
7383         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
7384         (dump_gimple_cdt): Remove.
7385         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7386         (gimple_size): Likewise.
7387         (walk_gimple_op): Likewise.
7388         (is_gimple_stmt): Likewise.
7389         (walk_stmt_load_store_addr_ops): Likewise.
7390         (gimple_build_cdt): Remove.
7391         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
7392         * gimple.h (gimple_cdt_new_type): Remove.
7393         (gimple_cdt_new_type_ptr): Likewise.
7394         (gimple_cdt_set_new_type): Likewise.
7395         (gimple_cdt_location): Likewise.
7396         (gimple_cdt_location_ptr): Likewise.
7397         (gimple_cdt_set_location): Likewise.
7398         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7399         * tree-cfg.c (remove_useless_stmts_1): Do not handle
7400         GIMPLE_CHANGE_DYNAMIC_TYPE.
7401         (verify_types_in_gimple_stmt): Likewise.
7402         * tree-inline.c (estimate_num_insns): Likewise.
7403         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
7404         (copy_decl_to_var): Likewise.
7405         (copy_result_decl_to_var): Likewise.
7406         * tree-pretty-print.c (dump_generic_node): Do not handle
7407         CHANGE_DYNAMIC_TYPE_EXPR.
7408         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7409         * tree-ssa-operands.c (get_expr_operands): Likewise.
7410         * tree-ssa-structalias.c (struct variable_info): Remove
7411         no_tbaa_pruning member.
7412         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
7413         (unify_nodes): Do not copy it.
7414         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
7415         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
7416         (set_uids_in_ptset): Do not check it.
7417         (find_what_var_points_to): Likewise.
7418         (compute_tbaa_pruning): Remove.
7419         (compute_points_to_sets): Do not call it.
7420         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
7421         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
7422         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
7423         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
7424         (DECL_NO_TBAA_P): Likewise.
7425         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
7426         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
7427         (expand_omp_atomic_pipeline): Do not set it.
7428         * print-tree.c (print_node): Do not dump it.
7429         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
7430         redundant check.
7431
7432 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
7433
7434         PR target/39856
7435         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
7436         for clobber.
7437
7438 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
7439
7440         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
7441         non-external.
7442
7443 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7444
7445         * Makefile.in (bversion.h, s-bversion): New targets.
7446         (TOPLEV_H): Add bversion.h.
7447         * toplev.h: Include "bversion.h".
7448         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
7449         the __format__ attribute only if compiling with the same version
7450         of GCC as the sources (the "build version").
7451
7452 2009-05-22  Ben Elliston  <bje@au.ibm.com>
7453
7454         * c-format.c (handle_format_attribute): Fix comment typo.
7455
7456 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
7457
7458         PR target/37846
7459         * config/ia64/ia64.opt (mfused-madd): New.
7460         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
7461         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
7462         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
7463         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
7464         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
7465         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
7466         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
7467         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms 
7468         instruction if !TARGET_FUSED_MADD.
7469         (fpma, fpms): Remove colon from name.
7470
7471 2009-05-22  Richard Guenther  <rguenther@suse.de>
7472
7473         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
7474         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
7475         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7476         TARGET_MEM_REF.
7477         (create_expression_by_pieces): Only convert if necessary.
7478         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
7479         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
7480
7481 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
7482
7483         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
7484         regular pattern from a template and rename it ...
7485         (*extzv_truncsi_exts): ... to this.
7486
7487 2009-05-21  Richard Guenther  <rguenther@suse.de>
7488
7489         * cgraph.h (struct cgraph_node): Remove inline_decl member.
7490         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
7491         (cgraph_default_inline_p): Likewise.
7492         (cgraph_decide_inlining_incrementally): Likewise.
7493
7494 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7495             Uros Bizjak  <ubizjak@gmail.com>
7496
7497         * config/i386/cpuid.h (bit_MOVBE): New.
7498
7499         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
7500
7501         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
7502         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
7503         (ix86_handle_option): Handle OPT_mmovbe.
7504         (ix86_target_string): Add -mmovbe.
7505         (pta_flags): Add PTA_MOVBE.
7506         (processor_alias_table): Add PTA_MOVBE to "atom".
7507         (override_options): Handle PTA_MOVBE.
7508
7509         * config/i386/i386.h (TARGET_MOVBE): New.
7510
7511         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
7512         (*bswapsi_movbe): New.
7513         (*bswapdi_movbe): Likewise.
7514         (bswapdi2): Renamed to ...
7515         (*bswapdi_1): This.
7516         (bswapdi2): New expander.
7517
7518         * config/i386/i386.opt (mmovbe): New.
7519
7520         * doc/invoke.texi: Document -mmovbe.
7521
7522 2009-05-21  Taras Glek  <tglek@mozilla.com>
7523
7524         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
7525         * gcc-plugin.h (plugin_init): Updated signature.
7526         * gcc-plugin.h (plugin_name_args): Moved to this header.
7527         * doc/plugins.texi (plugin_init): Updated documention to reflect
7528         API change.
7529         * doc/plugins.texi (plugin_name_args): Added to documention.
7530
7531 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
7532
7533         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
7534         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
7535
7536 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
7537
7538         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
7539         JUMP_TABLE_DATA_P predicates where applicable.
7540         * config/i386/predicates.md: Ditto.
7541         * config/i386/sse.md: Ditto.
7542
7543 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
7544
7545         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
7546         operand2 -128 override length_immediate attribute to 1.
7547         * config/i386/predicates.md (constm128_operand): New predicate.
7548
7549         * config/i386/i386.c (memory_address_length): Handle %r12
7550         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
7551         also check REGNO.
7552         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
7553         mode look through optional ZERO_EXTEND and SUBREG.
7554         * config/i386/i386.md (R12_REG): New define_constant.
7555         (prefix_data16): For sse unit set also for MODE_TI insns.
7556         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
7557         insns set if operand 1 is ext_QIreg_operand.
7558         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
7559         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
7560         immediate.
7561         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
7562         mode from MODE_DI to MODE_SI.
7563         (movdi_1_rex64): Override modrm and length_immediate attributes
7564         only for movabs (TYPE_IMOV, alternative 2).
7565         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
7566         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
7567         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
7568         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
7569         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
7570         prefix_rex attribute if DImode.
7571         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
7572         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7573         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
7574         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
7575         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
7576         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
7577         Likewise.  For TYPE_IMOV clear length_immediate attribute.
7578         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
7579         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
7580         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
7581         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7582         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
7583         or one operand TYPE_ISHIFT.
7584         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
7585         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
7586         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
7587         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
7588         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
7589         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
7590         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
7591         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
7592         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
7593         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
7594         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
7595         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
7596         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
7597         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
7598         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
7599         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
7600         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
7601         set mode attribute, don't override length attribute.
7602         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
7603         to 1.
7604         (return_internal_long): Set length attribute to 2 instead of 1.
7605         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
7606         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
7607         prefix_rex attribute.
7608         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
7609         New predicates.
7610         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
7611
7612 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7613
7614         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
7615
7616 2009-05-20  Ian Lance Taylor  <iant@google.com>
7617
7618         * tree.c (build_tree_list_vec_stat): New function.
7619         (ctor_to_vec): New function.
7620         (build_nt_call_vec): New function.
7621         (build_call_array): Change args to be a const pointer.
7622         (build_call_vec): New function.
7623         * tree.h (build_nt_call_vec): Declare.
7624         (build_tree_list_vec_stat): Declare.
7625         (build_tree_list_vec): Define.
7626         (build_call_array): Update declaration.
7627         (build_call_vec): Declare.
7628         (ctor_to_vec): Declare.
7629         * c-common.c (tree_vector_cache): New static variable.
7630         (make_tree_vector): New function.
7631         (release_tree_vector): New function.
7632         (make_tree_vector_single): New function.
7633         (make_tree_vector_copy): New function.
7634         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
7635         (make_tree_vector_single, make_tree_vector_copy): Declare.
7636         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
7637         (c_parser_expr_list): Don't manage cache here, instead call
7638         make_tree_vector.
7639         (c_parser_release_expr_list): Remove static function.
7640         (c_parser_vec_to_tree_list): Remove static function.
7641         (c_parser_attributes): Call build_tree_list_vec instead of
7642         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
7643         c_parser_release_expr_list.
7644         (c_parser_postfix_expression_after_primary): Likewise.
7645         (c_parser_objc_keywordexpr): Likewise.
7646
7647 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7648
7649         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
7650         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
7651         TARGET_CONVERT_TO_TYPE.
7652         * hooks.c (hook_tree_const_tree_null): Define.
7653         * hooks.h (hook_tree_const_tree_null): Declare.
7654         * target.h (struct gcc_target):  Add invalid_parameter_type,
7655         invalid_return_type, promoted_type, and convert_to_type fields.
7656         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
7657         (TARGET_INVALID_RETURN_TYPE): Define.
7658         (TARGET_PROMOTED_TYPE): Define.
7659         (TARGET_CONVERT_TO_TYPE): Define.
7660         (TARGET_INITIALIZER): Update for new fields.
7661         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
7662         (grokparms): Check targetm.invalid_parameter_type.
7663         * c-typeck.c (default_conversion): Check targetm.promoted_type.
7664         * c-convert.c (convert): Check targetm.convert_to_type.
7665
7666 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
7667
7668         * config/mips/mips.md (*extenddi_truncate<mode>,
7669         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
7670         defintions.
7671         (*extendhi_truncateqi): New define_insn_and_sptit.
7672
7673 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
7674
7675         PR middle-end/40204
7676         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
7677         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
7678
7679 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
7680
7681         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
7682         the operand of VIEW_CONVERT_EXPR.
7683
7684 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7685
7686         * config/i386/driver-i386.c (host_detect_local_cpu): Check
7687         extended family and model for Intel processors.  Support Intel Atom.
7688
7689 2009-05-20  Olivier Hainque  <hainque@adacore.com>
7690
7691         * gstab.h (stab_code_type): Define, to be used instead of the
7692         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
7693         notice.
7694         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
7695         occurrences by stab_code_type.
7696         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
7697
7698 2009-05-20  Martin Jambor  <mjambor@suse.cz>
7699
7700         * tree-flow.h (insert_edge_copies_seq): Undeclare.
7701         (sra_insert_before): Likewise.
7702         (sra_insert_after): Likewise.
7703         (sra_init_cache): Likewise.
7704         (sra_type_can_be_decomposed_p): Likewise.
7705         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
7706         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
7707         (sra_insert_before): Likewise.
7708         (sra_insert_after): Likewise.
7709         (sra_init_cache): Likewise.
7710         (insert_edge_copies_seq): Made static and moved upwards.
7711
7712         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
7713         case.
7714
7715         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
7716
7717         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
7718         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
7719         simple copies.
7720
7721 2009-05-20  Richard Guenther  <rguenther@suse.de>
7722
7723         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
7724         with mismatched comparison modes.
7725
7726 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7727
7728         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
7729         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
7730         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
7731         with shifts for Thumb2.
7732         (orsi_notsi): New for orn.
7733         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
7734         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
7735         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
7736         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
7737         Don't invert remainder for IOR.
7738         
7739 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
7740
7741         PR tree-optimization/40087
7742         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
7743         number_of_iterations_ne): Rename never_infinite argument.
7744         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
7745         number_of_iterations_le): Handle pointer-type ivs when
7746         exit_must_be_taken is false.
7747         (number_of_iterations_cond):  Do not always assume that
7748         exit_must_be_taken if the control variable is a pointer.
7749
7750 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7751
7752         * c-typeck.c (build_binary_op): Allow % on integal vectors.
7753         * doc/extend.texi (Vector Extension): Document that % is allowed too.
7754
7755 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7756
7757         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
7758         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
7759
7760 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7761
7762         PR c/40172
7763         * c.opt (Wlogical-op): Disabled by default.
7764         * c-opt (c_common_post_options): Do not enable Wlogical-op with
7765         Wextra.
7766         * doc/invoke.texi (Wlogical-op): Likewise.
7767         
7768 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7769
7770         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
7771         into CASE_CONVERT.
7772         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
7773         Propagate the type of the first operand.
7774         <ASSERT_EXPR>: Simplify.
7775         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
7776         Rewrite using the RHS code as discriminant.
7777         <NOP_EXPR>: Turn into CASE_CONVERT.
7778         <PLUS_EXPR>: Propagate the type of the first operand.
7779
7780 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
7781
7782         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
7783         (ia64_dconst_0_375): New.
7784         * config/ia64/ia64.c (ia64_override_options): Remove
7785         -minline-sqrt-min-latency warning.
7786         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
7787         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
7788         * config/ia64/ia64.md (*sqrt_approx): Remove.
7789         (sqrtsf2): Remove #if 0.
7790         (sqrtsf2_internal_thr): Rewrite and move to div.md.
7791         (sqrtdf): Remove assert.
7792         (sqrtdf2_internal_thr): Rewrite and move to div.md.
7793         (sqrtxf2): Remove #if 0.
7794         (sqrtxf2_internal_thr): Rewrite and move to div.md.
7795         * div.md (sqrt_approx_rf): New.
7796         (sqrtsf2_internal_thr): New implementation.
7797         (sqrtsf2_internal_lat): New.
7798         (sqrtdf2_internal_thr: New implementation.
7799         (sqrtxf2_internal): New implementation.
7800
7801 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
7802             Hans-Peter Nilsson  <hp@axis.com>
7803
7804         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
7805         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
7806         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
7807         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
7808         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
7809         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
7810         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
7811         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
7812         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
7813         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
7814         * c-common.c: ...from here.
7815
7816 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7817
7818         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
7819
7820 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7821
7822         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
7823
7824 2009-05-19  Ben Elliston  <bje@au.ibm.com>
7825
7826         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
7827         assignments with memcpy calls.
7828         (add_fdes): Likewise.
7829         (binary_search_unencoded_fdes): Likewise.
7830         (linear_search_fdes): Eliminate type puns.
7831         
7832 2009-05-19  Richard Guenther  <rguenther@suse.de>
7833
7834         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
7835         not falsely claim to have propagated into all uses.
7836
7837 2009-05-19  Ben Elliston  <bje@au.ibm.com>
7838
7839         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
7840         version to v3.0.
7841
7842 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7843
7844         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
7845         * config/sh/sh.c (sh_legitimate_address_p): Make static.
7846         (TARGET_LEGITIMATE_ADDRESS_P): New.
7847         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
7848         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
7849         
7850 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
7851
7852         PR debug/40109
7853         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
7854         child of the containing namespace's DIE.
7855
7856 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
7857
7858         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
7859         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
7860         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
7861         extend patterns.
7862
7863 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7864
7865         PR target/39942
7866         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
7867         gen_align with gen_pad.
7868         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
7869         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
7870
7871         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
7872         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
7873
7874         * config/i386/i386.md (align): Renamed to ...
7875         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
7876         ASM_OUTPUT_MAX_SKIP_PAD.
7877
7878 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7879
7880         * config.gcc: Fix variable syntax.
7881
7882         PR target/39531
7883         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
7884         before calling exact_log2.
7885         (output_iorsi3): Likewise.
7886         (output_xorsi3): Likewise.
7887
7888 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7889
7890         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
7891         for the none zero constant operand except for EQ and NE
7892         comprisons even when the first operand is R0.
7893
7894 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
7895
7896         * config/s390/2064.md: Remove trailing whitespaces.
7897         * config/s390/2084.md: Likewise.
7898         * config/s390/constraints.md: Likewise.
7899         * config/s390/fixdfdi.h: Likewise.
7900         * config/s390/libgcc-glibc.ver: Likewise.
7901         * config/s390/s390-modes.def: Likewise.
7902         * config/s390/s390-protos.h: Likewise.
7903         * config/s390/s390.c: Likewise.
7904         * config/s390/s390.h: Likewise.
7905         * config/s390/s390.md: Likewise.
7906         * config/s390/tpf-unwind.h: Likewise.
7907
7908 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7909
7910         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
7911
7912 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
7913
7914         M68K TLS support.
7915         * configure.ac (m68k-*-*): Check if binutils support TLS.
7916         * configure: Regenerate.
7917         * config/m68k/predicates.md (symbolic_operand): Extend comment.
7918         * config/m68k/constraints.md (Cu): New constraint.
7919         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
7920         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
7921         (movsi): Handle TLS symbols.
7922         (addsi3_5200): Handle XTLS symbols, indent.
7923         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
7924         (m68k_tls_reference_p): Declare.
7925         (m68k_legitimize_address): Declare.
7926         (m68k_unwrap_symbol): Declare.
7927         * config/m68k/m68k.opt (mxtls): New option.
7928         * config/m68k/m68k.c (ggc.h): Include.
7929         (m68k_output_dwarf_dtprel): Implement hook.
7930         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
7931         (m68k_expand_prologue): Load GOT pointer when function needs it.
7932         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
7933         (m68k_legitimate_constant_address_p): Same.
7934         (m68k_decompose_address): Handle TLS references.
7935         (m68k_get_gp): New static function.
7936         (enum m68k_reloc): New contants.
7937         (TLS_RELOC_P): New macro.
7938         (m68k_wrap_symbol): New static function.
7939         (m68k_unwrap_symbol): New function.
7940         (m68k_final_prescan_insn_1): New static function.
7941         (m68k_final_prescan_insn): New function.
7942         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
7943         functions.
7944         (legitimize_pic_address): Handle TLS references..
7945         (m68k_tls_get_addr, m68k_get_tls_get_addr)
7946         (m68k_libcall_value_in_a0_p)
7947         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
7948         (m68k_call_m68k_read_tp): Helper variables and functions for ...
7949         (m68k_legitimize_tls_address): Handle TLS references.
7950         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
7951         New functions.
7952         (m68k_legitimize_address): Handle TLS symbols.
7953         (m68k_get_reloc_decoration): New static function.
7954         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
7955         UNSPEC_RELOC32.
7956         (m68k_output_dwarf_dtprel): Implement hook.
7957         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
7958         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
7959         m68k_call_* routines.
7960         (sched_attr_op_type): Handle TLS symbols.
7961         (gt-m68k.h): Include.
7962         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
7963         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
7964
7965 2009-05-18  Martin Jambor  <mjambor@suse.cz>
7966
7967         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
7968         (visit_store_addr_for_mod_analysis): New function.
7969         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
7970         (determine_cst_member_ptr): Use gimple_assign_single_p.
7971         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
7972         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
7973         operands.  Don't check number of operands of a NOP_EXPR.
7974
7975 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
7976
7977         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
7978
7979 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7980
7981         PR c/40172
7982         * c-common.c (warn_logical_operator): Don't warn if one of
7983         expression isn't always true or false.
7984
7985 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
7986
7987         * config/i386/biarch32.h: New file.
7988         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
7989
7990 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
7991
7992         * config/mips/mips.md (*zero_extend<mode>_trunchi,
7993         *zero_extend<mode>_truncqi): Merge these into ...
7994         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
7995         Name the pattern following this as *zero_extendhi_truncqi.
7996
7997 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
7998
7999         PR middle-end/39301
8000         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
8001         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
8002         (output_info): Make field HOST_WIDEST_INT.
8003         (print_statistics): Use HOST_WIDEST_INT_PRINT.
8004         (dump_bitmat_statistics): Same.
8005
8006 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
8007
8008         * config.gcc (use_gcc_stdint):  Set to wrap.
8009         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
8010         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
8011         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
8012         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
8013         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
8014         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
8015         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
8016         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
8017
8018 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
8019
8020         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
8021         tune_64.
8022         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
8023         Move definitions earlier.
8024         (OPT_ARCH64, OPT_ARCH32): Define.
8025         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
8026         and tune_64.
8027
8028 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8029
8030         PR target/40153
8031         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
8032         implies.
8033
8034 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
8035
8036         * arm.md (movdi2): Copy non-reg values to DImode registers.
8037
8038 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
8039
8040         PR target/39942
8041         * final.c (label_to_max_skip): New function.
8042         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
8043         CODE_LABEL_NUMBER <= max_labelno.
8044         * output.h (label_to_max_skip): New prototype.
8045         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
8046         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
8047         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
8048         Handle CODE_LABELs with >= 16 byte alignment or with
8049         max_skip == (1 << align) - 1.
8050         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
8051         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
8052
8053         PR target/39942
8054         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
8055         .p2align 3 if MAX_SKIP is smaller than 7.
8056         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
8057
8058 2009-05-15  Ian Lance Taylor  <iant@google.com>
8059
8060         * alias.c (struct alias_set_entry_d): Rename from struct
8061         alias_set_entry.  Change all uses.
8062         * except.c (struct call_site_record_d): Rename from struct
8063         call_site_record.  Change all uses.
8064         * except.h (struct eh_region_d): Rename from struct eh_region.
8065         Change all uses.
8066         * gcse.c (struct hash_table_d): Rename from struct hash_table.
8067         Change all uses.
8068         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
8069         ivtype_map_elt.  Change all uses.
8070         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
8071         Change all uses.
8072         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
8073         * graphite.h (struct name_tree_d): Rename from struct name_tree.
8074         Change all uses.
8075         (struct sese_d): Rename from struct sese.  Change all uses.
8076         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
8077         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
8078         * optabs.h (struct optab_d): Rename from struct optab.  Change all
8079         uses.
8080         (struct convert_optab_d): Rename from struct convert_optab.
8081         Change all uses.
8082         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
8083         ipa_opt_pass.  Change all uses.
8084         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
8085         all uses.
8086
8087         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
8088         defined as a typedef.
8089         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
8090         defined as a tag.
8091
8092 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8093
8094         PR 16302
8095         * fold-const.c (make_range,build_range_check,merge_ranges): Move
8096         declaration to...
8097         (merge_ranges): Returns bool. 
8098         * tree.h (make_range): .. to here.
8099         (build_range_check): Likewise.
8100         (merge_ranges): Likewise. Renamed from merge_ranges.
8101         * c-typeck.c (parser_build_binary_op): Update calls to
8102         warn_logical_operator.
8103         * c-common.c (warn_logical_operator): Add new warning.
8104         * c-common.h (warn_logical_operator): Update declaration.
8105         
8106 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8107
8108         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
8109         
8110 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8111
8112         * doc/install.texi: Document MPC requirements, flags etc.
8113
8114         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
8115         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
8116         Evaluate constant arguments.
8117         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
8118         (fold_builtin_1): Likewise, also evaluate constant arguments.
8119         Remove superfluous break.
8120         (do_mpc_ckconv): New.
8121         * real.h: Include mpc.h.
8122         * toplev.c (print_version): Output MPC version info if available.
8123
8124 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8125
8126         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
8127
8128 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8129
8130         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
8131         only once.
8132
8133 2009-05-15  Jan Hubicka  <jh@suse.cz>
8134
8135         * doc/invoke.texi (max-early-inliner-iterations): New flag.
8136         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
8137         (try_inline): Fix return value.
8138         (cgraph_decide_inlining_incrementally): Honor new value.
8139         (cgraph_early_inlining): Handle indirect inlining.
8140         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
8141
8142 2009-05-15  Jan Hubicka  <jh@suse.cz>
8143
8144         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
8145         * cgraphunit.c (cgraph_finalize_function): Set it.
8146         (cgraph_expand_function): Use it.
8147
8148 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8149
8150         * real.c (encode_ieee_half): Define.
8151         (decode_ieee_half): Define.
8152         (ieee_half_format): Define.
8153         (arm_half_format): Define.
8154         * real.h (ieee_half_format): Declare.
8155         (arm_half_format): Declare.
8156
8157 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
8158
8159         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
8160         swapped, and reversed optabs exist before trying to use them.
8161
8162 2009-05-15  Paul Brook  <paul@codesourcery.com>
8163             Sandra Loosemore  <sandra@codesourcery.com>
8164
8165         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
8166         loads.  Allow PRE_DEC.
8167         (output_move_neon): Handle PRE_DEC.
8168         (arm_print_operand): Add 'A' for neon structure loads.
8169         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
8170         * config/arm/neon.md (neon_mov): Update comment.
8171         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
8172         calls.
8173         (Um): New constraint.
8174
8175 2009-05-15  Jan Hubicka  <jh@suse.cz>
8176
8177         Revert the following patch until testsuite fallout is fixed:
8178         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8179         * cgraph.h (struct inline_summary): New filed self_wize,
8180         size_inlining_benefit, self_time and time_inlining_benefit.
8181         (struct cgraph_global_info): Replace insns by time ans size fields.
8182         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8183         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8184         (ipcp_update_callgraph): Do not touch function bodies.
8185         * ipa-inline.c: Include except.h
8186         (MAX_TIME): New constant.
8187         (overall_insns): Remove
8188         (overall_size, max_benefit): New static variables.
8189         (cgraph_estimate_time_after_inlining): New function.
8190         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8191         (cgraph_clone_inlined_nodes): Update size.
8192         (cgraph_mark_inline_edge): Update size.
8193         (cgraph_estimate_growth): Use size info.
8194         (cgraph_check_inline_limits): Check size.
8195         (cgraph_default_inline_p): Likewise.
8196         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8197         (cgraph_decide_recursive_inlining): Check size.
8198         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8199         and times.
8200         (cgraph_decide_inlining): Likewise.
8201         (cgraph_decide_inlining_incrementally): Likewise; honor
8202         PARAM_EARLY_INLINING_INSNS.
8203         (likely_eliminated_by_inlining_p): New predicate.
8204         (estimate_function_body_sizes): New function.
8205         (compute_inline_parameters): Use it.
8206         * except.c (must_not_throw_labels): New function.
8207         * except.h (must_not_throw_labels): Declare.
8208         * tree-inline.c (init_inline_once): Kill inlining_weigths
8209         * tree-ssa-structalias.c: Avoid uninitialized warning.
8210         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8211         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8212         (PARAM_INLINE_CALL_COST): Remove.
8213         (PARAM_EARLY_INLINING_INSNS): New.
8214
8215 2009-05-15  Richard Guenther  <rguenther@suse.de>
8216
8217         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
8218         not TODO_update_ssa.
8219
8220 2009-05-15  Richard Guenther  <rguenther@suse.de>
8221
8222         PR tree-optimization/39999
8223         * gimple.h (gimple_expr_type): Use the expression type looking
8224         through useless conversions.
8225         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
8226         (vn_nary_op_insert_stmt): Likewise.
8227         (simplify_binary_expression): Likewise.
8228
8229 2009-05-15  Richard Guenther  <rguenther@suse.de>
8230
8231         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8232         New options, enabled by default.
8233         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
8234         Document.
8235         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
8236         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
8237         * tree-ssa-structalias.c (gate_tree_pta): New function.
8238         (pass_build_alias): Use it.
8239
8240 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
8241
8242         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
8243         recurse on an invariant address if a conversion from a pointer
8244         type to a wider integer type is involved.
8245
8246 2009-05-15  Jan Hubicka  <jh@suse.cz>
8247
8248         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
8249         * cgraph.h (struct inline_summary): New filed self_wize,
8250         size_inlining_benefit, self_time and time_inlining_benefit.
8251         (struct cgraph_global_info): Replace insns by time ans size fields.
8252         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
8253         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
8254         (ipcp_update_callgraph): Do not touch function bodies.
8255         * ipa-inline.c: Include except.h
8256         (MAX_TIME): New constant.
8257         (overall_insns): Remove
8258         (overall_size, max_benefit): New static variables.
8259         (cgraph_estimate_time_after_inlining): New function.
8260         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
8261         (cgraph_clone_inlined_nodes): Update size.
8262         (cgraph_mark_inline_edge): Update size.
8263         (cgraph_estimate_growth): Use size info.
8264         (cgraph_check_inline_limits): Check size.
8265         (cgraph_default_inline_p): Likewise.
8266         (cgraph_edge_badness): Compute badness based on benefit and size cost.
8267         (cgraph_decide_recursive_inlining): Check size.
8268         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
8269         and times.
8270         (cgraph_decide_inlining): Likewise.
8271         (cgraph_decide_inlining_incrementally): Likewise; honor
8272         PARAM_EARLY_INLINING_INSNS.
8273         (likely_eliminated_by_inlining_p): New predicate.
8274         (estimate_function_body_sizes): New function.
8275         (compute_inline_parameters): Use it.
8276         * except.c (must_not_throw_labels): New function.
8277         * except.h (must_not_throw_labels): Declare.
8278         * tree-inline.c (init_inline_once): Kill inlining_weigths
8279         * tree-ssa-structalias.c: Avoid uninitialized warning.
8280         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
8281         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
8282         (PARAM_INLINE_CALL_COST): Remove.
8283         (PARAM_EARLY_INLINING_INSNS): New.
8284         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
8285         (inline-call-cost): Remove.
8286         (early-inlining-insns): New.
8287
8288 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8289
8290         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
8291         for bounds.
8292         (print_int_cst_bounds_in_octal_p): Likewise.
8293         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
8294         with subtypes.
8295         * dwarf2out.c (base_type_die): Likewise.
8296         (is_subrange_type): Delete.
8297         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
8298         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
8299         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
8300         if the destination type is boolean.
8301         (build_range_check): Do not special-case subtypes.
8302         (fold_sign_changed_comparison): Likewise.
8303         (fold_unary): Likewise.
8304         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
8305         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
8306         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
8307         * tree.c (subrange_type_for_debug_p): New predicate based on the
8308         former is_subrange_type.
8309         * tree.h (subrange_type_for_debug_p): Declare.
8310         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
8311         (convert_affine_scev): Remove call to above function.
8312         (chrec_convert_aggressive): Likewise.
8313         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
8314         false for conversions involving subtypes.
8315         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
8316         (vrp_val_min): Likewise.
8317         (needs_overflow_infinity): Likewise.
8318         (extract_range_from_unary_expr): Likewise.
8319
8320 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
8321
8322         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
8323         * config/frv/frv.c: Likewise.
8324         * config/s390/s390.c: Likewise.
8325         * config/sparc/sparc.h: Likewise.
8326         * config/i386/i386.h: Likewise.
8327         * config/i386/i386.c: Likewise.
8328         * config/crx/crx.c: Likewise.
8329         * config/m68hc11/m68hc11.h: Likewise.
8330         * config/iq2000/iq2000.c: Likewise.
8331         * config/mn10300/mn10300.h: Likewise.
8332         * config/mn10300/mn10300.c: Likewise.
8333         * config/m68k/m68k.c: Likewise.
8334         * config/rs6000/rs6000.c: Likewise.
8335         * config/rs6000/xcoff.h: Likewise.
8336         * config/rs6000/linux64.h: Likewise.
8337         * config/rs6000/sysv4.h: Likewise.
8338         * config/score/score3.c: Likewise.
8339         * config/score/score7.c: Likewise.
8340         * config/score/score.c: Likewise.
8341         * config/arm/arm.md: Likewise.
8342         * config/mips/mips.c: Likewise.
8343         * config/mips/mips.md: Likewise.
8344         * config/bfin/bfin.h: Likewise.
8345         * config/pa/pa.c: Likewise.
8346         * config/pa/constraints.md: Likewise.
8347
8348         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
8349         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
8350         * config/pdp11/pdp11.h: Use memory_address_p instead.
8351
8352 2009-05-14  Ian Lance Taylor  <iant@google.com>
8353
8354         * passes.c (finish_optimization_passes): Change i to int.
8355         * plugin.c (plugins_active_p): Change event to int.
8356         (dump_active_plugins): Likewise.
8357         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
8358         Add cast.
8359         * tree.c (tree_range_check_failed): Change c to unsigned int.
8360         (omp_clause_range_check_failed): Likewise.
8361         (build_common_builtin_nodes): Change mode to int.  Add cast.
8362         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
8363         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
8364
8365         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
8366         ++ or -- with a variable of enum type.
8367
8368 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8369
8370         PR driver/40144
8371         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
8372
8373 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8374
8375         * store-motion.c: Do not include params.h
8376         * Makefile.in: Fix dependencies for various files.
8377
8378 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
8379
8380         * auto-inc-dec.c: Fix pass description, remove apparent
8381         accidental duplication.
8382
8383 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8384
8385         PR middle-end/40147
8386         * ipa-utils.h (memory_identifier_string): Moved to ...
8387         * tree.h (memory_identifier_string): Here.  Add GTY(()).
8388
8389 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8390
8391         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
8392         in the former documentation of...
8393         (GO_IF_LEGITIMATE_ADDRESS): ... this.
8394         * ira-conflicts.c (get_dup_num): Use address_operand.
8395         * targhooks.c (default_legitimate_address_p): New.
8396         * targhooks.h (default_legitimate_address_p): New.
8397         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
8398         Call hook.
8399         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
8400         * target.h (struct target): Add legitimate_address_p.
8401         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
8402         (TARGET_INITIALIZER): Include it.
8403
8404         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8405         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
8406         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
8407         (TARGET_LEGITIMATE_ADDRESS_P): New.
8408
8409         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8410         (REG_OK_STRICT_P): Delete.
8411         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
8412         (frv_legitimate_address_p_1): ... this.
8413         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
8414         (frv_legitimate_address_p_1): ... the renamed old
8415         frv_legitimate_address_p.
8416         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
8417         (TARGET_LEGITIMATE_ADDRESS_P): New.
8418
8419         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8420         * config/s390/s390-protos.h (legitimate_address_p): Remove.
8421         * config/s390/s390.c (legitimate_address_p): Rename to...
8422         (s390_legitimate_address_p): ... this, make static.
8423         (legitimize_address): Adjust call.
8424         (TARGET_LEGITIMATE_ADDRESS_P): New.
8425         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
8426
8427         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8428         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
8429         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
8430         (TARGET_LEGITIMATE_ADDRESS_P): New.
8431
8432         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8433         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
8434         * config/spu/spu.c (spu_legitimate_address): Rename to...
8435         (spu_legitimate_address_p): ... this, make static.
8436         (TARGET_LEGITIMATE_ADDRESS_P): New.
8437
8438         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8439         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
8440         * config/sparc/sparc.c (legitimate_address_p): Rename to...
8441         (sparc_legitimate_address_p): ... this, make static and return bool.
8442         (legitimize_address): Adjust call.
8443         (TARGET_LEGITIMATE_ADDRESS_P): New.
8444
8445         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8446         * config/i386/i386-protos.h (legitimate_address_p): Remove.
8447         * config/i386/i386.c (legitimate_address_p): Rename to...
8448         (ix86_legitimate_address_p): ... this, make static.
8449         (constant_address_p): Move after it, adjust call.
8450         (TARGET_LEGITIMATE_ADDRESS_P): New.
8451
8452         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8453         * config/avr/avr-protos.h (legitimate_address_p): Remove.
8454         * config/avr/avr.c (legitimate_address_p): Rename to...
8455         (avr_legitimate_address_p): ... this, make static.
8456         (legitimize_address): Adjust call.
8457         (TARGET_LEGITIMATE_ADDRESS_P): New.
8458
8459         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8460         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
8461         * config/crx/crx.c (crx_legitimate_address_p): Make static.
8462         (TARGET_LEGITIMATE_ADDRESS_P): New.
8463
8464         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8465         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
8466         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
8467         (TARGET_LEGITIMATE_ADDRESS_P): New.
8468
8469         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8470         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
8471         Remove.
8472         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8473         Make static.
8474         (TARGET_LEGITIMATE_ADDRESS_P): New.
8475
8476         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8477         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
8478         Remove.
8479         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
8480         Rename to...
8481         (m68hc11_legitimate_address_p): ... this, make static.
8482         (go_if_legitimate_address_internal): Rename to...
8483         (m68hc11_legitimate_address_p_1): ... this.
8484         (legitimize_address): Adjust call.
8485         (TARGET_LEGITIMATE_ADDRESS_P): New.
8486
8487         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8488         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
8489         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
8490         (TARGET_LEGITIMATE_ADDRESS_P): New.
8491
8492         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8493         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
8494         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
8495         (mn10300_legitimate_address_p): ... this, make static.
8496         (TARGET_LEGITIMATE_ADDRESS_P): New.
8497
8498         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8499         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
8500         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
8501         (TARGET_LEGITIMATE_ADDRESS_P): New.
8502
8503         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8504         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
8505         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
8506         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8507         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
8508         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
8509         (rs6000_legitimate_address_p): ... this, make static.
8510         (TARGET_LEGITIMATE_ADDRESS_P): New.
8511         (REG_MODE_OK_FOR_BASE_P): Delete.
8512         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
8513
8514         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8515         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
8516         Delete.
8517         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
8518         static, adjust types.
8519         (TARGET_LEGITIMATE_ADDRESS_P): New.
8520
8521         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8522         * config/score/score.c (score_address_p): Rename to...
8523         (score_legitimate_address_p): ... this.
8524         (TARGET_LEGITIMATE_ADDRESS_P): New.
8525         * config/score/score3.c (score3_address_p): Rename to...
8526         (score3_legitimate_address_p): ... this.
8527         * config/score/score7.c (score7_address_p): Rename to...
8528         (score7_legitimate_address_p): ... this.
8529
8530         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
8531         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
8532         GO_IF_LEGITIMATE_ADDRESS): Delete.
8533         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
8534         thumb2_legitimate_address_p): Delete.
8535         (arm_legitimate_address_p): Rename to...
8536         (arm_legitimate_address_outer_p): ... this.
8537         * config/arm/constraints.md ("Uq"): Adjust call.
8538         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
8539         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
8540         to...
8541         (arm_legitimate_address_outer_p): ... this.
8542         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
8543         static.
8544         (TARGET_LEGITIMATE_ADDRESS_P): New.
8545
8546         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8547         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
8548         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
8549         (TARGET_LEGITIMATE_ADDRESS_P): New.
8550
8551         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8552         * config/vax/vax-protos.h (legitimate_address_p): Remove.
8553         * config/vax/vax.c (legitimate_address_p): Rename to...
8554         (vax_legitimate_address_p): ... this, make static.
8555         (TARGET_LEGITIMATE_ADDRESS_P): New.
8556
8557         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8558         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
8559         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
8560         (TARGET_LEGITIMATE_ADDRESS_P): New.
8561
8562         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8563         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
8564         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
8565         (mmix_legitimate_address_p): ... this, make static.
8566         (TARGET_LEGITIMATE_ADDRESS_P): New.
8567
8568         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
8569         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
8570         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
8571         (TARGET_LEGITIMATE_ADDRESS_P): New.
8572
8573 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
8574
8575         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
8576         of MODE_COMPLEX_INT.
8577
8578 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8579
8580         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
8581         LCT_NORMAL in function call.
8582         * mips-tdump.c (print_file_desc): Add cast to enum type.
8583         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
8584         (mark_stabs): Add casts to enum types.
8585         (parse_stabs_common): Add casts to enum types.
8586
8587 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8588
8589         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
8590         Check for invalid values of LETTER.
8591
8592 2009-05-13  Taras Glek  <tglek@mozilla.com>
8593
8594         * attribs.c (register_attribute): moved out attribute registration
8595         into register_attribute.
8596         * doc/plugins.texi: Documented register_attribute and
8597         PLUGIN_ATTRIBUTES.
8598         * gcc-plugin.h: Added forward decl for register_attribute.
8599         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
8600         * plugin.c (register_callback, invoke_plugin_callbacks): Added
8601         PLUGIN_ATTRIBUTES boilerplate.
8602
8603 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
8604
8605         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
8606         values even in sentinel and empty entries.
8607         (ms_printf_flag_specs):  Likewise.
8608         (ms_scanf_flag_specs):  Likewise.
8609         (ms_strftime_flag_specs):  Likewise.
8610         (ms_print_char_table):  Likewise.
8611         (ms_scan_char_table):  Likewise.
8612         (ms_time_char_table):  Likewise.
8613
8614 2009-05-13  Doug Kwan  <dougkwan@google.com>
8615
8616         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
8617
8618 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
8619
8620         * config/mips/mips.md (store): Add attributes for QI and HI.
8621         Update comment.
8622         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
8623         (truncdi<mode>2): ... this new pattern.
8624
8625 2009-05-13  Brad Hards  <bradh@kde.org>
8626
8627         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
8628
8629 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
8630             Ben Elliston <bje@au.ibm.com>
8631
8632         PR middle-end/40035
8633         * dse.c (check_mem_read_rtx): Guard against width == -1.
8634
8635 2009-05-13  Michael Matz  <matz@suse.de>
8636
8637         PR middle-end/39976
8638         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
8639         (trivially_conflicts_p): New function.
8640         (insert_backedge_copies): Use it.
8641
8642 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
8643
8644         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
8645         (handle_stdc_pragma): Use new enum constant names.
8646         (handle_pragma_float_const_decimal64): Ditto.
8647
8648 2009-05-13  Ian Lance Taylor  <iant@google.com>
8649
8650         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
8651         tree.def.
8652
8653 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
8654
8655         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
8656         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
8657         multilibs.
8658         * config/m68k/m68k.h (FL_UCLINUX): Define.
8659
8660 2009-05-13  Jan Hubicka  <jh@suse.cz>
8661
8662         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
8663
8664 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8665
8666         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
8667         unless -fschedule-insns is specified.
8668
8669 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8670
8671         PR target/39561
8672         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
8673         TARGET_EXPAND_CBRANCHDI4.
8674         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
8675         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
8676         (cmpeqdi): Fix comment.
8677
8678 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8679
8680         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
8681         (sh_legitimate_address_p): Likewise.
8682         * config/sh/sh.c (sh_legitimate_index_p): New.
8683         (sh_legitimate_address_p): Likewise.
8684         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
8685         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
8686         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
8687         (MAYBE_BASE_REGISTER_RTX_P): New macro.
8688         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
8689         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
8690         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
8691         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
8692         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
8693
8694 2009-05-12  Jan Hubicka  <jh@suse.cz>
8695
8696         * tree-inline.c (estimate_operator_cost): Add operands;
8697         when division happens by constant, it is cheap.
8698         (estimate_num_insns): Loads and stores are not having cost of 0;
8699         EH magic stuff is cheap; when computing runtime cost of switch,
8700         use log2 base of amount of its cases; builtin_expect has cost of 0;
8701         compute cost for moving return value of call.
8702         (init_inline_once): Initialize time_based flags.
8703         * tree-inline.h (eni_weights_d): Add time_based flag.
8704
8705 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8706
8707         * df-core.c: Update head documentation.
8708
8709 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8710
8711         PR bootstrap/40118
8712         * rs6000.c (rs6000_generate_compare): Use op1b instead of
8713         shadowing exisiting variable op1.
8714
8715 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
8716
8717         PR target/37179
8718         * config/i386/driver-i386.c (processor_signatures): New enum.
8719         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
8720         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
8721         processor signature to detect geode processor.
8722
8723 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8724
8725         Revert:
8726
8727         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8728
8729         * optabs.c (prepare_cmp_insn): Temporarily disable test that
8730         causes spurious differences between trunk and cond-optab branch.
8731
8732 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
8733
8734         * dojump.c (compare_from_rtx): Delete.
8735         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
8736         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
8737         if the comparison does not satisfy the predicate; test predicates for
8738         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
8739         further if one existing pattern fails.
8740         * expr.h (compare_from_rtx): Delete.
8741         (prepare_operand): Declare it.
8742         * optabs.c: Change "lib call" to "libcall" throughout.
8743         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
8744         HAVE_conditional_trap, emit_cmp_insn): Delete.
8745         (can_compare_p): Delete cmp_optab case.
8746         (prepare_float_lib_cmp): Return an rtx and a machine mode.
8747         Accept other parameters by value.
8748         (prepare_operand): Make non-static.
8749         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
8750         other parameters by value.  Try to widen operands here based on
8751         an optab_methods argument and looking at cbranch_optab.
8752         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
8753         loop.  Use cbranch_optab directly.
8754         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
8755         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
8756         assertion.
8757         (emit_conditional_move, emit_conditional_add): Inline what's needed
8758         of compare_from_rtx, using new prepare_cmp_insn for the rest.
8759         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
8760         with COMPARE.  Move cmov_optab and cstore_optab above
8761         with cbranch_optab, move cmp_optab down with ucmp_optab,
8762         remove tst_otpab.  Do not initialize trap_rtx.
8763         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
8764         for trap code.  Do not check HAVE_conditional_trap.  Use
8765         prepare_cmp_insn.  Accept no predicate for operand 3.
8766         * optabs.h (OTI_cmp): Mark as used only for libcalls.
8767         (OTI_ctrap, ctrap_optab): New.
8768         (tst_optab): Delete.
8769         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
8770         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
8771         with lookup of ctrap_optab.
8772         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
8773         Delete.
8774         (ctrap_optab): New.
8775
8776         * combine.c (combine_simplify_rtx, simplify_set): Do not
8777         special case comparing against zero for cc0 machines.
8778         * simplify-rtx.c (simplify_binary_operation_1): Never remove
8779         COMPARE on cc0 machines.
8780         (simplify_relational_operation): Return a new expression when
8781         a COMPARE could be removed.
8782         * final.c (final_scan_insn): Compare cc_status values
8783         against LHS of a (compare FOO (const_int 0)) cc0 source.
8784         Also check if cc_status.value is the full compare.
8785
8786         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
8787         (cstoreMM4): Document.
8788         (conditional_trap): Document ctrapMM4 instead.
8789         (sync_compare_and_swapMM): Refer to cbranchcc4.
8790         (Dependent Patterns): Eliminate obsolete information referring to
8791         the old jump optimization phase.
8792         (Canonicalization): Include cbranchcc4 case, omit canonicalization
8793         of compares with 0 on cc0 machines.
8794         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
8795         avoiding references to cc0.  Remove text about storing operands
8796         in cmpMM.
8797         * doc/tm.texi (Condition Codes): Include blurb on different
8798         condition code representations, separate into subsections for
8799         CC0, MODE_CC and conditional execution.
8800
8801         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
8802         alpha_emit_setcc): Accept operands and a machine mode.
8803         * config/alpha/alpha.c (alpha_emit_conditional_branch):
8804         Get code/op0/op1 from operands, use machine mode argument
8805         instead of alpha_compare.fp_p.  Emit the branch here.
8806         (alpha_emit_setcc): Likewise, and return boolean.
8807         (alpha_emit_conditional_move): Likewise.  Assert that
8808         cmp_op_mode == cmp_mode, and simplify accordingly.
8809         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
8810         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
8811         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
8812         Delete.
8813         (stack probe test): Use cbranchdi4.
8814         * config/alpha/predicates.md (alpha_cbranch_operator): New.
8815
8816         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
8817         * config/arc/arc.h (movsicc, movsfcc): Use it.
8818         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
8819         (cbranchsi4, cstoresi4): New.
8820         (cmpsi, bCC and sCC expanders): Remove. 
8821
8822         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
8823         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
8824         * config/arm/predicates.md (arm_comparison_operator): Only include
8825         floating-point operators if there is a hardware floating-point unit.
8826         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
8827         deferring to cbranch_cc and cstore_cc respectively.
8828         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
8829         cbranch_cc, cstore_cc): New.
8830         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
8831         arm_compare_op1.
8832         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
8833
8834         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
8835         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
8836         as an argument.
8837         (adjust_insn_length): Adjust calls.
8838         (avr_reorg): Handle (compare (foo) (const_int 0)).
8839         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
8840         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
8841         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
8842         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
8843         (bCC): Remove.
8844         (cbranchqi4, cbranchhi4, cbranchsi4): New.
8845         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
8846
8847         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
8848         (cbranchsi4, cstorebi4, cstoresi4): New.
8849         (movbisi): This insn is duplicate, split it to zero_extend.
8850         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
8851         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
8852         (bfin_optimize_loop): Use cbranch expander.
8853         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
8854         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
8855         (bfin_bimode_comparison_operator): ... this.
8856         (bfin_direct_comparison_operator): New.
8857  
8858         * config/cris/cris.c (cris_normal_notice_update_cc): Look
8859         inside (compare FOO (const_int 0)).
8860         (cris_rtx_costs): Handle ZERO_EXTRACT.
8861         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
8862         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
8863         (*tstdi_v32): Delete.
8864         (*cmpdi_non_v32): Add M alternative for operand 1.
8865         (cmpsi, cmp<mode>): Make private.
8866         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
8867         with COMPARE.
8868         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
8869
8870         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
8871         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
8872         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
8873         (cc_reg_operand): New.
8874         (any_cond): Delete.
8875         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
8876         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
8877         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
8878         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
8879         crx_expand_scond): Delete.
8880
8881         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
8882         (cbranchsi4): New.
8883         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
8884         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
8885
8886         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
8887         cstoresi4, cstoresf4, cstoredf4): New.
8888         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
8889         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
8890         Receive the entire operands array.
8891         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
8892         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
8893         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
8894         Get test/op0/op1 from the operands array.
8895         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
8896
8897         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
8898         (h8300_expand_store): New.
8899         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
8900         (const_int 0)).
8901         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
8902         (h8300_expand_store): New.
8903         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
8904         or do not try to produce (set (cc0) REG).
8905         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
8906         change a compare into a move to a scratch register.  Disable some
8907         peepholes when comparing with zero.
8908         (tstsi, tsthi, tstsi, cmpqi): Make private.
8909         (cmphi): Delete.
8910         (bCC, sCC): Delete.
8911         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
8912         cstoresi4): New.
8913
8914         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
8915         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
8916         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
8917         (ix86_emit_i387_log1p): Use cbranchxf2.
8918         (ix86_expand_setcc): Return void.
8919         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
8920         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
8921         cmp<MODEF>, cmpcc): Remove.
8922         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
8923         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
8924         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
8925         (sCC and bCC expanders): Remove.
8926         (stack_protect_test): Use cbranchcc4.
8927
8928         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
8929         Delete.
8930         (ia64_expand_compare): Accept three rtx by reference and return void.
8931         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
8932         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
8933         from *expr.  Update *expr with the BImode comparison to do.
8934         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
8935         cmptf, bCC, sCC, conditional_trap): Delete.
8936         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
8937         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
8938         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
8939         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
8940         * config/ia64/predicates.md (ia64_cbranch_operator): New.
8941
8942         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
8943         type of last argument.
8944         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
8945         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
8946         use machine mode argument instead of branch_type.  Remove dead
8947         code for floating-point comparisons.
8948         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
8949         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
8950         Remove.
8951         (cbranchsi4, cstoresi4): New.
8952         * config/iq2000/predicates.md (reg_or_const_operand): New.
8953
8954         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
8955         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
8956         (b<code>_op): Rewrite to...
8957         (bcc_op): ... this, using match_operator.
8958         (s<code>_op): Rewrite to...
8959         (scc_op): ... this, using match_operator.
8960         (s<code>_24_op): Rewrite to...
8961         (scc_op_24): ... this, using match_operator.
8962         (s<code>_<mode>): Rewrite to...
8963         (cstore<mode>4): ... this, using match_operator.
8964         (s<code>_<mode>_24): Rewrite to...
8965         (cstore<mode>4_24): ... this, using match_operator.
8966         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
8967         m32c_unpend_compare, m32c_expand_scc): Delete.
8968         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
8969         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
8970         (m32c_expand_movcc): Change NE to EQ if necessary.
8971         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
8972
8973         * config/m32r/m32r-protos.h (gen_cond_store): New.
8974         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
8975         (gen_cond_store): New, from sCC patterns.
8976         (m32r_expand_block_move): Use cbranchsi4.
8977         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
8978         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
8979         (cbranchsi4, cstoresi4): New.
8980         
8981         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
8982         Delete.
8983         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
8984         (m68hc11_notice_update_cc): Look into a compare with 0.
8985         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
8986         Delete.
8987         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
8988         cmphi, cmpqi, bCC): Delete.
8989         (cbranchsi4, cbranchhi4, cbranchqi4): New.
8990         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
8991         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
8992         sets with COMPARE.
8993
8994         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
8995         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
8996         * config/m68k/constraints.md (H): New.
8997         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
8998         the define_insn below.
8999         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
9000         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
9001         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
9002         patterns): Wrap RHS with COMPARE.
9003         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
9004         (*cmpdi_internal): Name this pattern.
9005         (cmpdi): Change to define_insn.
9006         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
9007         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
9008         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
9009         predicate.
9010         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
9011         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
9012         (conditional_trap): Change to...
9013         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
9014         (*conditional_trap): Use the ordered_comparison_operator and
9015         const1_operand predicates.
9016         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
9017         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
9018         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
9019         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
9020
9021         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
9022         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
9023         (mcore_gen_compare): New. 
9024         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
9025         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
9026         (mcore_gen_compare): ... this.
9027         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
9028         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
9029         (stack probe pattern): Use cbranchsi4.
9030
9031         * config/mips/predicates.md (mips_cstore_operator): New.
9032         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
9033         * config/mips/mips.md (any_cond): Delete.
9034         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
9035         always succeed.
9036         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
9037         fixuns_truncsfdi2): Use cbranch patterns.
9038         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
9039         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
9040         Adjust call to mips_expand_conditional_branch.
9041         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
9042         cstore<GPR:mode>4.
9043         * config/mips/mips-protos.h (mips_expand_conditional_branch,
9044         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
9045         * config/mips/mips.c (cmp_operands): Delete.
9046         (mips_emit_compare): Get comparison operands from *op0/*op1.
9047         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
9048         that it succeeds.  Use op0/op1 instead of cmp_operands.
9049         (mips_expand_conditional_branch, mips_expand_conditional_move,
9050         mips_expand_conditional_trap): Likewise.
9051         (mips_block_move_loop): Use cbranch patterns. 
9052         * config/mips/mips.h (cmp_operands): Delete.
9053
9054         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
9055         (mmix_gen_compare_reg): Just return a register in the right CC mode.
9056         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
9057         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
9058         (*cmpcc_folded): Rename to...
9059         (*cmpdi_folded): this.
9060         (*cmpcc): Rename to...
9061         (*cmps): ... this.
9062         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
9063         (bCC): Remove.
9064         (cbranchdi4): New.
9065         (cbranchdf4): New.  Handle invalid comparisons here.
9066         * config/mmix/predicates.md (float_comparison_operator): New.
9067
9068         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
9069         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
9070         * config/mn10300/mn10300.md (tst): Delete.
9071         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
9072         Name these patterns and wrap RHS in a compare.
9073         (*cmpsi): Make this pattern private.  Include tst.
9074         (*cmpsf): Make this pattern private.
9075         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
9076         (compare with zero peepholes): Likewise.
9077         (bCC): Remove.
9078         (cbranchsi4, cbranchsf4): New.
9079         (casesi): Use cbranchsi4.
9080
9081         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
9082         hppa_branch_type): Delete.
9083         (return_addr_rtx): Use cbranchsi4.
9084         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
9085         Emit CCFPmode comparison here.
9086         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
9087         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
9088         hppa_branch_type): Delete.
9089         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
9090         (movsicc, movdicc): Remove references to hppa_compare_op0,
9091         hppa_compare_op1 and compare_from_rtx.
9092         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
9093         (casesi): Use cbranchsi4.
9094
9095         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
9096         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
9097         * config/pdp11/pdp11.md (register_or_const0_operand): New.
9098         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
9099         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
9100         (bCC): Delete.
9101         (cbranchdf4, cbranchhi4, cbranchqi4): New.
9102         (*branch, *branch_inverted): New.
9103
9104         * config/picochip/picochip.md (cbranchhi4): Use
9105         ordered_comparison_operator.
9106         (cmphi, bCC): Remove.
9107
9108         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
9109         (trap_comparison_operator): Delete.
9110         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
9111         rs6000_emit_cbranch): Accept mode and operands.
9112         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
9113         rs6000_compare_fp_p): Delete.   
9114         (rs6000_generate_compare): Accept mode and comparison.  Extract code
9115         and op0/op1 from there.  Replace references to rs6000_compare_op0
9116         and rs6000_compare_op1.
9117         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
9118         extract result from passed operands.
9119         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
9120         extract loc from passed operands.
9121         (rs6000_emit_cmove): Likewise.
9122         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
9123         rs6000_compare_fp_p): Delete.
9124         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
9125         (cbranch<GPR>4, cbranch<FP>4): New.
9126         (cstore<mode>4): New.  Consolidate here all choices about when to use
9127         portable or specialized sCC sequences.
9128         (stack_protect_test): Use cbranchsi4.
9129         (conditional_trap): Replace with ctrap<GPR>4.
9130         (conditional trap insn): Replace trap_comparison_operator with
9131         ordered_comparison_operator. 
9132
9133         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
9134         (s390_emit_prologue): Use ctrap.
9135         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
9136         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
9137         New predicates replacing...
9138         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
9139         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
9140         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
9141         (add<mode>cc): Do not use s390_compare_op0/op1.
9142         (s<code>): Change to...
9143         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
9144         (seq): Change to...
9145         (cstorecc4): ... this.  Handle EQ or NE equally.
9146         (*sne): Un-privatize for use in cstorecc4.
9147         (b<code>): Change to...
9148         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
9149         (conditional_trap): Replace with...
9150         (ctrap<GPR>4, ctrap<FP>4): ... these.
9151         (stack_protect): Use cbranchcc4.
9152
9153         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
9154         * config/score/score-protos.h (score_gen_cmp): Delete.
9155         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
9156         (score_block_move-loop): Use cbranchsi4.
9157         * config/score/score.md (cbranchsi4): New.
9158         (cmpsi, bCC): Delete.
9159         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
9160         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9161         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
9162         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
9163         * config/score/score3.h (score3_gen_cmp): Delete.
9164         * config/score/score7.h (score7_gen_cmp): Delete.
9165
9166         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
9167         (sh_emit_scc_to_t): ... this.  Return void.
9168         (from_compare): Rename to...
9169         (sh_emit_compare_and_branch): ... this.
9170         (sh_emit_compare_and_set): New.
9171         (sh_expand_t_scc): Accept operands.
9172         * config/sh/predicates.md (sh_float_comparison_operator): New.
9173         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
9174         (prepare_scc_operands): Rename to...
9175         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
9176         arguments.
9177         (sh_emit_cheap_store_flag): New.
9178         (sh_emit_set_t_insn): New.
9179         (from_compare): Rename to...
9180         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
9181         handling of TARGET_SH2E floating point to avoid recursive call.
9182         Generate branch here.
9183         (sh_emit_compare_and_set): New.
9184         (sh_expand_t_scc): Get op0/op1 from arguments.
9185         (sh_emit_cheap_store_flag): New.
9186         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
9187         cases.
9188         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
9189         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
9190         (movsicc, movdicc): Do nothing when it recreated operands from
9191         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
9192         prepare_scc_operands (now sh_emit_scc_to_t).
9193         (udivdi3): Use cstoresi4.
9194         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
9195         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
9196         (cbranchint4_media, cbranchfp4_media): New.
9197         (casesi): Use cbranchdi4.
9198         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
9199         Delete.
9200         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
9201         (movnegt): Remove second operand.
9202         (cbranchsf4, cbranchdf4): New.
9203         (stack_protect): Use cbranchdi4/cbranchsi4.
9204
9205         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
9206         (gen_compare_reg): Accept comparison, extract part of it to...
9207         (gen_compare_reg_1): ... this. 
9208         (gen_compare_operator): Delete.
9209         (gen_v9_scc): Accept separate destination, comparison code and arms.
9210         Do not use sparc_compare_op0/sparc_compare_op1.
9211         (emit_scc_insn, emit_conditional_branch_insn): New.
9212         (emit_v9_brxx): Make static.  Remove useless assertion.
9213         (sparc_emit_float_lib_cmp): Return RTL instead of calling
9214         emit_cmp_insn.
9215         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
9216         * config/sparc/sparc-protos.h (gen_compare_reg,
9217         sparc_emit_float_lib_cmp): Adjust prototype.
9218         (emit_scc_insn, emit_conditional_branch_insn): New.
9219         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
9220         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
9221         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
9222         iterators to the top.
9223         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
9224         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
9225         snedi_special_trunc): Delete.
9226         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
9227         and snedi_special_trunc.
9228         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
9229         cbranchdi4, cbranch<F:mode>4): New.
9230         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
9231         here.  Use gen_compare_reg instead of gen_compare_operator.
9232         (conditional_trap): Replace with...
9233         (ctrapsi4, ctrapdi4): ... this.
9234         (stack_protect_test): Use cbranchcc4.
9235
9236         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
9237         argument to rtx.
9238         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
9239         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
9240         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
9241         from operands[0] or operands[3] depending on is_set.
9242         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
9243         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
9244         cmpdf, bCC), sCC: Remove.
9245         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
9246         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
9247         cstoredf4): New.
9248         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
9249         spu_emit_branch_or_set.
9250
9251         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
9252         Add two arguments.
9253         * config/stormy16/stormy16.h (xstormy16_compare_op0,
9254         xstormy16_compare_op1): Delete.
9255         * config/stormy16/stormy16.c (xstormy16_compare_op0,
9256         xstormy16_compare_op1): Delete. 
9257         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
9258         Adjust calls.
9259         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
9260         (cmphi, cmpsi, bCC): Remove.
9261
9262         * config/v850/v850.md (tstsi, cmpsi): Fold into...
9263         (*cmpsi): ... this one.
9264         (cbranchsi4, cstoresi4): New.
9265         (bCC expanders): Delete.
9266         (sCC insns): Fold into...
9267         (*setcc): ... this one.
9268         (casesi): Do not use gen_cmpsi and gen_bgtu. 
9269         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
9270         (movsicc): Simplify.
9271         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
9272
9273         * config/vax/vax-protos.h (cond_name): New.
9274         (vax_output_conditional_branch): Remove.
9275         * config/vax/vax.c (cond_name): New.
9276         (vax_output_conditional_branch): Remove.
9277         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
9278         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
9279         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
9280         (bit<VAXint>): Wrap source with (compare).
9281         (b<code> and following unnamed pattern): Rename to *branch and
9282         *branch_reversed.  Change macroization to match_operator.
9283         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
9284
9285         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
9286         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
9287         Change last argument to machine_mode.
9288         (xtensa_expand_scc): Add machine_mode argument.
9289         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
9290         (gen_conditional_move, xtensa_expand_conditional_branch,
9291         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
9292         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
9293         Adjust operand numbers.
9294         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
9295         Delete.
9296         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
9297         (cmpsi, cmpsf, b<code>, s<code>): Delete.
9298         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
9299
9300 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
9301
9302         * optabs.c (prepare_cmp_insn): Temporarily disable test that
9303         causes spurious differences between trunk and cond-optab branch.
9304
9305 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9306
9307         PR target/37137
9308         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
9309
9310 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
9311
9312         * tree.c (iterative_hash_pointer): Delete.
9313         (iterative_hash_expr): Short-circuit handling of NULL pointer.
9314         Hash UIDs and versions of SSA names.  Don't special-case built-in
9315         function declarations.
9316
9317 2009-05-11  Ian Lance Taylor  <iant@google.com>
9318
9319         PR bootstrap/40103
9320         * graphite.c: Force -Wc++-compat to only be a warning before
9321         #including "cloog/cloog.h".
9322
9323 2009-05-11  Martin Jambor  <mjambor@suse.cz>
9324
9325         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
9326         
9327 2009-05-11  Jan Hubicka  <jh@suse.cz>
9328
9329         * tree-ssa-loop-ivcanon.c: Include target.h
9330         (struct loop_size): new structure.
9331         (constant_after_peeling): New predicate.
9332         (tree_estimate_loop_size): New function.
9333         (estimated_unrolled_size): Rewrite for new estimates.
9334         (try_unroll_loop_completely): Use new estimates.
9335         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
9336
9337 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9338
9339         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
9340         libcpp interface change.
9341         (spu_macro_to_expand): Likewise.
9342
9343 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
9344
9345         PR tree-optimization/40026
9346         * gimplify.c (gimplify_init_constructor): Change initial conditional
9347         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
9348         optimize_compound_literals_in_ctor.
9349
9350 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
9351
9352         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
9353         New devices.
9354         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
9355
9356 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
9357
9358         * tree-vect-data-refs.c (vect_analyze_group_access): Use
9359         HOST_WIDE_INT for gap.
9360
9361 2009-05-11  Ira Rosen  <irar@il.ibm.com>
9362
9363         PR tree-optimization/40074
9364         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
9365         account in group size and step comparison.
9366
9367 2009-05-11  Richard Guenther  <rguenther@suse.de>
9368
9369         * passes.c (init_optimization_passes): Strip now incorrect comment.
9370         (execute_function_todo): Do not set PROP_alias.
9371         * tree-pass.h (PROP_alias): Remove.
9372         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
9373         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
9374         * tree-nrv.c (pass_return_slot): Likewise.
9375         * tree-object-size.c (pass_object_sizes): Likewise.
9376         * tree-ssa-dom.c (pass_dominator): Likewise.
9377         (pass_phi_only_cprop): Likewise.
9378         * tree-ssa-dse.c (pass_dse): Likewise.
9379         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9380         (pass_cselim): Likewise.
9381         * tree-ssa-pre.c (pass_pre): Likewise.
9382         (pass_fre): Likewise.
9383         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
9384         * tree-ssa-sink.c (pass_sink_code): Likewise.
9385         * tree-stdarg.c (pass_stdarg): Likewise.
9386         * tree-tailcall.c (pass_tail_calls): Likewise.
9387         * tree-vrp.c (pass_vrp): Likewise.
9388
9389 2009-05-10  Ian Lance Taylor  <iant@google.com>
9390
9391         * basic-block.h (enum profile_status): Break out of struct
9392         control_flow_graph.
9393         * cgraph.h (struct inline_summary): Break out of struct
9394         cgraph_local_info.
9395         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
9396         of struct cgraph_order_sort.
9397         * combine.c (enum undo_kind): New enum, broken out of struct undo.
9398         * cse.c (struct branch_path): Break out of struct
9399         cse_basic_block_data.
9400         * except.h (enum eh_region_type): Break out of struct eh_region.
9401         * gcc.c (enum add_del): Break out of struct modify_target.
9402         * genrecog.c (enum decision_type): Break out of struct decision_test.
9403         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
9404         ggc_pch_data.
9405         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
9406         * regmove.c (enum match_use): New enum, broken out of struct match.
9407         * sched-int.h (enum post_call_group): New enum, broken out of
9408         struct deps.
9409         (struct deps_reg): Break out of struct deps.
9410         * target.h (struct asm_int_op): Break out of struct gcc_target.
9411         * tree-eh.c (struct goto_queue_node): Break out of struct
9412         leh_tf_state.
9413         * tree-inline.h (enum copy_body_cge_which): Break out of
9414         copy_body_data.
9415         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
9416
9417         * c-decl.c (in_struct, struct_types): New static variables.
9418         (pushtag): Add loc parameter.  Change all callers.
9419         (lookup_tag): Add ploc parameter.  Change all callers.
9420         (check_compound_literal_type): New function.
9421         (parser_xref_tag): Add loc parameter.  Change all callers.  If
9422         -Wc++-compat, warn about struct/union/enum types defined within a
9423         struct or union.
9424         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
9425         and loc parameters.  Change all callers.  Change error calls to
9426         error_at, using loc.  For a redefinition, if the location of the
9427         original definition is known, report it.  Set in_struct and
9428         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
9429         (finish_struct): Add new parameters enclosing_in_struct and
9430         enclosing_struct_types.  Change all callers.  Set
9431         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
9432         in the struct.  If in a struct, add this struct to struct_types.
9433         (start_enum): Add loc parameter.  Change all callers.  Use
9434         error_at for errors, using loc.  For a redefinition, if the
9435         location of the original definition is known, report it.  If in a
9436         struct, add this enum type to struct_types.  If -Wc++-compat warn
9437         if in sizeof, typeof, or alignof.
9438         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
9439         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
9440         (c_parser_enum_specifier): Get enum location for start_enum.
9441         (c_parser_struct_or_union_specifier): Get struct location for
9442         start_struct.  Save in_struct and struct_types status between
9443         start_struct and finish_struct.
9444         (c_parser_cast_expression): Get location of cast.
9445         (c_parser_alignof_expression): Get location of type.
9446         (c_parser_postfix_expression): Likewise.
9447         (c_parser_postfix_expression_after_paren_type): Add type_loc
9448         parameter.  Change all callers.  Call check_compound_literal_type.
9449         Use type_loc for error about variable size type.
9450         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
9451         of an enum constant from an enum type defined in a struct or union.
9452         (c_cast_expr): Add loc parameter.  Change all callers.  If
9453         -Wc++-compat, warn about defining a type in a cast.
9454         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
9455         (start_enum, start_struct, finish_struct): Update declarations.
9456         (parser_xref_tag, c_cast_expr): Update declarations.
9457         (check_compound_literal_type): Declare.
9458
9459 2009-05-11  Ben Elliston  <bje@au.ibm.com>
9460
9461         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
9462         for recent libcpp interface change.
9463         (rs6000_macro_to_expand): Likewise.
9464
9465 2009-05-10  Michael Matz  <matz@suse.de>
9466
9467         PR target/40031
9468         * config/arm/arm.c (require_pic_register): Emit on entry edge,
9469         not at entry of function.
9470
9471 2009-05-10  Richard Guenther  <rguenther@suse.de>
9472
9473         PR tree-optimization/40081
9474         Revert
9475         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9476         using the main variant of the element type.  Do not fiddle with
9477         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9478
9479         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
9480         structs with volatile fields.
9481
9482 2009-05-10  Jan Hubicka  <jh@suse.cz>
9483
9484         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
9485         (estimate_move_cost): Assert that it does not get called for
9486         VOID_TYPE_P.
9487         (estimate_num_insns): Skip VOID types in argument handling.
9488         (optimize_inline_calls): Delete unreachable blocks and verify that
9489         callgraph is valid.
9490
9491 2009-05-10  Jan Hubicka  <jh@suse.cz>
9492
9493         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
9494         * cgraph.c (cgraph_mark_address_taken_node): New function.
9495         (dump_cgraph_node): Dump new flag.
9496         * cgraph.h (struct cgraph_node): Add address_taken.
9497         (cgraph_mark_address_taken_node): New function.
9498         * ipa.c (cgraph_postorder): Prioritize functions with address taken
9499         since new direct calls can be born.
9500
9501 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9502
9503         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
9504         tok->val.node.node.
9505
9506 2009-05-10  Jan Hubicka  <jh@suse.cz>
9507
9508         PR middle-end/40084
9509         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
9510         argument; rewrite.
9511         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
9512         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
9513         * tree-inline.c (copy_bb): Set frequency correctly.
9514         (fold_marked_statements): Update call to
9515         cgraph_update_edges_for_call_stmt.
9516
9517 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9518
9519         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
9520         identifiers in diagnostics.
9521         * config/arm/arm.c (arm_handle_fndecl_attribute,
9522         arm_handle_isr_attribute): Likewise.
9523         * config/avr/avr.c (avr_handle_progmem_attribute,
9524         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
9525         * config/bfin/bfin.c (handle_int_attribute,
9526         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
9527         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
9528         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
9529         Likewise.
9530         * config/darwin.c (darwin_handle_kext_attribute,
9531         darwin_handle_weak_import_attribute): Likewise.
9532         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
9533         h8300_handle_eightbit_data_attribute,
9534         h8300_handle_tiny_data_attribute): Likewise.
9535         * config/i386/i386.c (ix86_handle_cconv_attribute,
9536         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
9537         * config/i386/winnt.c (ix86_handle_shared_attribute,
9538         ix86_handle_selectany_attribute): Likewise.
9539         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
9540         * config/m32c/m32c.c (function_vector_handler): Likewise.
9541         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
9542         m68hc11_handle_fntype_attribute): Likewise.
9543         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
9544         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
9545         * config/mips/mips.c (mips_insert_attributes,
9546         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
9547         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
9548         rs6000_handle_struct_attribute): Likewise.
9549         * config/sh/sh.c (sh_insert_attributes,
9550         sh_handle_resbank_handler_attribute,
9551         sh_handle_interrupt_handler_attribute,
9552         sh2a_handle_function_vector_handler_attribute,
9553         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
9554         Likewise.
9555         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
9556         * config/spu/spu.c (spu_handle_fndecl_attribute,
9557         spu_handle_vector_attribute): Likewise.
9558         * config/stormy16/stormy16.c
9559         (xstormy16_handle_interrupt_attribute): Likewise.
9560         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
9561         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
9562
9563 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
9564
9565         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
9566         (pp_translate_identifiers): New.
9567         (pp_identifier): Only conditionally translate identifier to locale
9568         character set.
9569         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
9570         (pp_base_tree_identifier): Only conditionally translate identifier
9571         to locale character set.
9572         * c-pretty-print.c (M_): Define.
9573         (pp_c_type_specifier, pp_c_primary_expression): Mark English
9574         fragments for conditional translation with M_.
9575         * tree-pretty-print.c (maybe_init_pretty_print): Disable
9576         identifier translation.
9577
9578 2009-05-10  Richard Guenther  <rguenther@suse.de>
9579
9580         PR tree-optimization/40081
9581         * tree-sra.c (instantiate_element): Instantiate scalar replacements
9582         using the main variant of the element type.  Do not fiddle with
9583         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
9584
9585 2009-05-09  Jan Hubicka  <jh@suse.cz>
9586
9587         PR middle-end/40080
9588         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
9589         indirect calls; verify cgraph afterwards.
9590
9591 2009-05-09  Jan Hubicka  <jh@suse.cz>
9592
9593         PR bootstrap/40082
9594         * ipa.c (update_inlined_to_pointer): New function.
9595         (cgraph_remove_unreachable_nodes): Use it.
9596
9597 2009-05-09  Jan Hubicka  <jh@suse.cz>
9598
9599         * tree-eh.c (struct leh_state): Remove prev_try.
9600         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
9601         not track prev_try.
9602         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
9603         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
9604         remove_eh_handler_and_replace, foreach_reachable_handler,
9605         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
9606         * except.h (struct eh_region): Remove eh_region_u_cleanup.
9607         (gen_eh_region_cleanup): Update prototype.
9608
9609 2009-05-09  Jan Hubicka  <jh@suse.cz>
9610
9611         PR middle-end/40043
9612         * except.c (copy_eh_region): Always set prev_try.
9613         (redirect_eh_edge_to_label): Find outer try.
9614         (foreach_reachable_handler): When looking for prev try
9615         handle case where previous try is not going to be taken.
9616
9617 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
9618
9619         PR tree-optimization/40049
9620         * tree-vect-stmts.c (vectorizable_operation): If the machine has
9621         only vector/vector shifts, convert the type of the constant to the
9622         appropriate type to avoid building incorrect trees, which
9623         eventually have problems with garbage collection.
9624
9625 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9626
9627         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
9628         -1 for complex floating-point types if honoring signed zeros.
9629
9630 2009-05-08  Jan Hubicka  <jh@suse.cz>
9631
9632         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
9633         argument; handle correctly when profile is absent.
9634         (build_cgraph_edges): Update.
9635         (rebuild_cgraph_edges): Update.
9636         * cgraph.c: Do not include varray.h.
9637         (cgraph_set_call_stmt_including_clones): New function.
9638         (cgraph_create_edge_including_clones): Likewise
9639         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9640         (cgraph_update_edges_for_call_stmt): Handle clones.
9641         (cgraph_remove_node): Handle clone tree.
9642         (cgraph_remove_node_and_inline_clones): New function.
9643         (dump_cgraph_node): Dump clone tree.
9644         (cgraph_clone_node): Handle clone tree.
9645         (clone_function_name): Bring here from tree-inline.c.
9646         (cgraph_create_virtual_clone): New function.
9647         * cgraph.h (ipa_replace_map): Move here from ipa.h.
9648         (cgraph_clone_info): New function.
9649         (strut cgraph_node): Add clone_info and new clone tree pointers.
9650         (cgraph_remove_node_and_inline_clones,
9651         cgraph_set_call_stmt_including_clones,
9652         cgraph_create_edge_including_clones,
9653         cgraph_create_virtual_clone): Declare.
9654         (cgraph_function_versioning): Use VEC argument.
9655         (compute_call_stmt_bb_frequency): Update prototype.
9656         (cgraph_materialize_all_clones): New function.
9657         * ipa-cp.c (ipcp_update_cloned_node): Remove.
9658         (ipcp_create_replace_map): Update to VECtors.
9659         (ipcp_update_callgraph): Use virtual clones.
9660         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
9661         (ipcp_update_profiling): Do not update local profiling.
9662         (ipcp_insert_stage): Use VECtors and virtual clones.
9663         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
9664         (clone_of_p): New function.
9665         (cgraph_preserve_function_body_p): Use clone tree.
9666         (cgraph_optimize): Materialize clones.
9667         (cgraph_function_versioning): Update for VECtors.
9668         (save_inline_function_body): Use clone tree.
9669         (cgraph_materialize_clone): New function.
9670         (cgraph_materialize_all_clones): Likewise.
9671         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
9672         * ipa.c: Include gimple.h.
9673         (cgraph_remove_unreachable_nodes): Use clone tree.
9674         * ipa-prop.c (ipa_note_param_call): Update call to
9675         compute_call_stmt_bb_frequencycall.
9676         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
9677         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9678         (copy_bb): Handle updating of clone tree; add new edge when new call
9679         appears.
9680         (expand_call_inline): Be strict about every call having edge.
9681         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
9682         (delete_unreachable_blocks_update_callgraph): New function.
9683         (tree_function_versioning): Use VECtors; always remove unreachable
9684         blocks and fold conditionals.
9685         * tree-inline.h: Do not include varray.h.
9686         (tree_function_versioning): Remove.
9687         * Makefile.in (GTFILES): Remove tree-inline.c
9688         * passes.c (do_per_function): Do only functions having body.
9689         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
9690         tree.
9691
9692 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9693             Andrew Morrow  <acm@google.com>
9694
9695         PR c/36892
9696         * c-common.c (c_common_attribute_table): Permit deprecated
9697         attribute to take an optional argument.
9698         (handle_deprecated_attribute): If the optional argument to
9699         __attribute__((deprecated)) is not a string ignore the attribute
9700         and emit a warning.
9701
9702         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
9703         * c-typeck.c (build_component_ref): Likewise.
9704         (build_external_ref): Likewise.
9705
9706         * toplev.c (warn_deprecated_use): Add an attribute argument.
9707         Emit the message associated with __attribute__((deprecated)).
9708
9709         * toplev.h (warn_deprecated_use): Updated.
9710
9711         * doc/extend.texi: Document new optional parameter to
9712         __attribute__((deprecated))
9713
9714 2009-05-08  Michael Eager <eager@eagercon.com>
9715
9716         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
9717         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
9718
9719 2009-05-08  Richard Guenther  <rguenther@suse.de>
9720
9721         PR tree-optimization/40062
9722         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
9723         Avoid exponential behavior.
9724
9725 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9726
9727         PR rtl-optimization/33928
9728         PR 26854
9729         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
9730         process_uses, build_single_def_use_links): New.
9731         (update_df): Update use_def_ref.
9732         (forward_propagate_into): Use get_def_for_use instead of use-def
9733         chains.
9734         (fwprop_init): Call build_single_def_use_links and let it initialize
9735         dataflow.
9736         (fwprop_done): Free use_def_ref.
9737         (fwprop_addr): Eliminate duplicate call to df_set_flags.
9738         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
9739         df_rd_simulate_one_insn): New.
9740         (df_rd_bb_local_compute_process_def): Update head comment.
9741         (df_chain_create_bb): Use the new RD simulation functions.
9742         * df.h (df_rd_simulate_artificial_defs_at_top, 
9743         df_rd_simulate_one_insn): New.
9744         * opts.c (decode_options): Enable fwprop at -O1.
9745         * doc/invoke.texi (-fforward-propagate): Document this.
9746
9747 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
9748
9749         PR c/24581
9750         * c-typeck.c (build_binary_op): Handle arithmetic between one real
9751         and one complex operand specially.
9752         * tree-complex.c (some_nonzerop): Do not identify a real value as
9753         zero if flag_signed_zeros.
9754
9755 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9756
9757         PR rtl-optimization/33928
9758         * loop-invariant.c (record_use): Fix && vs. || mishap.
9759
9760 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
9761
9762         PR rtl-optimization/33928
9763         * loop-invariant.c (struct use): Add addr_use_p.
9764         (struct def): Add n_addr_uses.
9765         (struct invariant): Add cheap_address.
9766         (create_new_invariant): Set cheap_address.
9767         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
9768         (record_uses): Pass df_ref to record_use.
9769         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
9770         used only as such.
9771
9772 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
9773
9774         * config/sh/sh.c: Do not include c-pragma.h.
9775
9776 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9777
9778         * config/spu/spu.c: Remove include of c-common.h.
9779
9780 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
9781
9782         PR c/39037
9783         * c-common.h (mark_valid_location_for_stdc_pragma,
9784         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
9785         clear_float_const_decimal64, float_const_decimal64_p): New.
9786         * c.opt (Wunsuffixed-float-constants): New.
9787         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
9788         unsuffixed float constant, handle new warning.
9789         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
9790         * c-decl.c (c_scope): New flag float_const_decimal64.
9791         (set_float_const_decimal64, clear_float_const_decimal64,
9792         float_const_decimal64_p): New.
9793         (push_scope): Set new flag.
9794         * c-parser.c (c_parser_translation_unit): Mark when it's valid
9795         to use STDC pragmas.
9796         (c_parser_external_declaration): Ditto.
9797         (c_parser_compound_statement_nostart): Ditto.
9798         * c-pragma.c (valid_location_for_stdc_pragma,
9799         mark_valid_location_for_stdc_pragma,
9800         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
9801         handle_pragma_float_const_decimal64): New.
9802         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
9803         * cp/semantics.c (valid_location_for_stdc_pragma_p,
9804         set_float_const_decimal64, clear_float_const_decimal64,
9805         float_const_decimal64_p): New dummy functions.
9806         * doc/extend.texi (Decimal Float): Remove statement that the
9807         pragma, and suffix for double constants, are not supported.
9808         * doc/invoke.texi (Warning Options): List new option.
9809         (-Wunsuffixed-float-constants): New.
9810
9811 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
9812
9813         * config/i386/i386.c: Do not include c-common.h.
9814
9815 2009-05-07  Mark Heffernan  <meheff@google.com>
9816
9817         * doc/invoke.texi (Debugging Options): Document change of debugging
9818         dump location.
9819         * opts.c (decode_options): Make dump_base_name relative to
9820         aux_base_name directory.
9821
9822 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
9823
9824         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
9825         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
9826
9827 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
9828
9829         * Makefile.in (install-plugin): Simplify a bit.
9830
9831 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
9832
9833         * Makefile.in (OBJS-common): Add regcprop.o.
9834         (regcprop.o): New.
9835         * timevar.def (TV_CPROP_REGISTERS): New.
9836         * regrename.c (regrename_optimize): Return 0.
9837         (rest_of_handle_regrename): Delete.
9838         (pass_rename_registers): Point to regrename_optimize.
9839         (struct value_data_entry, struct value_data, 
9840         kill_value_one_regno, kill_value_regno, kill_value,
9841         set_value_regno, init_value_data, kill_clobbered_value,
9842         kill_set_value, kill_autoinc_value, copy_value,
9843         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
9844         replace_oldest_value_reg, replace_oldest_value_addr,
9845         replace_oldest_value_mem, copyprop_hardreg_forward_1,
9846         debug_value_data, validate_value_data): Move...
9847         * regcprop.c: ... here.
9848         (rest_of_handle_cprop): Delete.
9849         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
9850
9851 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
9852
9853         PR middle-end/40057
9854         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
9855         GEN_INT for 1 << bitnum.
9856         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
9857         build_int_cst_type.
9858
9859 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
9860
9861         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
9862         Remove wrong description of "nand" operation.
9863
9864 2009-05-06  Richard Guenther  <rguenther@suse.de>
9865             Adam Nemet  <anemet@caviumnetworks.com>
9866
9867         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
9868         comment.  Add that if LHS is not a gimple register, then RHS1 has
9869         to be a single object (GIMPLE_SINGLE_RHS).
9870
9871 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
9872
9873         * expr.c (get_def_for_expr): Move it up in the file.
9874         (store_field): When expanding a bit-field store, look at the
9875         defining gimple stmt for the masking conversion.
9876
9877 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
9878
9879         PR middle-end/39986
9880         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
9881         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
9882         32-bit memcpy into long.
9883
9884 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
9885
9886         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
9887         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
9888         new_reg_loc_descr.
9889         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
9890         instead of appending DW_OP_deref*.
9891
9892 2009-05-06  Michael Matz  <matz@suse.de>
9893
9894         PR middle-end/40021
9895         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
9896         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
9897
9898 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
9899
9900         * Makefile.in (install-plugin): Fix srcdir handling.
9901
9902 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
9903
9904         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
9905         when processing for not_regs_needed bitmap.
9906         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
9907         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
9908         handling it for rhs. 
9909
9910 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9911
9912         * config/i386/i386.md (unnamed inc/dec peephole): Use
9913         optimize_insn_for_size_p instead of optimize_size.
9914         * config/i386/predicates.md (incdec_operand): Likewise.
9915         (aligned_operand): Likewise.
9916         * config/i386/sse.md (divv8sf3): Likewise.
9917         (sqrtv8sf2): Likewise.
9918
9919 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9920
9921         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
9922
9923         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
9924
9925 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9926
9927         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
9928         ssemodesuffixf2c with avxmodesuffixf2c.
9929
9930 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
9931
9932         PR c/40032
9933         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
9934
9935 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
9936
9937         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
9938         (struct tree_base): Adjust spacing for 8 bit boundaries.
9939         (struct tree_decl_common): Add decl_by_reference_flag bit.
9940         (DECL_BY_REFERENCE): Adjust.
9941         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
9942         print DECL_BY_REFERENCE bit.
9943         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
9944         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
9945         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
9946         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
9947         unconditionally.
9948
9949         PR middle-end/39666
9950         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
9951         range of the type, but default label is missing, add it with one
9952         of the existing labels instead of adding a new label for it.
9953
9954 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
9955
9956         * dwarf.h: Remove.
9957
9958 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
9959
9960         * Makefile.in (enable_plugin, plugin_includedir): New.
9961         (install): Depend on install-plugin.
9962         (PLUGIN_HEADERS): New.
9963         (install-plugin): New.
9964         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
9965
9966 2009-05-05  Richard Guenther  <rguenther@suse.de>
9967
9968         PR tree-optimization/40022
9969         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
9970         the only vuse.
9971         (phivn_valid_p): Fix tuplification error, simplify.
9972         (phiprop_insert_phi): Add dumps.
9973         (propagate_with_phi): Simplify.
9974
9975 2009-05-05  Richard Guenther  <rguenther@suse.de>
9976
9977         PR middle-end/40023
9978         * builtins.c (gimplify_va_arg_expr): Properly build the address.
9979
9980 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
9981
9982         * tree.h (strip_float_extensions): Remove duplicate declaration.
9983         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
9984         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
9985         block_ultimate_origin): Rearrange the declarations line to match the
9986         comment that indicates the .c file which the functions are defined.
9987         (dwarf2out_*, set_decl_rtl): Add comment.
9988         (get_base_address): Adjust comment.
9989         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
9990         declarations line and add comment.
9991         (is_builtin_name): Add blank after function name, for clarity.
9992
9993 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
9994
9995         * attribs.c (decl_attributes): Use %qE for identifiers in
9996         diagnostics.
9997         * cgraphunit.c (verify_cgraph_node): Translate function names to
9998         locale character set in diagnostics.
9999         * coverage.c (get_coverage_counts): Use %qE for identifiers in
10000         diagnostics.
10001         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
10002         Document that functions are named in UTF-8.
10003         * expr.c (expand_expr_real_1): Translate function names to locale
10004         character set in diagnostics.
10005         * gimplify.c (omp_notice_variable, omp_is_private,
10006         gimplify_scan_omp_clauses): Use %qE for identifiers in
10007         diagnostics.
10008         * langhooks.c (lhd_print_error_function): Translate function names
10009         to locale character set.
10010         * langhooks.h (decl_printable_name): Document that return value is
10011         in internal character set.
10012         * stmt.c: Include pretty-print.h
10013         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
10014         diagnostics.
10015         (resolve_operand_name_1): Translate named operand name to locale
10016         character set.
10017         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
10018         diagnostics.
10019         * toplev.c (announce_function): Translate function names to locale
10020         character set.
10021         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
10022         (default_tree_printer): Use pp_identifier or translate identifiers
10023         to locale character set.  Mark "<anonymous>" for translation.
10024         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
10025         for identifiers in diagnostics.
10026         * tree.c (handle_dll_attribute): Use %qE for identifiers in
10027         diagnostics.
10028         * varasm.c (output_constructor): Use %qE for identifiers in
10029         diagnostics.
10030
10031 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
10032
10033         * configure.ac: use ` ` instead of $()
10034         * configure: Regenerate.
10035
10036 2009-05-05  Ben Elliston  <bje@au.ibm.com>
10037
10038         * config/pa/linux-atomic.c: Eliminate conditional include of
10039         errno.h on non-LP64 systems to simplify build requirements.
10040
10041 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10042
10043         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
10044         diagnostics.
10045         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
10046         and pass value to identifier_to_locale.
10047         (warn_variable_length_array): Make name a tree.
10048         (grokdeclarator): Separate diagnostic texts for named and unnamed
10049         declarators.  Use %qE for named declarators.
10050         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
10051         diagnostics.
10052         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
10053         identifiers in diagnostics.
10054         * c-typeck.c (push_member_name, start_init): Pass identifiers to
10055         identifier_to_locale.  Mark "anonymous" strings for translation.
10056
10057 2009-05-04  Michael Eager <eager@eagercon.com>
10058
10059         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
10060         address for DImode/DFmode only if double-precision FP regs.
10061
10062 2009-05-04  Michael Eager <eager@eagercon.com>
10063
10064         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
10065         TARGET_SINGLE_FLOAT check.
10066
10067 2009-05-04  Michael Eager <eager@eagercon.com>
10068
10069         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
10070
10071 2009-05-04  Michael Eager <eager@eagercon.com>
10072
10073         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
10074         * config/rs6000/t-xilinx: New
10075
10076 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
10077
10078         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
10079         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
10080         * gcc/explow.c (memory_address): Use target hook.
10081         * gcc/targhooks.c (default_legitimize_address): New.
10082         * gcc/targhooks.h (default_legitimize_address): New.
10083         * gcc/target.h (legitimize_address): New.
10084         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
10085         (TARGET_INITIALIZER): Include it.
10086         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
10087
10088         * config/bfin/bfin-protos.h (legitimize_address): Remove.
10089         * config/bfin/bfin.c (legitimize_address): Remove.
10090         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
10091         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
10092         Remove.
10093         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
10094         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
10095
10096         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
10097         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
10098         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
10099         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
10100         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
10101         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
10102         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
10103         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
10104         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
10105         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
10106         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
10107         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
10108         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
10109         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
10110         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
10111         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
10112         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
10113         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
10114         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
10115         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
10116         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
10117         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
10118         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
10119
10120         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
10121         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
10122         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
10123         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
10124         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
10125         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
10126         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
10127         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
10128         (thumb_legitimize_address): Delete.
10129         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
10130         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
10131         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
10132         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
10133         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
10134         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
10135         Delete.
10136         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
10137         Delete.
10138
10139         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
10140         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
10141         * config/m32r/m32r.c (m32r_legitimize_address): New.
10142         * config/m68k/m68k.c (m68k_legitimize_address): New.
10143         * config/score/score.c (score_legitimize_address): Standardize.
10144         * config/score/score3.c (score3_legitimize_address): Standardize.
10145         * config/score/score3.h (score3_legitimize_address): Adjust.
10146         * config/score/score7.c (score7_legitimize_address): Standardize.
10147         * config/score/score7.h (score7_legitimize_address): Adjust.
10148         * config/sh/sh.c (sh_legitimize_address): New.
10149         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
10150
10151         * gcc/config/s390/s390.c (legitimize_address): Rename to...
10152         (s390_legitimize_address): ... this.
10153         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
10154         (sparc_legitimize_address): ... this.
10155         * gcc/config/i386/i386.c (legitimize_address): Rename to...
10156         (ix86_legitimize_address): ... this.
10157         * gcc/config/avr/avr.c (legitimize_address): Rename to...
10158         (avr_legitimize_address): ... this.
10159         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
10160         (mn10300_legitimize_address): ... this.
10161         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
10162         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
10163         (alpha_expand_mov): Adjust call.
10164
10165         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
10166         * config/spu/spu.c (spu_legitimize_address): Likewise.
10167         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
10168         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
10169
10170 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
10171
10172         * intl.c (locale_encoding, locale_utf8): New.
10173         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
10174         * intl.h (locale_encoding, locale_utf8): Declare.
10175         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
10176         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
10177         New.
10178         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
10179         argument.
10180         (pp_tree_identifier): Define to call pp_base_tree_identifier.
10181         (pp_base_tree_identifier): Declare as function.
10182         (identifier_to_locale): Declare.
10183         * Makefile.in (pretty-print.o): Update dependencies.
10184         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
10185
10186 2009-05-04  Richard Guenther  <rguenther@suse.de>
10187
10188         PR middle-end/40015
10189         * builtins.c (fold_builtin_memory_op): Do not decay to element
10190         type if the size matches the whole array.
10191
10192 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10193
10194         * expmed.c (synth_mult): When trying out a shift, pass the result
10195         of a signed shift.
10196
10197 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
10198
10199         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
10200         (shiftsub1_cost): New.
10201         (init_expmed): Compute shiftsub1_cost.
10202         (synth_mult): Optimize multiplications by constants of the form
10203         -(2^^m-1) for some constant positive integer m.
10204
10205 2009-05-03  Richard Guenther  <rguenther@suse.de>
10206
10207         PR c/39983
10208         * c-typeck.c (array_to_pointer_conversion): Do not built
10209         ADDR_EXPRs of arrays of pointer-to-element type.
10210         * c-gimplify.c (c_gimplify_expr): Revert change fixing
10211         up wrong ADDR_EXPRs after-the-fact.
10212         * c-common.c (strict_aliasing_warning): Strip pointer
10213         conversions for obtaining the original type.
10214         * builtins.c (fold_builtin_memset): Handle array types.
10215         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
10216         and array types
10217
10218 2009-05-03  Richard Guenther  <rguenther@suse.de>
10219
10220         PR middle-end/23329
10221         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
10222         Do not lose casts from array types with unknown extent to array
10223         types with known extent.
10224         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
10225         alias set compatibility.
10226
10227 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10228
10229         * flags.h (extra_warnings): Delete.
10230         * toplev.c (process_options): Handle Wuninitialized here.
10231         * opts.c (extra_warnings): Delete.
10232         (set_Wextra): Delete.
10233         (common_handle_option): -Wextra can be handled automatically.
10234         * c-opts.c (c_common_handle_option): Delete obsolete code.
10235         (c_common_post_options): Simplify comment.
10236         * common.opt (W): Add Var.
10237         (Wextra): Add Var.
10238         (Wuninitialized): Initialize to -1.
10239
10240 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
10241             Richard Guenther  <rguenther@suse.de>
10242
10243         * expr.c (get_def_for_expr): New function.
10244         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
10245         SSA rather than trees.
10246         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
10247         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
10248         
10249 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
10250
10251         * c-common.c (reswords): Add _Imaginary.
10252         * c-common.c (enum rid): Add RID_IMAGINARY.
10253
10254 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
10255
10256         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
10257         Patch by Richard Guenther.
10258
10259 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
10260
10261         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
10262         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10263         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
10264         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
10265         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
10266         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
10267         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
10268         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
10269         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
10270         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
10271         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
10272         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
10273         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
10274         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
10275         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
10276         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
10277         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
10278         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
10279
10280 2009-05-02  Richard Guenther  <rguenther@suse.de>
10281
10282         PR tree-optimization/39940
10283         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
10284         doing so.
10285
10286 2009-05-02  Richard Guenther  <rguenther@suse.de>
10287
10288         PR middle-end/40001
10289         * tree-ssa.c (execute_update_addresses_taken): Properly check
10290         if we can mark a variable DECL_GIMPLE_REG_P.
10291         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
10292         back to the end of the function.
10293         (is_gimple_reg_type): Remove complex type special casing.
10294         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
10295         if not optimizing.
10296
10297 2009-05-02  Ben Elliston  <bje@au.ibm.com>
10298
10299         * doc/collect2.texi (Collect2): Document search path behaviour
10300         when configured with --with-ld.
10301
10302 2009-05-02  Jan Hubicka  <jh@suse.cz>
10303
10304         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
10305         parameter; update callers.
10306         (coalesce_cost_edge): EH edges are costier because they needs
10307         splitting even if not critical and even more costier when there are
10308         multiple EH predecestors.
10309
10310 2009-05-02  Jan Hubicka  <jh@suse.cz>
10311
10312         * except.c (remove_eh_handler_and_replace): Handle updating after
10313         removing TRY blocks.
10314
10315 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
10316
10317         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
10318
10319 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
10320
10321         * varasm.c: Do not include c-pragma.h.
10322         * attribs.c: Do not incude c-common.h.
10323
10324 2009-05-01  Michael Matz  <matz@suse.de>
10325
10326         * calls.c (initialize_argument_information): Handle SSA names like
10327         decls with a non MEM_P DECL_RTL.
10328
10329 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10330
10331         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
10332         * ipa-utils.c: Likewise.
10333         * ipa-type-escape.c: Likewise.
10334         * cgraphunit.c Do not include c-common.h.
10335         * ipa-pure-const.c: Likewise.
10336         * tree-if-conv.c: Likewise.
10337         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
10338         * ipa-struct-reorg.c: Likewise.
10339         * tree-nomudflap.c: Likewise.
10340         * tree-ssa-structalias.c: Likewise.
10341
10342 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
10343
10344         * store-motion.c: Many cleanups to make this pass a first-class
10345         citizen instead of an appendix to gcse load motion.  Add TODO list
10346         to make this pass faster/cleaner/better.
10347
10348         (struct ls_expr): Post gcse.c-split cleanups.
10349         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
10350         "stores" field to "avail_stores".
10351         (pre_ldst_mems): Rename to store_motion_mems.
10352         (pre_ldst_table): Rename to store_motion_mems_table.
10353         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
10354         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
10355         (ldst_entry): Rename to st_expr_entry, update users.
10356         (free_ldst_entry): Rename to free_st_expr_entry, update users.
10357         (free_ldst_mems): Rename to free_store_motion_mems, update users.
10358         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
10359         update caller.
10360         (first_ls_expr): Rename to first_st_expr, update users.
10361         (next_ls_expr): Rename to next_st_expr, update users.
10362         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
10363         fields properly for store motion instead of names inherited from load
10364         motion in gcse.c.
10365         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
10366         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
10367         are done with it.
10368
10369         (ae_kill): Rename to st_kill, update users.
10370         (ae_gen): Rename to st_avloc, update users.
10371         (transp): Rename to st_transp, update users.
10372         (pre_insert_map): Rename to st_insert_map, update users.
10373         (pre_delete_map): Rename to st_delete_map, update users.
10374         (insert_store, build_store_vectors, free_store_memory,
10375         one_store_motion_pass): Update for abovementioned changes.
10376
10377         (gcse_subst_count, gcse_create_count): Remove.
10378         (one_store_motion_pass): New statistics counters "n_stores_deleted"
10379         and "n_stores_created", local variables.
10380
10381         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
10382         use for_each_rtx.
10383
10384         (regvec, compute_store_table_current_insn): Remove.
10385         (reg_set_info, reg_clear_last_set): Remove.
10386         (compute_store_table): Use DF caches instead of local dataflow
10387         solvers.
10388
10389 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
10390
10391         * c-objc-common.c (c_tree_printer): Print identifiers with
10392         pp_identifier, not pp_string.  Mark "({anonymous})" for
10393         translation.
10394         * c-pretty-print.c (pp_c_ws_string): New.
10395         (pp_c_cv_qualifier, pp_c_type_specifier,
10396         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
10397         pp_c_storage_class_specifier, pp_c_function_specifier,
10398         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
10399         pp_c_primary_expression, pp_c_postfix_expression,
10400         pp_c_unary_expression, pp_c_shift_expression,
10401         pp_c_relational_expression, pp_c_equality_expression,
10402         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
10403         use pp_string and pp_c_ws_string in place of pp_identifier and
10404         pp_c_identifier for non-identifiers.  Mark English strings for
10405         translation.
10406         * c-pretty-print.h (pp_c_ws_string): Declare.
10407
10408 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
10409             Roland McGrath <roland@redhat.com>
10410
10411         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
10412         (ENABLE_LD_BUILDID): New configuration option.
10413         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
10414         (LINK_BUILDID_SPEC): New macro.
10415         (init_spec): If defined, prepend it between LINK_EH_SPEC and
10416         link_spec.
10417         * doc/install.texi: Document --enable-linker-build-id option.
10418         * configure: Rebuild.
10419         * config.in: Rebuild.
10420
10421 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
10422
10423         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
10424         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
10425         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
10426         MIPS_GP_SAVE_AREA_SIZE.
10427         * config/mips/mips.c (struct mips_frame_info): Update comment
10428         before arg_pointer_offset and hard_frame_pointer_offset.
10429         (mips_compute_frame_info): Update diagram before function: to
10430         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
10431         indicate the position of frame_pointer_rtx with -fstack-protector and
10432         to show args_size.  Don't allocate cprestore area for leaf functions
10433         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
10434         cprestore_size.
10435         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
10436
10437 2009-04-30  Michael Matz  <matz@suse.de>
10438
10439         PR tree-optimization/39955
10440         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
10441
10442 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10443
10444         * ira.c (setup_cover_and_important_classes):  Use safe macro
10445         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
10446         directly.
10447         * genpreds.c (write_tm_preds_h):  Output suitable definition of
10448         REG_CLASS_FOR_CONSTRAINT.
10449
10450 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10451
10452         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
10453         instead of an int.
10454         * bitmap.c (bitmap_descriptor): Likewise.
10455         * ggc-common.c (loc_descriptor): Likewise.
10456         * varray.c (varray_descriptor): Likewise.
10457         * vec.c (vec_descriptor): Likewise.
10458
10459 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10460
10461         * Makefile.in (dce.o): Add $(EXCEPT_H).
10462         * dce.c: Include except.h and delete redundant vector definitions.
10463         (deletable_insn_p): Return false for non-call insns that can throw
10464         if DF is running.
10465
10466 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10467
10468         * gcse.c (ae_gen): Remove.
10469         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
10470         and make non-static function to make it available in store-motion.c.
10471         Update call sites with search-and-replace.
10472         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
10473         extract_mentioned_regs, extract_mentioned_regs_helper,
10474         find_moveable_store, compute_store_table, load_kills_store, find_loads,
10475         store_killed_in_insn, store_killed_after, store_killed_before,
10476         build_store_vectors, insert_insn_start_basic_block, insert-store,
10477         remove_reachable_equiv_notes, replace_store_insn, delete_store,
10478         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
10479         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
10480         * store-motion.c: ...new file.  Also copy data structures from gcse.c
10481         and clean up to remove parts not used by store motion.
10482         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
10483         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
10484
10485 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10486
10487         PR target/38571
10488         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
10489         when optimizing for size.
10490
10491 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
10492
10493         * gcse.c (gcse_constant_p): Fix typo in last change.
10494
10495 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
10496
10497         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
10498
10499 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
10500
10501         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
10502
10503 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
10504
10505         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
10506         CONST_HIGH_PART result.
10507
10508 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
10509
10510         * config/avr/avr.c (initial_elimination_offset): Rename to
10511         avr_initial_elimination_offset.
10512         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
10513         change return type to bool.
10514         (avr_can_eliminate): New function.
10515         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
10516         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
10517         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
10518         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
10519         avr_initial_elimination_offset.
10520         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
10521         (avr_initial_elimination_offset): Define.
10522
10523 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
10524             Steven Bosscher  <steven@gcc.gnu.org>
10525
10526         PR rtl-optimization/39938
10527         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
10528         * cfgrtl.c: Include insn-attr.h.
10529         (rest_of_pass_free_cfg): New function.
10530         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
10531         * resource.c (init_resource_info): Remove call to df_analyze.
10532
10533 2009-04-29  Richard Guenther  <rguenther@suse.de>
10534
10535         PR target/39943
10536         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
10537         allow conversion to signed integers.
10538
10539 2009-04-29  Richard Guenther  <rguenther@suse.de>
10540
10541         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
10542         shifts of floating point vectors if the shift amount is
10543         a constant multiple of the element size.
10544
10545 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
10546             Michael Matz  <matz@suse.de>
10547
10548         PR middle-end/39927
10549         PR bootstrap/39929
10550         * tree-outof-ssa.c (emit_partition_copy): New function.
10551         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10552         insert_part_to_rtx_on_edge): Perform the partition base var
10553         copy using emit_partition_copy.
10554         (insert_value_copy_on_edge): Convert constants to the right mode.
10555         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
10556         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
10557
10558 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10559
10560         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
10561         scan backwards to try to find a constant to initialize it.
10562
10563         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
10564         insn before the loop_end instruction, don't look past labels.
10565
10566 2009-04-29  Richard Guenther  <rguenther@suse.de>
10567
10568         PR middle-end/39937
10569         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
10570         loose type conversions.
10571         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
10572         stmts only if there are no uses of its definition.
10573
10574 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10575
10576         * config/bfin/bfin.h (splitting_loops): Declare.
10577         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
10578         Reorder bit definitions to be ascending.
10579         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
10580         * config/bfin/bfin.c (splitting_loops): New variable.
10581         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
10582         (struct loop_info): Remove members INIT and LOOP_INIT.
10583         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
10584         the LSETUP sequence.  Allow LC to be loaded from any register, but
10585         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
10586         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
10587         set to 1.
10588         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
10589         of reload_completed.
10590
10591         From Jie Zhang:
10592         * config/bfin/bfin.md (movsi_insn): Refine constraints.
10593
10594 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
10595
10596         * Makefile.in (PLUGIN_VERSION_H): New.
10597         (OBJS-common): Remove plugin-version.o.
10598         (plugin.o): Depend on (PLUGIN_VERSION_H).
10599         (plugin-version.o): Remove.
10600         * configure: Regenerate
10601         * configure.ac: Create plugin-version.h.
10602         * gcc-plugin.h (plugin_gcc_version): Remove.
10603         (plugin_default_version_check): Change signature.
10604         * plugin-version.c: Remove.
10605         * plugin.c: Include plugin-version.h.
10606         (str_plugin_gcc_version_name): Remove.
10607         (try_init_one_plugin): Pass gcc version to plugin_init.
10608         (plugin_default_version_check): Both gcc and plugin versions are now
10609         arguments.
10610
10611 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10612         
10613         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
10614         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
10615         Remove special case testing for last insn of inner loops. Don't fail
10616         if the loop ends with a jump, emit an extra nop instead.
10617
10618         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
10619         DREGS rather than comparing directly.  Remove code that tries to
10620         account for latencies.
10621
10622 2009-04-29  Richard Guenther  <rguenther@suse.de>
10623
10624         PR tree-optimization/39941
10625         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
10626         eliminating an indirect call.
10627
10628 2009-04-29  Richard Guenther  <rguenther@suse.de>
10629
10630         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
10631         parameter.  Allow invariants as base if !require_lvalue.
10632         (verify_gimple_assign_single): Adjust.
10633
10634 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
10635
10636         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
10637         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
10638         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
10639         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
10640         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
10641         a VEC_SELECT.
10642         * config/bfin/bfin.c (bfin_expand_builtin,
10643         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
10644
10645 2009-04-28  Richard Guenther  <rguenther@suse.de>
10646
10647         * tree-vect-loop.c (get_initial_def_for_induction): Use
10648         correct types for pointer increment.
10649
10650 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10651
10652         * toplev.c (print_version): Update GMP version string calculation.
10653
10654 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10655
10656         PR rtl-optimization/39938
10657         * resource.c (init_resource_info): Add call to df_analyze.
10658
10659 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10660
10661         * config/alpha/alpha.md (usegp): Cast the result of
10662         alpha_find_lo_sum_using_gp to enum attr_usegp.
10663         * config/alpha/alpha.c (override_options): Remove end-of-structure
10664         marker element from cpu_table.  Use array size of cpu_table to handle
10665         -mcpu and -mtune options.
10666         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
10667
10668 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
10669
10670         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
10671         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
10672         tune_32 and tune_64.
10673         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10674         support on PowerPC.
10675         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
10676         * config/rs6000/option-defaults.h: ... here.  New file.
10677         (OPT_64, OPT_32): Define.
10678         (MASK_64BIT): Define to 0 if not already defined.
10679         (OPT_ARCH64, OPT_ARCH32): Define.
10680         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
10681         and tune_64.
10682
10683 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10684
10685         * config/arm/arm.c (arm_override_options): Emit error on using
10686         fpa with AAPCS.
10687
10688 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10689
10690         PR rtl-optimization/39914
10691         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
10692         registers for allocnos created from user-defined variables only
10693         when not optimizing.
10694
10695 2009-04-28  Richard Guenther  <rguenther@suse.de>
10696
10697         PR middle-end/39937
10698         * fold-const.c (fold_binary): Use distribute_real_division only
10699         on float types.
10700
10701 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
10702
10703         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
10704         add hpux-stdint.h to tm_file.
10705         (hppa[12]*-*-hpux11*): Ditto.
10706         (ia64*-*-hpux*): Ditto.
10707         * config/hpux-stdint.h: New.
10708         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
10709         __STDC_EXT__ for all compiles.
10710         * config/pa/pa-hpux.h: Ditto.
10711         * config/pa/pa-hpux10.h: Ditto.
10712         * config/pa/pa-hpux11.h: Ditto.
10713
10714 2009-04-28  Catherine Moore  <clm@codesourcery.com>
10715
10716         * debug.h (set_name): Add comment.
10717
10718 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
10719
10720         PR target/39929
10721         * config/darwin.c (machopic_gen_offset): Check
10722         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
10723         * config/arm/arm.c (require_pic_register): Likewise.
10724
10725 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
10726
10727         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
10728         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
10729         m32c_promote_prototypes): Delete.
10730
10731 2009-04-28  Michael Matz  <matz@suse.de>
10732
10733         PR middle-end/39922
10734         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
10735         constants.
10736
10737 2009-04-28  Richard Guenther  <rguenther@suse.de>
10738
10739         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
10740
10741 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10742
10743         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
10744         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
10745         * config/arm/arm-tune.md: Regenerate.
10746
10747 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
10748
10749         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
10750         block if there are complex incoming edges.
10751         (sel_merge_blocks): Remove useless assert.
10752         (sel_redirect_edge_and_branch): Check that edge was redirected.
10753         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
10754         (sel_find_rgns): Delete declaration.
10755         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
10756         the region when it is not a preheader.
10757
10758 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10759
10760         PR c/39323
10761         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
10762
10763 2009-04-28  Richard Guenther  <rguenther@suse.de>
10764
10765         * tree.h (SSA_NAME_VALUE): Remove.
10766         (struct tree_ssa_name): Remove value_handle member.
10767         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
10768         array for jump threading.
10769         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
10770         SSA_NAME_VALUEs.
10771         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
10772         * tree-flow.h (threadedge_initialize_values): Declare.
10773         (threadedge_finalize_values): Likewise.
10774         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
10775         (SSA_NAME_VALUE): Define.
10776         (threadedge_initialize_values): New function.
10777         (threadedge_finalize_values): Likewise.
10778         * tree-ssa-dom.c (ssa_name_values): New global variable.
10779         (SSA_NAME_VALUE): Define.
10780         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
10781
10782 2009-04-28  Ira Rosen  <irar@il.ibm.com>
10783
10784         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10785         Use REPORT_VECTORIZED_LOCATIONS instead 
10786         REPORT_VECTORIZED_LOOPS.
10787         * tree-vectorizer.c (vect_verbosity_level): Make static.
10788         (vect_loop_location): Rename to vect_location.
10789         (vect_set_verbosity_level): Update comment.
10790         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
10791         and vect_location.
10792         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
10793         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
10794         instead REPORT_UNVECTORIZED_LOOPS.
10795         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
10796         and vect_loop_def to vect_external_def and vect_internal_def.
10797         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
10798         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
10799         REPORT_UNVECTORIZED_LOCATIONS.
10800         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
10801         and vect_used_in_loop and to vect_unused_in_scope and 
10802         vect_used_in_scope.
10803         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
10804         (vect_verbosity_level): Remove declaration.
10805         (vect_analyze_operations): Likewise.
10806         (vect_analyze_stmt): Declare.
10807         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
10808         REPORT_UNVECTORIZED_LOCATIONS.
10809         (vect_get_loop_niters): Fix indentation.
10810         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
10811         (vect_analyze_loop_operations): New function.
10812         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
10813         vect_analyze_operations.
10814         (vect_is_simple_reduction): Use new names.
10815         (vectorizable_live_operation, vect_transform_loop): Likewise.
10816         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
10817         to specify whether the data references can be a part of interleaving
10818         chain.
10819         (vect_analyze_data_ref_dependence): Use new names.
10820         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
10821         (vect_create_addr_base_for_vector_ref): Remove redundant code.
10822         * tree-vect-patterns.c (widened_name_p): Use new names.
10823         (vect_recog_dot_prod_pattern): Likewise.
10824         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
10825         (process_use, vect_mark_stmts_to_be_vectorized, 
10826         vect_model_simple_cost, vect_model_store_cost,
10827         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
10828         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
10829         vectorizable_operation, vectorizable_type_demotion,
10830         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
10831         vectorizable_condition): Likewise.
10832         (vect_analyze_operations): Split into vect_analyze_loop_operations
10833         and ...
10834         (vect_analyze_stmt): ... new function.
10835         (new_stmt_vec_info): Use new names.
10836         (vect_is_simple_use): Use new names and fix comment.
10837         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
10838         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
10839
10840 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
10841
10842         PR target/39911
10843         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
10844         and integer modes for x87 operands.  Do not ICE for unsupported size,
10845         generate error instead.  Generate error for unsupported operand types.
10846         ['z']: Do not handle HImode memory operands specially.  Warning
10847         for floating-point operands.  Fallthru to 'Z' for unsupported operand
10848         types.  Do not ICE for unsupported size, generate error instead.
10849         (output_387_binary_op): Use %Z to output operands.
10850         (output_fp_compare): Ditto.
10851         (output_387_reg_move): Ditto.
10852
10853 2009-04-28  Ben Elliston  <bje@au.ibm.com>
10854
10855         PR c++/35652
10856         Revert:
10857
10858         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10859
10860         * builtins.c (c_strlen): Do not warn here.
10861         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
10862         * c-common.c (pointer_int_sum): Take an explicit location.
10863         Warn about offsets out of bounds.
10864         * c-common.h (pointer_int_sum): Adjust declaration.
10865
10866 2009-04-27  Ian Lance Taylor  <iant@google.com>
10867
10868         * collect2.c (is_ctor_dtor): Change type of ret field in struct
10869         names to symkind.
10870         * dce.c (run_fast_df_dce): Change type of old_flags to int.
10871         * df-core.c (df_set_flags): Change return type to int.  Change
10872         type of old_flags to int.
10873         (df_clear_flags): Likewise.
10874         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
10875         (df_get_conditional_uses): Likewise.
10876         * df.h (df_set_flags, df_clear_flags): Update declarations.
10877         * dwarf2out.c (struct indirect_string_node): Change type of form
10878         field to enum dwarf_form.
10879         (AT_string_form): Change return type to enum dwarf_form.
10880         * fixed-value.c (fixed_compare): Add cast to enum type.
10881         * fwprop.c (update_df): Change 0 to VOIDmode.
10882         * gensupport.c: Change 0 to UNKNOWN.
10883         * gimple.h (gimple_cond_code): Add cast to enum type.
10884         * haifa-sched.c (reemit_notes): Add cast to enum type.
10885         * hooks.c (hook_int_void_no_regs): Remove function.
10886         * hooks.h (hook_int_void_no_regs): Remove declaration.
10887         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
10888         * predict.c (combine_predictions_for_insn): Add casts to enum type.
10889         * real.c (real_arithmetic): Add cast to enum type.
10890         (real_compare): Likewise.
10891         * target.h (struct gcc_target): Change return type of
10892         branch_target_register_class to enum reg_class.
10893         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
10894         default_branch_target_register_class.
10895         * targhooks.c (default_branch_target_register_class): New function.
10896         * targhooks.h (default_branch_target_register_class): Declare.
10897         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
10898         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
10899         cast to int.
10900         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
10901         ERROR_MARK.
10902         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
10903         vect_uninitialized_def.  Change 0 to ERROR_MARK.
10904         * tree-vect-stmts.c (supportable_widening_operation): Don't
10905         initialize icode1 and icode2.
10906         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
10907         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
10908         and to STD_C89.
10909         (cmn_err_flag_specs): Change 0 to STD_C89.
10910         (cmn_err_char_table): Likewise.
10911         * config/arm/arm.c (get_arm_condition_code): Change type of code
10912         to enum arm_cond_code.
10913         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
10914         (IWMMXT_BUILTIN2): Likewise.
10915         (neon_builtin_type_bits): Don't define typedef.
10916         (neon_builtin_datum): Change type of bits field to int.
10917         (arm_expand_neon_args): Add cast to enum type.
10918         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
10919         TLS_MODEL_NONE.
10920         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
10921         casts to enum type.
10922         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
10923         MIPS_FP_COND_f.
10924         * config/mips/mips.md (jal_macro): Return enum constant.
10925         (single_insn): Likewise.
10926         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
10927         CODE_FOR_nothing.
10928         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10929         casts to enum type.
10930         * config/s390/s390.c (s390_tune_flags): Change type to int.
10931         (s390_arch_flags): Likewise.
10932         (s390_handle_arch_option): Change flags field of struct pta to int.
10933         * config/s390/s390.h (s390_tune_flags): Update declaration.
10934         (s390_arch_flags): Likewise.
10935         * config/sh/sh.c (prepare_move_operands): Compare
10936         tls_symbolic_operand result with enum constant.
10937         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
10938         (sh_expand_prologue): Add cast to enum type.
10939         (sh_expand_epilogue): Likewise.
10940         (tls_symbolic_operand): Change return type to enum tls_model.
10941         (fpscr_set_from_mem): Add cast to enum type.
10942         (legitimize_pic_address): Compare tls_symbolic_operand result with
10943         enum constant.
10944         (sh_target_reg_class): Change return type to enum reg_class.
10945         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
10946         PROCESSOR_xxx.
10947         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
10948         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
10949         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
10950         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
10951         (delayed_branch, tls_call_delay): Likewise.
10952         (eligible_for_sibcall_delay): Likewise.
10953         (eligible_for_return_delay): Likewise. 
10954         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
10955         (spu_expand_builtin_1): Likewise.
10956
10957         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
10958         for all types of conversions.
10959         (output_init_element): Issue -Wc++-compat warning if needed when
10960         initializing a bitfield with enum type.
10961         * c-parser.c (c_parser_expression): Set original_type to
10962         original_type of right hand operand of comman operator.
10963
10964 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10965
10966         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
10967         grammar nits.
10968         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
10969         * doc/cpp.texi (Standard Predefined Macros)
10970         (Implementation-defined behavior): Likewise.
10971         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
10972         * doc/gimple.texi (GIMPLE Exception Handling)
10973         (@code{GIMPLE_ASSIGN}): Likewise.
10974         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
10975         * doc/invoke.texi (Warning Options, Optimize Options)
10976         (AVR Options, Darwin Options): Likewise.
10977         (Optimize Options): Reformulate -fwhole-program description.
10978         * doc/loop.texi (Lambda): Likewise.
10979         * doc/md.texi (Output Template, Define Constraints)
10980         (Standard Names, Insn Splitting): Likewise.
10981         * doc/options.texi (Option properties): Likewise.
10982         * doc/passes.texi (Tree-SSA passes): Likewise.
10983         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
10984         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
10985         (File Names and DBX): Likewise.
10986         * doc/trouble.texi (Incompatibilities): Likewise.
10987
10988 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10989
10990         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
10991         instruction is correct.
10992
10993 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
10994
10995         Allow non-constant arguments to conversion intrinsics.
10996         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
10997         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
10998         * spu.c (print_operand): Handle 'v' and 'w'.
10999         (exp2_immediate_p, spu_gen_exp2): Define.
11000         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
11001         spu_convtf_1): Update parameter descriptions.
11002         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
11003         * constraints.md ('v', 'w'): New.
11004         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
11005         Remove.
11006         (i2f, I2F): New define_mode_attr.
11007         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
11008         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
11009         fixuns_truncv4sfv4si2):  Update to use mode attribute.
11010         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
11011         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
11012         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
11013         patterns for combine.
11014
11015 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
11016
11017         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
11018         (cprop, hoist, pre, store_motion): New debug counters.
11019         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
11020         is not an RTL pass anymore.
11021         (pass_profiling): Remove extern decl for pass removed in 2005.
11022         (pass_gcse, pass_jump_bypass): Remove.
11023         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
11024         to 0 for clean state.
11025         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
11026         * cse.c (gate_handle_cse_after_global_opts,
11027         rest_of_handle_cse_after_global_opts): New functions.
11028         (pass_cse_after_global_opts): New pass, does local CSE.
11029         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
11030         (TV_CPROP): New timevar.
11031         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
11032         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
11033         (gcse_main, recompute_all_luids): Remove.
11034         (compute_hash_table_work): Call max_reg_num instead of reading
11035         max_gcse_regno.
11036         (cprop_jump): Don't set run_jump_opt_after_gcse.
11037         (constprop_register): Always allow to alter jumps.
11038         (cprop_insn): Likewise.
11039         (do_local_cprop): Likewise.
11040         (local_cprop_pass): Likewise.  Return non-zero if something changed.
11041         (cprop): Remove function, fold interesting bits into one_cprop_pass.
11042         (find_implicit_sets): Add note about missed optimization opportunity.
11043         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
11044         pass_rtl_cprop execute function.
11045         Don't bother tracking the pass number, each pass gets its own dumpfile
11046         now anyway.
11047         Always allow to alter jumpsand bypass jumps.
11048         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
11049         will just find no suitable set.
11050         (pre_edge_insert): Fix dumping, this function is for PRE only.
11051         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
11052         pass_rtl_pre execute function.
11053         (hoist_code): Return non-zero if something changed.  Keep track of
11054         substitutions and insertions for statistics gathering similar to PRE.
11055         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
11056         called from the pass_rtl_hoist execute function.  Show pass statistics.
11057         (compute_store_table): Use max_reg_num directly instead of using the
11058         formerly global max_gcse_regno.
11059         (build_store_vectors): Likewise.
11060         (replace_store_insn): Fix dumping.
11061         (store_motion): Rename to ...
11062         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
11063         pass, called from the pass_rtl_store_motion execute function.  Keep
11064         track of substitutions and insertions for statistics gathering similar
11065         to PRE.
11066         (bypass_jumps): Remove, fold interesting bits into ...
11067         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
11068         from the pass_rtl_cprop execute function.
11069         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11070         pass_jump_bypass): Remove.
11071         (gate_handle_gcse, rest_of_handle_gcse): Remove.
11072         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
11073         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
11074         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
11075         (gate_rtl_store_motion, execute_rtl_store_motion,
11076         pass_rtl_store_motion): New.
11077         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
11078         make it clear that -fcse-skip-blocks is a no-op for backward compat.
11079         * passes.c (init_optimization_passes): Remove pass_gcse and
11080         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
11081         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
11082         instead of pass_jump_bypass.
11083
11084 2009-04-27  Richard Guenther  <rguenther@suse.de>
11085
11086         PR middle-end/39928
11087         * gimplify.c (gimplify_expr): If we are required to create
11088         a temporary make sure it ends up as register.
11089
11090 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
11091
11092         PR target/39903
11093         * config/i386/i386.c (construct_container): Don't call
11094         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
11095         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
11096
11097 2009-04-27  Michael Matz  <matz@suse.de>
11098
11099         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
11100         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
11101         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
11102         (dump_replaceable_exprs): Take a bitmap.
11103         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
11104         array.
11105         (expand_gimple_basic_block): Likewise.
11106         * tree-ssa-ter.c (struct temp_expr_table_d): Make
11107         replaceable_expressions member a bitmap.
11108         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
11109         (mark_replaceable): Likewise.
11110         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
11111         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
11112
11113 2009-04-27  Richard Guenther  <rguenther@suse.de>
11114
11115         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
11116         (verify_stmts): Dispatch to gimple/type verification code.
11117         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
11118         issue with call argument types.
11119
11120 2009-04-27  Michael Matz  <matz@suse.de>
11121
11122         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
11123         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
11124         to above.
11125
11126 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
11127             Eric Botcazou  <ebotcazou@adacore.com>
11128
11129         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
11130         a label's basic block.
11131         (mark_target_live_regs): Tidy and rework obsolete comments.
11132         Change back DF problem to LIVE.  If a label starts a basic block,
11133         assume that all registers that used to be live then still are.
11134         (init_resource_info): If a label starts a basic block, set its
11135         BLOCK_FOR_INSN accordingly.
11136         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
11137
11138 2009-04-27  Richard Guenther  <rguenther@suse.de>
11139
11140         * tree-flow-inline.h (function_ann): Remove.
11141         (get_function_ann): Likewise.
11142         * tree-dfa.c (create_function_ann): Remove.
11143         * tree-flow.h (struct static_var_ann_d): Remove.
11144         (struct function_ann_d): Likewise.
11145         (union tree_ann_d): Remove fdecl member.
11146         (function_ann_t): Remove.
11147         (function_ann, get_function_ann, create_function_ann): Remove
11148         declarations.
11149
11150 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
11151
11152         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
11153
11154 2009-04-27  Jan Hubicka  <jh@suse.cz>
11155
11156         * ipa-pure-const.c (struct funct_state_d): New fields
11157         state_previously_known, looping_previously_known; remove
11158         state_set_in_source.
11159         (analyze_function): Use new fields.
11160         (propagate): Avoid assumption that state_set_in_source imply
11161         nonlooping.
11162
11163         * tree-ssa-loop-niter.c (finite_loop_p): New function.
11164         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
11165         * cfgloop.h (finite_loop_p): Declare.
11166
11167 2009-04-26  Michael Matz  <matz@suse.de>
11168
11169         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
11170
11171 2009-04-26  Michael Matz  <matz@suse.de>
11172
11173         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
11174         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
11175         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
11176         pass_mark_used_blocks): Remove.
11177         * tree-optimize.c (pass_free_datastructures,
11178         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
11179         * passes.c (init_optimization_passes): Don't call
11180         pass_mark_used_blocks, remove dead code.
11181
11182 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
11183
11184         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
11185         * tree-ssa-live.h (register_ssa_partition): Likewise.
11186
11187 2009-04-26  Michael Matz  <matz@suse.de>
11188
11189         Expand from SSA.
11190         * builtins.c (fold_builtin_next_arg): Handle SSA names.
11191         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
11192         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
11193         SSA names. 
11194         (compare_pairs): Swap cost comparison.
11195         (coalesce_ssa_name): Don't use change_partition_var.
11196         * tree-nrv.c (struct nrv_data): Add modified member.
11197         (finalize_nrv_r): Set it.
11198         (tree_nrv): Use it to update statements.
11199         (pass_nrv): Require PROP_ssa.
11200         * tree-mudflap.c (mf_decl_cache_locals,
11201         mf_build_check_statement_for): Use make_rename_temp.
11202         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
11203         * alias.c (find_base_decl): Handle SSA names.
11204         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
11205         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
11206         * rtl.h (set_reg_attrs_for_parm): Declare.
11207         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
11208         to "optimized", remove unused locals at finish.
11209         (execute_free_datastructures): Make global, call
11210         delete_tree_cfg_annotations.
11211         (execute_free_cfg_annotations): Don't call
11212         delete_tree_cfg_annotations.
11213
11214         * ssaexpand.h: New file.
11215         * expr.c (toplevel): Include ssaexpand.h.
11216         (expand_assignment): Handle SSA names the same as register variables.
11217         (expand_expr_real_1): Expand SSA names.
11218         * cfgexpand.c (toplevel): Include ssaexpand.h.
11219         (SA): New global variable.
11220         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
11221         (SSAVAR): New macro.
11222         (set_rtl): New helper function.
11223         (add_stack_var): Deal with SSA names, use set_rtl.
11224         (expand_one_stack_var_at): Likewise.
11225         (expand_one_stack_var): Deal with SSA names.
11226         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
11227         before unique numbers.
11228         (expand_stack_vars): Use set_rtl.
11229         (expand_one_var): Accept SSA names, add asserts for them, feed them
11230         to above subroutines.
11231         (expand_used_vars): Expand all partitions (without default defs),
11232         then only the local decls (ignoring those expanded already).
11233         (expand_gimple_cond): Remove edges when jumpif() expands an
11234         unconditional jump.
11235         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
11236         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
11237         SSA name.
11238         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
11239         members of SA; deal with PARM_DECL partitions here; expand
11240         all PHI nodes, free tree datastructures and SA.  Commit instructions
11241         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
11242         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
11243         info and statements at start, collect garbage at finish.
11244         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
11245         (VAR_ANN_PARTITION) Remove.
11246         (change_partition_var): Don't declare.
11247         (partition_to_var): Always return SSA names.
11248         (var_to_partition): Only accept SSA names.
11249         (register_ssa_partition): Only check argument.
11250         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
11251         member.
11252         (delete_var_map): Don't free it.
11253         (var_union): Only accept SSA names, simplify.
11254         (partition_view_init): Mark only useful SSA names as used.
11255         (partition_view_fini): Only deal with SSA names.
11256         (change_partition_var): Remove.
11257         (dump_var_map): Use ssa_name instead of partition_to_var member.
11258         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
11259         basic blocks.
11260         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
11261         (struct _elim_graph): New member const_dests; nodes member vector of
11262         ints.
11263         (set_location_for_edge): New static helper.
11264         (create_temp): Remove.
11265         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
11266         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
11267         (new_elim_graph): Allocate const_dests member.
11268         (clean_elim_graph): Truncate const_dests member.
11269         (delete_elim_graph): Free const_dests member.
11270         (elim_graph_size): Adapt to new type of nodes member.
11271         (elim_graph_add_node): Likewise.
11272         (eliminate_name): Likewise.
11273         (eliminate_build): Don't take basic block argument, deal only with
11274         partition numbers, not variables.
11275         (get_temp_reg): New static helper.
11276         (elim_create): Use it, deal with RTL temporaries instead of trees.
11277         (eliminate_phi): Adjust all calls to new signature.
11278         (assign_vars, replace_use_variable, replace_def_variable): Remove.
11279         (rewrite_trees): Only do checking.
11280         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
11281         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
11282         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
11283         contains_tree_r, MAX_STMTS_IN_LATCH,
11284         process_single_block_loop_latch, analyze_edges_for_bb,
11285         perform_edge_inserts): Remove.
11286         (expand_phi_nodes): New global function.
11287         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
11288         functions, initialize new parameter, remember partitions having a
11289         default def.
11290         (finish_out_of_ssa): New global function.
11291         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
11292         don't reset in_ssa_p here, don't disable TER when mudflap.
11293         (pass_del_ssa): Remove.
11294         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
11295         partition members.
11296         (execute_free_datastructures): Declare.
11297         * Makefile.in (SSAEXPAND_H): New variable.
11298         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
11299         * basic-block.h (commit_one_edge_insertion): Declare.
11300         * passes.c (init_optimization_passes): Move pass_nrv and
11301         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
11302         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
11303         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
11304         (redirect_branch_edge): Deal with super block when expanding, split
11305         out jump patching itself into ...
11306         (patch_jump_insn): ... here, new static helper.
11307
11308 2009-04-26  Michael Matz  <matz@suse.de>
11309
11310         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
11311         beyond num_ssa_names.
11312         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
11313         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
11314
11315 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11316
11317         PR inline-asm/39543
11318         * fwprop.c (forward_propagate_asm): New function.
11319         (forward_propagate_and_simplify): Propagate also into __asm, if it
11320         doesn't increase the number of referenced registers.
11321
11322         PR c/39889
11323         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
11324
11325 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
11326
11327         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
11328         note_nonlocal_vla_type for nonlocal VLAs.
11329         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
11330         contains_remapped_vars, remap_vla_decls): New functions.
11331         (convert_nonlocal_reference_stmt): If not optimizing, call
11332         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
11333         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
11334         if it wasn't found in var_map.
11335         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
11336         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
11337         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
11338         declare_vars.
11339         * gimplify.c (nonlocal_vlas): New variable.
11340         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
11341         referenced VLAs.
11342         (gimplify_body): Create and destroy nonlocal_vlas.
11343
11344         * dwarf2out.c (loc_descr_plus_const): New function.
11345         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
11346         mem_loc_descriptor, loc_descriptor_from_tree_1,
11347         descr_info_loc, gen_variable_die): Use it.
11348
11349         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
11350         !TREE_STATIC VAR_DECLs.
11351         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
11352         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
11353         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
11354         DECL_BY_REFERENCE is valid.
11355         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
11356         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
11357         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
11358         Copy DECL_BY_REFERENCE.
11359         (struct nesting_copy_body_data): New type.
11360         (nesting_copy_decl): New function.
11361         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
11362         if they have variable length.
11363
11364 2009-04-26  Michael Matz  <matz@suse.de>
11365
11366         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
11367         mark new temporaries for renaming.
11368
11369 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11370
11371         PR c/39581
11372         * c-decl.c (global_bindings_p): Return negative value.
11373         (c_variable_size): New.  Based on variable_size from
11374         stor-layout.c.
11375         (grokdeclarator): Call c_variable_size not variable_size.
11376
11377 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
11378
11379         * config/i386/i386.c (print_operand) ['z']: Fix typo.
11380
11381 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
11382
11383         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
11384         Redefine it to just use mingw/include.
11385         (ASM_SPEC): Rules for -m32 and -m64.
11386         (LINK_SPEC): Use Likewise.
11387         (SPEC_32): New define.
11388         (SPEC_64): Likewise.
11389         (SUB_LINK_SPEC): Likewise.
11390         (MULTILIB_DEFAULTS): New define.
11391         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
11392         Add multilib options.
11393         (MULTILIB_DIRNAMES): Likewise.
11394         (MULTILIB_OSDIRNAMES): Likewise.
11395         (LIBGCC): Likewise.
11396         (INSTALL_LIBGCC): Likewise.
11397
11398 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
11399
11400         PR c/39556
11401         * c-tree.h (enum c_inline_static_type): New.
11402         (record_inline_static): Declare.
11403         * c-decl.c (struct c_inline_static, c_inline_statics,
11404         record_inline_static, check_inline_statics): New.
11405         (pop_file_scope): Call check_inline_statics.
11406         (start_decl): Call record_inline_static instead of pedwarning
11407         directly for static in inline function.
11408         * c-typeck.c (build_external_ref): Call record_inline_static
11409         instead of pedwarning directly for static referenced in inline
11410         function.
11411
11412 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
11413
11414         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
11415         not new but only being rescanned.
11416         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
11417         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
11418         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
11419         record_set_info, compute_set, grealloc): Remove.
11420         (recompute_all_luids): New function.
11421         (gcse_main): Don't compute sets, and don't do related memory
11422         allocations/free-ing.  If something changed before the end of the
11423         pass, update LUIDs using recompute_all_luids.
11424         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
11425         (free_gcse_mem): Don't free it either.
11426         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
11427         Use the df insn LUIDs.
11428         (load_killed_in_block): Likewise.
11429         (compute_hash_table_work): Don't compute reg_set_in_block.
11430         (compute_transp): Use DF_REG_DEF_CHAINs.
11431         (local_cprop_pass): Don't use compute_sets and related functions.
11432         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
11433         Use get_max_uid() instead of max_cuid.
11434         (insert_insn_end_basic_block, pre_insert_copy_insn,
11435         update_ld_motion_stores): Don't try to
11436         keep reg_set tables up to date.
11437         (pre_insert_copies): Use df insn LUIDs.
11438         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
11439         (reg_set_info): Don't use extra bitmap argument.
11440         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
11441         information to compute regs_set_in_block.
11442         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
11443         (bypass_jumps): Don't use compute_sets and friends.
11444
11445 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11446
11447         PR testsuite/39710
11448         * opts.c (undocumented_msg): Do not leave blank even with
11449         ENABLE_CHECKING.
11450
11451 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11452
11453         * c-decl.c (build_enumerator): Allow values folding to integer
11454         constants but not integer constant expressions with a pedwarn if
11455         pedantic.
11456
11457 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11458
11459         PR c/39582
11460         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
11461         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
11462         type is an integer constant.
11463
11464 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11465
11466         PR target/39897
11467         * config/i386/i386.c (print_operand) ['z']: Revert handling of
11468         HImode operands.
11469
11470 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
11471
11472         PR c/39564
11473         * c-decl.c (grokdeclarator): Diagnose declarations of functions
11474         with variably modified return type and no storage class
11475         specifiers, except for the case of nested functions.  Distinguish
11476         extern declarations of functions with variably modified return
11477         types from those of objects with variably modified types.
11478
11479 2009-04-25  Jan Hubicka  <jh@suse.cz>
11480
11481         * tree.c (list_equal_p): New function.
11482         * tree.h (list_equal_p): Declare.
11483         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11484         basic_block_def, basic_block, const_basic_block): New.
11485         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
11486         (redirect_eh_edge): New function.
11487         (make_eh_edge_update_phi): EH edges are not abnormal.
11488         * except.c: Include tree-flow.h.
11489         (list_match): New function.
11490         (eh_region_replaceable_by_p): New function.
11491         (replace_region): New function.
11492         (hash_type_list): New function.
11493         (hash_eh_region): New function.
11494         (eh_regions_equal_p): New function.
11495         (merge_peers): New function.
11496         (remove_unreachable_regions): Verify EH tree when checking;
11497         merge peers.
11498         (copy_eh_region_1): New function.
11499         (copy_eh_region): New function.
11500         (push_reachable_handler): New function.
11501         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
11502         regions without label but with live RESX.
11503         * except.h (redirect_eh_edge_to_label): New.
11504         * tree-flow.h (redirect_eh_edge): New.
11505         * coretypes.h (edge_def, edge, const_edge, basic_block_def
11506         basic_block_def, basic_block, const_basic_block): Remove.
11507         * Makefile.in (except.o): Add dependency on tree-flow.h
11508         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
11509         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
11510         Remove.
11511
11512 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
11513
11514         PR bootstrap/39645
11515         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
11516         on the destination of memcpy.
11517
11518 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
11519
11520         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
11521         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
11522         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
11523
11524 2009-04-25  Jan Hubicka  <jh@suse.cz>
11525
11526         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
11527         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
11528         to be reached by different label than left.
11529         (update_eh_edges): Update comment; remove edge_to_remove if possible
11530         and return true if suceeded.
11531         (cleanup_empty_eh): Accept sharing map; handle shared regions.
11532         (cleanup_eh): Compute sharing map.
11533         * except.c (remove_eh_handler_and_replace): Add argument if we should
11534         update regions.
11535         (remove_unreachable_regions): Update for label sharing.
11536         (label_to_region_map): Likewise.
11537         (get_next_region_sharing_label): New function.
11538         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
11539         prev_try pointers.
11540         (remove_eh_handler): Update.
11541         (remove_eh_region_and_replace_by_outer_of): New function.
11542         * except.h (struct eh_region): Add next_region_sharing_label.
11543         (remove_eh_region_and_replace_by_outer_of,
11544         get_next_region_sharing_label): Declare.
11545         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
11546
11547 2009-04-25  Jan Hubicka  <jh@suse.cz>
11548
11549         * tree-cfg.c (split_critical_edges): Split also edges where we can't
11550         insert code even if they are not critical.
11551
11552 2009-04-25  Jan Hubicka  <jh@suse.cz>
11553
11554         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11555         (gimple_can_remove_branch_p): EH edges won't remove branch by
11556         redirection.
11557         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
11558         updating of non-abnormal EH edges.
11559         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
11560         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
11561         (split_critical_edges): Split also edges where emitting code on them
11562         will lead to splitting later.
11563
11564 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
11565             H.J. Lu  <hongjiu.lu@intel.com>
11566
11567         PR target/39590
11568         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
11569         the configured assembler supports fildq and fistpq mnemonics.
11570         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
11571         * configure: Regenerated.
11572         * config.in: Ditto.
11573
11574         * config/i386/i386.c (print_operand): Handle 'Z'.
11575         ['z']: Remove handling of special fild/fist suffixes.
11576         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
11577         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
11578         suffix of fild insn.
11579         (*floatsi<mode>2_vector_mixed): Ditto.
11580         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
11581         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
11582         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11583         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
11584         * config/i386/gas.h (GAS_MNEMONICS): Remove.
11585
11586 2009-04-25  Ben Elliston  <bje@au.ibm.com>
11587  
11588         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
11589         the source of a set operation.
11590
11591 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
11592
11593         * target.h (struct gcc_target): Add case_values_threshold field.
11594         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
11595         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
11596         * targhooks.c (default_case_values_threshold): New function.
11597         * targhooks.h (default_case_values_threshold): Declare function.
11598         * stmt.c (expand_case): Use case_values_threshold target hook.
11599         * expr.h (case_values_threshold): Remove declartation.
11600         * expr.c (case_values_threshold): Remove function.
11601         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
11602
11603         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
11604         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11605         (avr_case_values_threshold): Declare as static.
11606         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
11607
11608         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
11609         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
11610         (mn10300_case_values_threshold): New function.
11611
11612 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11613
11614         * ira.c (setup_cover_and_important_classes): Add enum cast.
11615
11616 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
11617
11618         * genpreds.c (write_enum_constraint_num): Output definition of
11619         CONSTRAINT_NUM_DEFINED_P macro.
11620         * ira.c (setup_cover_and_important_classes): Use
11621         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
11622         
11623 2009-04-24  DJ Delorie  <dj@redhat.com>
11624
11625         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
11626         __SH2A_SINGLE_ONLY__ also.
11627
11628 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
11629
11630         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
11631         (movdf_internal): Ditto.
11632         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
11633         SFmode and DFmode constants.
11634         (ia64_print_operand): Add 'G' format for printing
11635         floating point constants.
11636
11637 2009-04-24  Richard Guenther  <rguenther@suse.de>
11638
11639         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
11640         from unsigned additions.
11641
11642 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
11643
11644         * c-typeck.c (set_init_index): Allow array designators that are
11645         not integer constant expressions with a pedwarn if pedantic.
11646
11647 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11648
11649         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
11650         zero if no overlap in nonzero bits between the operands.
11651
11652 2009-04-24  Ian Lance Taylor  <iant@google.com>
11653
11654         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
11655         (record_dead_and_set_regs): Likewise.
11656         * df.h (struct df_mw_hardreg): Change flags field to int.
11657         (struct df_base_ref): Likewise.
11658         (struct df): Change changeable_flags field to int.
11659         * df-scan.c (df_defs_record): Change clobber_flags to int.
11660         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
11661         constants rather than #define macros.
11662         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
11663         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
11664         (enum dwarf_calling_convention): Likewise.
11665         (enum dwarf_line_number_x_ops): Likewise.
11666         (enum dwarf_call_frame_info): Likewise.
11667         (enum dwarf_source_language): Likewise.
11668         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
11669         (add_calling_convention_attribute): Likewise.
11670         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
11671         (combine_comparisons): Change compcode to int.  Add cast to enum type.
11672         * genrecog.c (maybe_both_true_2): Change c to int.
11673         (write_switch): Likewise.  Add cast to enum type.
11674         * gimplify.c (gimplify_omp_for): Handle return values from
11675         gimplify_expr using MIN rather than bitwise or.
11676         (gimplify_expr): Add cast to enum type.
11677         * ipa-prop.c (update_jump_functions_after_inlining): Change
11678         IPA_BOTTOM to IPA_JF_UNKNOWN.
11679         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
11680         Add casts to enum type.
11681         (setup_cover_and_important_classes): Change cl to int.  Add casts
11682         to enum type.
11683         (setup_class_translate): Change cl and mode to int.
11684         (ira_init_once): Change mode to int.
11685         (free_register_move_costs): Likewise.
11686         (setup_prohibited_mode_move_regs): Add casts to enum type.
11687         * langhooks.c (add_builtin_function_common): Rework assertion that
11688         value fits bitfield.
11689         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
11690         * omega.c (omega_do_elimination): Avoid math on enum types.
11691         * optabs.c (expand_vec_shift_expr): Remove casts to int.
11692         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
11693         int local to handle integral_argment value.
11694         * regmove.c (try_auto_increment): Change PUT_MODE to
11695         PUT_REG_NOTE_KIND.
11696         * reload.c (push_secondary_reload): Add casts to enum type.
11697         (secondary_reload_class, find_valid_class): Likewise.
11698         * reload1.c (emit_input_reload_insns): Likewise.
11699         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
11700         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
11701         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
11702         constant.
11703         * tree.c (build_common_builtin_nodes): Add casts to enum type.
11704         * tree-complex.c (complex_lattice_t): Typedef to int rather than
11705         enum type.
11706         (expand_complex_libcall): Add casts to enum type.
11707         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
11708         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
11709         with ERROR_MARK, not NUM_TREE_CODES.
11710         (vect_create_epilog_for_reduction): Likewise.
11711         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
11712         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
11713         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
11714         enum machine_mode.
11715         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
11716         vect_unused_in_loop.  Change 0 to loop_vect.
11717         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
11718         * var-tracking.c (get_init_value): Change return type to enum
11719         var_init_status.
11720         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
11721         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
11722         arm_fp_model.
11723         (arm_override_options): Add casts to enum type.
11724         (arm_emit_tls_decoration): Likewise.
11725         * config/i386/i386.c (ix86_function_specific_restore): Add casts
11726         to enum type.
11727         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
11728         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
11729         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
11730         enum type.
11731         * config/s390/s390.c (code_for_builtin_64): Change to array of
11732         enum insn_code.
11733         (code_for_builtin_31): Likewise.
11734         (s390_expand_builtin): Change code_for_builtin to enum insn_code
11735         const *.
11736         * config/sparc/sparc.c (sparc_override_options): Change value
11737         field in struct code_model to enum cmodel.  In initializer change
11738         0 to NULL and add cast to enum type.
11739
11740         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
11741         Change all callers.  Issue a -Wc++-compat warning using
11742         lhs_origtype if necessary.
11743         (convert_for_assignment): Issue -Wc++-compat warnings about
11744         invalid conversions to enum type on assignment.
11745         * c-common.h (build_modify_expr): Update declaration.
11746
11747 2009-04-24  Nick Clifton  <nickc@redhat.com>
11748
11749         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
11750         (function_arg_advance): Likewise.
11751         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
11752         5th alternative.
11753
11754 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11755
11756         * config/s390/constraints.md ('I', 'J'): Fix condition.
11757
11758 2009-04-24  Diego Novillo  <dnovillo@google.com>
11759
11760         * gengtype-parse.c (parse_error): Add newline after message.
11761
11762 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
11763
11764         * config/i386/sse.md (avxmodesuffixs): Removed.
11765         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
11766         (*avx_pinsr<ssevecsize>): This.
11767
11768 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
11769
11770         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
11771         follow chains of regs with a single definition, and allow expressions
11772         that are function_invariant_p.
11773         (simple_rhs_p): Allow expressions that are function_invariant_p.
11774
11775 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
11776
11777         PR middle-end/39867
11778         * fold-const.c (fold_cond_expr_with_comparison): When folding
11779         > and >= to MAX, make sure the MAX uses the same type as the
11780         comparison's operands.
11781
11782 2009-04-24  Nick Clifton  <nickc@redhat.com>
11783
11784         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
11785         addressing for DImode accesses.
11786         (frv_print_operand_address): Handle PLUS case.
11787         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
11788
11789 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
11790
11791         PR rtl-optimization/39794
11792         * alias.c (canon_true_dependence): Add x_addr argument.
11793         * rtl.h (canon_true_dependence): Adjust prototype.
11794         * cse.c (check_dependence): Adjust canon_true_dependence callers.
11795         * cselib.c (cselib_invalidate_mem): Likewise.
11796         * gcse.c (compute_transp): Likewise.
11797         * dse.c (scan_reads_nospill): Likewise.
11798         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
11799         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
11800         canon_base_addr of the group, plus optional offset.
11801         (struct group_info): Rename canon_base_mem to
11802         canon_base_addr.
11803         (get_group_info): Set canon_base_addr to canon_rtx of base, not
11804         canon_rtx of base_mem.
11805
11806 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
11807
11808         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
11809         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
11810
11811 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11812
11813         * config/spu/spu-builtins.h: Delete file.
11814
11815         * config/spu/spu.h (enum spu_builtin_type): Move here from
11816         spu-builtins.h.
11817         (struct spu_builtin_description): Likewise.  Add GTY marker.
11818         Do not use enum spu_function_code or enum insn_code.
11819         (spu_builtins): Add extern declaration.
11820
11821         * config/spu/spu.c: Do not include "spu-builtins.h".
11822         (enum spu_function_code, enum spu_builtin_type_index,
11823         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
11824         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
11825         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
11826         unsigned_V2DI_type_node): Move here from spu-builtins.h.
11827         (spu_builtin_types): Make static.  Add GTY marker.
11828         (spu_builtins): Add extern declaration with GTY marker.
11829         Include "gt-spu.h".
11830
11831         * config/spu/spu-c.c: Do not include "spu-builtins.h".
11832         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
11833         Check programmatically whether all parameters are scalar.
11834
11835         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
11836
11837 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11838
11839         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
11840         assignment from the constructor either if the target is volatile.
11841
11842 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
11843
11844         * config/arm/arm.md (insv): Do not share operands[0].
11845
11846 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
11847
11848         * config/vxlib-tls.c (active_tls_threads): Delete.
11849         (delete_hook_installed): New.
11850         (tls_delete_hook): Don't delete the delete hook.
11851         (tls_destructor): Delete it here.
11852         (__gthread_set_specific): Adjust installing the delete hook.
11853         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
11854         __gthread_leave_tsd_dtor_context.
11855
11856 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
11857
11858         * c-format.c (gcc_tdiag_char_table): Add support for %E.
11859
11860 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
11861
11862         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
11863         enum type.
11864         (alpha_rtx_costs): Ditto.
11865         (emit_unlikely_jump): Use add_reg_note.
11866         (emit_frame_store_1): Ditto.
11867         (alpha_expand_prologue): Ditto.
11868         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
11869         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
11870
11871 2009-04-23  Nick Clifton  <nickc@redhat.com>
11872
11873         * config/v850/v850.md (epilogue): Remove suppressed code.
11874         (return): Rename to return_simple and remove test of frame size.
11875         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
11876         to gen_return_simple.
11877
11878 2009-04-22  Jing Yu  <jingyu@google.com>
11879
11880         PR testsuite/39781
11881         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
11882
11883 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11884
11885         PR C/31499
11886         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
11887         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
11888         value is a VECTOR_CST, the element type is the element type of the
11889         vector.
11890
11891 2009-04-22  DJ Delorie  <dj@redhat.com>
11892
11893         * config/m32c/m32c.h: Update GTY annotations to new syntax.
11894
11895 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
11896
11897         * alias.c (find_base_term): Move around LO_SUM case, so that
11898         CONST falls through into PLUS/MINUS handling.
11899
11900         PR c/39855
11901         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
11902         into 0, use omit_one_operand.
11903
11904 2009-04-23  Ben Elliston  <bje@au.ibm.com>
11905
11906         * config/rs6000/linux-unwind.h (get_regs): Remove type
11907         puns. Change the type of `pc' to an array of unsigned ints and
11908         update all users.  Constify frame24.
11909
11910 2009-04-22  DJ Delorie  <dj@redhat.com>
11911
11912         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
11913         declarations before code.
11914         (current_function_special_page_vector): Likewise.
11915         (m32c_expand_insv): Silence a warning.
11916
11917 2009-04-21  Taras Glek  <tglek@mozilla.com>
11918
11919         * alias.c: Update GTY annotations to new syntax.
11920         * basic-block.h: Likewise.
11921         * bitmap.h: Likewise.
11922         * c-common.h: Likewise.
11923         * c-decl.c: Likewise.
11924         * c-parser.c: Likewise.
11925         * c-pragma.c: Likewise.
11926         * c-tree.h: Likewise.
11927         * cfgloop.h: Likewise.
11928         * cgraph.h: Likewise.
11929         * config/alpha/alpha.c: Likewise.
11930         * config/arm/arm.h: Likewise.
11931         * config/avr/avr.h: Likewise.
11932         * config/bfin/bfin.c: Likewise.
11933         * config/cris/cris.c: Likewise.
11934         * config/darwin.c: Likewise.
11935         * config/frv/frv.c: Likewise.
11936         * config/i386/i386.c: Likewise.
11937         * config/i386/i386.h: Likewise.
11938         * config/i386/winnt.c: Likewise.
11939         * config/ia64/ia64.h: Likewise.
11940         * config/iq2000/iq2000.c: Likewise.
11941         * config/mips/mips.c: Likewise.
11942         * config/mmix/mmix.h: Likewise.
11943         * config/pa/pa.c: Likewise.
11944         * config/pa/pa.h: Likewise.
11945         * config/rs6000/rs6000.c: Likewise.
11946         * config/s390/s390.c: Likewise.
11947         * config/sparc/sparc.c: Likewise.
11948         * config/xtensa/xtensa.c: Likewise.
11949         * cselib.h: Likewise.
11950         * dbxout.c: Likewise.
11951         * dwarf2out.c: Likewise.
11952         * except.c: Likewise.
11953         * except.h: Likewise.
11954         * fixed-value.h: Likewise.
11955         * function.c: Likewise.
11956         * function.h: Likewise.
11957         * gimple.h: Likewise.
11958         * integrate.c: Likewise.
11959         * optabs.c: Likewise.
11960         * output.h: Likewise.
11961         * real.h: Likewise.
11962         * rtl.h: Likewise.
11963         * stringpool.c: Likewise.
11964         * tree-data-ref.c: Likewise.
11965         * tree-flow.h: Likewise.
11966         * tree-scalar-evolution.c: Likewise.
11967         * tree-ssa-address.c: Likewise.
11968         * tree-ssa-alias.h: Likewise.
11969         * tree-ssa-operands.h: Likewise.
11970         * tree.c: Likewise.
11971         * tree.h: Likewise.
11972         * varasm.c: Likewise.
11973         * varray.h: Likewise.
11974         * vec.h: Likewise.
11975         * coretypes.h: Do not define GTY macro if it is already defined.
11976         * doc/gty.texi: Update GTY documentation to new syntax.
11977         * gengtype-lex.l: Enforce attribute-like syntax for GTY
11978         annotations on structs.
11979         * gengtype-parse.c: Likewise.
11980
11981 2009-04-22  Mark Heffernan  <meheff@google.com>
11982
11983         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
11984
11985 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
11986
11987         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
11988         where appropriate.
11989
11990 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
11991
11992         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
11993         the same as a PLUS without a shift.  Increase the cost of a
11994         CONST_INT in MULT.
11995
11996 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11997
11998         * Makefile.in: Update dependencies.
11999         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
12000         * errors.h: Remove bogus comment about compatibility.
12001         (warning): Update declaration.
12002         * genautomata.c: Update all calls to warning.
12003         * gimple.c: Do not include errors.h. Include toplev.h.
12004         * tree-ssa-structalias.c: Do not include errors.h.
12005         * omega.c: Likewise.
12006         * tree-ssa-reassoc.c: Likewise.
12007         * config/spu/spu-c.c: Likewise.
12008         * config/spu/t-spu-elf: Update dependencies.
12009
12010 2009-04-22  Richard Guenther  <rguenther@suse.de>
12011
12012         PR tree-optimization/39824
12013         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
12014         make sure the types are compatible.
12015
12016 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12017
12018         PR c++/14875
12019         * c-common.c (c_parse_error): Take a token_flags parameter.
12020         Use token_type for the token type instead.
12021         Pass token_flags to cpp_type2name.
12022         * c-common.h (c_parse_error): Update declaration.
12023         * c-parser.c (c_parser_error): Pass 0 as token flags.
12024
12025 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
12026
12027         PR rtl-optimization/39580
12028         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
12029         
12030 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12031
12032         * function.c (expand_function_end): Do not emit a jump to the "naked"
12033         return label for fall-through returns.
12034         * except.c (sjlj_emit_function_exit): Always place the call to the
12035         unregister function at the location installed by expand_function_end.
12036
12037 2009-04-22  Richard Guenther  <rguenther@suse.de>
12038
12039         PR tree-optimization/39845
12040         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
12041         (gen_inbound_check): Likewise.
12042
12043 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
12044
12045         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
12046         padding for PPC.
12047         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
12048         * config/vxlib.c (__gthread_once): Add race guard for PPC.
12049
12050 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12051
12052         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
12053         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
12054         shift counts to avoid out-of-bounds array accesses.
12055
12056 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12057
12058         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
12059         (Pmode): Move above.
12060
12061 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
12062
12063         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
12064         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
12065         GET_CODE macro.  Use IN_RANGE macro where appropriate.
12066         * config/alpha/alpha.h: Ditto.
12067         * config/alpha/alpha.md: Ditto.
12068         * config/alpha/constraints.md: Ditto.
12069         * config/alpha/predicates.md: Ditto.
12070         
12071 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
12072
12073         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
12074         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12075         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12076         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12077         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12078         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12079         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12080         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12081         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12082         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12083         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12084         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12085         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12086         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12087         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12088         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12089         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12090         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12091         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12092         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12093         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12094         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12095         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12096         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12097         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12098         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12099         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
12100
12101 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12102
12103         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
12104         references from comments.
12105         * cfgbuild.c: (count_basic_blocks): Delete.
12106         (find_basic_blocks_1): Delete.
12107         (find_basic_blocks): Delete.
12108         * except.c (finish_eh_generation): Make static.  Move comment from
12109         except.h here.  Remove find_basic_blocks references from comments.
12110         * except.h (finish_eh_generation): Delete.
12111         * basic-block.h (find_basic_blocks): Delete.
12112         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
12113
12114 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
12115
12116         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
12117         (sdbout_parms):  Likewise.
12118
12119 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
12120
12121         * config/sh/sh.c (prepare_cbranch_operands): Use
12122         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
12123         (expand_cbranchdi4): Likewise.
12124         (from_compare): Add cast to enum type.
12125         (expand_cbranchsi4): Use add_reg_note.
12126         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
12127         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
12128         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
12129         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12130         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
12131         instead of CODE_FOR_nothing.
12132         (cbranchdi4): Likewise.  Fix the order of arguments for
12133         gen_rtx_fmt_ee.
12134         (push_fpscr): Use add_reg_note.
12135         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
12136         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
12137         
12138 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
12139
12140         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
12141         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12142         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12143         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
12144         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
12145         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
12146         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
12147         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
12148         config/alpha/x-vms, config/arc/t-arc,
12149         config/arm/README-interworking, config/arm/arm-c.c,
12150         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
12151         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
12152         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
12153         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
12154         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
12155         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
12156         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
12157         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
12158         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
12159         config/cris/t-elfmulti, config/crx/t-crx,
12160         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
12161         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
12162         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
12163         config/h8300/t-h8300, config/i386/athlon.md,
12164         config/i386/darwin-libgcc.10.4.ver,
12165         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
12166         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
12167         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
12168         config/i386/t-linux64, config/i386/t-nwld,
12169         config/i386/t-rtems-i386, config/i386/t-sol2-10,
12170         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
12171         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
12172         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
12173         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
12174         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
12175         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
12176         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
12177         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
12178         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
12179         config/m68k/t-uclinux, config/mcore/t-mcore,
12180         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
12181         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
12182         config/mips/crtn.asm, config/mips/irix-crti.asm,
12183         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
12184         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
12185         config/mips/mips-fixed.md, config/mips/sb1.md,
12186         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
12187         config/mips/t-iris6, config/mips/t-isa3264,
12188         config/mips/t-libgcc-mips16, config/mips/t-linux64,
12189         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
12190         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
12191         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
12192         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
12193         config/mn10300/t-linux, config/mn10300/t-mn10300,
12194         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
12195         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
12196         config/picochip/libgccExtras/clzsi2.asm,
12197         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
12198         config/rs6000/darwin-libgcc.10.4.ver,
12199         config/rs6000/darwin-libgcc.10.5.ver,
12200         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
12201         config/rs6000/t-aix43, config/rs6000/t-aix52,
12202         config/rs6000/t-darwin, config/rs6000/t-fprules,
12203         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
12204         config/rs6000/t-lynx, config/rs6000/t-netbsd,
12205         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
12206         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
12207         config/rs6000/t-rtems, config/rs6000/t-spe,
12208         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
12209         config/score/t-score-elf, config/sh/divcost-analysis,
12210         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
12211         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
12212         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
12213         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
12214         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
12215         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
12216         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
12217         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
12218         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
12219         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
12220         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
12221         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
12222         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
12223         limitx.h, version.c, xcoff.h: Add copyright and license notices.
12224         * config/h8300/genmova.sh: Include copyright and license notices
12225         in generated output.
12226         * config/h8300/mova.md: Regenerate.
12227         * doc/install.texi2html: Include word "Copyright" in copyright
12228         notice and use name "Free Software Foundation, Inc.".
12229         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
12230         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
12231         ChangeLog-2007, ChangeLog-2008: Correct dates.
12232
12233 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
12234
12235         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
12236         NE_EXPR operations as well.
12237         * c-parser.c (c_parser_condition): Do not set location information on
12238         the condition.
12239         (c_parser_conditional_expression): Likewise.
12240         (c_parser_binary_expression): Set location information on operators.
12241         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
12242         TRUTH_NOT_EXPR has been folded.
12243         * fold-const.c (fold_truth_not_expr): Copy location information from
12244         the incoming expression to the outgoing one.
12245         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
12246         recursive calls on the LHS of the operator but pass that of the
12247         operator to recursive calls on the RHS of the operator.  Set it
12248         on the COND_EXPR.
12249         (shortcut_cond_expr): Set the locus of the operator on the second
12250         COND_EXPR and that of the expression on the first in degenerate cases.
12251         Pass the locus of the expression to calls to shortcut_cond_r.
12252         Set the locus of the 'then' block on the associated jump, if any.
12253         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
12254         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
12255         expression to call to gimplify_boolean_expr.
12256
12257 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
12258
12259         * config.gcc: Add additional configuration for
12260         i686-w64-mingw* and x86_64-w64-mingw* triplet.
12261         * config/i386/mingw-w64.h: New mingw-w64 specific header.
12262         (CPP_SPEC): Redefine for allowing -municode option.
12263         (STARTFILE_SPEC): Likewise.
12264         * config/i386/t-mingw-w64: New.
12265         * config/i386/mingw-w64.opt: New.
12266         (municode): Add new target option.
12267         * doc/invoke.texi (municode): Add documentation for new option.
12268
12269 2009-04-21  Ian Lance Taylor  <iant@google.com>
12270
12271         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12272         Correct test for number of arguments.
12273         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12274
12275 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
12276
12277         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
12278         argument of emit_library_call.
12279
12280 2009-04-21  Richard Guenther  <rguenther@suse.de>
12281
12282         PR middle-end/39829
12283         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
12284         inside VIEW_CONVERT_EXPRs.
12285
12286 2009-04-21  Martin Jambor  <mjambor@suse.cz>
12287
12288         * tree-switch-conversion.c (build_constructors): Split a long line.
12289         (constructor_contains_same_values_p): New function.
12290         (build_one_array): Create assigns of constants if possible, do not
12291         call mark_sym_for_renaming, call update_stmt.
12292         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
12293         make_rename_temp.  Do not call mark_symbols_for_renaming, call
12294         update_stmt.
12295         (gen_def_assigns): Do not call mark_symbols_for_renaming or
12296         find_new_referenced_vars, call update_stmt.
12297         (gen_inbound_check): Use create_tmp_var and create ssa names manually
12298         instead of calling make_rename_temp.  Do not call
12299         find_new_referenced_vars or mark_symbols_for_renaming, call
12300         update_stmt.
12301
12302 2009-04-21  Richard Guenther  <rguenther@suse.de>
12303
12304         PR tree-optimization/39827
12305         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
12306         (tree_ssa_phiprop): Pass the correct array size.
12307
12308 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
12309
12310         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
12311
12312 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12313
12314         PR 16202
12315         * c-typeck.c (lvalue_p): Move declaration ...
12316         * c-common.h (lvalue_p): ... to here.
12317         * c-common.c (candidate_equal_p): New.
12318         (add_tlist): Use it.
12319         (merge_tlist): Use it.
12320         (warn_for_collisions_1): Likewise.
12321         (warning_candidate_p): Accept more candidates.
12322         (verify_tree): A warning candidate can be an expression. Use
12323         candidate_equal_p.
12324
12325 2009-04-21  Ben Elliston  <bje@au.ibm.com>
12326
12327         PR target/5267
12328         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12329         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
12330         options.  Remove -mcall-solaris documentation.
12331
12332 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12333
12334         PR c++/13358
12335         * doc/invoke.texi (-Wlong-long): Update description.
12336         * c-lex (interpret_integer): Only warn if there was no previous
12337         overflow and -Wlong-long is enabled.
12338         * c-decl.c (declspecs_add_type): Drop redundant flags.
12339         * c.opt (Wlong-long): Init to -1.
12340         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
12341         and front-end warn_long_long. Wlong-long only depends on other
12342         flags if it is uninitialized.
12343         * c-parser.c (disable_extension_diagnostics): warn_long_long is
12344         the same for CPP and FE.
12345         (restore_extension_diagnostics): Likewise.
12346
12347 2009-04-20  Ian Lance Taylor  <iant@google.com>
12348
12349         Fix enum conversions which are invalid in C++:
12350         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
12351         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
12352         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
12353         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
12354         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
12355         (dbxout_parms): Likewise.
12356         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
12357         (df_clear_flags): Likewise.
12358         * df-problems.c (df_rd_bb_local_compute_process_def): Change
12359         top_flag parameter to int.
12360         (df_chain_create_bb_process_use): Likewise.
12361         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
12362         Remove cast.
12363         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
12364         (df_ref_create_structure, df_def_record_1): Likewise.
12365         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
12366         (df_notes_rescan): Change 0 to VOIDmode in function call.
12367         (df_get_call_refs, df_insn_refs_collect): Likewise.
12368         (df_bb_regs_collect): Likewise.
12369         (df_entry_block_defs_collect): Likewise.
12370         (df_exit_block_uses_collect): Likewise.
12371         * df.h: Update declarations.
12372         * double-int.c (double_int_divmod): Add cast to enum type.
12373         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
12374         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
12375         (based_loc_descr): Likewise.
12376         (loc_descriptor_from_tree_1): Change first_op and second_op to
12377         enum dwarf_location_atom.  Add cast to enum type.
12378         * expmed.c (init_expmed): Change 0 to SET in function call.
12379         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
12380         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
12381         (do_store_flag): Likewise.
12382         * fixed-value.h (struct fixed_value): Change mode to enum
12383         machine_mode.
12384         * function.c (assign_parms): Change 0 to VOIDmode in function call.
12385         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
12386         function call.
12387         (insert_insn_decl, insert_decl, insert_state): Likewise.
12388         (automata_list_finish): Likewise.
12389         * genrecog.c (process_define_predicate): Add cast to enum type.
12390         * gensupport.c (init_predicate_table): Add cast to enum type.
12391         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
12392         function call.
12393         (gimple_build_call_1, gimple_build_label): Likewise.
12394         (gimple_build_goto, gimple_build_asm_1): Likewise.
12395         (gimple_build_switch_1, gimple_build_cdt): Likewise.
12396         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
12397         (enum fallback): Rename from enum fallback_t.
12398         (fallback_t): Typedef as int.
12399         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
12400         GSI_SAME_STMT in function call.
12401         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
12402         enum type.
12403         (setup_reg_class_relations): Likewise.
12404         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
12405         (setup_prohibited_class_mode_regs): Add cast to enum type.
12406         (setup_prohibited_mode_move_regs): Likewise.
12407         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
12408         (record_address_regs): Change i to enum reg_class.
12409         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
12410         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
12411         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
12412         (GET_MODE_2XWIDER_MODE): Likewise.
12413         (GET_CLASS_NARROWEST_MODE): Likewise.
12414         * omp-low.c (expand_omp_for): Add cast to enum type.
12415         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
12416         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
12417         * postreload.c (reload_cse_simplify_operands): Change rclass local
12418         to enum reg_class.
12419         * predict.c (combine_predictions_for_insn): Change best_predictor
12420         and predictor to enum br_predictor.
12421         (combine_predictions_for_bb): Likewise.
12422         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
12423         use SET_PREDICT_EXPR_OUTCOME.
12424         * real.c (real_arithmetic): Change icode to code in function call.
12425         * reginfo.c (init_move_cost): Add casts to enum type.
12426         (init_reg_sets_1, init_fake_stack_mems): Likewise.
12427         * regmove.c (regclass_compatible_p): Change class0 and class1 to
12428         enum reg_class.
12429         * reload.c (find_valid_class): Add casts to enum type.
12430         (push_reload): Change 0 to NO_REGS in function call.
12431         (find_reloads): Change this_alternative to array of enum
12432         reg_class.  Remove some now-unnecessary casts.
12433         (make_memloc): Change 0 to VOIDmode in function call.
12434         * reload1.c (reload): Change 0 to VOIDmode in function call.
12435         (eliminate_regs_1, elimination_effects): Likewise.
12436         (eliminate_regs_in_insn): Likewise.
12437         (emit_input_reload_insns): Add cast to enum type.
12438         (delete_output_reload): Change 0 to VOIDmode in function call.
12439         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
12440         to enum type in function call.
12441         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
12442         (SET_PREDICT_EXPR_OUTCOME): Define.
12443         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
12444         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
12445         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
12446         (dump_function): Likewise.
12447         * tree-dump.h: Update declarations.
12448         * tree-pass.h: Update declarations.
12449         * varasm.c (assemble_integer): Change mclass to enum mode_class.
12450         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
12451         enum type.
12452         (arm_rtx_costs_1): Correct parenthesization.
12453         (arm_rtx_costs): Add casts to enum type.
12454         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
12455         (vfp_emit_fstmd): Use add_rg_note.
12456         (emit_multi_reg_push, emit_sfm): Likewise.
12457         (thumb_set_frame_pointer): Likewise.
12458         (arm_expand_prologue): Likewise.
12459         (arm_regno_class): Change return type to enum reg_class.
12460         (thumb1_expand_prologue): Use add_reg_note.
12461         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
12462         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
12463         in function call.
12464         * config/arm/gentune.sh: Add cast to enum type.
12465         * config/arm/arm-tune.md: Rebuild.
12466         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
12467         (ix86_split_fp_branch, predict_jump): Likewise.
12468         (ix86_expand_multi_arg_builtin): Change sub_code from enum
12469         insn_code to enum rtx_code.
12470         (ix86_builtin_vectorized_function): Add cast to enum type.
12471         * config/i386/i386.md (truncdfsf2): Change slot to enum
12472         ix86_stack_slot.
12473         (truncxf<mode>2, isinf<mode>2): Likewise.
12474         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
12475         enum type.
12476         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
12477         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
12478         (insert_bundle_state): Change 1 to INSERT in function call.
12479         (ia64_add_bundle_selector_before): Likewise.
12480         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
12481         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
12482         (restore_stack_nonlocal): Likewise.
12483         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
12484         function call.
12485         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
12486         function call.
12487         (mips_rtx_costs): Likewise.
12488         (mips_override_options): Add casts to enum type.
12489         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
12490         in function call.
12491         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
12492         (store_reg, set_reg_plus_d): Likewise.
12493         (hppa_expand_prologue, hppa_profile_hook): Likewise.
12494         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12495         cast to enum type.
12496         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
12497         function call.
12498         (emit_unlikely_jump): Use add_reg_note.
12499         (rs6000_emit_allocate_stack): Likewise.
12500         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
12501         (output_toc): Change 1 to INSERT in function call.
12502         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
12503         (rs6000_initialize_trampoline): Likewise.
12504         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
12505         function call.
12506         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
12507         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
12508         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
12509         (save_gprs): Use add_reg_note.
12510         (s390_emit_prologue): Likewise.
12511         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
12512         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
12513         (sparc_fold_builtin): Add cast to enum type.
12514         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
12515         enum insn_code.
12516         (spu_expand_prologue): Use add_reg_note.
12517         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
12518
12519 2009-04-20  Ian Lance Taylor  <iant@google.com>
12520
12521         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
12522         (c_parser_postfix_expression_after_primary): Get VEC for list of
12523         arguments.  Get original types of arguments.  Call
12524         build_function_call_vec.
12525         (cached_expr_list_1, cached_expr_list_2): New static variables.
12526         (c_parser_expr_list): Change return type to VEC *.  Add
12527         p_orig_types parameter.  Change all callers.
12528         (c_parser_release_expr): New static function.
12529         (c_parser_vec_to_tree_list): New static function.
12530         * c-typeck.c (build_function_call): Rewrite to build a VEC and
12531         call build_function_call_vec.
12532         (build_function_call_vec): New function, based on old
12533         build_function_call.
12534         (convert_arguments): Remove nargs and argarray parameters.  Change
12535         values to a VEC.  Add origtypes parameter.
12536         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
12537         (convert_for_assignment): Add origtype parameter.  Change all
12538         callers.  If warn_cxx_compat, check for conversion to an enum
12539         type when calling a function.
12540         (store_init_value): Add origtype parameter.  Change all callers.
12541         (digest_init): Likewise.
12542         (struct init_node): Add origtype field.
12543         (add_pending_init): Add origtype parameter.  Change all callers.
12544         (output_init_element): Likewise.
12545         (output_pending_init_elements): Pass origtype from init_node to
12546         output_init_element.
12547         (process_init_element): Pass origtype from c_expr to
12548         output_init_element.
12549         (c_finish_return): Add origtype parameter.  Change all callers.
12550         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
12551         caller.
12552         (sync_resolve_params): Likewise.
12553         (sync_resolve_return): Change params to first_param.  Change caller.
12554         (resolve_overloaded_builtins): Change params to VEC *.  Change
12555         callers.  Save first parameter around call to build_function_call_vec.
12556         * c-decl.c (finish_decl): Add origtype parameter.  Change all
12557         callers.  Call build_function_call_vec rather than
12558         build_function_call for cleanup.
12559         * c-tree.h: Update declarations.
12560         * c-common.h: Update declarations.
12561         * stub-objc.c (objc_rewrite_function_call): Change parameter from
12562         params to first_param.
12563         * target.h (struct gcc_target): Change resolve_overloaded_builtin
12564         params parameter from tree to void *.
12565         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12566         Change arglist parameter to have type void *, and to be a pointer
12567         to a VEC.
12568         * config/rs6000/rs6000-protos.h
12569         (altivec_resolve_overloaded_builtin): Update declaration.
12570         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
12571         fnargs parameter to have type void *, and to be a pointer to a
12572         VEC.  Call build_function_call_vec instead of
12573         build_function_call.
12574         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
12575
12576 2009-04-20  Joey Ye  <joey.ye@intel.com>
12577             Xuepeng Guo  <xuepeng.guo@intel.com>
12578             H.J. Lu  <hongjiu.lu@intel.com>
12579
12580         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
12581
12582         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
12583         (IX86_LEA_PRIORITY): Likewise.
12584         (distance_non_agu_define): New function.
12585         (distance_agu_use): Likewise.
12586         (ix86_lea_for_add_ok): Likewise.
12587         (ix86_dep_by_shift_count): Likewise.
12588
12589         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
12590         should split for LEA.
12591
12592         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
12593         function.
12594         (ix86_dep_by_shift_count): Likewise.
12595
12596 2009-04-20  Richard Guenther  <rguenther@suse.de>
12597
12598         * expr.c (handled_component_p): Move ...
12599         * tree.h (handled_component_p): ... here.
12600         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
12601         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
12602         and REALPART_EXPR to be in one group.
12603
12604 2009-04-20  Richard Guenther  <rguenther@suse.de>
12605
12606         * basic-block.h (get_all_dominated_blocks): Declare.
12607         * dominance.c (get_all_dominated_blocks): New function.
12608         * tree-cfg.c (get_all_dominated_blocks): Remove.
12609         (remove_edge_and_dominated_blocks): Adjust.
12610         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
12611         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
12612         instead of recursing.
12613
12614 2009-04-20  Doug Kwan  <dougkwan@google.com>
12615
12616         * cgraph.h (cgraph_node_ptr): New type for vector functions.
12617         (struct cgraph_node_set_def): New type.
12618         (cgraph_node_set) New type. Also declare vector functions.
12619         (struct cgraph_node_set_element_def): New type.
12620         (cgraph_node_set_element): Ditto.
12621         (cgraph_node_set_iterator): New iterator type.
12622         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
12623         cgraph_node_set_remove, dump_cgraph_node_set,
12624         debug_cgraph_node_set): New prototypes.
12625         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
12626         cgraph_node_set_size): New inlines.
12627         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
12628         including cgraph.h.
12629         (struct ipa_opt_pass): Add struct cgraph_node_set_def
12630         argument to function 'write_summary'.
12631         * ipa.c: Include ggc.h.
12632         (hash_cgraph_node_set_element,
12633         eq_cgraph_node_set_element, cgraph_node_set_new,
12634         cgraph_node_set_add, cgraph_node_set_remove,
12635         cgraph_node_set_find, dump_cgraph_node_set,
12636         debug_cgraph_node_set): New functions.
12637         * Makefile.in (ipa.o): Add dependency on GGC_H.
12638
12639 2009-04-20  Ira Rosen  <irar@il.ibm.com>
12640
12641         PR tree-optimization/39675
12642         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
12643         check of the return code of vect_schedule_slp. Check that
12644         stmt_vec_info still exists for the statement, before checking its
12645         vectorization type.
12646
12647 2009-04-20  Michael Matz  <matz@suse.de>
12648
12649         * Makefile.in (generated_files): Take out $(simple_generated_c).
12650
12651 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
12652
12653         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
12654         (UINTPTR_TYPE):  Likewise.
12655
12656 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12657
12658         PR c/37481
12659         * c-typeck.c (digest_init): Check for initializing an array with a
12660         string literal.
12661
12662 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12663
12664         PR c/19771
12665         * c-semantics.c (pop_stmt_list): Propagate
12666         STATEMENT_LIST_HAS_LABEL to parent statement list.
12667
12668 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
12669
12670         * config/mips/mips.h (mips_tune_attr): New macro.
12671         * config/mips/mips.md (cpu): Use it.
12672
12673 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
12674
12675         PR c/38243
12676         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
12677         declaring a tag.
12678
12679 2009-04-19  Diego Novillo  <dnovillo@google.com>
12680
12681         * toplev.c (compile_file): Move call to coverage_finish ...
12682         * cgraphunit.c (ipa_passes): ... here.
12683         Call cgraph_process_new_functions.
12684         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
12685         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
12686
12687 2009-04-19  Jan Hubicka  <jh@suse.cz>
12688
12689         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
12690         cfun.
12691         (dump_cgraph_node): Dump can throw external flag.
12692         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
12693
12694 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12695
12696         PR c/32061
12697         PR c++/36954
12698         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
12699         * common.opt (Wlogical-op): Move from here...
12700         * c.opt (Wlogical-op): ... to here.
12701         * c-typeck.c (parser_build_binary_op): Update call to
12702         warn_logical_operator.
12703         * c-opts.c (c_common_post_options): Enable warn_logical_op with
12704         extra_warnings.
12705         * c-common.c (warn_logical_op): Update.
12706         * c-common.h (warn_logical_op): Update declaration.
12707
12708 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12709
12710         * tree.c (protected_set_expr_location): Fix formatting.
12711
12712 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12713
12714         PR c/27676
12715         * c-typeck.c (readonly_warning): new.
12716         (build_unary_op, build_modify_expr): Use readonly_warning for
12717         storing into something readonly but not const-qualified.
12718
12719 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12720
12721         PR c/22367
12722         * c-typeck.c (build_unary_op): Check for taking address of
12723         expression of type void.
12724
12725 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
12726
12727         PR c/35210
12728         * c-typeck.c (build_function_call): Check for calling a function
12729         with qualified void return types.  Call require_complete_type when
12730         generating a trap.
12731
12732 2009-04-18  Jan Hubicka  <jh@suse.cz>
12733
12734         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
12735         Set nothrow flag.
12736         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
12737         can_throw_external flag.
12738         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
12739         * ipa-pure-const.c (ignore_edge): New function.
12740         (propagate): Compute order for NOTHROW computation; set NOTHROWs
12741         only over can_throw_external edges.
12742         (local_pure_const): Add nothrow flag.
12743         * ipa-utils.c (searchc): Add ignore_edge callback.
12744         (ipa_utils_reduced_inorder): Add ignore_edge callback.
12745         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
12746         (set_nothrow_function_flags): Update cgraph.
12747         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
12748
12749 2009-04-18  Richard Guenther  <rguenther@suse.de>
12750
12751         PR middle-end/39804
12752         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
12753         (fold_stmt): ... this and ...
12754         (fold_stmt_inplace): ... this.
12755         (fold_stmt_1): Fold references in calls and asms.
12756         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
12757
12758 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12759
12760         * tree-vrp.c (ssa_name_nonzero_p): Remove.
12761         * tree.h: Remove the prototype for ssa_name_nonzero_p.
12762
12763 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12764
12765         * tree.c (function_args_count): Remove.
12766         * tree.h: Remove the prototype for function_args_count.
12767
12768 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12769
12770         * tree-iterator.c (expr_only): Remove.
12771         * tree.h: Remove the prototype for expr_only.
12772
12773 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12774
12775         * reginfo.c (cannot_change_mode_set_regs): Remove.
12776         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
12777
12778 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
12779
12780         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
12781         whether operands 0 and 1 overlaps.
12782
12783 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12784
12785         PR middle-end/36902
12786         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
12787         pointer. Use warning_at instead of warning.
12788         (search_for_addr_array): Likewise.
12789         (check_array_bounds): Likewise.
12790         (check_all_array_refs): Check that the incoming edge is not in the
12791         list of edges to be removed.
12792         (check_all_array_refs): Avoid the temporal pointer.
12793         (vrp_visit_cond_stmt): Fix typo.
12794         (simplify_switch_using_ranges): Handle the case where the switch
12795         index is an integer constant.
12796
12797 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
12798
12799         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
12800
12801 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
12802
12803         * doc/extend.texi, doc/invoke.texi: Fix typos.
12804
12805 2009-04-17  Cary Coutant  <ccoutant@google.com>
12806
12807         * tree-flow-inline.h (get_lineno): Fix inverted test.
12808
12809 2009-04-17  Diego Novillo  <dnovillo@google.com>
12810
12811         * tree-ssa-pre.c (create_expression_by_pieces): Remove
12812         assertion for AVAIL_OUT.
12813
12814 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
12815
12816         PR target/38627
12817         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
12818         * config/sh/linux-atomic.asm: Likewise.
12819
12820 2009-04-17  Diego Novillo  <dnovillo@google.com>
12821
12822         * except.c (debug_eh_tree): New.
12823         (struct eh_region, struct eh_status): Move ...
12824         * except.h: ... here.
12825         (add_type_for_runtime): Declare extern.
12826         (lookup_type_for_runtime): Likewise.
12827         (debug_eh_tree): Declare.
12828         * Makefile.in (GTFILES): List except.h before except.c
12829
12830 2009-04-17  Diego Novillo  <dnovillo@google.com>
12831
12832         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
12833         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
12834         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
12835         (find_vars_r): ... here.
12836         * tree-flow.h (find_referenced_vars_in): Declare.
12837         * tree-ssa-pre.c (create_expression_by_pieces): Assert
12838         that AVAIL_OUT exists for BLOCK.
12839         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
12840         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
12841         (tree-parloops.o): Likewise.
12842
12843 2009-04-17  Simon Baldwin  <simonb@google.com>
12844
12845         * toplev.c (default_tree_printer): Add handling for %E format.
12846
12847 2009-04-17  Diego Novillo  <dnovillo@google.com>
12848
12849         * tree-pretty-print.c (dump_generic_node): Add break after
12850         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
12851         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
12852         FUNCTION_TYPE together.  Call print_struct_decl when printing
12853         structures and TDF_SLIM is not given.
12854         (print_struct_decl): Fix logic for detecting recursion.
12855
12856 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
12857
12858         PR 31567
12859         * gcc.c (create_at_file): New.
12860         (compile_input_file_p): New.
12861         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
12862         * main.c (main): Update call to toplev_main.
12863         * toplev.c (toplev_main): Change signature. Call expandargv.
12864         * toplev.h (toplev_main): Change signature.
12865
12866 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12867
12868         * dwarf2out.c (field_byte_offset): Use the type size as the field size
12869         if the latter is not constant.
12870
12871 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
12872
12873         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
12874
12875 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
12876
12877         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
12878         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
12879
12880 2009-04-17  Richard Guenther  <rguenther@suse.de>
12881
12882         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12883         Handle component references view-converting an invariant address.
12884
12885 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
12886
12887         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
12888         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
12889         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
12890         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
12891         Use @deftypevr rather than @deftypevar.
12892
12893 2009-04-17  Richard Guenther  <rguenther@suse.de>
12894
12895         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
12896         (get_prop_source_stmt): Likewise.
12897         (can_propagate_from): Likewise.
12898
12899 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
12900
12901         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
12902         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
12903         (--with-multilib-list): Add default value.
12904         * configure: Regenerate.
12905         * Makefile.in (TM_ENDIAN_CONFIG): Define.
12906         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
12907         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
12908         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
12909         Don't add default cpu to multilib list unnecessarily, but do enable
12910         the relevant compiler option..
12911         Add support for --with-multilib-list=<blank> and
12912         --with-multilib-list=!<somelib> to supress unwanted multilibs.
12913         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
12914         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
12915         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
12916         TM_MULTILIB_CONFIG.
12917         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
12918         (MULTILIB_OSDIRNAMES): New variable.
12919         * config/sh/t-1e: Delete file.
12920         * config/sh/t-mlib-sh1: Delete file.
12921         * config/sh/t-mlib-sh2: Delete file.
12922         * config/sh/t-mlib-sh2a: Delete file.
12923         * config/sh/t-mlib-sh2a-nofpu: Delete file.
12924         * config/sh/t-mlib-sh2a-single: Delete file.
12925         * config/sh/t-mlib-sh2a-single-only: Delete file.
12926         * config/sh/t-mlib-sh2e: Delete file.
12927         * config/sh/t-mlib-sh3e: Delete file.
12928         * config/sh/t-mlib-sh4: Delete file.
12929         * config/sh/t-mlib-sh4-nofpu: Delete file.
12930         * config/sh/t-mlib-sh4-single: Delete file.
12931         * config/sh/t-mlib-sh4-single-only: Delete file.
12932         * config/sh/t-mlib-sh4a: Delete file.
12933         * config/sh/t-mlib-sh4a-nofpu: Delete file.
12934         * config/sh/t-mlib-sh4a-single: Delete file.
12935         * config/sh/t-mlib-sh4a-single-only: Delete file.
12936         * config/sh/t-mlib-sh4al: Delete file.
12937         * config/sh/t-mlib-sh5-32media: Delete file.
12938         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
12939         * config/sh/t-mlib-sh5-64media: Delete file.
12940         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
12941         * config/sh/t-mlib-sh5-compact: Delete file.
12942         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
12943         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
12944         * doc/install.texi (Options specification): Add
12945         --with-multilib-list and --with-endian.
12946
12947 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
12948
12949         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
12950         REVISION_c.
12951         (OBJS-common): Add plugin-version.o.
12952         (plugin-version.o): New.
12953         * gcc-plugin.h (plugin_gcc_version): New.
12954         (plugin_default_version_check): New.
12955         (plugin_init_func, plugin_init): Add version argument.
12956         * plugin-version.c: New.
12957         * plugin.c (str_plugin_gcc_version_name): New.
12958         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
12959         pass it to the init function.
12960         (plugin_default_version_check): New.
12961
12962 2009-04-17  Richard Guenther  <rguenther@suse.de>
12963
12964         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
12965         for decl-vs-decl disambiguation.
12966
12967 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
12968
12969         * config/s390/s390.h (s390_tune_attr): New macro definition.
12970         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
12971
12972 2009-04-17  Richard Guenther  <rguenther@suse.de>
12973
12974         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
12975         (fold_stmt_r): Likewise.
12976         (maybe_fold_reference): New function.
12977         (fold_gimple_assign): Handle cases fold_stmt_r did.
12978         (fold_stmt): Do not use fold_stmt_r.
12979         (fold_stmt_inplace): Likewise.
12980
12981 2009-04-17  Richard Guenther  <rguenther@suse.de>
12982
12983         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
12984         (record_equivalences_from_stmt): Remove useless checks and
12985         simplifications.
12986         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
12987         the type is already suitable.
12988
12989 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
12990
12991         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
12992
12993 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
12994
12995         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
12996         (CMPtype): Define as __gcc_CMPtype.
12997
12998 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
12999
13000         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
13001         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
13002
13003 2009-04-17  Richard Guenther  <rguenther@suse.de>
13004
13005         PR tree-optimization/39746
13006         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
13007         special-casing for builtins and static variable use/def.
13008         (call_may_clobber_ref_p_1): Likewise.
13009
13010 2009-04-16  Ian Lance Taylor  <iant@google.com>
13011
13012         * df.h: Include "timevar.h".
13013         (struct df_problem): Change tv_id field to timevar_id_t.
13014         * tree-pass.h: Include "timevar.h".
13015         (struct opt_pass): Change tv_id field to timevar_id_t.
13016         * timevar.h (timevar_id_t): Define TV_NONE.
13017         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
13018         TV_NONE rather than tv_id != 0.
13019         (execute_one_pass): Likewise.
13020         * Makefile.in (DF_H): Add $(TIMEVAR_H).
13021         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
13022         dependencies to $(TREE_PASS_H).
13023         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
13024         to TV_NONE.
13025         (pass_branch_target_load_optimize2): Likewise.
13026         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
13027         (pass_outof_cfg_layout_mode): Likewise.
13028         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
13029         (pass_rebuild_cgraph_edges): Likewise.
13030         (pass_remove_cgraph_callee_edges): Likewise.
13031         * df-core.c (pass_df_initialize_opt): Likewise.
13032         (pass_df_initialize_no_opt): Likewise.
13033         (pass_df_finish): Likewise.
13034         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
13035         * except.c (pass_set_nothrow_function_flags): Likewise.
13036         (pass_convert_to_eh_region_ranges): Likewise.
13037         * final.c (pass_compute_alignments): Likewise.
13038         * function.c (pass_instantiate_virtual_regs): Likewise.
13039         (pass_init_function): Likewise.
13040         (pass_leaf_regs): Likewise.
13041         (pass_match_asm_constraints): Likewise.
13042         * gimple-low.c (pass_lower_cf): Likewise.
13043         (pass_mark_used_blocks): Likewise.
13044         * init-regs.c (pass_initialize_regs): Likewise.
13045         * integrate.c (pass_initial_value_sets): Likewise.
13046         * ira.c (pass_ira): Likewise.
13047         * jump.c (pass_cleanup_barriers): Likewise.
13048         * omp-low.c (pass_expand_omp): Likewise.
13049         (pass_lower_omp): Likewise.
13050         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
13051         * recog.c (pass_split_all_insns): Likewise.
13052         (pass_split_after_reload): Likewise.
13053         (pass_split_before_regstack): Likewise.
13054         (pass_split_before_sched2): Likewise.
13055         (pass_split_for_shorten_branches): Likewise.
13056         * reginfo.c (pass_reginfo_init): Likewise.
13057         (pass_subregs_of_mode_init): Likewise.
13058         (pass_subregs_of_mode_finish): Likewise.
13059         * passes.c (pass_postreload): Likewise.
13060         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
13061         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
13062         (pass_warn_function_return): Likewise.
13063         (pass_warn_function_noreturn): Likewise.
13064         * tree-complex.c (pass_lower_complex): Likewise.
13065         (pass_lower_complex_O0): Likewise.
13066         * tree-if-conv.c (pass_if_conversion): Likewise.
13067         * tree-into-ssa.c (pass_build_ssa): Likewise.
13068         * tree-mudflap.c (pass_mudflap_1): Likewise.
13069         (pass_mudflap_2): Likewise.
13070         * tree-nomudflap.c (pass_mudflap_1): Likewise.
13071         (pass_mudflap_2): Likewise.
13072         * tree-nrv.c (pass_return_slot): Likewise.
13073         * tree-object-size.c (pass_object_sizes): Likewise.
13074         * tree-optimize.c (pass_all_optimizations): Likewise.
13075         (pass_early_local_passes): Likewise.
13076         (pass_all_early_optimizations): Likewise.
13077         (pass_cleanup_cfg): Likewise.
13078         (pass_cleanup_cfg_post_optimizing): Likewise.
13079         (pass_free_datastructures): Likewise.
13080         (pass_free_cfg_annotations): Likewise.
13081         (pass_fixup_cfg): Likewise.
13082         (pass_init_datastructures): Likewise.
13083         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
13084         (pass_late_warn_uninitialized): Likewise.
13085         (pass_update_address_taken): Likewise.
13086         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
13087         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
13088         (pass_cse_sincos): Likewise.
13089         (pass_convert_to_rsqrt): Likewise.
13090         * tree-ssa-structalias.c (pass_build_alias): Likewise.
13091         * tree-stdarg.c (pass_stdarg): Likewise.
13092         * tree-tailcall.c (pass_tail_recursion): Likewise.
13093         (pass_tail_calls): Likewise.
13094         * tree-vect-generic.c (pass_lower_vector): Likewise.
13095         (pass_lower_vector_ssa): Likewise.
13096         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
13097
13098 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
13099
13100         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
13101         XLR entry.
13102         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
13103         Handle -march=xlr.
13104         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
13105         logical and signext.
13106
13107 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
13108
13109         PR target/39767
13110         * config/sh/predicates.md (arith_operand): Check if the operand
13111         of TRUNCATE is a REG.
13112
13113 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13114
13115         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
13116         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
13117
13118 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13119
13120         * tree-iterator.c (tsi_split_statement_list_after,
13121         tsi_split_statement_list_before): Remove.
13122         * tree-iterator.h: Remove the prototypes for
13123         tsi_split_statement_list_after and tsi_split_statement_list_before.
13124
13125 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13126
13127         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
13128         * tree-ssa-propagate.h: Remove the prototype for
13129         stmt_makes_single_load.
13130
13131 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13132
13133         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
13134         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
13135
13136 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13137
13138         * tree-iterator.c (EXPR_LAST_BODY): Remove.
13139
13140 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13141
13142         * except.c (eh_region_outer_p): Remove.
13143         * except.h: Remove the prototype for eh_region_outer_p.
13144
13145 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
13146
13147         * function.c (current_function_assembler_name): Remove.
13148         * function.h: Remove the prototype for
13149         current_function_assembler_name.
13150
13151 2009-04-16  Ian Lance Taylor  <iant@google.com>
13152
13153         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
13154         (add_reg_note): Call alloc_reg_note.
13155         * rtl.h (alloc_reg_note): Declare.
13156         * combine.c (try_combine): Use alloc_reg_note.
13157         (recog_for_combine, move_deaths): Likewise.
13158         (distribute_notes): Use alloc_reg_note and add_reg_note.
13159         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
13160         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
13161         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
13162
13163 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
13164
13165         PR rtl-optimization/39762
13166         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
13167         ira_may_move_out_cost): Add comments about way of their usage.
13168         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
13169
13170         * ira-conflicts.c (process_regs_for_copy): Use function
13171         ira_get_register_move_cost instead of global
13172         ira_register_move_cost.
13173
13174         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
13175         color_pass, move_spill_restore, update_curr_costs): Ditto.
13176
13177         * ira-lives.c (process_single_reg_class_operands): Ditto.
13178
13179         * ira-emit.c (emit_move_list): Ditto.
13180
13181         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
13182         (record_reg_classes): Ditto.  Use functions
13183         ira_get_register_move_cost and ira_get_may_move_cost instead of
13184         global vars ira_register_move_cost, ira_may_move_out_cost and
13185         ira_may_move_in_cost.
13186         (record_address_regs): Don't call ira_init_register_move_cost.
13187         Use function ira_get_may_move_cost instead of global
13188         ira_may_move_in_cost.
13189         (process_bb_node_for_hard_reg_moves): Use function
13190         ira_get_register_move_cost instead of global ira_register_move_cost.
13191         (ira_costs): Don't call ira_init_register_move_cost.
13192
13193 2009-04-16  Richard Guenther  <rguenther@suse.de>
13194
13195         * tree-cfg.c (verify_gimple_assign_binary):
13196         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
13197         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
13198         (create_general_new_stmt): Note that this function is broken.
13199
13200 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13201
13202         * common.opt (fhelp): Add Var(help_flag).
13203         * gcc-plugin.h (plugin_info): Add help.
13204         * plugin.c (plugin_name_args): Add help.
13205         (register_plugin_info): Set plugin->help.
13206         (print_help_one_plugin): New.
13207         (print_plugins_help): New.
13208         * plugin.h (print_plugins_help): New.
13209         * toplev.c (toplev_main): Call print_plugins_help if needed.
13210
13211 2009-04-16  Richard Guenther  <rguenther@suse.de>
13212
13213         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
13214         (gimple_ior_addresses_taken_1): New function.
13215         (gimple_ior_addresses_taken): Likewise.
13216         * gimple.h (struct gimple_statement_with_ops_base): Remove
13217         addresses_taken member.
13218         (gimple_ior_addresses_taken): Declare.
13219         (gimple_addresses_taken, gimple_addresses_taken_ptr,
13220         gimple_set_addresses_taken): Remove.
13221         * ipa-reference.c (mark_address): New function.
13222         (scan_stmt_for_static_refs): Use it for marking addresses taken.
13223         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
13224         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
13225         (gimple_add_to_addresses_taken): Remove.
13226         (get_tmr_operands): Call mark_address_taken.
13227         (get_asm_expr_operands): Likewise.
13228         (get_expr_operands): Likewise.
13229         (build_ssa_operands): Do not clear the addresses_taken bitmap.
13230         (free_stmt_operands): Do not free it.
13231         * tree-ssa.c (delete_tree_ssa): Likewise.
13232         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
13233
13234 2009-04-16  Richard Guenther  <rguenther@suse.de>
13235
13236         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
13237         (walk_stmt_load_store_ops): Likewise.
13238         * gimple.c (get_base_loadstore): New function.
13239         (walk_stmt_load_store_addr_ops): Likewise.
13240         (walk_stmt_load_store_ops): Likewise.
13241         * ipa-pure-const.c (check_op): Simplify.
13242         (check_load, check_store): New functions.
13243         (check_stmt): Use walk_stmt_load_store_ops.
13244         * ipa-reference.c (mark_load): Adjust signature.
13245         (mark_store): Likewise.
13246         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
13247
13248 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13249
13250         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
13251         (plugin_info): New.
13252         * opts.c (common_handle_option): Don't call print_version.
13253         * plugin.c (plugin_name_args): Add version.
13254         (register_plugin_info): New.
13255         (register_callback): Handle PLUGIN_INFO.
13256         (try_init_one_plugin): New.
13257         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
13258         if failed to init.
13259         (finalize_one_plugin): New.
13260         (finalize_plugins): New.
13261         (print_one_plugin): New.
13262         (print_plugins_versions): New.
13263         * plugin.h (print_plugins_versions): New.
13264         (finalize_plugins): New.
13265         * toplev.c (compile_file): Don't call initialize_plugins.
13266         (print_version): Call print_plugins_versions.
13267         (toplev_main): Call initialize_plugins. Print version if needed.
13268         Call finalize_plugins.
13269
13270 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
13271
13272         * common.opt (fversion): New.
13273         * gcc.c (print_version): New.
13274         (process_command): Don't print the version. Just set print_version.
13275         (main): Print version. Call subprocesses if print_version and
13276         verbose_flag are set.
13277         * opts.c (common_handle_option): Handle OPT_fversion.
13278
13279 2009-04-16  Richard Guenther  <rguenther@suse.de>
13280             Ira Rosen  <irar@il.ibm.com>
13281
13282         PR tree-optimization/39698
13283         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
13284         type of the reduction variable.  Only generate the def if
13285         it is needed.
13286
13287         * omp-low.c (expand_omp_for_generic): When converting to a pointer
13288         make sure to first convert to an integer of the same precision.
13289         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
13290         the type of the evolution correctly in computing the new
13291         induction variable base.
13292
13293 2009-04-16  Richard Guenther  <rguenther@suse.de>
13294
13295         PR middle-end/39625
13296         * tree-cfg.c (make_blocks): Split statements with to-be
13297         abnormal SSA names on the lhs.
13298
13299 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
13300
13301         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
13302         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
13303         * c-typeck.c (really_start_incremental_init): Likewise.
13304         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
13305         (TARGET_INITIALIZER): Remove it.
13306         * target.h (struct target): Remove vector_opaque_p.
13307         * tree.c (build_opaque_vector_type): New.
13308         * tree.h (TYPE_VECTOR_OPAQUE): New.
13309         (build_opaque_vector_type): Declare.
13310         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
13311         * config/rs6000/rs6000.c (build_opaque_vector_type,
13312         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
13313         (rs6000_init_builtins): Use build_opaque_vector_type for
13314         opaque_V4SI_type_node.
13315
13316 2009-04-15  Catherine Moore  <clm@codesourcery.com>
13317
13318         * debug.h (set_name):  Declare.
13319         * dwarf2out.c (dwarf2out_set_name): Declare.
13320         (dwarf2_debug_hooks): Add set_name.
13321         (find_AT_string): New.
13322         (add_AT_string): Call find_AT_string.
13323         (dwarf2out_set_name): New.
13324         * cp/decl.c (grokdeclarator): Call set_name.
13325         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
13326         * debug.c (do_nothing_debug_hooks):  Likewise.
13327         * dbxout.c (dbx_debug_hooks): Likewise.
13328         * sdbout.c (sdb_debug_hooks): Likewise.
13329
13330 2009-04-15  Michael Eager  <eager@eagercon.com>
13331
13332         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
13333         reg for single-precision FPU.
13334         * config/rs6000/rs6000.md (movsi_internal1): Only for
13335         !TARGET_SINGLE_FPU.
13336         (movsi_internal1_single): New. Add pattern to move SI values to/from
13337         single-precision FP regs.
13338
13339 2009-04-15  Richard Guenther  <rguenther@suse.de>
13340
13341         * omp-low.c (lower_rec_input_clauses): Build correct address
13342         expressions.
13343         (expand_omp_for_generic): Fix multiplication type.
13344         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
13345         (generate_memset_zero): Fix types.
13346         * tree-profile.c (prepare_instrumented_value): Correctly
13347         widen a pointer.
13348
13349 2009-04-15  Ian Lance Taylor  <iant@google.com>
13350
13351         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
13352         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
13353         for -Wall and for -Wc++-compat.
13354         (c_common_post_options): For C++, set warn_enum_compare if not
13355         already set.
13356         * c-tree.h (struct c_expr): Add field original_type.
13357         (build_external_ref): Update declaration.
13358         * c-parser.c (c_parser_braced_init): Set original_type.
13359         (c_parser_initelt): Likewise.
13360         (c_parser_expr_no_commas): Likewise.
13361         (c_parser_conditional_expression): Likewise.
13362         (c_parser_cast_expression): Likewise.
13363         (c_parser_unary_expression): Likewise.  Pull setting of
13364         original_code to top of function.
13365         (c_parser_sizeof_expression): Set original_type.
13366         (c_parser_alignof_expression): Likewise.
13367         (c_parser_postfix_expression): Likewise.  Pull setting of
13368         original_code to top of function.
13369         (c_parser_postfix_expression_after_paren_type): Set original_type.
13370         (c_parser_postfix_expression_after_primary): Likewise.
13371         (c_parser_expression): Likewise.
13372         * c-typeck.c (build_external_ref): Add type parameter.  Change all
13373         callers.
13374         (c_expr_sizeof_expr): Set original_type field.
13375         (parser_build_unary_op): Likewise.
13376         (parser_build_binary_op): Likewise.  Optionally warn about
13377         comparisons of enums of different types.
13378         (digest_init): Set original_type field.
13379         (really_start_incremental_init): Likewise.
13380         (push_init_level, pop_init_level): Likewise.
13381         * doc/invoke.texi (Warning Options): -Wenum-compare now
13382         supported in C.
13383
13384 2009-04-15  Richard Guenther  <rguenther@suse.de>
13385
13386         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
13387         out a necessary conversion.
13388         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
13389         names we didn't value number.
13390         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
13391
13392 2009-04-15  Richard Guenther  <rguenther@suse.de>
13393
13394         PR tree-optimization/39764
13395         * tree-ssa-ccp.c (get_value): Canonicalize value with
13396         canonicalize_float_value.
13397
13398 2009-04-15  Jan Hubicka  <jh@suse.cz>
13399
13400         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
13401         Wrong version of patch.
13402
13403 2009-04-15  Jan Hubicka  <jh@suse.cz>
13404
13405         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
13406
13407 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
13408
13409         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
13410         our distinct integral and vector types.
13411
13412 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
13413
13414         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
13415         * init.c (build_vtbl_address): Remove call to assemble_external.
13416
13417 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
13418
13419         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
13420         output for other floating point modes.
13421
13422 2009-04-14  Diego Novillo  <dnovillo@google.com>
13423
13424         * diagnostic.c (diagnostic_report_diagnostic): Do not
13425         warn about loaded plugins for DK_ERROR and DK_WARNING.
13426         * c-decl.c (declspecs_add_type): Move call to
13427         invoke_plugin_callbacks ...
13428         * c-parser.c (c_parser_declspecs): ... here.
13429         * plugin.c (dump_active_plugins): Tidy output.
13430
13431 2009-04-14  Diego Novillo  <dnovillo@google.com>
13432             Le-Chun Wu  <lcwu@google.com>
13433
13434         * configure.ac: Add --enable-plugin support.
13435         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
13436         * Makefile.in (PLUGIN_H): Define.
13437         Export ENABLE_PLUGIN and GMPINC to site.exp.
13438         Add PLUGINLIBS to link command.
13439         Add/modify dependencies for plugin.o and files including plugin.h.
13440         (plugin.o): New.
13441         * config.in: Regenerate.
13442
13443         * opts.c (common_handle_option): Handle OPT_fplugin_ and
13444         OPT_fplugin_arg_.
13445
13446 2009-04-14  Le-Chun Wu  <lcwu@google.com>
13447
13448         * tree-pass.h (register_one_dump_file): Add a prototype for
13449         register_one_dump_file.
13450         * toplev.c (compile_file): Call initialize_plugins.
13451         (do_compile): Call invoke_plugin_callbacks.
13452         (toplev_main): Call invoke_plugin_callbacks.
13453         * common.opt: Add -fplugin= and -fplugin-arg-.
13454         * gcc-plugin.h: New public header file for plugins to include.
13455         * plugin.c: New source file.
13456         * plugin.h: New internal header file.
13457         * passes.c (register_one_dump_file): Make it external.
13458
13459         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
13460
13461 2009-04-14  Diego Novillo  <dnovillo@google.com>
13462
13463         * doc/plugins.texi: New.
13464         * doc/gccint.texi: Add reference to Plugins chapter.
13465         * doc/invoke.texi: Document -fplugin and -fplugin-arg
13466         * diagnostic.c (diagnostic_report_diagnostic): Warn about
13467         loaded plugins, if any.
13468         * timevar.def (TV_PLUGIN_INIT): Define.
13469         (TV_PLUGIN_RUN): Define.
13470         * plugin.c: Include timevar.h
13471         (plugins_active_p): New.
13472         (dump_active_plugins): New.
13473         (debug_active_plugins): New.
13474
13475 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
13476
13477         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
13478         library paths.
13479         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
13480
13481 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
13482
13483         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
13484         the same as a minus without a shift.
13485
13486 2009-04-14  Nick Clifton  <nickc@redhat.com>
13487
13488         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
13489         comparisons with small integers will always produce a short
13490         branch.
13491
13492 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
13493
13494         Merge:
13495         2008-12-19  Diego Novillo  <dnovillo@google.com>
13496
13497         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
13498
13499 2009-04-14  Richard Guenther  <rguenther@suse.de>
13500
13501         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
13502         verification.
13503         (verify_gimple_assign_binary): Likewise.  Handle shifts and
13504         rotates correctly.
13505         (verify_gimple_phi): Print the mismatched argument position.
13506         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
13507         Fix types.
13508         (vect_update_init_of_dr): Likewise.
13509         * matrix-reorg.c (transform_access_sites): Do what the
13510         comment suggests.
13511         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
13512
13513 2009-04-13  Michael Eager  <eager@eagercon.com>
13514
13515         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
13516         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
13517         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
13518         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
13519         remove duplicate config
13520
13521 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13522
13523         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
13524         file_name:line_number type locator of the call site.
13525
13526 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
13527
13528         * genautomata.c: Put blank after comma.
13529         (automaton_decls): New.
13530         (struct unit_usage): Add comments to member next.
13531         (store_alt_unit_usage): Keep the list ordered.
13532         (unit_present_on_list_p, equal_alternatives_p): New.
13533         (check_regexp_units_distribution): Check units distribution
13534         correctness correctly.
13535         (main): Don't write automata if error is found.  Return correct
13536         exit code.
13537
13538         * config/m68k/cf.md (cfv4_ds): Remove.
13539         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
13540         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
13541
13542         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
13543         power4-load-ext, power4-store, power4-store-update,
13544         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
13545         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
13546         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
13547         power4-sqrt, power4-isync): Modify reservation to make correct
13548         unit distribution to automata.
13549
13550         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
13551         power5-store-update, power5-two, power5-three, power5-lmul,
13552         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
13553
13554 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
13555
13556         * except.c (pass_set_nothrow_function_flags): Set name and add
13557         TODO_dump_func.
13558         (set_nothrow_function_flags): Mention in the dump file when
13559         changing a function to nothrow.
13560
13561 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
13562
13563         PR/39066
13564         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
13565         instead of unsigned long.
13566
13567 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13568
13569         * config/arm/arm.c (return_used_this_function): Remove.
13570         (arm_output_function_prologue): Remove use of
13571         return_used_this_function.
13572         (output_return_instruction): Replace use of
13573         return_used_this_function
13574         by cfun->machine->return_used_this_function.
13575         (arm_output_epilogue): Likewise.
13576         (arm_output_function_epilogue): Likewise.
13577         (thumb_unexpanded_epilogue): Likewise.
13578         * config/arm/arm.h (struct machine_function):
13579         New member return_used_this_function.
13580
13581 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
13582
13583         * doc/install.texi: Correct description of default directory for
13584         --with-gxx-include-dir.
13585
13586 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13587
13588         * fold-const.c (build_range_check): Properly deal with enumeral and
13589         boolean base types.
13590
13591 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
13592
13593         * doc/invoke.texi (max_gcse_passes): Remove documentation.
13594         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
13595         * params.h (MAX_GCSE_PASSES): Remove.
13596         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
13597         in sequence.  Remove ability to run multiple passes.
13598         (bypass_jumps): Report run as third CPROP pass.
13599
13600 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
13601
13602         PR middle-end/39651
13603         * except.c (can_throw_external): Look at each insn in a SEQUENCE
13604         when deciding whether the whole SEQUENCE can throw.
13605
13606 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
13607
13608         PR target/39740
13609         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
13610         offseted label references.
13611
13612 2009-04-11  Jan Hubicka  <jh@suse.cz>
13613
13614         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
13615
13616 2009-04-11  Richard Guenther  <rguenther@suse.de>
13617
13618         PR middle-end/39732
13619         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
13620         return variables as TREE_ADDRESSABLE.
13621
13622 2009-04-11  Richard Guenther  <rguenther@suse.de>
13623
13624         PR tree-optimization/39713
13625         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
13626         reference trees have SSA_NAME operands.
13627
13628 2009-04-11  Richard Guenther  <rguenther@suse.de>
13629
13630         PR c/39712
13631         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
13632         address expressions.
13633
13634 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
13635
13636         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
13637         match changes in Cygwin 1.7
13638         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
13639         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
13640
13641 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13642
13643         PR tree-optimization/39701
13644         * doc/invoke.texi (Optimization Options): Document change in
13645         meaning and initialization of -fdelete-null-pointer-checks.
13646
13647 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13648
13649         PR middle-end/39701
13650         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
13651
13652         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
13653         here.
13654
13655         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
13656
13657 2009-04-10  Chao-ying Fu  <fu@mips.com>
13658
13659         * doc/tm.texi (Instruction Output): Document
13660         TARGET_ASM_FINAL_POSTSCAN_INSN.
13661         * target.h (final_postscan_insn): New field in asm_out.
13662         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13663         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
13664         * final.c (final_scan_insn): Call
13665         targetm.asm_out.final_postscan_insn after outputting
13666         an asm macro and a normal instruction.
13667
13668         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
13669         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
13670         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
13671         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
13672         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
13673
13674 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
13675
13676         PR middle-end/39701
13677         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
13678         variables as non-NULL even with -fdelete-null-pointer-checks.
13679
13680 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
13681
13682         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
13683
13684 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
13685
13686         PR target/39678
13687         * config/i386/i386.c (classify_argument): Handle SCmode with
13688         (bit_offset % 64) != 0.
13689
13690 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
13691
13692         * doc/invoke.texi (Optimize Options): Add cross-reference to
13693         -Q --help=optimizers examples.
13694
13695 2009-04-10  Ben Elliston  <bje@au.ibm.com>
13696
13697         PR target/36800
13698         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
13699         regalign for the reg == fpr and TDmode case.
13700
13701 2009-04-09  David Ayers  <ayers@fsfe.org>
13702
13703         PR objc/29200
13704         * objc/objc-act.c (warn_with_method): Remove helper function.
13705         (check_duplicates): Call warning and inform directly.
13706         (really_start_method): Likewise.
13707
13708 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
13709
13710         * expmed.c (expand_divmod): Always use a comparison for a division
13711         by a large unsigned integer.
13712
13713         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
13714         for things others than variables or functions as nonzero.
13715
13716 2009-04-09  Nick Clifton  <nickc@redhat.com>
13717
13718         * unwind-compat.c: Change copyright header to refer to version
13719         3 of the GNU General Public License with version 3.1 of the
13720         GCC Runtime Library Exception and to point readers at the
13721         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
13722         * config/alpha/crtfastmath.c: Likewise.
13723         * config/alpha/linux-unwind.h: Likewise.
13724         * config/alpha/qrnnd.asm: Likewise.
13725         * config/alpha/vms-crt0-64.c: Likewise.
13726         * config/alpha/vms-crt0.c: Likewise.
13727         * config/alpha/vms-dwarf2.asm: Likewise.
13728         * config/alpha/vms-dwarf2eh.asm: Likewise.
13729         * config/alpha/vms-psxcrt0-64.c: Likewise.
13730         * config/alpha/vms-psxcrt0.c: Likewise.
13731         * config/alpha/vms_tramp.asm: Likewise.
13732         * config/arc/initfini.c: Likewise.
13733         * config/arc/lib1funcs.asm: Likewise.
13734         * config/arm/bpabi-v6m.S: Likewise.
13735         * config/arm/bpabi.S: Likewise.
13736         * config/arm/bpabi.c: Likewise.
13737         * config/arm/crti.asm: Likewise.
13738         * config/arm/crtn.asm: Likewise.
13739         * config/arm/ieee754-df.S: Likewise.
13740         * config/arm/ieee754-sf.S: Likewise.
13741         * config/arm/lib1funcs.asm: Likewise.
13742         * config/arm/libunwind.S: Likewise.
13743         * config/arm/linux-atomic.c: Likewise.
13744         * config/arm/mmintrin.h: Likewise.
13745         * config/arm/pr-support.c: Likewise.
13746         * config/arm/unaligned-funcs.c: Likewise.
13747         * config/arm/unwind-arm.c: Likewise.
13748         * config/arm/unwind-arm.h: Likewise.
13749         * config/avr/libgcc.S: Likewise.
13750         * config/bfin/crti.s: Likewise.
13751         * config/bfin/crtlibid.s: Likewise.
13752         * config/bfin/crtn.s: Likewise.
13753         * config/bfin/lib1funcs.asm: Likewise.
13754         * config/bfin/linux-unwind.h: Likewise.
13755         * config/cris/arit.c: Likewise.
13756         * config/cris/cris_abi_symbol.c: Likewise.
13757         * config/darwin-64.c: Likewise.
13758         * config/darwin-crt2.c: Likewise.
13759         * config/darwin-crt3.c: Likewise.
13760         * config/darwin.h: Likewise.
13761         * config/dbxelf.h: Likewise.
13762         * config/dfp-bit.c: Likewise.
13763         * config/dfp-bit.h: Likewise.
13764         * config/elfos.h: Likewise.
13765         * config/fixed-bit.c: Likewise.
13766         * config/fixed-bit.h: Likewise.
13767         * config/fp-bit.c: Likewise.
13768         * config/fp-bit.h: Likewise.
13769         * config/fr30/crti.asm: Likewise.
13770         * config/fr30/crtn.asm: Likewise.
13771         * config/fr30/lib1funcs.asm: Likewise.
13772         * config/freebsd-spec.h: Likewise.
13773         * config/frv/cmovd.c: Likewise.
13774         * config/frv/cmovh.c: Likewise.
13775         * config/frv/cmovw.c: Likewise.
13776         * config/frv/frvbegin.c: Likewise.
13777         * config/frv/frvend.c: Likewise.
13778         * config/frv/lib1funcs.asm: Likewise.
13779         * config/glibc-stdint.h: Likewise.
13780         * config/h8300/clzhi2.c: Likewise.
13781         * config/h8300/crti.asm: Likewise.
13782         * config/h8300/crtn.asm: Likewise.
13783         * config/h8300/ctzhi2.c: Likewise.
13784         * config/h8300/fixunssfsi.c: Likewise.
13785         * config/h8300/lib1funcs.asm: Likewise.
13786         * config/h8300/parityhi2.c: Likewise.
13787         * config/h8300/popcounthi2.c: Likewise.
13788         * config/i386/ammintrin.h: Likewise.
13789         * config/i386/att.h: Likewise.
13790         * config/i386/avxintrin.h: Likewise.
13791         * config/i386/biarch64.h: Likewise.
13792         * config/i386/bmmintrin.h: Likewise.
13793         * config/i386/cpuid.h: Likewise.
13794         * config/i386/cross-stdarg.h: Likewise.
13795         * config/i386/crtfastmath.c: Likewise.
13796         * config/i386/crtprec.c: Likewise.
13797         * config/i386/cygming-crtbegin.c: Likewise.
13798         * config/i386/cygming-crtend.c: Likewise.
13799         * config/i386/cygwin.asm: Likewise.
13800         * config/i386/emmintrin.h: Likewise.
13801         * config/i386/gmm_malloc.h: Likewise.
13802         * config/i386/gthr-win32.c: Likewise.
13803         * config/i386/i386.h: Likewise.
13804         * config/i386/immintrin.h: Likewise.
13805         * config/i386/linux-unwind.h: Likewise.
13806         * config/i386/linux64.h: Likewise.
13807         * config/i386/mm3dnow.h: Likewise.
13808         * config/i386/mmintrin-common.h: Likewise.
13809         * config/i386/mmintrin.h: Likewise.
13810         * config/i386/nmmintrin.h: Likewise.
13811         * config/i386/pmm_malloc.h: Likewise.
13812         * config/i386/pmmintrin.h: Likewise.
13813         * config/i386/smmintrin.h: Likewise.
13814         * config/i386/sol2-c1.asm: Likewise.
13815         * config/i386/sol2-ci.asm: Likewise.
13816         * config/i386/sol2-cn.asm: Likewise.
13817         * config/i386/sol2-gc1.asm: Likewise.
13818         * config/i386/tmmintrin.h: Likewise.
13819         * config/i386/unix.h: Likewise.
13820         * config/i386/w32-unwind.h: Likewise.
13821         * config/i386/wmmintrin.h: Likewise.
13822         * config/i386/x86-64.h: Likewise.
13823         * config/i386/x86intrin.h: Likewise.
13824         * config/i386/xmmintrin.h: Likewise.
13825         * config/ia64/crtbegin.asm: Likewise.
13826         * config/ia64/crtend.asm: Likewise.
13827         * config/ia64/crtfastmath.c: Likewise.
13828         * config/ia64/crti.asm: Likewise.
13829         * config/ia64/crtn.asm: Likewise.
13830         * config/ia64/fde-glibc.c: Likewise.
13831         * config/ia64/lib1funcs.asm: Likewise.
13832         * config/ia64/linux-unwind.h: Likewise.
13833         * config/ia64/quadlib.c: Likewise.
13834         * config/ia64/unwind-ia64.c: Likewise.
13835         * config/linux.h: Likewise.
13836         * config/m32c/m32c-lib1.S: Likewise.
13837         * config/m32c/m32c-lib2-trapv.c: Likewise.
13838         * config/m32c/m32c-lib2.c: Likewise.
13839         * config/m32r/initfini.c: Likewise.
13840         * config/m68hc11/larith.asm: Likewise.
13841         * config/m68hc11/m68hc11-crt0.S: Likewise.
13842         * config/m68k/cf.md: Likewise.
13843         * config/m68k/crti.s: Likewise.
13844         * config/m68k/crtn.s: Likewise.
13845         * config/m68k/lb1sf68.asm: Likewise.
13846         * config/m68k/linux-unwind.h: Likewise.
13847         * config/mcore/crti.asm: Likewise.
13848         * config/mcore/crtn.asm: Likewise.
13849         * config/mcore/lib1.asm: Likewise.
13850         * config/mips/linux-unwind.h: Likewise.
13851         * config/mips/loongson.h: Likewise.
13852         * config/mips/mips16.S: Likewise.
13853         * config/mmix/crti.asm: Likewise.
13854         * config/mmix/crtn.asm: Likewise.
13855         * config/pa/fptr.c: Likewise.
13856         * config/pa/hpux-unwind.h: Likewise.
13857         * config/pa/lib2funcs.asm: Likewise.
13858         * config/pa/linux-atomic.c: Likewise.
13859         * config/pa/linux-unwind.h: Likewise.
13860         * config/pa/milli64.S: Likewise.
13861         * config/pa/quadlib.c: Likewise.
13862         * config/pa/stublib.c: Likewise.
13863         * config/picochip/libgccExtras/adddi3.asm: Likewise.
13864         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
13865         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
13866         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
13867         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
13868         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
13869         * config/picochip/libgccExtras/divmod15.asm: Likewise.
13870         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
13871         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
13872         * config/picochip/libgccExtras/longjmp.asm: Likewise.
13873         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
13874         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
13875         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
13876         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
13877         * config/picochip/libgccExtras/setjmp.asm: Likewise.
13878         * config/picochip/libgccExtras/subdi3.asm: Likewise.
13879         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
13880         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
13881         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
13882         * config/rs6000/750cl.h: Likewise.
13883         * config/rs6000/altivec.h: Likewise.
13884         * config/rs6000/biarch64.h: Likewise.
13885         * config/rs6000/crtresfpr.asm: Likewise.
13886         * config/rs6000/crtresgpr.asm: Likewise.
13887         * config/rs6000/crtresxfpr.asm: Likewise.
13888         * config/rs6000/crtresxgpr.asm: Likewise.
13889         * config/rs6000/crtsavfpr.asm: Likewise.
13890         * config/rs6000/crtsavgpr.asm: Likewise.
13891         * config/rs6000/darwin-asm.h: Likewise.
13892         * config/rs6000/darwin-fallback.c: Likewise.
13893         * config/rs6000/darwin-fpsave.asm: Likewise.
13894         * config/rs6000/darwin-ldouble.c: Likewise.
13895         * config/rs6000/darwin-tramp.asm: Likewise.
13896         * config/rs6000/darwin-unwind.h: Likewise.
13897         * config/rs6000/darwin-vecsave.asm: Likewise.
13898         * config/rs6000/darwin-world.asm: Likewise.
13899         * config/rs6000/e500crtres32gpr.asm: Likewise.
13900         * config/rs6000/e500crtres64gpr.asm: Likewise.
13901         * config/rs6000/e500crtres64gprctr.asm: Likewise.
13902         * config/rs6000/e500crtrest32gpr.asm: Likewise.
13903         * config/rs6000/e500crtrest64gpr.asm: Likewise.
13904         * config/rs6000/e500crtresx32gpr.asm: Likewise.
13905         * config/rs6000/e500crtresx64gpr.asm: Likewise.
13906         * config/rs6000/e500crtsav32gpr.asm: Likewise.
13907         * config/rs6000/e500crtsav64gpr.asm: Likewise.
13908         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
13909         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
13910         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
13911         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
13912         * config/rs6000/eabi-ci.asm: Likewise.
13913         * config/rs6000/eabi-cn.asm: Likewise.
13914         * config/rs6000/eabi.asm: Likewise.
13915         * config/rs6000/linux-unwind.h: Likewise.
13916         * config/rs6000/linux64.h: Likewise.
13917         * config/rs6000/paired.h: Likewise.
13918         * config/rs6000/paired.md: Likewise.
13919         * config/rs6000/ppc64-fp.c: Likewise.
13920         * config/rs6000/ppu_intrinsics.h: Likewise.
13921         * config/rs6000/rs6000.h: Likewise.
13922         * config/rs6000/si2vmx.h: Likewise.
13923         * config/rs6000/sol-ci.asm: Likewise.
13924         * config/rs6000/sol-cn.asm: Likewise.
13925         * config/rs6000/spe.h: Likewise.
13926         * config/rs6000/spu2vmx.h: Likewise.
13927         * config/rs6000/sysv4.h: Likewise.
13928         * config/rs6000/tramp.asm: Likewise.
13929         * config/rs6000/vec_types.h: Likewise.
13930         * config/s390/linux-unwind.h: Likewise.
13931         * config/s390/tpf-unwind.h: Likewise.
13932         * config/score/crti.asm: Likewise.
13933         * config/score/crtn.asm: Likewise.
13934         * config/sh/crt1.asm: Likewise.
13935         * config/sh/crti.asm: Likewise.
13936         * config/sh/crtn.asm: Likewise.
13937         * config/sh/divtab-sh4-300.c: Likewise.
13938         * config/sh/divtab-sh4.c: Likewise.
13939         * config/sh/divtab.c: Likewise.
13940         * config/sh/lib1funcs-4-300.asm: Likewise.
13941         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
13942         * config/sh/lib1funcs.asm: Likewise.
13943         * config/sh/lib1funcs.h: Likewise.
13944         * config/sh/linux-atomic.asm: Likewise.
13945         * config/sh/linux-unwind.h: Likewise.
13946         * config/sh/shmedia.h: Likewise.
13947         * config/sh/sshmedia.h: Likewise.
13948         * config/sh/ushmedia.h: Likewise.
13949         * config/sparc/crtfastmath.c: Likewise.
13950         * config/sparc/linux-unwind.h: Likewise.
13951         * config/sparc/sol2-c1.asm: Likewise.
13952         * config/sparc/sol2-ci.asm: Likewise.
13953         * config/sparc/sol2-cn.asm: Likewise.
13954         * config/spu/divmodti4.c: Likewise.
13955         * config/spu/divv2df3.c: Likewise.
13956         * config/spu/float_disf.c: Likewise.
13957         * config/spu/float_unsdidf.c: Likewise.
13958         * config/spu/float_unsdisf.c: Likewise.
13959         * config/spu/float_unssidf.c: Likewise.
13960         * config/spu/mfc_multi_tag_release.c: Likewise.
13961         * config/spu/mfc_multi_tag_reserve.c: Likewise.
13962         * config/spu/mfc_tag_release.c: Likewise.
13963         * config/spu/mfc_tag_reserve.c: Likewise.
13964         * config/spu/mfc_tag_table.c: Likewise.
13965         * config/spu/multi3.c: Likewise.
13966         * config/spu/spu_internals.h: Likewise.
13967         * config/spu/spu_intrinsics.h: Likewise.
13968         * config/spu/spu_mfcio.h: Likewise.
13969         * config/spu/vec_types.h: Likewise.
13970         * config/spu/vmx2spu.h: Likewise.
13971         * config/stormy16/stormy16-lib2.c: Likewise.
13972         * config/svr4.h: Likewise.
13973         * config/sync.c: Likewise.
13974         * config/v850/lib1funcs.asm: Likewise.
13975         * config/vxlib-tls.c: Likewise.
13976         * config/vxlib.c: Likewise.
13977         * config/vxworks-dummy.h: Likewise.
13978         * config/xtensa/crti.asm: Likewise.
13979         * config/xtensa/crtn.asm: Likewise.
13980         * config/xtensa/ieee754-df.S: Likewise.
13981         * config/xtensa/ieee754-sf.S: Likewise.
13982         * config/xtensa/lib1funcs.asm: Likewise.
13983         * config/xtensa/lib2funcs.S: Likewise.
13984         * config/xtensa/linux-unwind.h: Likewise.
13985         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
13986         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
13987         * coretypes.h: Likewise.
13988         * crtstuff.c: Likewise.
13989         * defaults.h: Likewise.
13990         * dwarf2.h: Likewise.
13991         * emutls.c: Likewise.
13992         * gbl-ctors.h: Likewise.
13993         * gcov-io.h: Likewise.
13994         * ginclude/float.h: Likewise.
13995         * ginclude/iso646.h: Likewise.
13996         * ginclude/stdarg.h: Likewise.
13997         * ginclude/stdbool.h: Likewise.
13998         * ginclude/stddef.h: Likewise.
13999         * ginclude/stdfix.h: Likewise.
14000         * ginclude/stdint-gcc.h: Likewise.
14001         * ginclude/tgmath.h: Likewise.
14002         * gthr-aix.h: Likewise.
14003         * gthr-dce.h: Likewise.
14004         * gthr-gnat.c: Likewise.
14005         * gthr-gnat.h: Likewise.
14006         * gthr-lynx.h: Likewise.
14007         * gthr-mipssde.h: Likewise.
14008         * gthr-nks.h: Likewise.
14009         * gthr-posix.c: Likewise.
14010         * gthr-posix.h: Likewise.
14011         * gthr-posix95.h: Likewise.
14012         * gthr-rtems.h: Likewise.
14013         * gthr-single.h: Likewise.
14014         * gthr-solaris.h: Likewise.
14015         * gthr-tpf.h: Likewise.
14016         * gthr-vxworks.h: Likewise.
14017         * gthr-win32.h: Likewise.
14018         * gthr.h: Likewise.
14019         * libgcc2.c: Likewise.
14020         * libgcc2.h: Likewise.
14021         * libgcov.c: Likewise.
14022         * tsystem.h: Likewise.
14023         * typeclass.h: Likewise.
14024         * unwind-c.c: Likewise.
14025         * unwind-compat.h: Likewise.
14026         * unwind-dw2-fde-compat.c: Likewise.
14027         * unwind-dw2-fde-darwin.c: Likewise.
14028         * unwind-dw2-fde-glibc.c: Likewise.
14029         * unwind-dw2-fde.c: Likewise.
14030         * unwind-dw2-fde.h: Likewise.
14031         * unwind-dw2.c: Likewise.
14032         * unwind-dw2.h: Likewise.
14033         * unwind-generic.h: Likewise.
14034         * unwind-pe.h: Likewise.
14035         * unwind-sjlj.c: Likewise.
14036         * unwind.inc: Likewise.
14037         * config/arm/neon-gen.ml: Change generated copyright header to
14038         refer to version 3 of the GNU General Public License with
14039         version 3.1 of the GCC Runtime Library Exception and to point
14040         readers at the COPYING3 and COPYING3.RUNTIME files and the
14041         FSF's license web page.
14042         * config/arm/arm_neon.h: Regenerate.
14043
14044 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
14045
14046         * config/cris/cris.md: Change copyright header to refer to version
14047         3 of the GNU General Public License.
14048         * doc/install.texi2html: Change copyright header to refer to version
14049         3 of the GNU General Public License and to point readers at the
14050         COPYING3 file and the FSF's license web page.
14051         * config/vax/linux.h: Likewise.
14052
14053 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
14054
14055         * config/i386/i386.md (cmpcc): New.
14056         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
14057         (sync_compare_and_swap_cc*): Delete.
14058
14059         * config/s390/s390.c (s390_compare_emitted): Remove.
14060         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
14061         s390_compare_emitted used to be handled.  Assert that modes match.
14062         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
14063         refer to sync_compare_and_swap_ccsi.
14064         * config/s390/s390.h (s390_compare_emitted): Remove.
14065         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
14066         instead of s390_compare_emitted.
14067         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
14068         instead of s390_compare_emitted.
14069         * config/s390/s390.md (cmpcc): New.
14070         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
14071         CC_REGNUM, do not pretend it's set.
14072         (sync_compare_and_swap_cc*): Delete.
14073         * config/s390/predicates.md (cc_reg_operand): New.
14074
14075         * expr.c (sync_compare_and_swap_cc): Delete.
14076         * optabs.h (sync_compare_and_swap_cc): Delete.
14077         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
14078         is being used with can_compare_p.
14079         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
14080         (find_cc_set): New.
14081         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
14082         look for a MODE_CC set instead.  Use emit_store_flag.
14083         (expand_compare_and_swap_loop): Likewise, with some additional
14084         complication to avoid a force_reg when useless.  Use
14085         emit_cmp_and_jump_insns.
14086         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
14087         * doc/md.texi (sync_compare_and_swap_cc): Merge with
14088         sync_compare_and_swap documentation.
14089
14090 2009-04-09  Jan Hubicka  <jh@suse.cz>
14091
14092         * except.c (find_prev_try): Break out from ....
14093         (duplicate_eh_regions): ... here; properly update prev_try pointers
14094         when duplication part of tree.
14095         (dump_eh_tree): Improve dumping.
14096         (verify_eh_region): New.
14097         (verify_eh_tree): Use it.
14098
14099 2009-04-06  Richard Guenther  <rguenther@suse.de>
14100
14101         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
14102         &ARRAY addresses by adjusting their types and prepending
14103         a conversion.
14104         * tree-cfg.c (verify_gimple_assign_single): Verify that
14105         addresses are correct.
14106
14107 2009-04-09  Richard Guenther  <rguenther@suse.de>
14108
14109         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
14110         indices into an array reference if possible.
14111         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
14112         Fold POINTER_PLUS_EXPR statements with invariant address.
14113
14114 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
14115
14116         PR target/39634
14117         * config.gcc (powerpc64-*-linux*): Always build biarch.
14118
14119 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
14120
14121         PR c/39613
14122         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
14123         it and pedwarn if this results in an INTEGER_CST.
14124
14125 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14126
14127         * doc/install.texi: Update minimum GMP version.  Remove obsolete
14128         text in MPFR section.
14129
14130 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
14131
14132         * dwarf2out.c (class_scope_p): New static inline.
14133         (class_or_namespace_scope_p): Use it.
14134         (gen_variable_die): Use DW_TAG_member tag for static data member
14135         declarations instead of DW_TAG_variable.
14136
14137         PR middle-end/39573
14138         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
14139         variables.
14140
14141 2009-04-08  Richard Guenther  <rguenther@suse.de>
14142
14143         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
14144         valueize random data.
14145
14146 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
14147
14148         * config.gcc (aix tm_file):  Add aix-stdint.h.
14149         (aix tm clause use_gcc_stdint):  Set to wrap.
14150         * config/rs6000/aix-stdint.h:  New file.
14151
14152 2009-04-08  Richard Guenther  <rguenther@suse.de>
14153
14154         PR middle-end/36291
14155         * tree-dfa.c (add_referenced_var): Do not recurse into
14156         global initializers.
14157         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
14158         exposed variables.
14159         (fold_const_aggregate_ref): Likewise.
14160
14161 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14162
14163         * recog.c (ordered_comparison_operator): New.
14164         * gensupport.c (std_preds): Add it.
14165         * doc/md.texi (Machine-Independent Predicates): Document it.
14166
14167 2009-04-08  Jan Hubicka  <jh@suse.cz>
14168
14169         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
14170         * function.h (rtl_eh): Remove exception_handler_label_map.
14171         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
14172         remove_exception_handler_label, for_each_eh_label_1): Remove.
14173         (rtl_remove_unreachable_regions): Remove.
14174         (convert_from_eh_region_ranges): Do not remove unreachable regions.
14175         (find_exception_handler_labels): Don't build the hashtable.
14176         (maybe_remove_eh_handler): Remove.
14177         (for_each_eh_label): Rewrite to walk the tree.
14178         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
14179         * except.h (maybe_remove_eh_handler): Remove.
14180         * passes.c (init_optimization_passes): Schedule second EH cleanup
14181         before out-of-ssa.
14182         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
14183         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
14184
14185 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
14186
14187         * genoutput.c (validate_optab_operands): New.
14188         (gen_insn, gen_expand): Call it.
14189
14190         * genflags.c (gen_insn): Detect misused iterators.
14191         (main): Pass line_no to gen_insn, exit with status 1 on error.
14192
14193         * genextract.c (line_no): Make global.
14194         (VEC_safe_set_locstr): Change assertion to error message.
14195         (main): Exit with status 1 on error.
14196
14197 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
14198
14199         PR c/39614
14200         PR c/39673
14201         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
14202         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
14203         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
14204         * c-convert.c (convert): Do not call fold on results of conversion
14205         functions when the result is a C_MAYBE_CONST_EXPR.
14206         * c-parser.c (c_parser_postfix_expression): Do not fold condition
14207         of __builtin_choose_expr.
14208         * c-typeck.c (remove_c_maybe_const_expr): New.
14209         (build_unary_op, build_conditional_expr, build_compound_expr,
14210         build_binary_op, c_objc_common_truthvalue_conversion): Call
14211         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
14212         integer operands.
14213
14214 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
14215
14216         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
14217         CODE to produce a new one. Add a prototype to use fold_convert_const
14218
14219 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
14220
14221         PR bootstrap/39660
14222         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
14223         mix declarations and code.
14224
14225 2009-04-08  Ben Elliston  <bje@au.ibm.com>
14226
14227         * gcc.c: Replace `CC' with `GCC' throughout.
14228
14229 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
14230
14231         * doc/invoke.texi: Document Atom support.
14232
14233 2009-04-07  Jason Merrill  <jason@redhat.com>
14234
14235         PR c++/25185
14236         * c-common.h, c-common.c: Add flag_pretty_templates.
14237         * c-opts.c (c_common_handle_option): Set it.
14238         * c.opt: Add -fno-pretty-templates.
14239         * doc/invoke.texi (C++ Dialect Options): Likewise.
14240
14241 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
14242
14243         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
14244         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
14245         (ia64_expand_builtin): Likewise.
14246
14247 2009-04-07  Martin Jambor  <mjambor@suse.cz>
14248
14249         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
14250         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
14251         ADDR_EXPRS are include too.
14252
14253 2009-04-07  Richard Guenther  <rguenther@suse.de>
14254
14255         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
14256         decls are only used if passes as parameters or if they are
14257         local statics and the call is not to a builtin.
14258         (call_may_clobber_ref_p_1): Likewise.
14259
14260 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14261
14262         * expr.c (do_store_flag): Remove last argument.  Simplify code
14263         to avoid duplication of tests already done by can_compare_p.
14264         (expand_expr_real_1): Adjust caller.
14265
14266 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14267
14268         * optabs.c (can_compare_p): Test the predicate of a
14269         cbranch and cstore pattern.
14270
14271 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14272
14273         * expr.c (convert_move): Use emit_store_flag instead of
14274         "emulating" it.
14275
14276 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
14277
14278         * config/i386/i386.c (ix86_compare_emitted): Remove.
14279         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
14280         ix86_compare_op0 like ix86_compare_emitted used to be handled.
14281         * config/i386/i386.h (ix86_compare_emitted): Remove.
14282         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
14283         instead of ix86_compare_emitted.
14284         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
14285
14286 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
14287
14288         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
14289         Add t-sysroot-suffix to tmake_file.
14290         * config/print-sysroot-suffix.sh: New file.
14291         * config/t-sysroot-suffix: New file.
14292
14293 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14294
14295         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
14296         as the latter produces a warning when the target does not support
14297         infinity.
14298
14299 2009-04-07  Ben Elliston  <bje@au.ibm.com>
14300
14301         * dfp.c: Replace type punning assignments with memcpy throughout.
14302         * Makefile.in (dfp.o-warn): Remove.
14303
14304 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
14305
14306         PR target/39634
14307         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
14308         Include soft-fp/t-softfp after rs6000/t-linux64.
14309
14310 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
14311
14312         * stor-layout.c (set_sizetype): Use the full precision of their
14313         machine mode for bitsize types.
14314
14315 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
14316
14317         * config/i386/i386.md: Revert 2 accidental checkins.
14318
14319 2009-04-06  Joey Ye  <joey.ye@intel.com>
14320             Xuepeng Guo  <xuepeng.guo@intel.com>
14321             H.J. Lu  <hongjiu.lu@intel.com>
14322
14323         Atom pipeline model, tuning and insn selection.
14324         * config.gcc (atom): Add atom config options and target.
14325
14326         * config/i386/atom.md: New.
14327
14328         * config/i386/i386.c (atom_cost): New cost.
14329         (m_ATOM): New macro flag.
14330         (initial_ix86_tune_features): Set m_ATOM.
14331         (x86_accumulate_outgoing_args): Likewise.
14332         (x86_arch_always_fancy_math_387): Likewise.
14333         (processor_target): Add Atom cost.
14334         (cpu_names): Add Atom cpu name.
14335         (override_options): Set Atom ISA.
14336         (ix86_issue_rate): New case PROCESSOR_ATOM.
14337         (ix86_adjust_cost): Likewise.
14338
14339         * config/i386/i386.h (TARGET_ATOM): New target macro.
14340         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
14341         (TARGET_OPT_AGU): New target option.
14342         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
14343         (processor_type): Add PROCESSOR_ATOM.
14344
14345         * config/i386/i386.md (cpu): Add new value "atom".
14346         (use_carry, movu): New attr.
14347         (atom.md): Include atom.md.
14348         (adddi3_carry_rex64): Set attr "use_carry".
14349         (addqi3_carry): Likewise.
14350         (addhi3_carry): Likewise.
14351         (addsi3_carry): Likewise.
14352         (*addsi3_carry_zext): Likewise.
14353         (subdi3_carry_rex64): Likewise.
14354         (subqi3_carry): Likewise.
14355         (subhi3_carry): Likewise.
14356         (subsi3_carry): Likewise.
14357         (x86_movdicc_0_m1_rex64): Likewise.
14358         (*x86_movdicc_0_m1_se): Likewise.
14359         (x86_movsicc_0_m1): Likewise.
14360         (*x86_movsicc_0_m1_se): Likewise.
14361         (*adddi_1_rex64): Emit add insn as much as possible.
14362         (*addsi_1): Likewise.
14363         (return_internal): Set atom_unit.
14364         (return_internal_long): Likewise.
14365         (return_pop_internal): Likewise.
14366         (*rcpsf2_sse): Set atom_sse_attr attr.
14367         (*qrt<mode>2_sse): Likewise.
14368         (*prefetch_sse): Likewise.
14369
14370         * config/i386/i386-c.c (ix86_target_macros_internal): New case
14371         PROCESSOR_ATOM.
14372         (ix86_target_macros_internal): Likewise.
14373
14374         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
14375         (*prefetch_sse_rex): Likewise.
14376         (sse_rcpv4sf2): Likewise.
14377         (sse_vmrcpv4sf2): Likewise.
14378         (sse_sqrtv4sf2): Likewise.
14379         (<sse>_vmsqrt<mode>2): Likewise.
14380         (sse_ldmxcsr): Likewise.
14381         (sse_stmxcsr): Likewise.
14382         (*sse_sfence): Likewise.
14383         (sse2_clflush): Likewise.
14384         (*sse2_mfence): Likewise.
14385         (*sse2_lfence): Likewise.
14386         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
14387         (<sse>_movup<ssemodesuffixf2c>): Likewise.
14388         (avx_movdqu<avxmodesuffix>): Likewise.
14389         (avx_lddqu<avxmodesuffix>): Likewise.
14390         (sse2_movntv2di): Change attr "type" to "ssemov".
14391         (sse2_movntsi): Likewise.
14392         (rsqrtv8sf2): Change attr "type" to "sseadd".
14393         (sse3_addsubv2df3): Set attr "atom_unit".
14394         (sse3_h<plusminus_insn>v4sf3): Likewise.
14395         (*sse2_pmaddwd): Likewise.
14396         (*vec_extractv2di_1_rex64): Likewise.
14397         (*vec_extractv2di_1_avx): Likewise.
14398         (sse2_psadbw): Likewise.
14399         (ssse3_phaddwv8hi3): Likewise.
14400         (ssse3_phaddwv4hi3): Likewise.
14401         (ssse3_phadddv4si3): Likewise.
14402         (ssse3_phadddv2si3): Likewise.
14403         (ssse3_phaddswv8hi3): Likewise.
14404         (ssse3_phaddswv4hi3): Likewise.
14405         (ssse3_phsubwv8hi3): Likewise.
14406         (ssse3_phsubwv4hi3): Likewise.
14407         (ssse3_phsubdv4si3): Likewise.
14408         (ssse3_phsubdv2si3): Likewise.
14409         (ssse3_phsubswv8hi3): Likewise.
14410         (ssse3_phsubswv4hi3): Likewise.
14411         (ssse3_pmaddubsw128): Likewise.
14412         (sse3_pmaddubsw: Likewise.
14413         (ssse3_palignrti): Likewise.
14414         (ssse3_palignrdi): Likewise.
14415
14416 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
14417
14418         * doc/install.texi (Specific): Fix two cross-references to MinGW.
14419
14420 2009-04-06  Richard Guenther  <rguenther@suse.de>
14421
14422         PR tree-optimization/28868
14423         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
14424         of which PHI results we inserted.
14425         (insert_into_preds_of_block): Record inserted PHIs.
14426         (eliminate): Eliminate redundant PHI nodes.
14427         (init_pre): Init inserted_phi_names.
14428
14429 2009-04-06  Richard Guenther  <rguenther@suse.de>
14430
14431         PR tree-optimization/39643
14432         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
14433         IMAGPART_EXPRs of complex constants.
14434         (execute_fold_all_builtins): If we folded a call queue
14435         TODO_update_address_taken.
14436
14437 2009-04-06  Jan Hubicka  <jh@suse.cz>
14438
14439         PR middle-end/39659
14440         * except.c (remove_unreachable_regions): Propagate may_contain_throw
14441         flag.
14442
14443 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
14444
14445         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
14446         delay slot.
14447         (ic_invalidate_array): Likewise.
14448
14449 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
14450
14451         * calls.c (emit_library_call_value_1): Fix a problem with parameter
14452         alignment for library calls.
14453
14454 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
14455
14456         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
14457         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
14458         * config/i386/mingw-stdint.h:  New file.
14459
14460 2009-04-05  Richard Guenther  <rguenther@suse.de>
14461
14462         PR tree-optimization/39648
14463         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
14464         our &A vs. &A[0] IL deficiencies.
14465
14466 2009-04-04  Jan Hubicka  <jh@suse.cz>
14467
14468         * except.c (sjlj_find_directly_reachable_regions): Be ready for
14469         removed toplevel regions.
14470         (sjlj_mark_call_sites): Likewise.
14471
14472 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
14473
14474         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
14475         (cygwin tm clause use_gcc_stdint):  Set to wrap.
14476         * config/i386/cygwin-stdint.h:  New file.
14477
14478 2009-04-04  Richard Guenther  <rguenther@suse.de>
14479
14480         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
14481         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
14482         single-argument PHIs if we are in loop-closed SSA form.
14483         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
14484         for the pre-condition.
14485         (slpeel_tree_peel_loop_to_edge): Likewise.
14486         (vect_build_loop_niters): Take an optional sequence to append stmts.
14487         (vect_generate_tmps_on_preheader): Likewise.
14488         (vect_do_peeling_for_loop_bound): Take extra guards for the
14489         pre-condition.
14490         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
14491         the cost model check.
14492         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
14493         guards if we are going to peel.  Do not apply versioning in that case.
14494         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
14495         (vect_do_peeling_for_loop_bound): Likewise.
14496         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
14497         loop bound only record extra pre-conditions, do not apply loop
14498         versioning.
14499
14500 2009-04-04  Richard Guenther  <rguenther@suse.de>
14501
14502         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
14503         renaming code.
14504
14505 2009-04-04  Jan Hubicka  <jh@suse.cz>
14506
14507         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14508         last_basic_block for size of bb->index indexed array.
14509         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
14510         compute_out, link_btr_uses, build_btr_def_use_webs,
14511         build_btr_def_use_webs, migrate_btr_defs): Likewise.
14512
14513 2009-04-04  Jan Hubicka  <jh@suse.cz>
14514
14515         * except.c (remove_eh_handler_and_replace): Break out from ...
14516         (remove_eh_handler): ... here.
14517         (bring_to_root): New function.
14518         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
14519         handled ones, bring others to root of tree.
14520
14521 2009-04-04  Jan Hubicka  <jh@suse.cz>
14522
14523         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
14524         (all_phis_safe_to_merge): New function.
14525         (update_info): New structure.
14526         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
14527         (cleanup_empty_eh): Update SSA if possible.
14528
14529 2009-04-04  Richard Guenther  <rguenther@suse.de>
14530
14531         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
14532         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
14533         (append_vuse): Likewise.
14534
14535 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
14536
14537         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
14538         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
14539         instead of REG_UNSAVED for DW_CFA_undefined.
14540         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
14541         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
14542         outermost frame.
14543
14544 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
14545
14546         PR target/39501
14547         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
14548         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
14549         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
14550
14551 2009-04-04  Richard Guenther  <rguenther@suse.de>
14552
14553         PR tree-optimization/8781
14554         PR tree-optimization/37892
14555         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
14556         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
14557         (valueize_refs): Call it for *& valueizations.
14558         (shared_reference_ops_from_ref): Rename to ...
14559         (valueize_shared_reference_ops_from_ref): ... this and valueize.
14560         (shared_reference_ops_from_call): Rename to ...
14561         (valueize_shared_reference_ops_from_call): ... this and valueize.
14562         (vn_reference_lookup): Update.
14563         (visit_reference_op_call): Likewise.
14564         * tree-ssa-pre.c (phi_translate_1): Fold *&.
14565         (eliminate): Value-replace the call address in call statements.
14566
14567 2009-04-04  Richard Guenther  <rguenther@suse.de>
14568
14569         PR tree-optimization/39636
14570         * tree-ssa-forwprop.c
14571         (forward_propagate_addr_into_variable_array_index): Check for
14572         GIMPLE_ASSIGN before accessing the rhs code.
14573
14574 2009-04-03  Jason Merrill  <jason@redhat.com>
14575
14576         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
14577
14578 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
14579
14580         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
14581         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
14582         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
14583         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
14584         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
14585         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
14586         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
14587         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
14588         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
14589         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
14590         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
14591         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
14592         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
14593         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
14594         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
14595         Use fr_reg_or_fp01_operand instead of fr_register_operand
14596
14597         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
14598         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
14599         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
14600
14601 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
14602
14603         PR rtl-optimization/39607
14604         PR rtl-optimization/39631
14605
14606         Revert:
14607
14608         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
14609         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
14610         instead of DF_LR_OUT.
14611         * ira-lives.c (process_bb_node_lives): Ditto.
14612         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
14613         instead of DF_LR_{OUT,IN}.
14614         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
14615         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
14616
14617 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
14618
14619         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
14620         (execute_lower_omp): Always run but take the short way out if -fopenmp
14621         is not given.
14622         (gate_lower_omp): Remove, forcing the pass manager to always run the
14623         pass and always set PROP_gimple_lomp.
14624         (pass_lower_omp): Remove gate function.
14625         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
14626         PROP_trees.  Instead, require it.
14627         * ipa-cp.c (pass_ipa_cp): Likewise.
14628         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
14629         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
14630         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
14631         and PROP_gimple_leh.
14632
14633 2009-04-03  Richard Guenther  <rguenther@suse.de>
14634
14635         PR middle-end/13146
14636         PR tree-optimization/23940
14637         PR tree-optimization/33237
14638         PR middle-end/33974
14639         PR middle-end/34093
14640         PR tree-optimization/36201
14641         PR tree-optimization/36230
14642         PR tree-optimization/38049
14643         PR tree-optimization/38207
14644         PR tree-optimization/38230
14645         PR tree-optimization/38301
14646         PR tree-optimization/38585
14647         PR middle-end/38895
14648         PR tree-optimization/38985
14649         PR tree-optimization/39299
14650         * tree-ssa-structalias.h: Remove.
14651         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
14652         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
14653         (struct vuse_element_d): Remove.
14654         (struct vuse_vec_d): Likewise.
14655         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
14656         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
14657         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
14658         VUSE_ELEMENT_VAR): Likewise.
14659         (struct voptype_d): Likewise.
14660         (NUM_VOP_FREE_BUCKETS): Likewise.
14661         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
14662         (struct stmt_operands_d): Remove.
14663         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
14664         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
14665         VDEF_NUM, VDEF_VECT): Likewise.
14666         (copy_virtual_operands): Remove.
14667         (operand_build_cmp): Likewise.
14668         (create_ssa_artificial_load_stmt): Likewise.
14669         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
14670         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
14671         vuse_index and mayuse_index members.  Pack and move done and iter_type
14672         members to the front.
14673         (SSA_OP_VMAYUSE): Remove.
14674         (SSA_OP_VIRTUAL_USES): Adjust.
14675         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
14676         (unlink_stmt_vdef): Declare.
14677         (add_to_addressable_set): Remove.
14678         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
14679         (vrp_visit_stmt): Likewise.
14680         * doc/tree-ssa.texi (Alias analysis): Update.
14681         * doc/invoke.texi (max-aliased-vops): Remove docs.
14682         (avg-aliased-vops): Likewise.
14683         * tree-into-ssa.c (syms_to_rename): Remove.
14684         (need_to_update_vops_p): Likewise.
14685         (need_to_initialize_update_ssa_p): Rename to ...
14686         (update_ssa_initialized_fn): ... this.  Track function we are
14687         initialized for.
14688         (symbol_marked_for_renaming): Simplify.
14689         (add_new_name_mapping): Do not set need_to_update_vops_p.
14690         (dump_currdefs): Use SYMS_TO_RENAME.
14691         (rewrite_update_stmt): Always walk all uses/defs.
14692         (dump_update_ssa): Adjust.
14693         (init_update_ssa): Take function argument.  Track what we are
14694         initialized for.
14695         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
14696         (create_new_def_for): Initialize for cfun, assert we are initialized
14697         for cfun.
14698         (mark_sym_for_renaming): Simplify.
14699         (mark_set_for_renaming): Do not initialize update-ssa.
14700         (need_ssa_update_p): Simplify.  Take function argument.
14701         (name_mappings_registered_p): Assert we ask for the correct function.
14702         (name_registered_for_update_p): Likewise.
14703         (ssa_names_to_replace): Likewise.
14704         (release_ssa_name_after_update_ssa): Likewise.
14705         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
14706         (dump_decl_set): Do not print a newline.
14707         (debug_decl_set): Do it here.
14708         (dump_update_ssa): And here.
14709         * tree-ssa-loop-im.c (move_computations): Adjust.
14710         (movement_possibility): Likewise.
14711         (determine_max_movement): Likewise.
14712         (gather_mem_refs_stmt): Likewise.
14713         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
14714         or NAME_MEMORY_TAG.
14715         * tree-complex.c (update_all_vops): Remove.
14716         (expand_complex_move): Adjust.
14717         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
14718         Simplify test for memory referencing statement.  Exclude
14719         non-invariant ADDR_EXPRs.
14720         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
14721         * tree-loop-distribution.c (generate_memset_zero): Adjust.
14722         (rdg_flag_uses): Likewise.
14723         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
14724         related code.
14725         (tree_optimize_tail_calls_1): Also split the
14726         edge from the entry block if we have degenerate PHI nodes in
14727         the first basic block.
14728         * tree.c (init_ttree): Remove memory-tag related code.
14729         (tree_code_size): Likewise.
14730         (tree_node_structure): Likewise.
14731         (build7_stat): Re-write to be build6_stat.
14732         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
14733         (SSA_VAR_P): Adjust.
14734         (struct tree_memory_tag): Remove.
14735         (struct tree_memory_partition_tag): Likewise.
14736         (union tree_node): Adjust.
14737         (build7): Re-write to be build6.
14738         * tree-pass.h (pass_reset_cc_flags): Remove.
14739         (TODO_update_address_taken): New flag.
14740         (pass_simple_dse): Remove.
14741         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
14742         * params.h (MAX_ALIASED_VOPS): Remove.
14743         (AVG_ALIASED_VOPS): Likewise.
14744         * omp-low.c (expand_omp_taskreg): Update SSA form.
14745         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
14746         aliases the lhs in a copy stmt.
14747         * tree-ssa-dse.c (struct address_walk_data): Remove.
14748         (memory_ssa_name_same): Likewise.
14749         (memory_address_same): Likewise.
14750         (get_kill_of_stmt_lhs): Likewise.
14751         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
14752         unused stores.  Look through PHI nodes into post-dominated regions.
14753         (dse_optimize_stmt): Simplify.  Properly remove stores.
14754         (tree_ssa_dse): Compute dominators.
14755         (execute_simple_dse): Remove.
14756         (pass_simple_dse): Likewise.
14757         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
14758         gimple_loaded_syms and gimple_stored_syms computation.
14759         * toplev.c (dump_memory_report): Dump alias and pta stats.
14760         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
14761         (vn_reference_eq): Likewise.
14762         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
14763         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
14764         valueize_vuses): Remove.
14765         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
14766         (get_def_ref_stmt_vuse): ... this.
14767         (vn_reference_lookup_2): New function.
14768         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
14769         walking equivalent vuses.  Simplify.
14770         (vn_reference_lookup): Likewise.
14771         (vn_reference_insert): Likewise.
14772         (vn_reference_insert_pieces): Likewise.
14773         (visit_reference_op_call): Simplify.
14774         (visit_reference_op_load): Likewise.
14775         (visit_reference_op_store): Likewise.
14776         (init_scc_vn): Remove shared_lookup_vuses initialization.
14777         (free_scc_vn): Remove shared_lookup_vuses freeing.
14778         (sort_vuses, sort_vuses_heap): Remove.
14779         (get_ref_from_reference_ops): Export.
14780         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
14781         vector with single vuse pointer.
14782         (vn_reference_lookup_pieces, vn_reference_lookup,
14783         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
14784         (shared_vuses_from_stmt): Remove.
14785         (get_ref_from_reference_ops): Declare.
14786         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
14787         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
14788         memory-tag related code.
14789         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
14790         (likely_value): Add comment, skip static-chain of call statements.
14791         (surely_varying_stmt_p): Adjust.
14792         (gimplify_and_update_call_from_tree): Likewise.
14793         (execute_fold_all_builtins): Do not rebuild alias info.
14794         (gimplify_and_update_call_from_tree): Properly update VOPs.
14795         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
14796         (copy_ref_info): Remove memory-tag related code.
14797         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
14798         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
14799         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
14800         computation.
14801         * tree-ssa-dom.c (gimple_p): Remove typedef.
14802         (eliminate_redundant_computations): Adjust.
14803         (record_equivalences_from_stmt): Likewise.
14804         (avail_expr_hash): Likewise.
14805         (avail_expr_eq): Likewise.
14806         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
14807         (stmt_makes_single_load): Likewise.
14808         (stmt_makes_single_store): Likewise.
14809         * tree-ssa-alias.c: Rewrite completely.
14810         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
14811         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
14812         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
14813         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
14814         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
14815         Remove public functions.
14816         (pass_reset_cc_flags): Remove.
14817         (pass_build_alias): Move ...
14818         * tree-ssa-structalias.c (pass_build_alias): ... here.
14819         * tree-ssa-alias.c (may_be_aliased): Move ...
14820         * tree-flow-inline.h (may_be_aliased): ... here.
14821         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
14822         count_uses_and_derefs): Move ...
14823         * gimple.c: ... here.
14824         * gimple.h (count_uses_and_derefs): Declare.
14825         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
14826         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
14827         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
14828         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
14829         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
14830         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
14831         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
14832         New functions.
14833         * tree-dfa.c (refs_may_alias_p): Move ...
14834         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
14835         * tree-ssa-alias.h: New file.
14836         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
14837         (statement_sink_location): Likewise.
14838         * opts.c (decode_options): Do not adjust max-aliased-vops or
14839         avg-aliased-vops values.
14840         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
14841         (TV_CALL_CLOBBER): Likewise.
14842         (TV_FLOW_SENSITIVE): Likewise.
14843         (TV_FLOW_INSENSITIVE): Likewise.
14844         (TV_MEMORY_PARTITIONING): Likewise.
14845         (TV_ALIAS_STMT_WALK): New timevar.
14846         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
14847         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
14848         (get_address_description): Remove memory-tag related code.
14849         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
14850         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
14851         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
14852         and immediate uses in statements.  Document.
14853         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
14854         (dump_symbols): Remove.
14855         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
14856         * alias.c (get_deref_alias_set): New function split out from ...
14857         (get_alias_set): ... here.
14858         * alias.h (get_deref_alias_set): Declare.
14859         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
14860         type parameter.  Remove restrict pointer handling.  Create a
14861         ref-all pointer in case type-based alias sets do not conflict.
14862         (vect_analyze_data_refs): Remove SMT related code.
14863         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
14864         (vectorizable_load): Likewise.
14865         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
14866         (DR_SYMBOL_TAG, DR_VOPS): Remove.
14867         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
14868         Ignore vops and SMTs.
14869         (dr_analyze_alias): Likewise..
14870         (free_data_ref): Likewise.
14871         (create_data_ref): Likewise.
14872         (analyze_all_data_dependences): Likewise.
14873         (get_references_in_stmt): Adjust.
14874         * tree-flow-inline.h (gimple_aliases_computed_p,
14875         gimple_addressable_vars, gimple_call_clobbered_vars,
14876         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
14877         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
14878         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
14879         gimple_mem_ref_stats): Remove.
14880         (gimple_vop): New function.
14881         (op_iter_next_use): Remove vuses and mayuses cases.
14882         (op_iter_next_def): Remove vdefs case.
14883         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
14884         (clear_and_done_ssa_iter): Do not set removed fields.
14885         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
14886         Assert we are not iterating over vuses or vdefs if not also
14887         iterating over uses or defs.
14888         (op_iter_init_use): Likewise.
14889         (op_iter_init_def): Likewise.
14890         (op_iter_next_vdef): Remove.
14891         (op_iter_next_mustdef): Likewise.
14892         (op_iter_init_vdef): Likewise.
14893         (compare_ssa_operands_equal): Likewise.
14894         (link_use_stmts_after): Handle vuse operand.
14895         (is_call_used): Use is_call_clobbered.
14896         (is_call_clobbered): Global variables are always call clobbered,
14897         query the call-clobbers bitmap.
14898         (mark_call_clobbered): Ignore global variables.
14899         (clear_call_clobbered): Likewise.
14900         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
14901         virtual operands sanity check.
14902         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
14903         Remove.
14904         (TARGET_MEM_REF): Remove TMR_TAG operand.
14905         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
14906         Remove call-clobber related code.
14907         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
14908         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
14909         partitions or escape reason.
14910         (get_single_def_stmt, get_single_def_stmt_from_phi,
14911         get_single_def_stmt_with_phi): Remove.
14912         (dump_referenced_vars): Tidy.
14913         (get_ref_base_and_extent): Allow bare decls.
14914         (collect_dfa_stats): Adjust.
14915         * graphite.c (rename_variables_in_stmt): Adjust.
14916         (graphite_copy_stmts_from_block): Likewise.
14917         (translate_clast): Likewise.
14918         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
14919         (EXPR_DIES): New.
14920         (translate_vuse_through_block): Use the oracle.
14921         (phi_translate_1): Adjust.
14922         (value_dies_in_block_x): Use the oracle.  Cache the outcome
14923         in EXPR_DIES.
14924         (valid_in_sets): Check if the VUSE for
14925         a REFERENCE is available.
14926         (eliminate): Do not remove stmts during elimination,
14927         instead queue and remove them afterwards.
14928         (do_pre): Do not rebuild alias info.
14929         (pass_pre): Run TODO_rebuild_alias before PRE.
14930         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
14931         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
14932         (mark_all_v_defs_stmt): Remove.
14933         (mark_all_v_defs_seq): Adjust.
14934         (sra_replace): Likewise.
14935         (scalarize_use): Likewise.
14936         (scalarize_copy): Likewise.
14937         (scalarize_init): Likewise.
14938         (scalarize_ldst): Likewise.
14939         (todoflags): Remove.
14940         (tree_sra): Do not rebuild alias info.
14941         (tree_sra_early): Adjust.
14942         (pass_sra): Run TODO_update_address_taken before SRA.
14943         * tree-predcom.c (set_alias_info): Remove.
14944         (prepare_initializers_chain): Do not call it.
14945         (mark_virtual_ops_for_renaming): Adjust.
14946         (mark_virtual_ops_for_renaming_list): Remove.
14947         (initialize_root_vars): Adjust.
14948         (initialize_root_vars_lm): Likewise.
14949         (prepare_initializers_chain): Likewise.
14950         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
14951         (may_propagate_copy_into_stmt): Likewise.
14952         (merge_alias_info): Do nothing for now.
14953         (propagate_tree_value_into_stmt): Adjust.
14954         (stmt_may_generate_copy): Likewise.
14955         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
14956         not mark symbols for renaming.
14957         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
14958         with the same statement, make sure to update the new pointed-to one.
14959         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
14960         call statements, do not mark symbols for renaming.
14961         (mark_operand_necessary): Dump something.
14962         (ref_may_be_aliased): New function.
14963         (mark_aliased_reaching_defs_necessary_1): New helper function.
14964         (mark_aliased_reaching_defs_necessary): Likewise.
14965         (mark_all_reaching_defs_necessary_1): Likewise.
14966         (mark_all_reaching_defs_necessary): Likewise.
14967         (propagate_necessity): Do not process virtual PHIs.  For
14968         non-aliased loads mark all reaching definitions as necessary.
14969         For aliased loads and stores mark the immediate dominating
14970         aliased clobbers as necessary.
14971         (visited): New global static.
14972         (perform_tree_ssa_dce): Free visited bitmap after propagating
14973         necessity.
14974         (remove_dead_phis): Perform simple dead virtual PHI removal.
14975         (remove_dead_stmt): Properly unlink virtual operands when
14976         removing stores.
14977         (eliminate_unnecessary_stmts): Schedule PHI removal after
14978         stmt removal.
14979         * tree-ssa-ter.c (is_replaceable_p): Adjust.
14980         (process_replaceable): Likewise.
14981         (find_replaceable_in_bb): Likewise.
14982         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
14983         based on the single gimple vop.
14984         (verify_flow_insensitive_alias_info): Remove.
14985         (verify_flow_sensitive_alias_info): Likewise.
14986         (verify_call_clobbering): Likewise.
14987         (verify_memory_partitions): Likewise.
14988         (verify_alias_info): Likewise.
14989         (verify_ssa): Adjust..
14990         (execute_update_addresses_taken): Export.  Update SSA
14991         manually.  Optimize only when optimizing.  Use a local bitmap.
14992         (pass_update_address_taken): Remove TODO_update_ssa, add
14993         TODO_dump_func.
14994         (pass_update_address_taken): Just use TODO_update_address_taken.
14995         (init_tree_ssa): Do not initialize addressable_vars.
14996         (verify_ssa): Verify new VUSE / VDEF properties.
14997         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
14998         Do not call verify_alias_info.
14999         (delete_tree_ssa): Clear the VUSE, VDEF operands.
15000         Do not free the loaded and stored syms bitmaps.  Reset the escaped
15001         and callused solutions.  Do not free addressable_vars.
15002         Remove memory-tag related code.
15003         (warn_uninitialized_var): Aliases are always available.
15004         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
15005         * lambda-code.c (can_put_in_inner_loop): Adjust.
15006         (can_put_after_inner_loop): Likewise.
15007         (perfect_nestify): Likewise.
15008         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
15009         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
15010         (vectorizable_conversion): Do not mark symbols for renaming.
15011         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
15012         (expand_call_inline): Unlink the calls virtual operands before
15013         replacing it.
15014         (tree_function_versioning): Do not call update_ssa if we are not
15015         updating clones.  Simplify.
15016         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
15017         (propagate_with_phi): Likewise..
15018         * tree-outof-ssa.c (create_temp): Remove memory tag and call
15019         clobber code.  Assert we are not aliased or global.
15020         * tree-flow.h: Include tree-ssa-alias.h
15021         (enum escape_type): Remove.
15022         (struct mem_sym_stats_d): Likewise.
15023         (struct mem_ref_stats_d): Likewise.
15024         (struct gimple_df): Add vop member.  Remove global_var,
15025         call_clobbered_vars, call_used_vars, addressable_vars,
15026         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
15027         escaped and callused members.
15028         (struct ptr_info_def): Remove all members, add points-to solution
15029         member pt.
15030         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
15031         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
15032         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
15033         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
15034         (tree-ssa-alias.o): Likewise.
15035         (toplev.o): Add tree-ssa-alias.h
15036         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
15037         * gimple.c (gimple_set_bb): Fix off-by-one error.
15038         (is_gimple_reg): Do not handle memory tags.
15039         (gimple_copy): Also copy virtual operands.
15040         Delay updating the statement.  Do not reset loaded and stored syms.
15041         (gimple_set_stored_syms): Remove.
15042         (gimple_set_loaded_syms): Likewise.
15043         (gimple_call_copy_skip_args): Copy the virtual operands
15044         and mark the new statement modified.
15045         * tree-ssa-structalias.c (may_alias_p): Remove.
15046         (set_uids_in_ptset): Take the alias set to prune with as
15047         parameter.  Fold in the alias test of may_alias_p.
15048         (compute_points_to_sets): Compute whether a ptr is dereferenced
15049         in a local sbitmap.
15050         (process_constraint): Deal with &ANYTHING on the lhs, reject all
15051         other ADDRESSOF constraints on the lhs.
15052         (get_constraint_for_component_ref): Assert that we don't get
15053         ADDRESSOF constraints from the base of the reference.
15054         Properly generate UNKNOWN_OFFSET for DEREF if needed.
15055         (struct variable_info): Remove collapsed_to member.
15056         (get_varinfo_fc): Remove.
15057         (new_var_info): Do not set collapsed_to.
15058         (dump_constraint): Do not follow cycles.
15059         (dump_constraint_graph): Likewise.
15060         (build_pred_graph): Likewise.
15061         (build_succ_graph): Likewise.
15062         (rewrite_constraints): Likewise.
15063         (do_simple_structure_copy): Remove.
15064         (do_rhs_deref_structure_copy): Remove.
15065         (do_lhs_deref_structure_copy): Remove.
15066         (collapse_rest_of_var): Remove.
15067         (do_structure_copy): Re-implement.
15068         (pta_stats): New global variable.
15069         (dump_pta_stats): New function.
15070         (struct constraint_expr): Make offset signed.
15071         (UNKNOWN_OFFSET): Define special value.
15072         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
15073         (solution_set_expand): New helper function split out from ...
15074         (do_sd_constraint): ... here.
15075         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
15076         (do_ds_constraint): Likewise.
15077         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
15078         and CALLUSED = *CALLUSED.
15079         (set_union_with_increment): Make inc argument signed.
15080         (type_safe): Remove.
15081         (get_constraint_for_ptr_offset): Handle unknown and negative
15082         constant offsets.
15083         (first_vi_for_offset): Handle offsets before start.  Bail
15084         out early for offsets beyond the variable extent.
15085         (first_or_preceding_vi_for_offset): New function.
15086         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
15087         Together with ESCAPED = *ESCAPED this properly computes reachability.
15088         (find_what_var_points_to): New function.
15089         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
15090         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
15091         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
15092         pt_solutions_intersect): New functions.
15093         (compute_call_used_vars): Remove.
15094         (compute_may_aliases): New main entry into PTA computation.
15095         * gimple.h (gimple_p): New typedef.
15096         (struct gimple_statement_base): Remove references_memory_p.
15097         (struct gimple_statement_with_memory_ops_base): Remove
15098         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
15099         members.
15100         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
15101         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
15102         gimple_set_references_memory): Remove.
15103         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
15104         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
15105         New functions.
15106         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
15107         (verify_expr): Allow RESULT_DECL.
15108         (gimple_duplicate_bb): Do not copy virtual operands.
15109         (gimple_duplicate_sese_region): Adjust.
15110         (gimple_duplicate_sese_tail): Likewise.
15111         (mark_virtual_ops_in_region): Remove.
15112         (move_sese_region_to_fn): Do not call it.
15113         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
15114         and pass_simple_dse.
15115         (execute_function_todo): Handle TODO_update_address_taken,
15116         call execute_update_addresses_taken for TODO_rebuild_alias.
15117         (execute_todo): Adjust.
15118         (execute_one_pass): Init dump files early.
15119         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
15120         call-clobbered.
15121         (create_general_new_stmt): Clear vops.
15122         * tree-ssa-reassoc.c (get_rank): Adjust.
15123         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
15124         symbols for renaming.
15125         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
15126         (PARAM_AVG_ALIASED_VOPS): Likewise.
15127         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
15128         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
15129         * tree-ssa-operands.c: Simplify for new virtual operand representation.
15130         (operand_build_cmp, copy_virtual_operands,
15131         create_ssa_artificial_load_stmt, add_to_addressable_set,
15132         gimple_add_to_addresses_taken): Remove public functions.
15133         (unlink_stmt_vdef): New function.
15134
15135 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15136
15137         * config.gcc (powerpc-*-linux*): Merge variants.
15138
15139 2009-04-02  Chao-ying Fu  <fu@mips.com>
15140             James Grosbach  <james.grosbach@microchip.com>
15141
15142         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
15143         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
15144         cop0_sp_offset.
15145         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
15146         keep_interrupts_masked_p, use_debug_exception_return_p.
15147         (mips_attribute_table): Add interrupt, use_shadow_register_set,
15148         keep_interrupts_masked, use_debug_exception_return.
15149         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
15150         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
15151         New functions.
15152         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
15153         (mips_print_operand): Process COP0 registers to print $0 .. $31
15154         correctly for GAS to process.
15155         (mips_interrupt_extra_call_saved_reg_p): New function.
15156         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
15157         extra registers.
15158         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
15159         (mips_compute_frame_info): Add supports for interrupt context that
15160         includes doubleword accumulators and COP0 registers.
15161         (mips_for_each_saved_acc): New function.
15162         (mips_for_each_saved_gpr_and_fpr): Change the function name from
15163         mips_for_each_saved_reg.
15164         (mips_save_reg): Save accumulators.
15165         (mips_kernel_reg_p): A new for_each_rtx callback.
15166         (mips_expand_prologue): Support interrupt handlers.
15167         (mips_restore_reg): Restore accumulators.
15168         (mips_expand_epilogue): Support interrupt handlers.
15169         (mips_can_use_return_insn): Return false for interrupt handlers.
15170         (mips_epilogue_uses): New function.
15171         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
15172         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
15173         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
15174         cop0_move): New instructions.
15175         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
15176         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
15177         defines.
15178         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
15179         New defines.
15180         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
15181         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
15182         interrupt handlers, we use K0 as the temporary register.
15183         (EPILOGUE_USES): Change to a function call.
15184         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
15185         handlers, we use K0 as the temporary register.
15186
15187         * doc/extend.texi (Function Attributes): Document interrupt,
15188         use_shadow_register_set, keep_interrupts_masked,
15189         use_debug_exception_return for MIPS attributes.
15190
15191 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
15192
15193         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
15194         Remove a number of t-files from tmake_file.
15195         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
15196         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
15197         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
15198         target_prototype, not TARGET_PROTOTYPE.
15199         (LINK_OS_GNU_SPEC): Define.
15200         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
15201         and darwin-ldoubdle.c.
15202
15203 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15204
15205         PR driver/39293
15206         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
15207         (cpp_options): Ditto.
15208         (default_compilers): Ditto.
15209         (display_help): Ditto.
15210         (process_command): Ditto.
15211         (do_spec_1): Ditto.
15212         (set_input): Use lbasename instead of duplicate code.
15213         (save_temps_prefix): New static for -save-temps=obj.
15214         (save_temps_length): Ditto.
15215
15216         * doc/invoke.texi (-save-temps=obj): Document new variant to
15217         -save-temps switch.
15218
15219 2009-04-02  Jeff Law  <law@redhat.com>
15220
15221         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
15222         variable.
15223
15224 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15225
15226         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
15227         * configure: Regenerated.
15228
15229 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15230
15231         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
15232         share the argument list.
15233
15234 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15235
15236         Merge
15237
15238         2009-02-12  Diego Novillo  <dnovillo@google.com>
15239
15240         * varpool.c (debug_varpool): New.
15241         * cgraph.h (debug_varpool): Declare.
15242
15243 2009-04-02  Jan Hubicka  <jh@suse.cz>
15244
15245         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
15246         pass.
15247
15248 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
15249
15250         * config/i386/i386.c (ix86_abi): Move initialization to ...
15251         (override_options): Here.
15252
15253 2009-04-02  Christian Bruel  <christian.bruel@st.com>
15254
15255         * config/sh/sh.c (sh_dwarf_register_span): New function.
15256         (TARGET_DWARF_REGISTER_SPAN): Define.
15257         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
15258
15259 2009-04-02  Ira Rosen  <irar@il.ibm.com>
15260
15261         PR tree-optimization/39595
15262         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
15263         interleaved loads group is not  greater than the SLP group size.
15264
15265 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
15266
15267         * builtins.c (is_builtin_name): New.
15268         (called_as_built_in): Use is_builtin_name.
15269         * tree.h (is_builtin_name): New.
15270         * varasm.c (incorporeal_function_p): Use is_builtin_name
15271
15272 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
15273
15274         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
15275
15276 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
15277
15278         PR c++/26693
15279         * c-decl.c (clone_underlying_type): Move this ...
15280         * c-common.c (set_underlying_type): ... here.
15281         Also, make sure the function properly sets TYPE_STUB_DECL() on
15282         the newly created typedef variant type.
15283         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
15284         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
15285         points.
15286
15287 2009-04-02  Richard Guenther  <rguenther@suse.de>
15288
15289         PR tree-optimization/37221
15290         * tree-flow.h (degenerate_phi_result): Declare.
15291         * tree-ssa-dom.c (degenerate_phi_result): Export.
15292         * tree-scalar-evolution.c (analyze_initial_condition): If
15293         the initial condition is defined by a degenerate PHI node
15294         use the degenerate value.
15295
15296 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
15297
15298         PR rtl-optimization/39588
15299         * combine.c (merge_outer_ops): Do not set the constant when this
15300         is not necessary.
15301         (simplify_shift_const_1): Do not modify it either in this case.
15302
15303 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
15304
15305         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
15306         tuning is deprecated if -mtune value is set to an Itanium1 variant.
15307
15308 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
15309
15310         PR c/29027
15311         * c-lex.c (interpret_float): Default (no suffix) is double.
15312
15313 2009-04-1  Xinliang David Li  <davidxl@google.com>
15314
15315         * config/i386/i386.c (legitimate_constant_p): Recognize
15316         all one vector constant.
15317
15318 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15319
15320         * config/vax/vax.c: Add #includes to silence warnings.
15321         Change #include order to silence two warnings.
15322
15323 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15324
15325         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
15326         (ASM_SPEC): Pass -k to the assembler for PIC code.
15327
15328 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15329
15330         * config.gcc: Add vax-*-linux* to the switch.
15331         * config/vax/linux.h: New file. (TARGET_VERSION,
15332         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
15333
15334 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15335
15336         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
15337         Use predicate macros instead of GET_CODE() == foo.
15338         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
15339         ashlsi3, rotrsi3, <unnamed>): Likewise.
15340
15341 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15342
15343         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
15344         jbbccihi, jbbccisi): Remova trailing whitespace.
15345         * config/vax/constraints.md: Likewise.
15346         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15347         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
15348         * config/vax/predicates.md: Likewise.
15349         * config/vax/vax.c (print_operand_address, vax_output_int_move,
15350         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
15351         * config/vax/vax.h: Likewise.
15352         * config/vax/vax.md (nonlocal_goto): Likewise.
15353
15354 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15355
15356         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
15357         (indirectable_address_p, adjacent_operands_p): Add spaces around
15358         braces.
15359         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
15360
15361 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15362
15363         * config/vax/vax.c (legitimate_constant_address_p,
15364         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
15365         index_term_p, reg_plus_index_p, legitimate_address_p,
15366         vax_mode_dependent_address_p): Update comments to match functions
15367         modified by the recent int->bool conversion.
15368
15369 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15370
15371         * config/vax/builtins.md: Update copyright message.
15372         * config/vax/constraints.md: Likewise.
15373         * config/vax/netbsd-elf.h: Likewise.
15374         * config/vax/predicates.md: Likewise.
15375         * config/vax/vax-protos.h: Likewise.
15376         * config/vax/vax.c: Likewise.
15377         * config/vax/vax.h: Likewise.
15378         * config/vax/vax.md: Likewise.
15379         * config/vax/vax.opt: Likewise.
15380
15381 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
15382
15383         * config/vax/builtins.md (ffssi2, ffssi2_internal,
15384         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
15385         * config/vax/constraints.md (B, R): Likewise.
15386         * config/vax/predicates.md (external_memory_operand,
15387         nonimmediate_addsub_di_operand): Likewise.
15388         * config/vax/vax.c (vax_output_int_add): Likewise.
15389         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
15390         untyped_call): Likewise.
15391
15392 2009-04-01  Matt Thomas  <matt@3am-software.com>
15393
15394         * config/vax/predicates.md: New file.
15395         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
15396         external_const_operand, nonsymbolic_operand, external_memory_operand,
15397         indirect_memory_operand, indexed_memory_operand,
15398         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
15399         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
15400         predicate.
15401         * config/vax/constraints.md: New file.
15402         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
15403         New constraint.
15404         * config/vax/builtins.md: New file.
15405         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
15406         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
15407         jbbccisi): Define.
15408         * config/vax/vax.opt (mqmath): Add option.
15409         * config/vax/vax.md (isfx): Extend with DI.
15410         (VAXintQH, VAXintQHSD): Define.
15411         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
15412         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
15413         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
15414         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
15415         (movdi): Update constraints and use vax_output_int_move().
15416         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
15417         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
15418         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
15419         nonlocal_goto): New.
15420         (mov<mode>): Extend accepted operand types.
15421         (subdi3_old): Rename from subdi3, change update constraints and use
15422         a new implementation.
15423         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
15424         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
15425         MOVE_RATIO, CLEAR_RATIO): Define.
15426         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
15427         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
15428         (PRINT_OPERAND): Redefine using a function instead of inlined code.
15429         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
15430         (split_quadword_operands): Make static and really allow variable
15431         splitting.
15432         (print_operand_address): Update for PIC generation.
15433         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
15434         indexable_address_p, fixup_mathdi_operand,
15435         vax_expand_addsub_di_operands, adjacent_operands_p): New.
15436         (vax_float_literal, legitimate_constant_p,
15437         indirectable_constant_address_p, index_term_p,
15438         reg_plus_index_p): Return bool instead of int.
15439         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
15440         where needed.
15441         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
15442         generation.
15443         (vax_output_conditional_branch): Indent.
15444         (legitimate_constant_address_p, indirectable_constant_address_p,
15445         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
15446         vax_mode_dependent_address_p): Return bool instead of int, update for
15447         PIC generation.
15448         * config/vax/vax-protos.h (legitimate_constant_address_p,
15449         legitimate_constant_p, legitimate_address_p,
15450         vax_mode_dependent_address_p): Change declaration to bool.
15451         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
15452         vax_expand_addsub_di_operands, vax_output_int_subtract,
15453         vax_output_movmemsi): Declare.
15454         (split_quadword_operands, vax_float_literal): Delete declaration.
15455         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
15456         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
15457         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
15458         ASM_OUTPUT_DWARF_PCREL): Define.
15459         (ASM_SPEC): Change definition to allow PIC generation.
15460
15461 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
15462
15463         * doc/sourcebuild.texi: Update front-end requirements.
15464
15465 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15466
15467         PR target/39226
15468         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
15469         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
15470         (booldi3_internal3): Use boolean_or_operator instead of
15471         boolean_operator.
15472
15473 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
15474
15475         PR c/39605
15476         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
15477         declarator whose size is not an integer constant expression but
15478         folds to an integer constant, then treat it as a constant
15479         subsequently.
15480
15481 2009-04-01  Richard Guenther  <rguenther@suse.de>
15482
15483         * fold-const.c (fold_plusminus_mult_expr): Do not fold
15484         i * 4 + 2 to (i * 2 + 1) * 2.
15485
15486 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15487
15488         PR c/37772
15489         * c-parser.c (c_parser_asm_statement): Skip until close paren and
15490         return if c_parser_asm_string_literal returned NULL.
15491
15492 2009-04-01  Nick Clifton  <nickc@redhat.com>
15493
15494         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
15495         already defined.
15496         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
15497         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
15498         other typedefs to avoid conflicts with libgcc2.c.  Define labels
15499         to gain 16-bit bit-manipulation functions from libgcc2.c and then
15500         include it.
15501         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
15502         to gain 16-bit trapping arithmetic functions from libgcc2.c and
15503         then include it.
15504
15505 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
15506
15507         * varasm.c (default_function_rodata_section): Declare DOT as
15508         const char*.
15509
15510 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
15511             Andrey Galkin  <agalkin@hypercom.com>
15512
15513         PR/39492
15514         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
15515         Make object_name unique for each process.
15516
15517 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
15518
15519         PR other/39591
15520         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
15521         addressable variables in the parallel that could go out of scope while
15522         running queued tasks.
15523
15524 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
15525
15526         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
15527         (CASE_VALUES_THRESHOLD): Redefine.
15528         * config/avr/avr.c (avr_override_options): Remove initialization of
15529         avr_case_values_threshold variable.
15530         (avr_case_values_threshold): Remove variable. Add new function.
15531         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
15532         * config/avr/avr.opt (mno-tablejump): Remove option.
15533         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
15534
15535 2009-04-01  DJ Delorie  <dj@redhat.com>
15536
15537         * varasm.c (default_function_rodata_section): Don't assume
15538         anything about where the first '.' in the section name is.
15539
15540 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
15541
15542         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
15543         rs6000_emit_stack_tie.
15544
15545 2009-03-31  Ian Lance Taylor  <iant@google.com>
15546
15547         * tree-eh.c (tree_remove_unreachable_handlers): Compare
15548         gimple_code with GIMPLE_RESX, not RESX.
15549
15550 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15551
15552         * c-common.c (c_get_ident): New.
15553         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
15554
15555 2009-04-01  Ben Elliston  <bje@au.ibm.com>
15556
15557         * config/rs6000/sysv4.opt (msdata): Improve option description.
15558
15559 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
15560
15561         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
15562         (divdf3_internal_lat): Remove.
15563         (divxf3_internal_lat): Remove.
15564         (divxf3_internal_thr): Remove.
15565         (divxf): Use divxf3_internal.
15566         * config/ia64/div.md (divsf3_internal_lat): New.
15567         (divdf3_internal_lat): New.
15568         (divxf3_internal): New.
15569
15570 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15571
15572         PR c/448
15573         * Makefile.in (USE_GCC_STDINT): Define.
15574         (stmp-int-hdrs): Install stdint.h if applicable.
15575         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
15576         if known.
15577         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
15578         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
15579         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15580         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15581         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15582         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15583         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15584         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15585         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15586         (c_common_nodes_and_builtins): Initialize
15587         underlying_wchar_type_node.  Do not initialize
15588         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
15589         nodes for new types.
15590         (c_stddef_cpp_builtins): Define macros for new types.
15591         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
15592         Remove.
15593         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
15594         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
15595         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
15596         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
15597         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
15598         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
15599         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
15600         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
15601         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
15602         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
15603         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
15604         int16_type_node, int32_type_node, int64_type_node,
15605         uint8_type_node, uint16_type_node, c_uint32_type_node,
15606         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
15607         int_least32_type_node, int_least64_type_node,
15608         uint_least8_type_node, uint_least16_type_node,
15609         uint_least32_type_node, uint_least64_type_node,
15610         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
15611         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
15612         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
15613         uintptr_type_node): Define.
15614         * c-cppbuiltin.c (builtin_define_constants,
15615         builtin_define_type_minmax): New.
15616         (builtin_define_stdint_macros): Define more macros.
15617         (c_cpp_builtins): Define more limit macros.
15618         (type_suffix): New.
15619         (builtin_define_type_max): Define in terms of
15620         builtin_define_type_minmax.  Remove is_long parameter.  All
15621         callers changed.
15622         * config.gcc (use_gcc_stdint): Define.
15623         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
15624         Add newlib-stdint.h for generic targets.
15625         * config/glibc-stdint.h, config/newlib-stdint.h,
15626         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
15627         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
15628         * config/score/score.h (UINTPTR_TYPE): Define.
15629         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15630         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15631         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15632         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15633         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15634         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15635         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15636         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15637         * config/spu/spu.h (STDINT_LONG32): Define.
15638         * configure.ac (use_gcc_stdint): Substitute.
15639         * configure: Regenerate.
15640         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
15641         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
15642         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
15643         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
15644         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
15645         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
15646         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
15647         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
15648         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
15649         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
15650         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
15651         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
15652         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
15653         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
15654         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
15655         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
15656         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
15657         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
15658         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
15659         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
15660         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
15661         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
15662         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
15663         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15664         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15665         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15666         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15667         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15668         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
15669
15670 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
15671
15672         * loop-iv.c (suitable_set_for_replacement): Renamed from
15673         simplify_using_assignment; changed to return bool and to accept new
15674         args DEST and SRC.  Return true iff we find a source/destination pair
15675         that can be used to make a replacement, and fill SRC and DEST if so.
15676         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
15677         changed.
15678         (simplify_using_initial_values): Deal with altered regs here and track
15679         more precisely the effect they have on the validity of our expression.
15680
15681         * loop-iv.c (simplify_using_condition): A condition of the form
15682         (EQ REG CONST) can be used to simply make a substitution.
15683         (simplify_using_initial_values): Keep track of conditions we have seen
15684         and keep using them to simplify new expressions, while applying the
15685         same substitutions to them as to the expression.
15686
15687         * simplify-rtx.c (simplify_relational_operation_1): Simplify
15688         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
15689         GEU/LTU reversed.
15690
15691         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
15692         changed.  Use this when trying to improve the upper bound.
15693         Generate the comparison by using simplify_gen_relational.
15694
15695         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
15696
15697         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
15698         functions.
15699         (simplify_using_assignment, simplify_using_initial_values): Call
15700         replace_in_expr to make replacements.  Call replace_single_def_regs
15701         once on the initial version of the expression.
15702
15703 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15704
15705         PR target/27237
15706         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
15707
15708 2009-03-31  Richard Guenther  <rguenther@suse.de>
15709
15710         PR middle-end/31029
15711         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
15712         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
15713
15714 2009-03-31  Richard Guenther  <rguenther@suse.de>
15715
15716         * tree.h (div_if_zero_remainder): Declare.
15717         * fold-const.c (div_if_zero_remainder): Export.
15718         * tree-ssa-forwprop.c
15719         (forward_propagate_addr_into_variable_array_index): Handle
15720         constant array index addition outside of the variable index.
15721
15722 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15723
15724         PR target/39592
15725         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
15726         define_splits, floatunssi<mode>2): Require x87 conversions from
15727         DImode to be permitted.
15728
15729 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
15730
15731         PR preprocessor/15638
15732         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
15733
15734 2009-03-31  Richard Guenther  <rguenther@suse.de>
15735
15736         PR middle-end/23401
15737         PR middle-end/27810
15738         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
15739         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
15740         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
15741         a separate statement.
15742         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
15743         (lookup_tmp_var): Likewise.
15744         (is_gimple_formal_tmp_or_call_rhs): Remove.
15745         (is_gimple_reg_or_call_rhs): Rename to ...
15746         (is_gimple_reg_rhs_or_call): ... this.
15747         (is_gimple_mem_or_call_rhs): Rename to ...
15748         (is_gimple_mem_rhs_or_call): ... this.
15749         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
15750         DECL_GIMPLE_REG_P only if is_formal is true.
15751         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
15752         for non-proper post-modify expression gimplification.
15753         (gimplify_self_mod_expr): For post-modify expressions gimplify
15754         the lvalue to a minimal lvalue.
15755         (rhs_predicate_for): Remove formal temp case.
15756         (gimplify_modify_expr_rhs): Likewise.
15757         (gimplify_addr_expr): Use is_gimple_reg.
15758         (gimplify_expr): Remove formal temp cases.
15759         (gimple_regimplify_operands): Likewise.
15760         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
15761         and FILTER_EXPR like constants.
15762         * gimple.c (walk_gimple_op): Fix val_only initialization, use
15763         is_gimple_reg.
15764         (is_gimple_formal_tmp_rhs): Remove.
15765         (is_gimple_reg_rhs): Remove special casing.
15766         (is_gimple_mem_rhs): Fix.
15767         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
15768         (is_gimple_formal_tmp_var): Remove.
15769         (is_gimple_formal_tmp_reg): Likewise.
15770         (is_gimple_min_lval): Allow invariant component ref parts.
15771         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
15772         is_gimple_formal_tmp_reg): Remove declarations.
15773         * tree-cfg.c (verify_expr): Verify that variables with address
15774         taken do not have DECL_GIMPLE_REG_P set.
15775         * tree-mudflap.c (mf_build_check_statement_for): Use
15776         force_gimple_operand instead of gimplify_expr.
15777
15778 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
15779
15780         * modulo-sched.c (sms_schedule_by_order): Pass the actual
15781         schedulable rows to compute_split_row.
15782
15783 2009-03-31  Ben Elliston  <bje@au.ibm.com>
15784
15785         PR target/31635
15786         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
15787         OPT_mvrsave.
15788
15789 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
15790
15791         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
15792         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
15793         * configure: Regenerate.
15794         * config.in: Regenerate.
15795         * config/rs6000/rs6000.opt (mtls-markers): Add.
15796         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
15797         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
15798         (tls_ld_aix, tls_ld_sysv): Likewise.
15799         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
15800         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
15801
15802 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
15803
15804         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
15805
15806 2009-03-30  Jan Hubicka  <jh@suse.cz>
15807
15808         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
15809         out of RESX.
15810         (tree_remove_unreachable_handlers): Cleanup EH predecestor
15811         detection and label handling.
15812
15813 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15814
15815         * ira-int.h (ira_allocno): Rename left_conflicts_num to
15816         left_conflicts_size.
15817         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
15818         ALLOCNO_LEFT_CONFLICTS_SIZE.
15819
15820         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
15821         remove_allocno_from_bucket_and_push,
15822         allocno_spill_priority_compare, push_allocnos_to_stack,
15823         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
15824         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
15825         (setup_allocno_left_conflicts_num): Ditto.  Rename to
15826         setup_allocno_left_conflicts_size.
15827         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
15828         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
15829         setup_allocno_left_conflicts_size instead of
15830         setup_allocno_left_conflicts_num.
15831
15832         * ira-build.c (ira_create_allocno): Use
15833         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
15834         ALLOCNO_LEFT_CONFLICTS_NUM.
15835
15836 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
15837
15838         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
15839         instead of DF_LR_OUT.
15840
15841         * ira-lives.c (process_bb_node_lives): Ditto.
15842
15843         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
15844         instead of DF_LR_{OUT,IN}.
15845
15846         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
15847
15848         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
15849
15850 2009-03-30  Jan Hubicka  <jh@suse.cz>
15851
15852         * except.c (label_to_region_map): Fix thinko.
15853
15854 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
15855
15856         PR middle-end/38237
15857         * tree.h (tree_find_value): New declaration.
15858         * tree.c (tree_find_value): New function.
15859         * varasm.c (assemble_external): Avoid duplicate entries on lists.
15860
15861 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
15862
15863         PR debug/39563
15864         * c-decl.c (struct c_binding): Add locus field.
15865         (bind): Add locus argument, set locus field from it.
15866         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
15867         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
15868         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
15869         implicitly_declare, undeclared_variable, lookup_label,
15870         declare_label, c_make_fname_decl, c_builtin_function,
15871         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
15872         bind callers.
15873
15874 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
15875
15876         PR target/38781
15877         * config/i386/i386.c (classify_argument): Check total size of
15878         structure.
15879
15880 2009-03-30  Martin Jambor  <mjambor@suse.cz>
15881
15882         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
15883         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
15884         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
15885         respectively.
15886
15887         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
15888         seen_variable_array_ref while also traversing a union.
15889
15890         * tree-inline.c (optimize_inline_calls): Do not call
15891         cgraph_node_remove_callees.
15892         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
15893         (pass_remove_cgraph_callee_edges): New variable.
15894         * passes.c (init_optimization_passes): Add
15895         pass_remove_cgraph_callee_edges after early inlining and before all
15896         late intraprocedural passes.
15897
15898         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
15899
15900 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15901
15902         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
15903         Fix typos in names.
15904
15905 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15906
15907         * combine.c (simplify_comparison): Use have_insn_for.
15908         * dojump.c (do_jump): Likewise.
15909
15910 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15911
15912         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
15913         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
15914         sparc_compare_op0 like sparc_compare_emitted used to be handled.
15915         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
15916         instead of sparc_compare_emitted.
15917         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
15918         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
15919         instead of sparc_compare_emitted.
15920
15921 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15922
15923         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
15924         enter/exit cfglayout mode.
15925         (pass_partition_block): Require it.
15926         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
15927         (combine_instructions): Track basic blocks instead of labels.
15928         (update_cfg_for_uncondjump): New.
15929         (try_combine): Use it.  Update jumps after rescanning.
15930         (pass_combine): Require PROP_cfglayout.
15931         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
15932
15933 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15934
15935         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
15936         Provide/destroy PROP_cfglayout respectively.
15937         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
15938         * tree-pass.h (PROP_cfglayout): New.
15939
15940 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
15941
15942         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
15943         fold_convert_const_fixed_from_fixed,
15944         fold_convert_const_fixed_from_int,
15945         fold_convert_const_fixed_from_real, fold_negate_const): Do not
15946         set TREE_CONSTANT_OVERFLOW.
15947         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
15948         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
15949
15950 2009-03-30  Ira Rosen  <irar@il.ibm.com>
15951
15952         * tree-vect-loop-manip.c: New file.
15953         * tree-vectorizer.c: Update documentation and included files.
15954         (vect_loop_location): Make extern.
15955         (rename_use_op): Move to tree-vect-loop-manip.c
15956         (rename_variables_in_bb, rename_variables_in_loop,
15957         slpeel_update_phis_for_duplicate_loop,
15958         slpeel_update_phi_nodes_for_guard1,
15959         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
15960         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
15961         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
15962         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
15963         find_loop_location): Likewise.
15964         (new_stmt_vec_info): Move to tree-vect-stmts.c.
15965         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
15966         get_vectype_for_scalar_type, vect_is_simple_use,
15967         supportable_widening_operation, supportable_narrowing_operation):
15968         Likewise.
15969         (bb_in_loop_p): Move to tree-vect-loop.c.
15970         (new_loop_vec_info, destroy_loop_vec_info,
15971         reduction_code_for_scalar_code, report_vect_op,
15972         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
15973         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
15974         (vect_supportable_dr_alignment): Likewise.
15975         * tree-vectorizer.h (tree-data-ref.h): Include.
15976         (vect_loop_location): Declare.
15977         Reorganize function declarations according to the new file structure.
15978         * tree-vect-loop.c: New file.
15979         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
15980         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
15981         * tree-vect-data-refs.c: New file.
15982         * tree-vect-patterns.c (timevar.h): Don't include.
15983         * tree-vect-stmts.c: New file.
15984         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
15985         tree-vect-slp.c, tree-vect-loop.c.
15986         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
15987         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
15988         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
15989         (tree-vect-analyze.o): Remove.
15990         (tree-vect-transform.o): Likewise.
15991         (tree-vect-data-refs.o): Add rule.
15992         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
15993         tree-vect-slp.o): Likewise.
15994         (tree-vect-patterns.o): Remove redundant dependencies.
15995         (tree-vectorizer.o): Likewise.
15996         * tree-vect-slp.c: New file.
15997
15998 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15999
16000         * optc-gen.awk: Warn if an option flag has multiple different
16001         help strings.
16002
16003 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
16004
16005         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
16006         -floop-block): Document dependences on PPL, CLooG and Graphite.
16007
16008 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16009
16010         PR rtl-optimization/323
16011         * c-common.c (c_fully_fold, convert_and_check,
16012         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
16013         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
16014         * c-common.def (EXCESS_PRECISION_EXPR): New.
16015         * c-cppbuiltin.c (builtin_define_float_constants): Define
16016         constants with enough digits for long double.
16017         * c-lex.c (interpret_float): Interpret constant with excess
16018         precision where appropriate.
16019         * c-opts.c (c_common_post_options): Set
16020         flag_excess_precision_cmdline.  Give an error for
16021         -fexcess-precision=standard for C++ for processors where the
16022         option is significant.
16023         * c-parser.c (c_parser_conditional_expression): Handle excess
16024         precision in condition.
16025         * c-typeck.c (convert_arguments): Handle arguments with excess
16026         precision.
16027         (build_unary_op): Move excess precision outside operation.
16028         (build_conditional_expr): Likewise.
16029         (build_compound_expr): Likewise.
16030         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
16031         (build_modify_expr): Handle excess precision in RHS.
16032         (convert_for_assignment): Handle excess precision in converted
16033         value.
16034         (digest_init, output_init_element, process_init_element): Handle
16035         excess precision in initializer.
16036         (c_finish_return): Handle excess precision in return value.
16037         (build_binary_op): Handle excess precision in operands and add
16038         excess precision as needed for operation.
16039         * common.opt (-fexcess-precision=): New option.
16040         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
16041         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
16042         For standard excess precision, output explicit conversion to and
16043         truncation from XFmode.
16044         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
16045         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
16046         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
16047         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
16048         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
16049         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
16050         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
16051         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
16052         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
16053         define_splits, sqrt<mode>2): Disable where appropriate for
16054         standard excess precision.
16055         * convert.c (convert_to_real): Do not shorten arithmetic to type
16056         for which excess precision would be used.
16057         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
16058         * doc/invoke.texi (-fexcess-precision=): Document option.
16059         (-mfpmath=): Correct index entry.
16060         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
16061         flag_excess_precision): New.
16062         * langhooks.c (lhd_post_options): Set
16063         flag_excess_precision_cmdline.
16064         * opts.c (common_handle_option): Handle -fexcess-precision=.
16065         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
16066         init_excess_precision): New.
16067         (lang_dependent_init_target): Call init_excess_precision.
16068         * tree.c (excess_precision_type): New.
16069         * tree.h (excess_precision_type): Declare.
16070
16071 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
16072
16073         PR c/35235
16074         * c-typeck.c (build_component_ref): Do not copy qualifiers from
16075         non-lvalue to component.
16076
16077 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16078
16079         PR preprocessor/34695
16080         * Makefile.in (c-opts.o): Depend on c-tree.h.
16081         * c-common.c: Move down include of diagnostic.h.
16082         (done_lexing, c_cpp_error): New.
16083         * c-common.h (done_lexing): Declare.
16084         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
16085         (parse_in).
16086         * c-opts.c: Include c-tree.h.
16087         (c_common_init_options): Set preprocessor error callback.
16088         (c_common_handle_option): Do not set preprocessor
16089         inhibit_warnings, warnings_are_errors, warn_system_headers,
16090         pedantic_errors or inhibit_warnings flags.
16091         (c_common_post_options): Do not check cpp_errors (parse_in).
16092         (c_common_finish): Do not output dependencies if there were
16093         errors.  Do not check return value of cpp_finish.
16094         * c-ppoutput.c (pp_file_change): Set input_location.
16095         * c-tree.h (c_cpp_error): Declare.
16096         * diagnostic.c (diagnostic_set_info_translated): Also initialize
16097         override_column.
16098         (diagnostic_build_prefix): Check override_column.
16099         * diagnostic.h (diagnostic_info): Add override_column field.
16100         (diagnostic_override_column): Define.
16101
16102 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
16103
16104         * c-common.c (c_expand_expr, c_staticp): Remove.
16105         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
16106         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
16107         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
16108         * c-gimplify.c (gimplify_compound_literal_expr,
16109         optimize_compound_literals_in_ctor): Remove.
16110         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
16111         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
16112         * c-semantics.c (emit_local_var): Remove.
16113
16114         * langhooks-def.h (lhd_expand_expr): Remove.
16115         * langhooks.c (lhd_expand_expr): Remove.
16116         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
16117
16118         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
16119         handling from c-semantics.c; don't call into langhook.
16120         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
16121         * gimplify.c (gimplify_compound_literal_expr,
16122         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
16123         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
16124         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
16125         as was done in c-gimplify.c.
16126         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
16127         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
16128         Move from c-common.h.
16129         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
16130
16131         * tree.c (staticp): Do not call langhook.
16132         * langhooks.c (lhd_staticp): Delete.
16133         * langhooks-def.h (lhd_staticp): Delete prototype.
16134         (LANG_HOOKS_STATICP): Delete.
16135         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
16136
16137         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
16138         instead of DECL_STMTs.
16139
16140 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
16141
16142         PR c/456
16143         PR c/5675
16144         PR c/19976
16145         PR c/29116
16146         PR c/31871
16147         PR c/35198
16148         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
16149         void_type_node.
16150         (fold_call_expr): Return a NOP_EXPR from folding rather than the
16151         contained expression.
16152         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
16153         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
16154         conditional expressions for C.
16155         (decl_constant_value_for_optimization): Move from
16156         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
16157         whether optimizing and that the expression is a VAR_DECL not of
16158         array type instead of doing such checks in the caller.  Do not
16159         check pedantic.  Call gcc_unreachable for C++.
16160         * c-common.def (C_MAYBE_CONST_EXPR): New.
16161         * c-common.h (c_fully_fold, c_save_expr,
16162         decl_constant_value_for_optimization): New prototypes.
16163         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
16164         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
16165         EXPR_INT_CONST_OPERANDS): Define.
16166         * c-convert.c (convert): Strip nops from expression.
16167         * c-decl.c (groktypename): Take extra parameters expr and
16168         expr_const_operands.  Update call to grokdeclarator.
16169         (start_decl): Update call to grokdeclarator.  Add statement for
16170         expressions used in type of decl.
16171         (grokparm): Update call to grokdeclarator.
16172         (push_parm_decl): Update call to grokdeclarator.
16173         (build_compound_literal): Add parameter non_const and build a
16174         C_MAYBE_COSNT_EXPR if applicable.
16175         (grokdeclarator): Take extra parameters expr and
16176         expr_const_operands.  Track expressions used in declaration
16177         specifiers and declarators.  Fold array sizes and track whether
16178         they are constant expressions and whether they are integer
16179         constant expressions.
16180         (parser_xref_tag): Set expr and expr_const_operands fields in
16181         return value.
16182         (grokfield): Update call to grokdeclarator.
16183         (start_function): Update call to grokdeclarator.
16184         (build_null_declspecs): Set expr and expr_const_operands fields in
16185         return value.
16186         (declspecs_add_type): Handle expressions in typeof specifiers.
16187         * c-parser.c (c_parser_declspecs): Set expr and
16188         expr_const_operands fields for declaration specifiers.
16189         (c_parser_enum_specifier): Likewise.
16190         (c_parser_struct_or_union_specifier): Likewise.
16191         (c_parser_typeof_specifier): Likewise.  Update call to
16192         groktypename.  Fold expression as needed.  Return expressions with
16193         type instead of adding statements.
16194         (c_parser_attributes): Update calls to c_parser_expr_list.
16195         (c_parser_statement_after_labels): Fold expression before passing
16196         to objc_build_throw_stmt.
16197         (c_parser_condition): Fold expression.
16198         (c_parser_asm_operands): Fold expression.
16199         (c_parser_conditional_expression): Use c_save_expr.  Update call
16200         to build_conditional_expr.
16201         (c_parser_alignof_expression): Update call to groktypename.
16202         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
16203         original_code.  Fold expression argument of va_arg.  Create
16204         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
16205         argument to va_arg.  Update calls to groktypename.  Fold array
16206         index for offsetof.  Verify that first argument to
16207         __builtin_choose_expr has integer type.
16208         (c_parser_postfix_expression_after_paren_type): Update calls to
16209         groktypename and build_compound_literal.  Handle expressions with
16210         side effects in type name.
16211         (c_parser_postfix_expression_after_primary): Update call to
16212         c_parser_expr_list.  Set original_code for calls to
16213         __builtin_constant_p.
16214         (c_parser_expr_list): Take extra parameter fold_p.  Fold
16215         expressions if requested.
16216         (c_parser_objc_type_name): Update call to groktypename.
16217         (c_parser_objc_synchronized_statement): Fold expression.
16218         (c_parser_objc_receiver): Fold expression.
16219         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
16220         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
16221         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
16222         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
16223         (struct c_typespec): Add elements expr and expr_const_operands.
16224         (struct c_declspecs): Add elements expr and expr_const_operands.
16225         (groktypename, build_conditional_expr, build_compound_literal):
16226         Update prototypes.
16227         (in_late_binary_op): Declare.
16228         * c-typeck.c (note_integer_operands): New function.
16229         (in_late_binary_op): New variable.
16230         (decl_constant_value_for_broken_optimization): Move to c-common.c
16231         and rename to decl_constant_value_for_optimization.
16232         (default_function_array_conversion): Do not strip nops.
16233         (default_conversion): Do not call
16234         decl_constant_value_for_broken_optimization.
16235         (build_array_ref): Do not fold result.
16236         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
16237         result when operand is a VLA.
16238         (c_expr_sizeof_type): Update call to groktypename.  Handle
16239         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
16240         result when operand names a VLA type.
16241         (build_function_call): Update call to build_compound_literal.
16242         Only fold result for calls to __builtin_* functions.  Strip
16243         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
16244         the function designator.
16245         (convert_arguments): Fold arguments.  Update call to
16246         convert_for_assignment.
16247         (build_unary_op): Handle increment and decrement of
16248         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
16249         decrement earlier.  Fold operand of increment and decrement.
16250         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
16251         built for integer operand.  Wrap returns that are INTEGER_CSTs
16252         without being integer constant expressions or that have integer
16253         constant operands without being INTEGER_CSTs.
16254         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
16255         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
16256         result is an integer constant expression or can be used in
16257         unevaluated parts of one and avoid folding and wrap as
16258         appropriate.  Fold operands before possibly doing -Wsign-compare
16259         warnings.
16260         (build_compound_expr): Wrap result for C99 if operands can be used
16261         in integer constant expressions.
16262         (build_c_cast): Update call to digest_init.  Do not ignore
16263         overflow from casting floating-point constants to integers.  Wrap
16264         results that could be confused with integer constant expressions,
16265         null pointer constants or floating-point constants.
16266         (c_cast_expr): Update call to groktypename.  Handle expressions
16267         included in type name.
16268         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
16269         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
16270         Update calls to convert_for_assignment.
16271         (convert_for_assignment): Take new parameter
16272         null_pointer_constant.  Do not strip nops or call
16273         decl_constant_value_for_broken_optimization.  Set
16274         in_late_binary_op for conversions to boolean.
16275         (store_init_value): Update call to digest_init.
16276         (digest_init): Take new parameter null_pointer_constant.  Do not
16277         call decl_constant_value_for_broken_optimization.  pedwarn for
16278         initializers not constant expressions.  Update calls to
16279         convert_for_assignment.
16280         (constructor_nonconst): New.
16281         (struct constructor_stack): Add nonconst element.
16282         (really_start_incremental_init, push_init_level, pop_init_level):
16283         Handle constructor_nonconst and nonconst element.
16284         (set_init_index): Call constant_expression_warning for array
16285         designators.
16286         (output_init_element): Fold value.  Set constructor_nonconst as
16287         applicable.  pedwarn for initializers not constant expressions.
16288         Update call to digest_init.  Call constant_expression_warning
16289         where constant initializers are required.
16290         (process_init_element): Use c_save_expr.
16291         (c_finish_goto_ptr): Fold expression.
16292         (c_finish_return): Fold return value.  Update call to
16293         convert_for_assignment.
16294         (c_start_case): Fold switch expression.
16295         (c_process_expr_stmt): Fold expression.
16296         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
16297         ensure statement expression is not evaluated in constant expression.
16298         (build_binary_op): Track whether results are integer constant
16299         expressions or may occur in such, disable folding and wrap results
16300         as applicable.  Fold operands for -Wsign-compare warnings unless
16301         in_late_binary_op.
16302         (c_objc_common_truthvalue_conversion): Handle results folded to
16303         integer constants that are not integer constant expressions.
16304         * doc/extend.texi: Document when typeof operands are evaluated,
16305         that condition of __builtin_choose_expr is an integer constant
16306         expression, and more about use of __builtin_constant_p in
16307         initializers.
16308
16309 2009-03-29  Richard Guenther  <rguenther@suse.de>
16310
16311         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
16312         propagate addresses of array references.
16313
16314 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
16315
16316         * regmove.c (perhaps_ends_bb_p): Remove.
16317         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
16318         from INSN and check that the main loop stays within that basic block.
16319         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
16320         (regmove_forward_pass): Split out from regmove_optimize.  Use
16321         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
16322         (regmove_backward_pass): Split out from regmove_optimize.  Use
16323         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
16324         (regmove_optimize): Simplify.
16325
16326 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16327
16328         PR target/39545
16329         * config/i386/i386.c (classify_argument): Ignore flexible array
16330         member in struct and warn ABI change.
16331
16332 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
16333
16334         * config/i386/i386-protos.h (ix86_agi_dependent): New.
16335
16336         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
16337         (ix86_adjust_cost): Updated.
16338
16339 2009-03-29  Jan Hubicka  <jh@suse.cz>
16340
16341         PR middle-end/28850
16342         * tree-pass.h (pass_cleanup_eh): New function.
16343         (remove_unreachable_regions): Break code handling RTL
16344         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
16345         that can not be reached by runtime.
16346         (can_be_reached_by_runtime): New function.
16347         (label_to_region_map): New function.
16348         (num_eh_regions): New function.
16349         (rtl_remove_unreachable_regions): New function.
16350         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
16351         (remove_eh_region): New function.
16352         * except.h: Include sbitmap and vecprim.
16353         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
16354         num_eh_regions): Declare.
16355         * passes.c (init_optimization_passes): Schedule cleanup_eh.
16356         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
16357         * tree-eh.c (tree_remove_unreachable_handlers): New function.
16358         (tree_empty_eh_handler_p): New function.
16359         (cleanup_empty_eh): New function.
16360         (cleanup_eh): New function.
16361         (pass_cleanup_eh): New function.
16362
16363 2009-03-29  Jan Hubicka  <jh@suse.cz>
16364
16365         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
16366         for removed regions.
16367
16368 2009-03-29  Jan Hubicka  <jh@suse.cz>
16369
16370         * except.c (dump_eh_tree): Dump all datastructures.
16371
16372 2009-03-29  Jan Hubicka  <jh@suse.cz>
16373
16374         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
16375         (duplicate_eh_regions_1): Likewise.
16376         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
16377         vector; call EH verification.
16378         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16379         Be ready for region being removed.
16380
16381 2009-03-29  Jan Hubicka  <jh@suse.cz>
16382
16383         * bitmap.c (bitmap_last_set_bit): New function.
16384         * bitmap.h (bitmap_last_set_bit): Declare.
16385
16386 2009-03-29  David Ayers  <ayers@fsfe.org>
16387
16388         PR objc/27377
16389         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
16390         by calling objc_compare_types and surpress warnings about
16391         incompatible C pointers that are compatible ObjC pointers.
16392
16393 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
16394
16395         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
16396         call initialize_inline_failed.
16397         (initialize_inline_failed): Move it from here ...
16398         * cgraph.c (initialize_inline_failed): ... to here.
16399         (cgraph_create_edge): Call initialize_inline_failed rather than
16400         setting inline_failed directly.
16401
16402 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16403
16404         PR target/32542
16405         * sysv4.opt (msdata): Improve comment.
16406         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
16407         * sysv4.h (SVR4_ASM_SPEC): Likewise.
16408
16409 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16410
16411         PR target/30451
16412         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
16413         load and store attributes.
16414
16415 2009-03-29  Ben Elliston  <bje@au.ibm.com>
16416
16417         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
16418         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
16419         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
16420         * doc/extend.texi (X86 Built-in Functions): Add index entries for
16421         __builtin_infq and __builtin_huge_valq.
16422
16423 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
16424
16425         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
16426         atmega8m1 devices.
16427         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16428         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
16429
16430 2009-03-28  Xinliang David Li  <davidxl@google.com>
16431
16432         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
16433         (do_dbg_cnt): New function.
16434
16435 2009-03-28  Jan Hubicka  <jh@suse.cz>
16436
16437         Merge from pretty-ipa:
16438
16439         2009-03-27  Jan Hubicka  <jh@suse.cz>
16440
16441         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16442         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
16443         * passes.c (function_called_by_processed_nodes_p): New.
16444         * ipa-pure-const.c (check_call): Fix handling of operands.
16445         (analyze_function): Dump debug output for skipped bodies.
16446         (local_pure_const): Use function_called_by_processed_nodes_p.
16447         * dwarf2out.c (reference_to_unused): Use output.
16448         * passes.c (do_per_function_toporder): Likewise.
16449
16450         2008-11-12  Jan Hubicka  <jh@suse.cz>
16451
16452         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
16453         * ipa-pure-const.c (funct_state_d): Add can throw field; make
16454         state_set_in_source enum
16455         (check_decl): Ignore memory tags; do not set fake looping flags;
16456         dump diagnostics.
16457         (check_operand, check_tree, check_rhs_var, check_lhs_var,
16458         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
16459         (check_call, analyze_function): Rewrite.
16460         (check_stmt): New.
16461         (add_new_function): Update call of analyze_function.
16462         (generate_summary): Add call of analyze_function.
16463         (propagate): Propagate can_throw; handle state_set_in_source correctly.
16464         (local_pure_const): New function.
16465         (pass_local_pure_const): New pass.
16466         * ipa-inline.c (inline_transform): Set after_inlining.
16467         * tree-eh.c (stmt_can_throw_external): New.
16468         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
16469         work with aliasing built.
16470         * tree-flow.h (stmt_can_throw_external): New.
16471         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
16472         and local pure/const pass in early and late optimization queue.
16473
16474 2009-03-28  Martin Jambor  <mjambor@suse.cz>
16475
16476         * fold-const.c (get_pointer_modulus_and_residue): New parameter
16477         allow_func_align.
16478         (fold_binary): Allow function decl aligment consideration is the
16479         second argument is integer constant one.
16480         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
16481         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
16482         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
16483
16484 2009-03-28  Jan Hubicka  <jh@suse.cz>
16485
16486         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
16487         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
16488         * function.h (rtl_data): Add nothrow flag.
16489         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
16490         set DECL_NOTHROW for AVAILABLE functions.
16491
16492 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
16493
16494         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
16495         following vector keyword has expansion starting with pixel or bool
16496         keyword, expand vector to __vector and pixel or bool to __pixel or
16497         __bool.
16498
16499         PR c++/39554
16500         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
16501         warn_if_disallowed_function_p): Removed.
16502         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
16503         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
16504         warning_if_disallowed_function_p.
16505         * flags.h (warn_if_disallowed_function_p,
16506         warn_disallowed_functions): Removed.
16507         * common.opt (Wdisallowed-function-list=): Removed.
16508         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
16509
16510 2009-03-28  Richard Guenther  <rguenther@suse.de>
16511
16512         PR tree-optimization/38723
16513         * tree-ssa-pre.c (compute_avail): Add all default definitions to
16514         the entry block.
16515
16516 2009-03-28  Jan Hubicka  <jh@suse.cz>
16517
16518         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
16519         test introduced by my previous patch.
16520
16521 2009-03-28  Richard Guenther  <rguenther@suse.de>
16522
16523         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
16524         the PHIs value undefined.
16525
16526 2009-03-28  Jan Hubicka  <jh@suse.cz>
16527
16528         * tree-pass.h (pass_fixup_cfg): New pass.
16529         * ipa-inline.c (inline_transform): Set
16530         always_inline_functions_inlined/after_inlining.
16531         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
16532         (pass_fixup_cfg): New pass.
16533         * passes.c (init_optimization_passes): Add fixup_cfg.
16534
16535 2009-03-28  Richard Guenther  <rguenther@suse.de>
16536
16537         PR tree-optimization/38458
16538         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
16539         argument use the arguments copy-of value.
16540
16541 2009-03-28  Richard Guenther  <rguenther@suse.de>
16542
16543         PR tree-optimization/38180
16544         * tree-ssa-ccp.c (get_default_value): Simplify.
16545         (likely_value): Likewise.
16546         (surely_varying_stmt_p): Properly handle VOP case.
16547         (ccp_initialize): Likewise.
16548         (ccp_fold): Handle propagating through *&.
16549         (fold_const_aggregate_ref): Also handle decls.
16550
16551 2009-03-28  Jan Hubicka  <jh@suse.cz>
16552
16553         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
16554         * cgraph.h (cgraph_node): Likewise.
16555         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
16556         (cgraph_reset_node): Use process flag.
16557         (cgraph_mark_functions_to_output): Likewise.
16558         (cgraph_expand_function): Likewise.
16559         (cgraph_expand_all_functions): Likewise.
16560         (cgraph_output_in_order): Likewise.
16561         * dwarf2out.c (reference_to_unused): Likewise.
16562         * passes.c do_per_function_toporder): Likewise.
16563
16564 2009-03-28  Jan Hubicka  <jh@suse.cz>
16565
16566         Bring from lto-branch:
16567
16568         2008-09-03  Doug Kwan  <dougkwan@google.com>
16569
16570         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
16571         enums instead of reason strings.
16572         * cgraph.c (cgraph_create_edge): Same.
16573         (cgraph_inline_failed_string): New function.
16574         * cgraph.h (cgraph_inline_failed_t): New enum type.
16575         (cgraph_inline_failed_string): New prototype.
16576         (struct cgraph_edge): Change type of INLINED_FAILED from constant
16577         char pointer to cgraph_inline_failed_t.
16578         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
16579         (cgraph_default_inline_p): Ditto.
16580         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
16581         to cgraph_inline_failed_t pointer.
16582         * cif-code.def: New file.
16583         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
16584         reason string.
16585         (cgraph_check_inline_limits): Change type of REASON to pointer to
16586         cgraph_inline_failed_t.  Replace reason strings with enums.
16587         (cgraph_default_inline_p): Ditto.
16588         (cgraph_recursive_inlining_p): Ditto.
16589         (update_caller_keys): Change type of FAILED_REASON to
16590         cgraph_inline_failed_t.
16591         (cgraph_set_inline_failed): Change type of REASON to pointer to
16592         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
16593         convert enums to strings for text output.
16594         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
16595         to be of type cgraph_inline_failed_t.  Replace reason strings with
16596         enums.  Call cgraph_inline_failed_string to covert enums
16597         to strings for text output.
16598         (cgraph_decide_inlining): Replace reason strings with enums.
16599         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
16600         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
16601         for text output.
16602         * tree-inline.c (expand_call_inline): Change type of REASON
16603         to cgraph_inline_failed_t.  Replace reason strings with enums.
16604         Call cgraph_inline_failed_string for text output.
16605         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
16606         (cgraph.o): Ditto.
16607
16608 2009-03-28  Jan Hubicka  <jh@suse.cz>
16609
16610         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
16611         cgraph_clone_node): Remove master clone handling.
16612         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16613         * cgraph.h (master_clone): Remove.
16614         (cgraph_is_master_clone, cgraph_master_clone): Remove.
16615         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
16616         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
16617
16618 2009-03-28  Jan Hubicka  <jh@suse.cz>
16619
16620         * cgraph.c (cgraph_function_body_availability): Functions declared
16621         inline are always safe to assume that it is not going to be replaced.
16622
16623 2009-03-28  Richard Guenther  <rguenther@suse.de>
16624
16625         PR tree-optimization/38513
16626         * tree-ssa-pre.c (eliminate): Remove redundant stores.
16627         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
16628         EXC_PTR_EXPR and FILTER_EXPR.
16629         (get_ref_from_reference_ops): Likewise.
16630
16631 2009-03-28  Richard Guenther  <rguenther@suse.de>
16632
16633         PR tree-optimization/38968
16634         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
16635         Use FLOOR_MOD_EXPR to compute misalignment.
16636
16637 2009-03-28  Richard Guenther  <rguenther@suse.de>
16638
16639         PR tree-optimization/37795
16640         * tree.h (combine_comparisons): Declare.
16641         * fold-const.c (combine_comparisons): Export.
16642         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
16643         comparisons.
16644         (ifcombine_iforif): Use combine_comparisons.
16645
16646 2009-03-28  Jan Hubicka  <jh@suse.cz>
16647
16648         * tree-eh.c (inlinable_call_p): New function.
16649         (make_eh_edges): Use it.
16650         (verify_eh_edges): Use it.
16651         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
16652         * except.c (reachable_next_level): Add inlinable_function argument
16653         (sjlj_find_directly_reachable_regions): Update.
16654         (add_reachable_handler): Do not set saw_any_handlers.
16655         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
16656         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
16657         Add new inlinable call parameter.
16658         (can_throw_internal, can_throw_external): Update.
16659         * except.h (can_throw_internal_1, can_throw_external_1,
16660         foreach_reachable_handler): Update declaration.
16661
16662 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
16663
16664         * config/arm/t-arm-coff, config/h8300/coff.h,
16665         config/i386/i386-aout.h, config/i386/i386-coff.h,
16666         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
16667         config/pdp11/2bsd.h, config/rs6000/aix41.h,
16668         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
16669         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
16670         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
16671         sys-types.h: Remove.
16672         * Makefile.in: Remove protoize and fixproto support and references
16673         in comments.
16674         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
16675         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
16676         Remove.
16677         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
16678         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
16679         unprotoize$(exeext).
16680         (rest.encap): Don't depend on $(STMP_FIXPROTO)
16681         (.PHONY): Don't depend on proto.
16682         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
16683         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
16684         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
16685         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
16686         build/gen-protos.o, build/scan.o, xsys-protos.h,
16687         build/fix-header$(build_exeext), build/fix-header.o,
16688         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
16689         stmp-install-fixproto): Remove.
16690         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
16691         SYSCALLS.c or fixproto files.
16692         (install-common): Don't install protoize.
16693         (install-headers-tar, install-headers-cpio, install-headers-cp):
16694         Don't depend on $(STMP_FIXPROTO).
16695         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
16696         install fixproto files or write out fixproto settings.
16697         (uninstall): Don't uninstall protoize.
16698         * config.gcc (use_fixproto): Remove.
16699         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
16700         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
16701         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
16702         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
16703         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
16704         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
16705         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
16706         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
16707         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
16708         * config/t-vxworks (STMP_FIXPROTO): Remove.
16709         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
16710         STMP_FIXPROTO): Remove.
16711         * config.in, configure: Regenerate.
16712         * crtstuff.c (gid_t, uid_t): Don't undefine.
16713         * doc/install.texi: Change m68k-coff to m68k-elf in example.
16714         (arm-*-coff, arm-*-aout: Remove target entries.
16715         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
16716         Remove mention of AIX 4.1.
16717         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
16718         * doc/invoke.texi (Running Protoize): Remove.
16719         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
16720         (Protoize Caveats): Remove.
16721         * tsystem.h: Update comments on headers assumed to exist.
16722
16723 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
16724
16725         * genautomata.c: Add a new year to the copyright.  Add a new
16726         reference.
16727         (struct insn_reserv_decl): Add comments for member bypass_list.
16728         (find_bypass): Remove.
16729         (insert_bypass): New.
16730         (process_decls): Use insert_bypass.
16731         (output_internal_insn_latency_func): Output all bypasses with the
16732         same input insn in one switch case.
16733
16734         * rtl.def (define_bypass): Describe bypass choice.
16735         * doc/md.texi (define_bypass): Ditto.
16736
16737 2009-03-27  Richard Guenther  <rguenther@suse.de>
16738
16739         * gimplify.c (mark_addressable): Export.
16740         * tree-flow.h (mark_addressable): Declare.
16741         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
16742         * tree-ssa.c (verify_phi_args): Verify that address taken
16743         variables have TREE_ADDRESSABLE set.
16744
16745 2009-03-27  Richard Guenther  <rguenther@suse.de>
16746
16747         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
16748         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
16749         Do not mark decls TREE_ADDRESSABLE.
16750         (build_fold_addr_expr): Adjust.
16751         (fold_addr_expr): Remove.
16752         (fold_unary): Use build_fold_addr_expr.
16753         (fold_comparison): Likewise.
16754         (split_address_to_core_and_offset): Likewise.
16755         * coverage.c (tree_coverage_counter_addr): Mark the array decl
16756         TREE_ADDRESSABLE.
16757         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
16758         (gimplify_modify_expr_to_memcpy): Mark source and destination
16759         addressable.
16760         * omp-low.c (create_omp_child_function): Mark the object decl
16761         TREE_ADDRESSABLE.
16762         (lower_rec_input_clauses): Mark the var we take the address of
16763         TREE_ADDRESSABLE.
16764         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
16765
16766 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16767
16768         PR middle-end/39315
16769         * cfgexpand.c (expand_one_stack_var_at): Change alignment
16770         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
16771
16772 2009-03-27  Richard Guenther  <rguenther@suse.de>
16773
16774         PR tree-optimization/39120
16775         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
16776         constraints.
16777         (handle_lhs_call): Process return constraints.  Add escape
16778         constraints if necessary.
16779         (handle_const_call): Fill out return constraints.  Make nested
16780         case more precise.  Avoid consttmp if possible.
16781         (handle_pure_call): Fill out return constraints.  Avoid
16782         callused if possible.
16783         (find_func_aliases): Simplify call handling.
16784
16785 2009-03-27  Richard Guenther  <rguenther@suse.de>
16786
16787         PR tree-optimization/39120
16788         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
16789         as a representative.
16790         (solve_graph): Do propagate CALLUSED.
16791         (handle_pure_call): Use a scalar constraint from CALLUSED for
16792         the return value.
16793         (find_what_p_points_to): CALLUSED shall not appear in poins-to
16794         solutions.
16795
16796 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16797
16798         PR c/39323
16799         * c-common.c (handle_aligned_attribute): Properly check alignment
16800         overflow.  Use (1U << i) instead of (1 << i).
16801
16802         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
16803
16804         * expr.h (get_mem_align_offset): Updated.
16805
16806         * tree.h (tree_decl_common): Change align to "unsigned int" and
16807         move it before pointer_alias_set.
16808
16809 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16810             Jakub Jelinek  <jakub@redhat.com>
16811
16812         PR target/38034
16813         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
16814         gr_register_operand with gr_reg_or_0_operand.
16815         (cmpxchg_rel_di): Likewise.
16816         (sync_lock_test_and_set<mode>): Likewise.
16817
16818 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16819
16820         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
16821         (true_regnum): Likewise.
16822
16823         * rtlanal.c (subreg_info): Moved to ...
16824         * rtl.h (subreg_info): Here.  New.
16825         (subreg_get_info): New.
16826
16827         * rtlanal.c (subreg_get_info): Make it extern.
16828
16829 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16830
16831         PR target/39472
16832         * config/i386/i386.c (ix86_abi): New.
16833         (override_options): Handle -mabi=.
16834         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
16835         (ix86_call_abi_override): Likewise.
16836         (init_cumulative_args): Likewise.
16837         (function_arg_advance): Likewise.
16838         (function_arg_64): Likewise.
16839         (function_arg): Likewise.
16840         (ix86_pass_by_reference): Likewise.
16841         (ix86_function_value_regno_p): Likewise.
16842         (ix86_build_builtin_va_list_abi): Likewise.
16843         (setup_incoming_varargs_64): Likewise.
16844         (is_va_list_char_pointer): Likewise.
16845         (ix86_init_machine_status): Likewise.
16846         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
16847         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
16848         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
16849         (ix86_function_abi): Make it static and return enum calling_abi.
16850         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
16851         with ix86_abi.
16852         (ix86_fn_abi_va_list): Updated.
16853
16854         * config/i386/i386.h (ix86_abi): New.
16855         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
16856         (CONDITIONAL_REGISTER_USAGE): Likewise.
16857         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
16858         (machine_function): Likewise.
16859
16860         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
16861         with ix86_abi.
16862         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
16863         (STACK_BOUNDARY): Likewise.
16864         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
16865
16866         * config/i386/i386.opt (mabi=): New.
16867
16868         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
16869         return enum calling_abi.
16870         (ix86_function_type_abi): Likewise.
16871         (ix86_function_abi): Removed.
16872
16873         * doc/invoke.texi: Document -mabi= option for x86.
16874
16875 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16876
16877         * builtins.c (real_dconstp): Delete.
16878         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
16879
16880 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
16881             Jakub Jelinek  <jakub@redhat.com>
16882
16883         PR debug/37959
16884         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
16885         (gen_subprogram_die): When a function is explicit, generate the
16886         DW_AT_explicit attribute.
16887         * langhooks.h (struct lang_hooks_for_decls): Add
16888         function_decl_explicit_p langhook.
16889         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
16890         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
16891
16892 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
16893
16894         * builtins.c (fold_builtin_memory_op): Optimize memmove
16895         into memcpy if we can prove source and destination don't overlap.
16896
16897         * tree-inline.c: Include gt-tree-inline.h.
16898         (clone_fn_id_num): New variable.
16899         (clone_function_name): New function.
16900         (tree_function_versioning): Use it.
16901         * Makefile.in (GTFILES): Add tree-inline.c.
16902
16903 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
16904
16905         * BASE-VER: Change to 4.5.0.
16906
16907 2009-03-27  Xinliang David Li  <davidxl@google.com>
16908
16909         PR tree-optimization/39557
16910         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
16911
16912 2009-03-27  Xinliang David Li  <davidxl@google.com>
16913
16914         PR tree-optimization/39548
16915         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
16916         candidate check.
16917
16918 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16919
16920         * c-common.c (pointer_int_sum): Use %wd on return from
16921         tree_low_cst.
16922
16923 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16924
16925         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
16926         on return from tree_low_cst.
16927
16928 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16929
16930         PR c++/36799
16931         * ginclude/stdarg.h (va_copy): Define also for
16932         __GXX_EXPERIMENTAL_CXX0X__.
16933
16934 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16935
16936         PR c++/35652
16937         * builtins.h (c_strlen): Do not warn here.
16938         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
16939         * c-common.c (pointer_int_sum): Take an explicit location.
16940         Warn about offsets out of bounds.
16941         * c-common.h (pointer_int_sum): Adjust declaration.
16942
16943 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16944
16945         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
16946         markup glitch.
16947
16948 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
16949
16950         PR c++/39554
16951         * opts.c (warn_if_disallowed_function_p): Don't assume
16952         get_callee_fndecl must return non-NULL.
16953
16954 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
16955
16956         PR rtl-optimization/39522
16957         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
16958         when reg_reloaded_valid is set.
16959
16960 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16961
16962         * config/spu/divv2df3.c: New file.
16963         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
16964         (DPBIT_FUNCS): Filter out _div_df.
16965
16966 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
16967
16968         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
16969         a jump insn, count that jump in the distance to the loop start.
16970
16971 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
16972
16973         PR target/39523
16974         * config/sh/sh.c (calc_live_regs): Fix condition for global
16975         registers except PIC_OFFSET_TABLE_REGNUM.
16976
16977 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
16978
16979         PR/39518
16980         * doc/invoke.texi (-mconsole): New.
16981         (-mcygwin): New.
16982         (-mno-cygwin): New.
16983         (-mdll): New.
16984         (-mnop-fun-dllimport): New.
16985         (-mthread): New.
16986         (-mwin32): New.
16987         (-mwindows): New.
16988         (sub section "i386 and x86-64 Windows Options"): New.
16989
16990 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
16991
16992         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
16993         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
16994
16995 2009-03-25  Richard Guenther  <rguenther@suse.de>
16996
16997         PR middle-end/39497
16998         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
16999         of -Wno-error.
17000
17001 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
17002
17003         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
17004         neither of haifa/selective schedulers are working.
17005
17006 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17007
17008         * doc/invoke.texi (Debugging Options): Fix description of
17009         -fno-merge-debug-strings.
17010
17011 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
17012
17013         * config/cris/libgcc.ver: New version-script.
17014         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
17015
17016         * configure.ac <GAS features, nop mnemonic>: Add pattern
17017         crisv32-*-* for "nop".
17018         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
17019         * configure: Regenerate.
17020
17021 2009-03-24  Ira Rosen  <irar@il.ibm.com>
17022
17023         PR tree-optimization/39529
17024         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
17025         mark_sym_for_renaming for the tag copied to the new vector
17026         pointer.
17027
17028 2009-03-24  Arthur Loiret  <aloiret@debian.org>
17029
17030         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
17031         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
17032         EXTRA_SPEC_FUNCTIONS.
17033         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
17034         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
17035         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
17036         -march and -mtune options.
17037
17038 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
17039
17040         * config/m68k/t-rtems: Add m5329 multilib.
17041
17042 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
17043             Jakub Jelinek  <jakub@redhat.com>
17044
17045         PR debug/39524
17046         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
17047         nodes.
17048
17049 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17050
17051         PR c/39495
17052         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
17053         instead of c_parser_expression_conv, if original_code isn't one of the
17054         4 allowed comparison codes, fail.
17055
17056 2009-03-23  Richard Guenther  <rguenther@suse.de>
17057
17058         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
17059         * tree.h (struct tree_type): Likewise.
17060         * reload.h (struct insn_chain): Likewise.
17061         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
17062         * function.h (struct function): Likewise.
17063         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
17064
17065 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
17066
17067         PR tree-optimization/39516
17068         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
17069
17070 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
17071
17072         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
17073         should be set true if BITS_PER_WORD of target is bigger than 32
17074
17075 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
17076
17077         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
17078         Translate -B-options to -rpath-link.  Correct existing
17079         rpath-link and conditionalize on !nostdlib.
17080
17081 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17082
17083         * doc/extend.texi (Function Attributes, Variable Attributes):
17084         Fix typos.
17085         * doc/invoke.texi (Debugging Options, Optimize Options)
17086         (i386 and x86-64 Options, MCore Options): Likewise.
17087
17088 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
17089
17090         PR debug/37890
17091         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
17092         it for block local namespace aliases.
17093         (gen_decl_die): Pass context_die to gen_namespace_die.
17094
17095 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17096
17097         PR c/39495
17098         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
17099         minimum or maximum value.
17100
17101 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
17102
17103         * reginfo.c (globalize_reg): Recompute derived reg sets.
17104
17105 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
17106
17107         PR target/39063
17108         * libgcc2.c (mprotect): Do not use signed arguments for
17109         VirtualProtect, use DWORD arguments.  Also fix the 'may
17110         be used uninitialized' warning for the np variable.
17111
17112 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
17113
17114         PR target/39496
17115         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
17116         functions using regparm calling conventions when not optimizing.
17117         (ix86_function_sseregparm): Similarly for sseregparm calling
17118         conventions.
17119
17120 2009-03-19  Li Feng  <nemokingdom@gmail.com>
17121
17122         PR middle-end/39500
17123         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
17124         dependence if the first conflict is after niter iterations.
17125
17126 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
17127
17128         PR middle-end/38609
17129         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
17130         functions with dynamic stack-pointer adjustments.
17131
17132 2009-03-19  Ben Elliston  <bje@au.ibm.com>
17133
17134         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
17135         option; change to -msdata=data.
17136
17137 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17138
17139         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
17140         and -fopenmp.
17141
17142 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
17143
17144         PR target/35180
17145         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
17146
17147 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
17148
17149         * doc/invoke.texi (Code Gen Options): Expand discussion of
17150         -fno-common.
17151
17152 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
17153
17154         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
17155         * matrix-reorg.c (struct matrix_info): Likewise.
17156         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
17157         * rtl.h (struct mem_attrs): Likewise.
17158         * df.h (struct df): Likewise.
17159         * tree-data-ref.h (struct data_dependence_relation): Likewise.
17160         * ira-int.h (struct ira_allocno): Likewise.
17161         * df-scan.c (struct df_collection_rec): Likewise.
17162         * ira.c (struct equivalence): Likewise.
17163         * function.c (struct temp_slot): Likewise.
17164         * cfgloop.h (struct loop): Likewise.
17165
17166         PR debug/39485
17167         * function.c (use_register_for_decl): When not optimizing, disregard
17168         register keyword for variables with types containing methods.
17169
17170 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
17171
17172         PR middle-end/39447
17173         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
17174         (is_simple_operand): Call contains_component_ref_p before calling data
17175         reference analysis that would fail on COMPONENT_REFs.
17176
17177         * tree-vrp.c (search_for_addr_array): Fix formatting.
17178
17179 2009-03-18  Richard Guenther  <rguenther@suse.de>
17180
17181         * tree-vect-transform.c (vect_loop_versioning): Fold the
17182         generated comparisons.
17183         * tree-vectorizer.c (set_prologue_iterations): Likewise.
17184         (slpeel_tree_peel_loop_to_edge): Likewise.
17185
17186 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17187
17188         PR middle-end/37805
17189         * opts.c (print_specific_help): In addition to `undocumented',
17190         accept `separate' and `joined' flags if passed alone.  Describe
17191         output by the first matched one of those.
17192         (common_handle_option): Skip over empty strings.
17193         * gcc.c (display_help): Fix help string for `--help='.
17194         * doc/invoke.texi (Option Summary, Overall Options): With
17195         `--help=', classes and qualifiers can both be repeated, but
17196         only the latter can be negated.  One should not pass only
17197         negated qualifiers.  Fix markup and examples.
17198
17199         Revert
17200         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
17201         PR middle-end/37805
17202         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
17203         and -fhelp=separate.
17204
17205 2009-03-17  Jing Yu  <jingyu@google.com>
17206
17207         PR middle-end/39378
17208         * function.h (struct rtl_data): Move is_thunk from here...
17209         (struct function): ...to here.
17210         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
17211         * varasm.c (assemble_start_function): Change is_thunk from crtl to
17212         cfun.
17213         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
17214         cfun.
17215         (alpha_does_function_need_gp, alpha_start_function): Likewise.
17216         (alpha_output_function_end_prologue): Likewise.
17217         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
17218         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
17219         (rs6000_output_function_epilogue): Likewise.
17220         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
17221
17222 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
17223
17224         PR target/39482
17225         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
17226         from different units in a single alternative.
17227         (*truncdfsf_i387): Ditto.
17228         (*truncxfsf2_mixed): Ditto.
17229         (*truncxfdf2_mixed): Ditto.
17230
17231 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
17232
17233         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
17234         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
17235
17236         PR debug/39474
17237         * tree-ssa-live.c (remove_unused_locals): Don't remove local
17238         unused non-artificial variables when not optimizing.
17239
17240         PR debug/39471
17241         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
17242         DW_TAG_imported_module even if decl is IMPORTED_DECL with
17243         NAMESPACE_DECL in its DECL_INITIAL.
17244
17245         PR middle-end/39443
17246         * optabs.c (set_user_assembler_libfunc): New function.
17247         * expr.h (set_user_assembler_libfunc): New prototype.
17248         * c-common.c: Include libfuncs.h.
17249         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
17250         for memcmp, memset, memcpy, memmove and abort.
17251         * Makefile.in (c-common.o): Depend on libfuncs.h.
17252
17253         PR debug/39412
17254         * dwarf2out.c (gen_inlined_enumeration_type_die,
17255         gen_inlined_structure_type_die, gen_inlined_union_type_die,
17256         gen_tagged_type_instantiation_die): Removed.
17257         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
17258         do nothing.
17259
17260 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
17261
17262         PR testsuite/38526
17263         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
17264         its use.
17265         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
17266         (check-parallel-%): Ditto.
17267         (check-consistency): Ditto.
17268
17269 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
17270
17271         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
17272         local variable rhs by NULL_TREE.
17273
17274 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17275
17276         PR target/39477
17277         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
17278
17279 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17280
17281         PR target/39476
17282         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
17283
17284 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
17285
17286         PR target/39473
17287         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
17288         for ms->sysv ABI calls only in 64bit mode.
17289
17290         * config/i386/i386.md (untyped_call): Support 32bit.
17291
17292 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
17293
17294         * doc/extend.texi: Replace x86_65 with x86_64.
17295
17296 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
17297
17298         PR tree-optimization/39455
17299         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
17300         mismatches for POINTER_TYPE_P (type).
17301         (number_of_iterations_le): Likewise.
17302
17303 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
17304
17305         * config/picochip/picochip.c: Removed profiling support.
17306         * config/picochip/picochip.md: Removed profiling instruction.
17307         * config/picochip/picochip.h: Removed profiling builtin.
17308
17309 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
17310
17311         * doc/install.texi (--with-host-libstdcxx): Document.
17312
17313 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
17314
17315         PR target/34299
17316         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
17317         generate a warning if the function name does not begin with
17318         "__vector" and the function has either the 'signal' or 'interrupt'
17319         attribute, from here to ...
17320         (avr_declare_function_name): ...here. New function.
17321         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
17322         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
17323
17324 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
17325
17326         PR bootstrap/39454
17327         * cse.c (fold_rtx): Don't modify original const_arg1 when
17328         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
17329         separate variable instead.
17330         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
17331         from out of range shift counts.
17332         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
17333
17334 2009-03-13  Catherine Moore  <clm@codesourcery.com>
17335
17336         * config/i386/x-mingw32 (host-mingw32.o): Replace
17337         diagnostic.h with $(DIAGNOSTIC_H).
17338
17339 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
17340
17341         PR target/39431
17342         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
17343         predicate.
17344         * config/i386/sync.md (sync_compare_and_swap<mode>,
17345         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
17346         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
17347         into a register.
17348         (sync_double_compare_and_swapdi_pic,
17349         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
17350         cmpxchg8b_pic_memory_operand instead of just memory_operand.
17351
17352 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17353
17354         PR target/39445
17355         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
17356
17357 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17358
17359         PR target/39327
17360         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17361         (avx_addsubv4df3): Likewise.
17362         (*avx_addsubv4sf3): Likewise.
17363         (sse3_addsubv4sf3): Likewise.
17364
17365 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
17366
17367         PR target/38824
17368         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
17369
17370 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
17371
17372         PR debug/39432
17373         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
17374         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
17375         registers for allocnos created from user-defined variables.
17376
17377 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17378
17379         PR target/39181
17380         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
17381         of non-integer mode as well.
17382
17383 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
17384
17385         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
17386         for functions for which the parameter types are unknown.
17387
17388 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
17389
17390         PR target/39137
17391         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
17392         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
17393         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
17394         * config/i386/i386.c (ix86_local_alignment): For
17395         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
17396         long long variables on the stack to avoid dynamic realignment.
17397         Allow the first argument to be a decl rather than type.
17398         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
17399
17400 2009-03-11  Nick Clifton  <nickc@redhat.com>
17401
17402         PR target/5362
17403         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
17404         options.
17405         Add description to mno-lsim option.
17406         * config/mcore/mcore.h: Remove comment about deprecated m4align
17407         option.
17408         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
17409         * doc/invoke.texi: Add description of mno-lsim and
17410         mstack-increment options.
17411
17412         * config/fr30/fr30.opt: Document the -mno-lsim option.
17413         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
17414         and -mno-lsim options.
17415
17416 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17417
17418         * fold-const.c (fold_comparison): Only call fold_inf_compare
17419         if the mode supports infinities.
17420
17421 2009-03-11  Jason Merrill  <jason@redhat.com>
17422
17423         PR debug/39086
17424         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
17425         end already did.  Notice GIMPLE_CALL modifications of the result.
17426         Don't copy debug information from an ignored decl or a decl from
17427         another function.
17428
17429 2009-03-10  Richard Guenther  <rguenther@suse.de>
17430             Nathan Froyd  <froydnj@codesourcery.com>
17431
17432         PR middle-end/37850
17433         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
17434         (__divMODE3): Likewise.
17435
17436 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
17437
17438         PR tree-optimization/39394
17439         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
17440         DECL_SIZE_UNIT of variable length FIELD_DECLs.
17441
17442 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17443
17444         * recog.c (verfiy_changes): Disallow renaming of hard regs in
17445         inline asms for register asm ("") declarations.
17446
17447 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
17448
17449         * fold-const.c (fold_unary): Fix comment.
17450
17451 2009-03-07  Jan Hubicka  <jh@suse.cz>
17452
17453         PR target/39361
17454         * tree-inline.c (setup_one_parameter): Do replacement of const
17455         argument by constant in SSA form.
17456
17457 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17458
17459         PR middle-end/38028
17460         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
17461         determine alignment passed to assign_stack_local.
17462         (assign_parms_unsplit_complex): Likewise.
17463         * except.c (sjlj_build_landing_pads): Likewise.
17464
17465 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17466
17467         PR middle-end/39360
17468         * tree-flow.h (add_referenced_var): Return bool instead of void.
17469         * tree-dfa.c (add_referenced_var): Return result of
17470         referenced_var_check_and_insert call.
17471         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
17472         of referenced_var_check_and_insert.
17473
17474         PR debug/39372
17475         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
17476         (gen_variable_die): Emit DW_AT_location on abstract static variable's
17477         DIE, don't emit it if abstract origin already has it.
17478         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
17479         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
17480
17481 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17482
17483         * genpreds.c (needs_variable): Fix parentheses at variable name
17484         detection.
17485         (write_tm_constrs_h): Indent generated code.
17486
17487 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17488
17489         * doc/extend.texi (Function Attributes): Add documentation
17490         for isr attributes.
17491
17492 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
17493
17494         PR debug/39387
17495         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
17496         take locus from its DECL_SOURCE_LOCATION instead of input_location.
17497
17498 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
17499
17500         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
17501         the loop as bad.
17502
17503 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
17504
17505         PR debug/39379
17506         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
17507         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
17508
17509 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
17510
17511         * config/i386/i386.md (R8_REG, R9_REG): New constants.
17512         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
17513         constants instead of magic numbers.
17514         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
17515         (QI_REG_P): Ditto.
17516         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
17517         (x86_64_ms_abi_int_parameter_registers): Ditto.
17518         (x86_64_int_return_registers): Ditto.
17519         (ix86_maybe_switch_abi): Ditto.
17520         (ix86_expand_call): Ditto for clobbered_registers array.
17521         (ix86_hard_regno_mode_ok): Ditto.
17522         (x86_extended_QIreg_mentioned_p): Ditto.
17523
17524 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
17525
17526         PR tree-optimization/39349
17527         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
17528
17529         * combine.c (gen_lowpart_for_combine): Use omode when generating
17530         clobber.
17531
17532 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
17533
17534         PR rtl-optimization/39235
17535         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
17536
17537 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17538
17539         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
17540
17541 2009-03-04  Richard Guenther  <rguenther@suse.de>
17542
17543         PR tree-optimization/39362
17544         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
17545         that occur in abnormal PHIs should be varying.
17546
17547 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
17548
17549         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
17550         Extend comments.
17551         (simple_iv):  Take loop as an argument instead of statement.
17552         * tree-scalar-evolution.h (simple_iv): Declaration changed.
17553         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
17554         to simple_iv.
17555         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
17556         Ditto.
17557         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
17558         * matrix-reorg.c (analyze_transpose): Ditto.
17559         * tree-data-ref.c (dr_analyze_innermost): Ditto.
17560         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
17561         * tree-predcom.c (ref_at_iteration): Ditto.
17562         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
17563
17564 2009-03-04  Richard Guenther  <rguenther@suse.de>
17565
17566         PR tree-optimization/39358
17567         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
17568         escaped_id and callused_id.
17569         (solve_graph): Likewise.
17570
17571 2009-03-04  Richard Guenther  <rguenther@suse.de>
17572
17573         PR tree-optimization/39339
17574         * tree-sra.c (try_instantiate_multiple_fields): Make it
17575         no longer ICE on the above.
17576
17577 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
17578
17579         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
17580         that fits within Pmode.
17581
17582 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17583
17584         PR middle-end/10109
17585         * tm.texi (LIBCALL_VALUE): Update description.
17586
17587 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
17588
17589         PR middle-end/34443
17590         * doc/extend.texi (section): Update description.
17591
17592 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
17593
17594         PR middle-end/39345
17595         * tree-inline.c (remapped_type): New.
17596         (can_be_nonlocal): Call remapped_type instead of remap_type.
17597
17598 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17599
17600         PR fortran/39354
17601         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
17602         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
17603
17604 2009-03-03  Richard Guenther  <rguenther@suse.de>
17605
17606         PR middle-end/39272
17607         * tree.c (tree_nonartificial_location): New function.
17608         * tree.h (tree_nonartificial_location): Declare.
17609         * builtins.c (expand_builtin_memory_chk): Provide location
17610         of the call location for artificial function pieces.
17611         (maybe_emit_chk_warning): Likewise.
17612         (maybe_emit_sprintf_chk_warning): Likewise.
17613         (maybe_emit_free_warning): Likewise.
17614         * expr.c (expand_expr_real_1): Likewise.
17615
17616 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
17617
17618         PR tree-optimization/39343
17619         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
17620         COMPONENT_REF t has ARRAY_TYPE.
17621
17622 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
17623
17624         PR middle-end/39335
17625         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
17626         when the type precision of the induction variable should be
17627         larger than the type precision of nit.
17628         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
17629         * graphite.c (graphite_loop_normal_form): Same.
17630         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
17631
17632 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17633
17634         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
17635         (*call_1_rex64_ms_sysv): Use named constants instead of magic
17636         numbers to describe clobbered registers.
17637         (*call_value_0_rex64_ms_sysv): Ditto.
17638         * config/i386/mmx.md (mmx_emms): Ditto.
17639         (mmx_femms): Ditto.
17640
17641 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
17642
17643         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
17644         of ABI_64.
17645
17646 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17647
17648         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
17649         (spu_section_type_flags): New function.
17650
17651 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
17652
17653         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
17654         reg_class_contents of FLOAT_REGS into a temporary.
17655
17656 2009-03-02  Richard Guenther  <rguenther@suse.de>
17657             Ira Rosen  <irar@il.ibm.com>
17658
17659         PR tree-optimization/39318
17660         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
17661         information to the vectorized statement.
17662
17663 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
17664
17665         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
17666         variable.  Use defined names instead of magic constants for REX SSE
17667         registers.
17668
17669 2009-03-01  Richard Guenther  <rguenther@suse.de>
17670
17671         PR tree-optimization/39331
17672         * omp-low.c (lower_send_shared_vars): Do not receive new
17673         values for the reference of DECL_BY_REFERENCE parms or results.
17674
17675 2009-03-01  Jan Hubicka  <jh@suse.cz>
17676
17677         PR debug/39267
17678         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
17679         BLOCK_NONLOCALIZED_VAR): New macros.
17680         (tree_block): Add nonlocalized_vars.
17681         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
17682         gen_decl_die): Add origin argument.  Allow generation of die with
17683         origin at hand only.
17684         (gen_member_die, gen_type_die_with_usage, force_decl_die,
17685         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
17686         of gen_*.
17687         (gen_block_die): Fix checking for unused blocks.
17688         (process_scope_var): Break out from .... ; work with origins only.
17689         (decls_for_scope) ... here; process nonlocalized list.
17690         (dwarf2out_ignore_block): Look for nonlocalized vars.
17691         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
17692         vars.
17693         (dump_scope_block): Dump them.
17694         * tree-inline.c (remap_decls): Handle nonlocalized vars.
17695         (remap_block): Likewise.
17696         (can_be_nonlocal): New predicate.
17697         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
17698
17699 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17700
17701         * configure: Regenerate.
17702
17703 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17704
17705         * optc-gen.awk: No need to duplicate option flags twice.
17706         Reuse help texts for duplicate options which do not have any.
17707
17708         * gcc.c (display_help): Document --version.
17709
17710         * gcc.c (main): If print_help_list and verbose_flag, ensure
17711         driver output comes before subprocess output.
17712
17713         * optc-gen.awk: Assign all remaining fields to help string,
17714         space-separated, for multi-line help in *.opt.
17715
17716         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
17717         -Wno-pedantic-ms-format is for MinGW targets only.
17718
17719         * doc/options.texi (Option file format): Fix bad indentation,
17720         restoring dropped sentence.
17721
17722 2009-02-28  Jan Hubicka  <jh@suse.cz>
17723
17724         * tree-inline.c (tree_function_versioning): Output debug info.
17725
17726 2009-02-28  Jan Hubicka  <jh@suse.cz>
17727
17728         PR debug/39267
17729         * tree-inline.c (setup_one_parameter): Do not copy propagate
17730         arguments when not optimizing.
17731
17732 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
17733
17734         PR target/39327
17735         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
17736         (avx_addsubv4df3): Likewise.
17737         (*avx_addsubv4sf3): Likewise.
17738         (sse3_addsubv4sf3): Likewise.
17739         (*avx_addsubv2df3): Likewise.
17740         (sse3_addsubv2df3): Likewise.
17741         (avx_unpckhps256): Correct item selectors.
17742         (avx_unpcklps256): Likewise.
17743         (avx_unpckhpd256): Likewise.
17744         (avx_unpcklpd256): Likewise.
17745
17746 2009-02-28  Jan Hubicka  <jh@suse.cz>
17747
17748         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
17749         static vars.
17750         (copy_arguments_for_versioning): If var is declared don't declare it.
17751         (tree_function_versioning): First setup substitutions and then copy
17752         args.
17753
17754 2009-02-27  Jan Hubicka  <jh@suse.cz>
17755
17756         PR debug/39267
17757         * cgraph.h (varpool_output_debug_info): Remove.
17758         * cgraphunit.c (varpool_output_debug_info): Remove.
17759         * dwarf2out.c (deferred_locations_struct): New struct
17760         (deferred_locations): New type.
17761         (deferred_locations_list): New static var.
17762         (deffer_location): New function.
17763         (gen_variable_die): Use it.
17764         (decls_for_scope): Output info on local static vars.
17765         (dwarf2out_finish): Process deferred locations.
17766         * varpool.c (varpool_output_debug_info): Remove.
17767
17768 2009-02-27  Jan Hubicka  <jh@suse.cz>
17769
17770         PR debug/39267
17771         * tree.h (TREE_PROTECTED): Fix comment.
17772         (BLOCK_HANDLER_BLOCK): Remove.
17773         (struct tree_block): Remove handler_block add body_block.
17774         (inlined_function_outer_scope_p): New.
17775         (is_body_block): Remove.
17776         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
17777         * dwarf2out.c (is_inlined_entry_point): Remove.
17778         (add_high_low_attributes): Use inlined_function_outer_scope_p.
17779         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
17780         code.
17781         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
17782         * gimplify.c (gimplify_expr): Gimplify body blocks.
17783         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
17784         block with multiple subblocks.
17785         (dump_scope_block): Prettier output; dump more flags and info.
17786         (dump_scope_blocks): New.
17787         (remove_unused_locals): Use dump_scope_blocks.
17788         * tree-flow.h (dump_scope_blocks): Declare.
17789         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
17790         * stmt.c (is_body_block): Remove.
17791         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
17792         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
17793
17794 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
17795
17796         PR middle-end/39308
17797         * graphite.c (graphite_loop_normal_form): Do not call
17798         number_of_iterations_exit from a gcc_assert.
17799
17800 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17801
17802         * config/s390/s390.c (s390_swap_cmp): Look for conditional
17803         jumps if COND is NULL.
17804         (find_cond_jump): New function.
17805         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
17806         * config/s390/s390.md: Remove z10_cobra attribute value.
17807
17808 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
17809
17810         * config/alpha/alpha.h (alpha_expand_mov): Return false if
17811         force_const_mem returns NULL_RTX.
17812
17813 2009-02-26  Jan Hubicka  <jh@suse.cz>
17814
17815         PR debug/39267
17816         * cgraph.h (varpool_output_debug_info): Remove.
17817         * cgraphunit.c (varpool_output_debug_info): Remove.
17818         * dwarf2out.c (deferred_locations_struct): New struct
17819         (deferred_locations): New type.
17820         (deferred_locations_list): New static var.
17821         (deffer_location): New function.
17822         (gen_variable_die): Use it.
17823         (decls_for_scope): Output info on local static vars.
17824         (dwarf2out_finish): Process deferred locations.
17825         * varpool.c (varpool_output_debug_info): Remove.
17826
17827 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
17828
17829         PR rtl-optimization/39241
17830         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
17831         to subreg_offset_representable_p.
17832
17833 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
17834
17835         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
17836         execute function prototype.  Get f and nregs from max_reg_num
17837         and get_insns.  Remove the first backward pass as it's dead,
17838         guard the forward pass by flag_expensive_optimizations.
17839         (rest_of_handle_regmove): Delete.
17840         (pass_regmove): Replace it with regmove_optimize.
17841
17842 2009-02-25  Martin Jambor  <mjambor@suse.cz>
17843
17844         PR tree-optimization/39259
17845         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
17846         calls_alloca function flags.
17847         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
17848         calls are detected.
17849
17850 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
17851
17852         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
17853         flags_set_1_rtx, flags_set_1_set): Delete.
17854         (regmove_optimize): Do not call mark_flags_life_zones.
17855
17856 2009-02-24  Julian Brown  <julian@codesourcery.com>
17857
17858         PR target/35965
17859         * config/arm/arm.c (require_pic_register): Only set
17860         cfun->machine->pic_reg once per function.
17861
17862 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
17863
17864         * doc/invoke.texi (Link Options): Document an easier way to pass
17865         options that take arguments to the GNU linker using -Xlinker and -Wl.
17866
17867 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
17868
17869         PR target/33785
17870         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
17871
17872 2009-02-24  Richard Guenther  <rguenther@suse.de>
17873
17874         PR debug/39285
17875         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
17876
17877 2009-02-24  Richard Guenther  <rguenther@suse.de>
17878             Zdenek Dvorak  <ook@ucw.cz>
17879
17880         PR tree-optimization/39233
17881         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
17882         from converting them to a generic type.
17883
17884 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
17885
17886         PR tree-optimization/39260
17887         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
17888         contains a condition with a real type.
17889         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
17890
17891 2009-02-23  Jason Merrill  <jason@redhat.com>
17892
17893         PR c++/38880
17894         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
17895         narrowing_initializer_constant_valid_p.
17896         (narrowing_initializer_constant_valid_p): Don't return
17897         null_pointer_node for adding a pointer to itself.
17898
17899 2009-02-23  Jan Hubicka  <jh@suse.cz>
17900
17901         PR c/12245
17902         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
17903         resizing.
17904
17905 2009-02-23  Jan Hubicka  <jh@suse.cz>
17906
17907         PR tree-optimization/37709
17908         * tree.c (block_ultimate_origin): Move here from dwarf2out.
17909         * tree.h (block_ultimate_origin): Declare.
17910         * dwarf2out.c (block_ultimate_origin): Move to tree.c
17911         * tree-ssa-live.c (remove_unused_scope_block_p):
17912         Eliminate blocks containig no instructions nor live variables nor
17913         nested blocks.
17914         (dump_scope_block): New function.
17915         (remove_unused_locals): Enable removal of dead blocks by default;
17916         enable dumping at TDF_DETAILS.
17917
17918 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17919
17920         * config/i386/i386.c (classify_argument): Don't allow COImode
17921         and OImode.
17922         (function_arg_advance_32): Don't allow OImode.
17923         (function_arg_32): Likewise.
17924         (function_value_32): Likewise.
17925         (return_in_memory_32): Likewise.
17926         (function_arg_64): Remove OImode comment.
17927
17928 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17929
17930         PR target/39261
17931         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
17932         ix86_expand_vector_set for V4DImode in 64bit mode only.
17933         (ix86_expand_vector_init_one_var): Likewise.
17934
17935 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
17936
17937         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
17938
17939 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
17940
17941         PR bootstrap/39257
17942         * loop-iv.c: Revert last change.
17943         * emit-rtl.c: Likewise.
17944
17945 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
17946
17947         PR target/39256
17948         * config/i386/i386.c (type_natural_mode): Remove an extra
17949         space in the warning message.
17950         (function_value_32): Handle 32-byte vector modes.
17951         (return_in_memory_32): Likewise.
17952
17953 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
17954
17955         * loop-iv.c (truncate_value): New function.
17956         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
17957         of lowpart_subreg.
17958         (lowpart_subreg): Move to...
17959         * emit-rtl.c: ...here.
17960
17961 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
17962
17963         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
17964         accidental and undocumented change at revision 140860.
17965
17966 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
17967
17968         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
17969         take gimple_seq * arguments.
17970         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
17971         types_compatible_p langhook.
17972
17973 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
17974             Joseph Myers  <joseph@codesourcery.com>
17975
17976         * config/arm/arm.c (arm_builtin_va_list): New function.
17977         (arm_expand_builtin_va_start): Likewise.
17978         (arm_gimplify_va_arg_expr): Likewise.
17979         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
17980         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
17981         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
17982         (va_list_type): New variable.
17983         (arm_mangle_type): Mangle va_list_type appropriately.
17984
17985 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
17986
17987         PR middle-end/39157
17988         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
17989         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
17990         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
17991         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
17992         parameter to 1000 for -O1 by default.
17993         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
17994         parameter.
17995         * loop-invariant.c: Include params.h.
17996         (move_loop_invariants): Don't call move_single_loop_invariants on
17997         very large loops.
17998
17999 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
18000
18001         * calls.c (emit_library_call_value_1): Use slot_offset instead of
18002         offset when calculating bounds for indexing stack_usage_map.  Fixes
18003         a buffer overflow with certain target setups.
18004
18005 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
18006
18007         PR target/39240
18008         * calls.c (expand_call): Clear try_tail_call if caller and callee
18009         disagree in promotion of function return value.
18010
18011 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
18012
18013         PR target/39175
18014         * c-common.c (c_determine_visibility): If visibility changed and
18015         DECL_RTL has been already set, call make_decl_rtl to update symbol
18016         flags.
18017
18018 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
18019
18020         PR c++/39188
18021         * varasm.c (assemble_variable): Don't check DECL_NAME when
18022         globalizing a variable.
18023
18024 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
18025
18026         PR c/38483
18027         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
18028         expression before any __builtin_trap call.
18029         * c-typeck.c (build_function_call): Convert and check function
18030         arguments before generating a call to a trap.  Evaluate the
18031         function arguments before the trap.
18032
18033 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
18034
18035         PR target/39228
18036         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
18037         (UNSPEC_FXAM_MEM): New unspec.
18038         (fxam<mode>2_i387_with_temp): New insn and split pattern.
18039         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
18040         memory using fxam<mode>2_i387_with_temp to remove excess precision.
18041
18042 2009-02-19  Richard Guenther  <rguenther@suse.de>
18043
18044         PR tree-optimization/39207
18045         PR tree-optimization/39074
18046         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
18047         storedanything_tree): New.
18048         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
18049         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
18050         (build_succ_graph): Add edges from STOREDANYTHING to all
18051         non-direct nodes.
18052         (init_base_vars): Initialize STOREDANYTHING.
18053         (compute_points_to_sets): Free substitution info after
18054         building the succ graph.
18055         (ipa_pta_execute): Likewise.
18056
18057         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
18058         field.
18059         (do_ds_constraint): Do not add to special var or non-pointer
18060         field solutions.
18061         (type_could_have_pointers): Split out from ...
18062         (could_have_pointers): ... here.  For arrays use the element type.
18063         (create_variable_info_for): Initialize may_have_pointers.
18064         (new_var_info): Likewise.
18065         (handle_lhs_call): Make the HEAP variable unknown-sized.
18066         (intra_create_variable_infos): Use a type with pointers for
18067         PARM_NOALIAS, make it unknown-sized.
18068
18069 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
18070
18071         PR target/39224
18072         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
18073
18074 2009-02-18  Jason Merrill  <jason@redhat.com>
18075
18076         PR target/39179
18077         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
18078         value if DECL_EXTERNAL.
18079         * tree-sra.c (sra_walk_gimple_assign): Likewise.
18080         * target.h (gcc_target::binds_local_p): Clarify "module".
18081         * tree.h (TREE_PUBLIC): Clarify "module".
18082
18083 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
18084
18085         PR target/38891
18086         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
18087         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
18088
18089 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
18090
18091         PR target/39082
18092         * c.opt (Wabi): Support C and ObjC.
18093         (Wpsabi): New.
18094
18095         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
18096
18097         * config/i386/i386.c (classify_argument): Warn once about the ABI
18098         change when passing union with long double.
18099
18100         * doc/invoke.texi: Update -Wabi for warning psABI changes.
18101
18102 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
18103
18104         PR c/35447
18105         * c-parser.c (c_parser_compound_statement): Always enter and leave
18106         a scope.
18107
18108 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18109
18110         PR target/34587
18111         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
18112
18113 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
18114
18115         PR tree-optimization/36922
18116         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
18117         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
18118         Likewise.
18119
18120 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18121
18122         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
18123         to 0 for EABI64.
18124
18125 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18126
18127         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
18128
18129 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
18130
18131         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
18132         tree sharing.
18133
18134 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
18135             Richard Sandiford  <rdsandiford@googlemail.com>
18136
18137         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
18138         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
18139         (loongson_biadd): ...this.
18140
18141 2009-02-17  Richard Guenther  <rguenther@suse.de>
18142
18143         PR tree-optimization/39202
18144         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
18145         a var make sure to follow existing collapses.
18146
18147 2009-02-17  Richard Guenther  <rguenther@suse.de>
18148
18149         PR middle-end/39214
18150         * langhooks.c (lhd_print_error_function): Check for NULL block.
18151
18152 2009-02-17  Richard Guenther  <rguenther@suse.de>
18153
18154         PR tree-optimization/39204
18155         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
18156         of the PHI arg.
18157
18158 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
18159
18160         * config/soft-fp/double.h: Update from glibc CVS.
18161
18162 2009-02-17  Richard Guenther  <rguenther@suse.de>
18163
18164         PR tree-optimization/39207
18165         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
18166         strict-aliasing warnings for pointers pointing to NULL.
18167
18168 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
18169
18170         PR c/35446
18171         * c-parser.c (c_parser_braced_init): Call pop_init_level when
18172         skipping until next close brace.
18173
18174 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
18175
18176         PR target/37049
18177         * config/i386/i386.c (ix86_expand_push): Set memory alignment
18178         to function argument boundary.
18179
18180 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
18181
18182         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
18183         in the lea_add. Reload eventually constraints it properly.
18184         * config/picochip/constraints.md: Remove the target constraint
18185         "b", since it is not needed anymore.
18186
18187 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
18188
18189         * gthr-dce.h: Uglify function parameter and local variable names.
18190         * gthr-gnat.h: Likewise.
18191         * gthr-mipssde.h: Likewise.
18192         * gthr-nks.h: Likewise.
18193         * gthr-posix95.h: Likewise.
18194         * gthr-posix.h: Likewise.
18195         * gthr-rtems.h: Likewise.
18196         * gthr-single.h: Likewise.
18197         * gthr-solaris.h: Likewise.
18198         * gthr-tpf.h: Likewise.
18199         * gthr-vxworks.h: Likewise.
18200         * gthr-win32.h: Likewise.
18201
18202 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
18203
18204         PR target/39196
18205         * config/i386/i386.md: Restrict the new peephole2 to move
18206         between MMX/SSE registers.
18207
18208 2009-02-15  Richard Guenther  <rguenther@suse.de>
18209
18210         Revert
18211         2009-02-13  Richard Guenther  <rguenther@suse.de>
18212
18213         * configure.ac: Enable LFS.
18214         * configure: Re-generate.
18215         * config.in: Likewise.
18216
18217 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18218
18219         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
18220         spu_srqwbyte, spu_srqwbytebc): Define.
18221         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
18222         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
18223         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
18224         "shrqby_<mode>"): New insn-and-split patterns.
18225         * config/spu/spu.c (expand_builtin_args): Determine and return
18226         number of operands using spu_builtin_description data.
18227         (spu_expand_builtin_1): Use it.
18228
18229 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
18230
18231         PR target/38056
18232         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
18233         TARGET_CONST_GP.
18234
18235 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18236
18237         PR target/39149
18238         * config/i386/i386.c (override_options): Correct warning
18239         messages for -malign-loops, -malign-jumps and -malign-functions.
18240
18241 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18242
18243         PR target/39152
18244         * config/i386/i386.md: Restrict the new peephole2 to move
18245         between the general purpose registers.
18246
18247 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
18248
18249         PR target/39162
18250         * config/i386/i386.c (type_natural_mode): Add a new argument.
18251         Return the original mode and warn ABI change if vector size is 32byte.
18252         (function_arg_advance): Updated.
18253         (function_arg): Likewise.
18254         (ix86_function_value): Likewise.
18255         (ix86_return_in_memory): Likewise.
18256         (ix86_sol10_return_in_memory): Likewise.
18257         (ix86_gimplify_va_arg): Likewise.
18258         (function_arg_32): Don't warn ABX ABI change here.
18259         (function_arg_64): Likewise.
18260
18261 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18262
18263         * loop-iv.c (implies_p): In the final case, test that operands 0
18264         of the two comparisons match.
18265
18266         * config/bfin/bfin.c (find_prev_insn_start): New function.
18267         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
18268         (find_next_insn_start): Move.
18269
18270 2009-02-13  Richard Guenther  <rguenther@suse.de>
18271
18272         * configure.ac: Enable LFS.
18273         * configure: Re-generate.
18274         * config.in: Likewise.
18275
18276 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
18277
18278         PR c/35444
18279         * c-parser.c (c_parser_parms_list_declarator): Discard pending
18280         sizes on syntax error after some arguments have been parsed.
18281
18282 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18283
18284         * doc/invoke.texi (-fira): Remove.
18285
18286 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18287
18288         * caller-save.c: Replace regclass.c with reginfo.c in comments.
18289         * recog.c: Likewise.
18290         * rtl.h: Likewise.
18291
18292 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
18293
18294         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
18295         (umul_ppmm): Likewise.
18296         (count_leading_zeros): Likewise.
18297         (count_trailing_zeros): Likewise.
18298         (UMUL_TIME): Likewise.
18299
18300 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18301
18302         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
18303         soft-fp/t-softfp to tmake_file.
18304
18305         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
18306         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
18307         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
18308         IA64_BUILTIN_INFQ]: New.
18309         (ia64_init_builtins): Initialize __builtin_infq,
18310         __builtin_fabsq and __builtin_copysignq if not HPUX.
18311         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
18312         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
18313
18314         * config/ia64/lib1funcs.asm (__divtf3): Define only if
18315         SHARED is defined.
18316         (__fixtfti): Likewise.
18317         (__fixunstfti): Likewise.
18318         (__floattitf): Likewise.
18319
18320         * config/ia64/libgcc-glibc.ver: New.
18321         * config/ia64/t-fprules-softfp: Likewise.
18322         * config/ia64/sfp-machine.h: Likewise.
18323
18324         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
18325         (LIBGCC2_TF_CEXT): Likewise.
18326         (TF_SIZE): Likewise.
18327         (TARGET_INIT_LIBFUNCS): Likewise.
18328
18329         * config/ia64/t-glibc (SHLINB_MAPFILES):
18330         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
18331
18332 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
18333
18334         * config/i386/i386.c (construct_container): Rewrite processing
18335         BLKmode with X86_64_SSE_CLASS.
18336
18337 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
18338
18339         PR target/39152
18340         * config/i386/i386.md: Replace simplify_replace_rtx with
18341         replace_rtx in the new peephole2.
18342
18343 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
18344
18345         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
18346         loop unrolling do not happen at -O2.
18347
18348 2009-02-12  Michael Matz  <matz@suse.de>
18349
18350         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
18351
18352 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
18353
18354         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
18355         for -g3.
18356
18357 2009-02-12  Ben Elliston  <bje@au.ibm.com>
18358
18359         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
18360         patterns when updating the back chain.  Missed in the 2009-02-10
18361         change.
18362
18363 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
18364
18365         * doc/extend.texi (Decimal Floating Types): Update identifier of
18366         draft TR and list of missing support.
18367
18368 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
18369
18370         PR middle-end/39154
18371         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
18372         bit to variable length decl's flags, add it also to its
18373         pointer replacement variable.
18374
18375 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
18376             Jakub Jelinek  <jakub@redhat.com>
18377
18378         PR target/39118
18379         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
18380         (memory_blockage): New expander.
18381         (*memory_blockage): New insn pattern.
18382         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
18383         instead of general blockage at the end of function prologue when
18384         frame pointer is used to access red zone area.  Do not emit blockage
18385         when profiling, it is emitted in generic code.
18386         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
18387         function epilogue when frame pointer is used to access red zone area.
18388
18389 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
18390
18391         PR target/38824
18392         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
18393         by arithmetic with memory operands.
18394         * config/i386/predicates.md (commutative_operator): New.
18395
18396 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
18397
18398         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
18399         bulleted lists.
18400
18401 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
18402
18403         * alias.h (record_alias_subset): Declare.
18404         * alias.c (record_alias_subset): Make global.
18405
18406 2009-02-10  Nick Clifton  <nickc@redhat.com>
18407
18408         * tree-parloops.c: Change license to GPLv3.
18409         * ipa-struct-reorg.c: Change license to GPLv3.
18410         * ipa-struct-reorg.h: Change license to GPLv3.
18411
18412 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
18413
18414         PR c/39084
18415         * c-decl.c (start_struct): Return NULL on error.
18416
18417 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
18418
18419         PR middle-end/39124
18420         * cfgloopmanip.c (remove_path): Call remove_bbs after
18421         cancel_loop_tree, not before it.
18422
18423         PR target/39139
18424         * function.h (struct function): Add has_local_explicit_reg_vars bit.
18425         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
18426         VAR_DECLs were seen.
18427         * tree-ssa-live.c (remove_unused_locals): Recompute
18428         cfun->has_local_explicit_reg_vars.
18429         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
18430         copies or clearings if cfun->has_local_explicit_reg_vars.
18431
18432 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
18433
18434         PR target/39118
18435         * config/i386/i386.c (expand_prologue): Emit blockage at the end
18436         of function prologue when frame pointer is used to access
18437         red zone area.
18438
18439 2009-02-10  Richard Guenther  <rguenther@suse.de>
18440
18441         PR middle-end/39127
18442         * gimplify.c (gimple_regimplify_operands): Always look if
18443         we need to create a temporary.
18444
18445 2009-02-10  Richard Guenther  <rguenther@suse.de>
18446
18447         PR tree-optimization/39132
18448         * tree-loop-distribution.c (todo): New global var.
18449         (generate_memset_zero): Trigger TODO_rebuild_alias.
18450         (tree_loop_distribution): Return todo.
18451
18452 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
18453
18454         PR target/39119
18455         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
18456         (x86_64_reg_class_name): Removed.
18457         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
18458         first one isn't X86_64_SSE_CLASS or any other ones aren't
18459         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
18460         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
18461         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
18462         and 3 X86_64_SSEUP_CLASS.
18463         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
18464         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
18465
18466 2009-02-10  Ben Elliston  <bje@au.ibm.com>
18467
18468         * config/rs6000/rs6000.md (allocate_stack): Always use an update
18469         form instruction to update the stack back chain word, even if the
18470         user has disabled the generation of update instructions.
18471         (movdi_<mode>_update_stack): New.
18472         (movsi_update_stack): Likewise.
18473         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
18474         always use an update form instruction to update the stack back
18475         chain word.
18476
18477 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
18478
18479         PR middle-end/38953
18480         * graphite.c (if_region_set_false_region): After moving a region in
18481         the false branch of a condition, remove the empty dummy basic block.
18482         (gloog): Remove wrong fix for PR38953.
18483
18484 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18485
18486         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
18487         generation due to implicit sign extension.
18488
18489 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
18490
18491         PR middle-end/38981
18492         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
18493         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
18494
18495 2009-02-09  Richard Guenther  <rguenther@suse.de>
18496
18497         PR middle-end/35202
18498         * convert.c (convert_to_real): Disable (float)fn((double)x)
18499         to fnf(x) conversion if errno differences may occur and
18500         -fmath-errno is set.
18501
18502 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
18503
18504         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
18505         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
18506         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
18507
18508 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18509
18510         PR c/35434
18511         * c-common.c (handle_alias_attribute): Disallow attribute for
18512         anything not a FUNCTION_DECL or VAR_DECL.
18513
18514 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
18515
18516         PR c/39035
18517         * real.c (do_compare): Special-case compare of zero against
18518         decimal float value.
18519
18520 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
18521
18522         PR c/36432
18523         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
18524         as indicating flexible array members unless the field itself is
18525         being declarared as the incomplete array.
18526
18527 2009-02-06  Jan Hubicka  <jh@suse.cz>
18528
18529         PR tree-optimization/38844
18530         * ipa-inline.c (try_inline): Stop inlining recursion when edge
18531         is already inlined.
18532
18533 2009-02-06  Richard Guenther  <rguenther@suse.de>
18534
18535         PR middle-end/38977
18536         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
18537         fork because we may expand it as __gcov_fork.
18538
18539 2009-02-06  Nick Clifton  <nickc@redhat.com>
18540
18541         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
18542
18543 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
18544
18545         PR tree-optimization/35659
18546         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
18547         vn_phi_eq): Shortcut if hashcode does not match.
18548         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
18549         NULL operands.
18550         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
18551         and avoid iterative_hash_expr.
18552         (FOR_EACH_VALUE_ID_IN_SET): New.
18553         (value_id_compare): Remove.
18554         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
18555         sort expressions by value id.
18556
18557 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
18558
18559         PR target/38991
18560         * config/sh/predicates.md (general_movsrc_operand): Don't check
18561         the subreg of system registers here.
18562
18563 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
18564
18565         PR c++/39106
18566         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
18567         on the copied decl.
18568
18569 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
18570
18571         PR rtl-optimization/39110
18572         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
18573         addresses, not aligned ones.
18574
18575 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
18576             Richard Guenther  <rguenther@suse.de>
18577
18578         PR tree-optimization/39100
18579         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
18580         comment says and add edges.
18581
18582 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
18583
18584         PR c/35435
18585         * c-common.c (handle_tls_model_attribute): Ignore attribute for
18586         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
18587
18588 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
18589
18590         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
18591         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
18592         register_bb_in_sese, new_sese, free_sese): Moved.
18593         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
18594         outermost_loop_in_scop, build_scop_iteration_domain,
18595         expand_scalar_variables_ssa_name, get_vdef_before_scop,
18596         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
18597         Use loop_in_sese_p instead of loop_in_scop_p.
18598         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
18599         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
18600         (scopdet_basic_block_info): Fix bug in scop detection.
18601         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
18602         eq_loop_to_cloog_loop): Remove.
18603         (nb_loops_around_loop_in_scop, nb_loop
18604         ref_nb_loops): Moved here...
18605         * graphite.h (ref_nb_loops): ... from here.
18606         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
18607         (loop_domain_dim, loop_iteration_vector_dim): Remove.
18608         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
18609         * testsuite/gcc.dg/graphite/scop-19.c: New
18610
18611 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
18612             Hans-Peter Nilsson  <hp@axis.com>
18613
18614         PR rtl-optimization/37889
18615         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
18616         Move offset handling from PLUS to before the switch.  Use new
18617         arguments when considering SYMBOL_REFs too.
18618         (rtx_addr_can_trap_p): Pass dummy offset and size.
18619         (enum may_trap_p_flags): Remove.
18620         (may_trap_p_1): Pass size from MEM_SIZE.
18621
18622         PR rtl-optimization/38921
18623         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
18624         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
18625         * rtlanal.c (may_trap_after_code_motion_p): Delete.
18626         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
18627
18628 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
18629
18630         AVX Programming Reference (January, 2009)
18631         * config/i386/sse.md (*vpclmulqdq): New.
18632
18633 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
18634
18635         PR tree-optimization/38977
18636         PR gcov-profile/38292
18637         * calls.c (special_function_p): Disregard __builtin_ prefix.
18638
18639 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
18640
18641         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
18642         non-indexable addresses even before reload.
18643
18644 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18645
18646         PR c/29129
18647         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
18648         as having variable size.  Do not give an error for unnamed
18649         parameters with [*] declarators.  Give a warning for type names
18650         with [*] declarators and mark them as variable size.
18651         * c-parser.c (c_parser_sizeof_expression): Do not give an error
18652         for sizeof applied to [*] type names.
18653
18654 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18655
18656         PR C++/36607
18657         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
18658
18659 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18660
18661         * gcc.c (process_command): Update copyright notice dates.
18662         * gcov.c (print_version): Likewise.
18663         * gcov-dump.c (print_version): Likewise.
18664         * mips-tfile.c (main): Likewise.
18665         * mips-tdump.c (main): Likewise.
18666
18667 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
18668
18669         PR c/35433
18670         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
18671         for composite type involving a zero-length array type.
18672
18673 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
18674
18675         PR target/35318
18676         * function.c (match_asm_constraints_1): Skip over
18677         initial optional % in the constraint.
18678
18679         PR inline-asm/39059
18680         * c-parser.c (c_parser_postfix_expression): If fixed point is not
18681         supported, don't accept FIXED_CSTs.
18682         * c-decl.c (finish_declspecs): Error if fixed point is not supported
18683         and _Sat is used without _Fract/_Accum.  Set specs->type to
18684         integer_type_node for cts_fract/cts_accum if fixed point is not
18685         supported.
18686
18687 2009-02-02  Catherine Moore  <clm@codesourcery.com>
18688
18689         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
18690
18691 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
18692
18693         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
18694         (ABI_HAS_64BIT_SYMBOLS): Use it.
18695         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
18696
18697 2009-02-02  Paul Brook  <paul@codesourcery.com>
18698
18699         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
18700
18701 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
18702
18703         PR inline-asm/39058
18704         * recog.h (asm_operand_ok): Add constraints argument.
18705         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
18706         recurse on matching constraint.
18707         (check_asm_operands): Pass constraints as 3rd argument to
18708         asm_operand_ok.  Don't look up matching constraint here.
18709         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
18710         to asm_operand_ok.
18711
18712 2009-02-02  Ben Elliston  <bje@au.ibm.com>
18713
18714         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
18715         TARGET_NARROW_VOLATILE_BITFIELD macro names.
18716
18717 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18718
18719         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
18720         information.  Remove some obsolete information.  Reorganize.
18721
18722         * config/pa/fptr.c: Revert license to GPL 2.
18723         * config/pa/milli64.S: Likewise.
18724
18725 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18726
18727         PR target/38904
18728         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
18729         LIBRARY name in, instead of hard-coding it.
18730         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
18731         extra target make frag to tmake_files according to EH model.
18732         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
18733         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
18734         frags that define makefile variable EH_MODEL appropriately.
18735         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
18736         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
18737         to "-sjlj" according to type of EH configured.
18738         (LIBGCC_SONAME):  Concatenate it to shared library base name.
18739         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
18740         to "_sjlj" according to type of EH configured.
18741         (LIBGCC_SONAME):  Concatenate it to shared library base name.
18742         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
18743         (SHLIB_LINK):  Add missing semicolon to if-else construct.
18744         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
18745         string value of "pe_dll" command-line option.
18746         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
18747         (SHLIB_SONAME):  Use it when overriding t-cygming default.
18748         (SHLIB_IMPLIB):  Override t-cygming default.
18749         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
18750         string value of "pe_dll" command-line option.
18751
18752 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
18753
18754         PR target/38952
18755         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
18756         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
18757
18758 2009-01-31  Richard Guenther  <rguenther@suse.de>
18759
18760         PR tree-optimization/38937
18761         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
18762         computing the transitive closure.
18763
18764 2009-01-30  Richard Guenther  <rguenther@suse.de>
18765
18766         PR tree-optimization/39041
18767         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
18768         Propagate variable indices only if the types match for this stmt.
18769
18770 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
18771
18772         PR target/39013
18773         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
18774         inline but never defined.
18775
18776 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
18777
18778         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
18779         (*insv_h_di_reg_extimm): New insn.
18780         (*insv_l<mode>_reg_extimm): New insn.
18781
18782 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18783
18784         * config/picochip/picochip.c (flag_conserve_stack): set
18785         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
18786         fconserve-stack. Reduce call-overhead used by inliner.
18787
18788 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18789
18790         PR/38157
18791         * common.opt (flag_conserve_stack): Initialised to zero.
18792
18793 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
18794
18795         PR/39002
18796         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
18797         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
18798         method.
18799
18800 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
18801
18802         * ira-color.c (allocno_reload_assign): Update comments.
18803         * regmove.c (regmove_optimize): Likewise.
18804
18805         * ra.h: Removed.
18806
18807 2009-01-29  Robert Millan  <rmh@aybabtu.com>
18808
18809         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
18810         * config/i386/kopensolaris-gnu.h: New file.  Undefine
18811         `MD_UNWIND_SUPPORT'.
18812         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
18813
18814 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
18815
18816         PR tree-optimization/39007
18817         * tree-loop-distribution.c (generate_builtin): Use
18818         recompute_dominator to compute the immediate dominator of the
18819         basic block just after the loop.
18820
18821 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18822
18823         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
18824         (ASM_OUTPUT_DWARF_PCREL): Define.
18825
18826 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
18827
18828         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
18829         * doc/passes.texi: Remove entries about regclass, local-alloc, and
18830         global.  Modify entries about regmove and IRA.
18831
18832         * ra-conflict.c: Remove the file.
18833
18834         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
18835
18836         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
18837         (pass_regclass_init): Rename to pass_reginfo_init.
18838
18839         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
18840
18841         * toplev.h (flag_ira): Remove.
18842
18843         * caller-save.c (setup_save_areas): Remove flag_ira.
18844
18845         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
18846
18847         * global.c: Remove the file.
18848
18849         * opts.c (decode_options): Remove flag_ira.
18850
18851         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
18852
18853         * regmove.c: Modify file description.
18854         (find_use_as_address, try_auto_increment): Define them only if
18855         AUTO_INC_DEC is defined.
18856         (replacement_quality, replace_in_call_usage, fixup_match_1,
18857         stable_and_no_regs_but_for_p): Remove.
18858         (reg_set_in_bb): Make it static.
18859         (regmove_optimize): Remove flag_ira and code which worked for
18860         !flag_ira.
18861
18862         * local-alloc.c: Remove the file.
18863
18864         * common.opt (fira): Remove.
18865
18866         * ira.c: Include except.h.
18867         (eliminable_regset): Move from global.c.
18868         (mark_elimination): Ditto.  Remove flag_ira.
18869         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
18870         equiv_mem_modified, validate_equiv_mem_from_store,
18871         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
18872         contains_replace_regs, memref_referenced_p, memref_used_between_p,
18873         no_equiv, recorded_label_ref): Move from local-alloc.c.
18874         (update_equiv_regs): Ditto.  Make it static.
18875         (print_insn_chain, print_insn_chains): Move it from global.c.
18876         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
18877         (build_insn_chain): Ditto.  Make it static.
18878         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
18879         Rename to init_live_subregs.
18880         (gate_ira): Remove flag_ira.
18881
18882         * regclass.c: Rename reginfo.c.  Change file description.
18883         (FORBIDDEN_INC_DEC_CLASSES): Remove.
18884         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
18885         (init_reg_sets_1): Remove code for evaluation of
18886         reg_class_superclasses and losing_caller_save_reg_set.
18887         (init_regs): Remove init_reg_autoinc.
18888         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
18889         ok_for_base_p_nonstrict): Remove.
18890         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
18891         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
18892         corresponding entries.
18893         (dump_regclass, record_operand_costs, scan_one_insn,
18894         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
18895         record_address_regs, auto_inc_dec_reg_p): Remove.
18896         (gt-regclass.h): Rename to gt-reginfo.h.
18897
18898         * rtl.h (dump_global_regs, retry_global_alloc,
18899         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
18900
18901         * Makefile.in (RA_H): Remove.
18902         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
18903         Rename regclass.o to reginfo.o.
18904         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
18905         gt-reginfo.h.
18906         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
18907         (GTFILES): Rename regclass.c to reginfo.c.
18908
18909         * passes.c (init_optimization_passes): Remove pass_local_alloc and
18910         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
18911
18912         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
18913         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
18914         Remove flag_ira.
18915         (finish_spills): Ditto.  Remove code for !flag_ira.
18916
18917 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
18918
18919         PR middle-end/35854
18920         * doc/invoke.texi (rtl debug options): Complete rewrite.
18921         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
18922         to auto_inc_dec".
18923         * mode-switching.c (pass_mode_switching): Rename pass from
18924         "mode-sw" to "mode_sw".
18925         * except.c (pass_convert_to_eh_ranges): Rename pass from
18926         "eh-ranges" to "eh_ranges".
18927         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
18928         to "subreg1".
18929
18930
18931 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
18932             Alexander Monakov  <amonakov@ispras.ru>
18933
18934         PR middle-end/38857
18935         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
18936         register.
18937         (move_exprs_to_boundary): Change return type and pass through
18938         should_move from move_op.  Relax assert.  Update usage ...
18939         (schedule_expr_on_boundary): ... here.  Use should_move instead of
18940         cant_move.
18941         (move_op_orig_expr_found): Indicate that insn was disconnected from
18942         stream.
18943         (code_motion_process_successors): Do not call after_merge_succs
18944         callback if original expression was not found when traversing any of
18945         the branches.
18946         (code_motion_path_driver): Change return type.  Update prototype.
18947         (move_op): Update comment.  Add a new parameter (should_move).  Update
18948         prototype.  Set *should_move based on indication provided by
18949         move_op_orig_expr_found.
18950
18951 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
18952
18953         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
18954         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
18955         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
18956         * config/rs6000/rs6000.c (rs6000_override_options): Default
18957         avoid-indexed-addresses on for Power6, off for everything else.
18958         (avoiding_indexed_address_p): New function.
18959         (rs6000_legitimize_address): Use it.
18960         (rs6000_legitimate_address): Likewise.
18961         * config/rs6000/rs6000.md (movXX_updateX): Likewise
18962
18963 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
18964
18965         PR tree-optimization/38997
18966         * tree-loop-distribution.c (generate_memset_zero): Use
18967         POINTER_PLUS_EXPR for a pointer addition.
18968
18969 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
18970
18971         * config/s390/s390.md (bswap<mode>2): New pattern added.
18972
18973 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18974
18975         * config/s390/s390.md (*tls_load_31): Added type attribute.
18976
18977 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18978
18979         * config/s390/s390.md: Fix a few comments.
18980
18981 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
18982
18983         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
18984         (*tm<mode>_full): Fixed z10prop attribute.
18985         (*tst<mode>_extimm): Fixed z10prop attribute.
18986         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
18987         (*tstqiCCT_cconly): Fixed z10prop attribute.
18988         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
18989         (*movsi_larl): Fixed z10prop attribute.
18990         (*movsi_zarch): Fixed z10prop attribute.
18991         (*movsi_eas): Fixed z10prop attribute.
18992         (*movhi): Fixed z10prop attribute.
18993         (*movqi): Fixed z10prop attribute.
18994         (*movstrictqi): Fixed z10prop attribute.
18995         (*mov<mode>): Fixed z10prop attribute.
18996         (*movcc): Fixed z10prop attribute.
18997         (*sethighpartdi_64): Fixed z10prop attribute.
18998         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
18999         (*negdi2_sign_cc): Fixed z10prop attribute.
19000         (*negdi2_sign): Fixed z10prop attribute.
19001         (*absdi2_sign_cc): Fixed z10prop attribute.
19002         (*absdi2_sign): Fixed z10prop attribute.
19003         (*negabsdi2_sign_cc): Fixed z10prop attribute.
19004         (*negabsdi2_sign): Fixed z10prop attribute.
19005         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
19006         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
19007         (doloop_si64): Fixed z10prop attribute.
19008         (doloop_si31): Fixed z10prop attribute.
19009         (doloop_long): Fixed z10prop attribute.
19010         (indirect_jump): Fixed z10prop attribute.
19011         (nop): Fixed z10prop attribute.
19012         (main_base_64): Fixed z10prop attribute.
19013         (reload_base_64): Fixed z10prop attribute.
19014
19015 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19016
19017         PR rtl-optimization/38740
19018         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
19019         if !optimize.
19020         * config/mips/mips.c (mips_reorg): Likewise.
19021
19022 2009-01-28  Richard Guenther  <rguenther@suse.de>
19023
19024         PR tree-optimization/38926
19025         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
19026         with the correct value id to a value.
19027         (do_regular_insertion): Use the value number of edoubleprime
19028         for the value number of the expr.
19029
19030         Revert
19031         2008-08-21  Richard Guenther  <rguenther@suse.de>
19032
19033         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
19034         a PHI ask VN if it is already available.
19035         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
19036         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
19037
19038 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
19039
19040         PR middle-end/38934
19041         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
19042         set to varying whenever max has TREE_OVERFLOW set, similarly
19043         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
19044
19045 2009-01-28  Richard Guenther  <rguenther@suse.de>
19046
19047         PR middle-end/38908
19048         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
19049         uninitialized aggregate uses in call arguments.
19050
19051 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
19052
19053         PR tree-optimization/38984
19054         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
19055         the nothing_id variable if -fno-delete-null-pointer-checks.
19056
19057 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
19058
19059         PR target/38988
19060         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
19061         (set_got_offset_rex64): Ditto.
19062
19063 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
19064
19065         PR target/38941
19066         * doc/extend.texi: Improve local variable with asm reg.
19067
19068 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
19069
19070         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
19071         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
19072         was not supplied then set warn_packed_bitfield_compat to the
19073         default value of 1.
19074         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
19075         against 1.
19076
19077 2009-01-27  Richard Guenther  <rguenther@suse.de>
19078
19079         PR tree-optimization/38503
19080         * cfgexpand.c (expand_gimple_basic_block): Ignore
19081         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
19082         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
19083         variables that cannot have TBAA applied.
19084         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
19085         statements.
19086
19087 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
19088
19089         PR middle-end/38969
19090         * calls.c (initialize_argument_information): Do not wrap complex
19091         arguments in SAVE_EXPR.
19092
19093 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
19094
19095         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
19096         (INSTALL_LIBGCC): Revert typo commit.
19097
19098 2009-01-26  Richard Guenther  <rguenther@suse.de>
19099
19100         PR tree-optimization/38745
19101         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
19102         from special handling.
19103
19104 2009-01-26  Richard Guenther  <rguenther@suse.de>
19105
19106         PR tree-optimization/38745
19107         * tree-ssa.c (execute_update_addresses_taken): Do not include
19108         variables that cannot possibly be a register in not_reg_needs.
19109         Do not clear TREE_ADDRESSABLE on vars that may not become
19110         registers.
19111         * tree-ssa.c (update_alias_info_1): Include those in the set
19112         of addressable vars.
19113
19114 2009-01-26  Richard Guenther  <rguenther@suse.de>
19115
19116         PR middle-end/38851
19117         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
19118         * tree-ssa-dse.c: Include langhooks.h
19119         (execute_simple_dse): Remove stores with zero size.
19120
19121 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
19122
19123         PR c/38957
19124         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
19125         as PLUS_EXPR.
19126
19127 2009-01-24  Julian Brown  <julian@codesourcery.com>
19128
19129         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
19130         config/arm/linux-atomic.c.
19131         * config/arm/linux-atomic.c: New.
19132
19133 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
19134
19135         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
19136         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
19137         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
19138
19139 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
19140
19141         PR c/38938
19142         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
19143         properly.
19144
19145 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
19146
19147         PR tree-optimization/38953
19148         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
19149         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
19150         (gloog): Split the exit of the scop when the scop exit is a loop exit.
19151         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
19152         changed the CFG.
19153
19154 2009-01-24  Paul Brook  <paul@codesourcery.com>
19155
19156         * config/arm/neon.md (neon_type): Move to arm.md.
19157         (neon_mov<VSTRUCT>): Add neon_type attribute.
19158         * config/arm/arm.md (neon_type): Move to here.
19159         (conds): Add "unconditioal" and use as default for NEON insns.
19160
19161 2009-01-24  Ben Elliston  <bje@au.ibm.com>
19162
19163         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
19164         void *' warning from -Wc++-compat.
19165         * Makefile.in (dominance.o-warn): Remove.
19166
19167 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
19168
19169         PR tree-optimization/38932
19170         * fold-const.c (fold_unary_ignore_overflow): New.
19171         * tree.h (fold_unary_ignore_overflow): Declare.
19172         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
19173         * tree-ssa-sccvn.c (visit_reference_op_load,
19174         simplify_unary_expression): Likewise.
19175
19176 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
19177
19178         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
19179         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
19180         regardless of their type.
19181         * c-common.c (handle_packed_attribute): Don't ignore packed on
19182         bitfields.
19183         * c.opt (Wpacked-bitfield-compat): New warning option.
19184         * stor-layout.c (place_field): Warn if offset of a field changed.
19185         * doc/extend.texi (packed): Mention the ABI change.
19186         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
19187         (Warning Options): Add it to the list.
19188
19189 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
19190
19191         * c-opts.c (c_common_post_options): Fix a typo in comments.
19192
19193 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
19194
19195         PR middle-end/38615
19196         * gimplify.c (gimplify_init_constructor): Fix promotion of const
19197         variables to static.
19198         * doc/invoke.texi (-fmerge-all-constants): Update description.
19199
19200 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
19201
19202         PR target/38931
19203         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
19204         (*movdi_1_rex64): Use type "mmx" for alternative 5.
19205
19206 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
19207
19208         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
19209         a word boundary.
19210         (LOCAL_ALIGNMENT): Similarly.
19211
19212 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19213             Joseph Myers  <joseph@codesourcery.com>
19214
19215         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
19216         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
19217         * config/arm/arm-tune.md: Regenerate.
19218         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
19219         -march=iwmmxt2.
19220
19221 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
19222
19223         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
19224         version number to five.
19225
19226 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
19227
19228         PR c++/38930
19229         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
19230         * c-common.c (set_underlying_type): Likewise.
19231         (is_typedef_decl ): Likewise
19232         * tree.h: Likewise
19233         (set_underlying_type): Likewise.
19234         (is_typedef_type): Likewise.
19235
19236 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
19237
19238         PR middle-end/38587
19239         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
19240         crossing setjmps.
19241
19242 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
19243
19244         PR bootstrap/37660
19245         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
19246         (LIBGCC_SPEC):  Don't define.
19247         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
19248
19249 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
19250
19251         PR rtl-optimization/38879
19252         * alias.c (base_alias_check): Unaligned access via AND address can
19253         alias all surrounding object types except those with sizes equal
19254         or wider than the size of unaligned access.
19255
19256 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
19257
19258         PR c++/26693
19259         * c-decl.c (clone_underlying_type): Move this ...
19260         * c-common.c (set_underlying_type): ... here.
19261         Also, make sure the function properly sets TYPE_STUB_DECL() on
19262         the newly created typedef variant type.
19263         (is_typedef_decl ): New entry point.
19264         * tree.h: Added a new member member_types_needing_access_check to
19265         struct tree_decl_non_common.
19266         (set_underlying_type): New entry point.
19267         (is_typedef_type): Likewise.
19268
19269 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
19270
19271         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
19272         Check whether two instructions have memory references that
19273         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
19274         are helper functions for traversing.
19275         * alias.h (insn_alias_sets_confilict_p): New prototypes.
19276         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
19277         not to draw dependency edge for instructions with non-conflicting
19278         alias sets.
19279
19280 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
19281
19282         PR other/38758
19283         * longlong.h: Update copyright years.  Use soft-fp license notice.
19284         Sync __clz_tab declaration with glibc.
19285
19286 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
19287
19288         PR target/30687
19289         * doc/extend.texi (syscall_linkage): New.
19290         (version_id): Modify.
19291
19292 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19293             Richard Guenther  <rguenther@suse.de>
19294
19295         PR tree-optimization/38747
19296         PR tree-optimization/38748
19297         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
19298         conversion if the base address is an indirect reference and the
19299         aliasing sets could cause issues.
19300
19301 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19302
19303         * common.opt (fgraphite, fgraphite-identity): Add comment for
19304         explaining why these options are not documented.
19305
19306 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
19307
19308         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
19309         gimple_call_lhs is NULL.
19310
19311 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
19312
19313         PR target/38868
19314         * emit-rtl.c (adjust_address_1): Make sure memref is never
19315         overwritten.
19316
19317 2009-01-20  Ben Elliston  <bje@au.ibm.com>
19318
19319         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19320         const qualifier from arg parameter. Remove unnecessary cast to char *.
19321         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
19322         const qualifier from arg 2.
19323
19324 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
19325
19326         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
19327
19328 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
19329
19330         PR c/38869
19331         * rtl.h (reinit_regs): New prototype.
19332         * regclass.c: Include ira.h.
19333         (reinit_regs): New.
19334         * Makefile.in (regclass.o): Add ira.h.
19335         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
19336
19337 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
19338
19339         PR target/38736
19340         * c-common.c (handle_aligned_attribute): Use
19341         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
19342         default alignment value.
19343
19344         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
19345
19346         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
19347         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
19348
19349         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
19350         __BIGGEST_ALIGNMENT__.
19351
19352         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
19353
19354 2009-01-18  Richard Guenther  <rguenther@suse.de>
19355
19356         PR tree-optimization/38819
19357         * tree-flow.h (operation_could_trap_helper_p): Declare.
19358         * tree-eh.c (operation_could_trap_helper_p): Export.
19359         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
19360         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
19361         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
19362         are about to insert a possibly trapping instruction and fail
19363         in this case.
19364
19365 2009-01-18  Andreas Schwab  <schwab@suse.de>
19366
19367         * doc/install.texi (Configuration): Remove obsolete paragraph
19368         about use of --with-gnu-ld with --with-gnu-as.
19369
19370 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
19371
19372         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
19373         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
19374         Follow spelling conventions.
19375
19376 2009-01-18  Ben Elliston  <bje@au.ibm.com>
19377
19378         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
19379         C++ warning about implicit conversion from void * to struct
19380         bitmap_head_def *.
19381         (bitmap_obstack_free): Likewise for bitmap_element *.
19382         * Makefile.in (bitmap.o-warn): Remove.
19383
19384 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
19385
19386         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
19387
19388 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
19389             Tobias Grosser  <tobi.grosser@amd.com>
19390
19391         * graphite.c (graphite_trans_scop_block): Do not block single
19392         nested loops.
19393
19394 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
19395
19396         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
19397         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
19398         test with assertion.
19399
19400 2009-01-16  Richard Guenther  <rguenther@suse.de>
19401
19402         PR tree-optimization/38835
19403         PR middle-end/36227
19404         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
19405         and INT + PTR -> (INT)(PTR p+ INT) folding.
19406         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
19407
19408 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
19409
19410         PR target/38554
19411         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
19412         the subreg from a lowpart subreg if it is also casting the value.
19413
19414 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19415             Tobias Grosser  <tobi.grosser@amd.com>
19416
19417         * graphite.c (compare_prefix_loops): New.
19418         (build_scop_canonical_schedules): Rewritten.
19419         (graphite_transform_loops): Move build_scop_canonical_schedules
19420         after build_scop_iteration_domain.
19421
19422 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
19423             Tobias Grosser  <tobi.grosser@amd.com>
19424
19425         * graphite.c (add_conditions_to_domain): Add the loops to
19426         the dimension of the iteration domain.  Do copy the domain
19427         only when it exists.
19428         (build_scop_conditions_1): Do not call add_conditions_to_domain.
19429         (add_conditions_to_constraints): New.
19430         (can_generate_code_stmt, can_generate_code): Removed.
19431         (gloog): Do not call can_generate_code.
19432         (graphite_transform_loops): Call add_conditions_to_constraints
19433         after building the iteration domain.
19434
19435 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
19436
19437         PR tree-optimization/38789
19438         * tree-ssa-threadedge.c
19439         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
19440         __builtin_constant_p.
19441
19442 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
19443
19444         * dce.c (delete_unmarked_insns): Reversed the order that insns are
19445         examined before deleting them.
19446
19447 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
19448
19449         * function.c (aggregate_value_p): Correctly extract the function
19450         type from CALL_EXPR_FN lookup.
19451
19452 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
19453
19454         * config/picochip/picochip.c (picochip_override_options): Revert
19455         CFI asm flag disable commited previously.
19456
19457 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
19458             Tobias Grosser  <tobi.grosser@amd.com>
19459             Jan Sjodin  <jan.sjodin@amd.com>
19460
19461         * graphite.c (scan_tree_for_params): On substractions negate
19462         all the coefficients of the term.
19463         (clast_to_gcc_expression_red): New.  Handle reduction expressions
19464         of more than two operands.
19465         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
19466         (get_vdef_before_scop): Handle also the case of default definitions.
19467
19468 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
19469
19470         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
19471         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
19472         Also use them when walking CALL_INSN_FUNCTION_USAGE.
19473
19474 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
19475             Joey Ye  <joey.ye@intel.com>
19476
19477         PR middle-end/37843
19478         * cfgexpand.c (expand_stack_alignment): Don't update stack
19479         boundary nor check incoming stack boundary here.
19480         (gimple_expand_cfg): Update stack boundary and check incoming
19481         stack boundary here.
19482
19483 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
19484
19485         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
19486
19487 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
19488
19489         PR rtl-optimization/38245
19490         * calls.c (expand_call): Add stack arguments to
19491         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19492         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
19493         in regs and partially in memory or BLKmode arguments.
19494         (emit_library_call_value_1): Add stack arguments to
19495         CALL_INSN_FUNCTION_USAGE even for pure calls (when
19496         ACCUMULATE_OUTGOING_ARGS).
19497         * dce.c: Include tm_p.h.
19498         (find_call_stack_args): New function.
19499         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
19500         argument.
19501         (mark_insn): Call find_call_stack_args for CALL_Ps.
19502         (prescan_insns_for_dce): Walk insns backwards in bb rather than
19503         forwards.  Allocate and free arg_stores bitmap if needed, pass it
19504         down to deletable_insn_p, don't mark stores set in arg_stores
19505         bitmap, clear the bitmap at the beginning of each bb.
19506         * Makefile.in (dce.o): Depend on $(TM_P_H).
19507
19508 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
19509
19510         PR target/22599
19511         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
19512         to make sure the insn is a conditional test (bug 22599).  Reformat a
19513         few long lines.
19514
19515 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
19516
19517         PR middle-end/38431
19518         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
19519         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
19520         (gloog): Do not call cleanup_tree_cfg.
19521         (graphite_transform_loops): Call cleanup_tree_cfg after all
19522         scops have been code generated.
19523
19524 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
19525         * doc/gty.texi (Invoking the garbage collector): Added new node
19526         and section documenting ggc_collect.
19527
19528 2009-01-14  Richard Guenther  <rguenther@suse.de>
19529
19530         PR tree-optimization/38826
19531         PR middle-end/38477
19532         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
19533         initialization notes only if we actually emitted a warning.
19534         (intra_create_variable_infos): Add constraints for a result decl
19535         that is passed by hidden reference.
19536         (build_pred_graph): Mark all related variables non-direct on
19537         address-taking.
19538
19539 2009-01-14  Nick Clifton  <nickc@redhat.com>
19540
19541         * ira-conflicts.c: Include addresses.h for the definition of
19542         base_reg_class.
19543         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
19544         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
19545
19546 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
19547
19548         PR target/38811
19549         * Makefile.in (ira-lives.o): Add except.h.
19550
19551         * ira-lives.c: Include except.h.
19552         (process_bb_node_lives): Process can_throw_internal.
19553
19554 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
19555
19556         PR rtl-optimization/38774
19557         * combine.c (simplify_set): When undoing cc_use change, don't do
19558         PUT_CODE on the newly created comparison, but instead put back the
19559         old comparison.
19560
19561 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
19562
19563         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
19564         values.  Remove duplicate arm8 entry.
19565
19566 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19567
19568         PR tree-optimization/38786
19569         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
19570         the SSA_NAME case of expand_scalar_variables_expr.
19571         Set the type of an expression to the type of its assign statement.
19572         (expand_scalar_variables_expr): Also gather the scalar computation
19573         used to index the memory access.  Do not pass loop_p.
19574         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
19575         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
19576         the gimple_stmt_iterator where it inserts new code.
19577         Do not pass loop_p.
19578         (copy_bb_and_scalar_dependences): Do not pass loop_p.
19579         (translate_clast): Update call to copy_bb_and_scalar_dependences.
19580
19581 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
19582
19583         * graphite.h (debug_value): Removed.
19584         * graphite.c (debug_value): Removed.
19585
19586 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19587
19588         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
19589         ldrd/strd with two 32-bit instructions.
19590
19591 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
19592
19593         * config/arm/arm.c (struct processors): Pass for speed down into
19594         cost helper functions.
19595         (const_ok_for_op): Handle COMPARE and inequality nodes.
19596         (arm_rtx_costs_1): Rewrite.
19597         (arm_size_rtx_costs): Update prototype.
19598         (arm_rtx_costs): Pass speed down to helper functions.
19599         (arm_slowmul_rtx_costs): Rework cost calculations.
19600         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
19601         (arm_9e_rtx_costs): Likewise.
19602
19603 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
19604
19605         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
19606         relocations of local symbols wider than UNITS_PER_WORD are not valid.
19607         (alpha_legitimize_address): Do not split local symbols wider than
19608         UNITS_PER_WORD into HIGH/LO_SUM parts.
19609
19610 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
19611
19612         PR bootstrap/38580
19613         * gcc.c (process_command): Replace call to execvp with calls
19614         to pex_one and exit.
19615
19616 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
19617
19618         PR target/29141
19619         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
19620         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
19621         variant for devices with 3-byte PC.
19622         (__tablejump_elpm__): New.
19623
19624 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19625
19626         PR c/32041
19627         * c-parser.c (c_parser_postfix_expression): Allow `->' in
19628         offsetof member-designator, handle it as `[0].'.
19629
19630 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19631
19632         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
19633         function when not using named sections on targets with named sections
19634         if branch distance is less than 262132.
19635
19636 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
19637
19638         * combine.c (combine_instructions):  Recompute
19639         optimize_this_for_speed_p  for each BB in the main combine loop.
19640
19641 2009-01-12  Tomas Bily  <tbily@suse.cz>
19642
19643         PR middlend/38385
19644         * tree-loop-distribution.c (prop_phis): New function.
19645         (generate_builtin): Call prop_phis.
19646         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
19647
19648 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
19649
19650         PR tree-optimization/38807
19651         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
19652         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
19653
19654 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
19655
19656         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
19657         subreg of op0 to the original op0.
19658
19659 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
19660
19661         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
19662
19663 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
19664
19665         PR debug/7055
19666         * mips-tfile.c (parse_def): Fix parsing of def strings
19667         starting with digits.
19668
19669 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
19670
19671         PR target/38695
19672         * config/arm/arm.c (arm_is_long_call_p): Don't call
19673         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
19674
19675 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
19676
19677         * regrename.c (regrename_optimize): Fix dumping.
19678         (find_oldest_value_reg): Preserve REG_POINTER.
19679         (copy_hardreg_forward_1): Likewise.
19680
19681 2009-01-09  Diego Novillo  <dnovillo@google.com>
19682
19683         * gimple.h (struct gimple_statement_base) <uid>: Document
19684         the restrictions on its use.
19685         (gimple_uid): Tidy.
19686         (gimple_set_uid): Tidy.
19687
19688 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19689
19690         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
19691         zero guard even if align_bytes != 0 and count is smaller than
19692         size_needed.
19693
19694 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
19695
19696         PR rtl-optimization/38495
19697         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
19698         (add_range_and_copies_from_move_list): Print all added ranges.
19699         Add ranges to memory optimized destination.
19700
19701 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19702
19703         PR target/38686
19704         PR target/38708
19705         * config/i386/i386.c (override_options): Reject
19706         -mstringop-strategy=rep_8byte with -m32.
19707         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
19708         to 1.  Do count comparison against epilogue_size_needed at compile
19709         time even when count_exp was constant forced into register.  For
19710         size_needed don't jump to epilogue, instead just avoid aligning
19711         and invoke the body algorithm.  If need_zero_guard, add zero guard
19712         even if count is non-zero, but smaller than size_needed + number of
19713         bytes that could be stored for alignment.
19714         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
19715         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
19716         but smaller than size_needed + number of bytes that could be stored
19717         for alignment.  Compare size_needed with epilogue_size_needed instead
19718         of desired_align - align, don't adjust size_needed, pass
19719         epilogue_size_needed to the epilogue expanders.
19720
19721         PR c/35742
19722         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
19723
19724 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19725
19726         * pa.c (last_address): Change to unsigned.
19727         (update_total_code_bytes): Change argument to unsigned.  Don't
19728         check if insn addresses are set.
19729         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
19730         addresses are not set.
19731         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
19732
19733 2009-01-09  Nick Clifton  <nickc@redhat.com>
19734
19735         * config/sh/symbian.c: Replace uses of DECL_INLINE with
19736         DECL_DECLARED_INLINE_P.
19737
19738 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
19739
19740         PR middle-end/38347
19741         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
19742         GET_MODE (op0) in operand_subword_force calls.
19743
19744         PR middle-end/38771
19745         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
19746         fold_convert arg0 operands to TREE_TYPE (op0) first.
19747
19748 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
19749
19750         * params.def (ira-max-conflict-table-size): Decrease default value
19751         to 1000.
19752
19753 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
19754
19755         PR tree-optimization/37031
19756         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
19757         on parameter_set.
19758         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
19759         allocate it using gc instead of heap, use VEC_quick_push instead of
19760         VEC_safe_push.
19761         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
19762         instead of heap, use VEC_quick_push instead of VEC_safe_push.
19763         * tree-data-ref.h (struct access_matrix): Change matrix to gc
19764         allocated vector from heap allocated.
19765         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
19766         * tree-loop-linear.c (linear_transform_loops): Allocate nest
19767         vector only after perfect_loop_nest_depth call.
19768
19769 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
19770             Jan Sjodin  <jan.sjodin@amd.com>
19771
19772         PR tree-optimization/38559
19773         * graphite.c (debug_value, copy_constraint,
19774         swap_constraint_variables, scale_constraint_variable, ): New.
19775         (get_lower_bound, get_upper_bound): Removed.
19776         (graphite_trans_bb_strip_mine): Clean up this code that works
19777         only for constant number of iterations.  Fully copy upper and
19778         lower bound constraints, not only the constant part of them.
19779         * graphite.h (debug_value): Declared.
19780
19781 2009-01-08  Ira Rosen  <irar@il.ibm.com>
19782
19783         PR tree-optimization/37194
19784         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
19785         Don't add the cost of cost model guard in prologue to scalar
19786         outside cost in case of known number of iterations.
19787
19788 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
19789             Alan Modra  <amodra@bigpond.net.au>
19790
19791         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
19792         non-word-aligned REG+CONST addressing.
19793
19794 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
19795
19796         PR target/38706
19797         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
19798         free_after_compilation when outputting a thunk.
19799         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
19800         Do not call free_after_compilation here.
19801
19802 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
19803
19804         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
19805         (ix86_valid_target_attribute_inner_p): Ditto.
19806
19807 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
19808
19809         PR tree-optimization/38492
19810         PR tree-optimization/38498
19811         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
19812         * tree-chrec.h (scev_is_linear_expression): Declared.
19813         * graphite.c (graphite_cannot_represent_loop_niter): New.
19814         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
19815         (graphite_loop_normal_form): Use gcc_assert.
19816         (scan_tree_for_params): Use CASE_CONVERT.
19817         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
19818         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
19819         Use gcc_assert.  Discard scops that contain unhandled cases.
19820         (build_scop_conditions): Return a boolean status for unhandled cases.
19821         (strip_mine_profitable_p): Print the loop number, not its depth.
19822         (is_interchange_valid): Pass the depth of the loop nest, don't
19823         recompute it wrongly.
19824         (graphite_trans_bb_block): Same.
19825         (graphite_trans_bb_block): Print tentative of loop blocking.
19826         (graphite_trans_scop_block): Do not print that the loop has been
19827         blocked.
19828         (graphite_transform_loops): Do not handle scops that contain condition
19829         scalar phi nodes.
19830
19831 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
19832
19833         AVX Programming Reference (December, 2008)
19834         * config/i386/avxintrin.h (_mm256_stream_si256): New.
19835         (_mm256_stream_pd): Likewise.
19836         (_mm256_stream_ps): Likewise.
19837
19838         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
19839         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
19840         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
19841         (bdesc_special_args): Add __builtin_ia32_movntdq256,
19842         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
19843         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
19844         (ix86_expand_special_args_builtin): Likewise.
19845
19846         * config/i386/sse.md (AVXMODEDI): New.
19847         (avx_movnt<mode>): Likewise.
19848         (avx_movnt<mode>): Likewise.
19849         (<sse>_movnt<mode>): Remove AVX support.
19850         (sse2_movntv2di): Likewise.
19851
19852 2009-01-07  Richard Guenther  <rguenther@suse.de>
19853
19854         PR middle-end/38751
19855         * fold-const.c (extract_muldiv): Remove obsolete comment.
19856         (fold_plusminus_mult_expr): Undo MINUS_EXPR
19857         to PLUS_EXPR canonicalization for the canonicalization.
19858
19859 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
19860
19861         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
19862         hosted cross-compilers generating less efficient code.
19863
19864 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
19865
19866         * function.h (rtl_data): Add a dbr_scheduled_p field.
19867         * reorg.c (dbr_schedule): Set it.
19868         (gate_handle_delay_slots): Check it.
19869         * config/mips/mips.c (mips_base_delayed_branch): Delete.
19870         (mips_reorg): Check flag_delayed_branch instead of
19871         mips_base_delayed_branch.
19872         (mips_override_options): Don't set mips_base_delayed_branch
19873         or flag_delayed_branch.
19874
19875 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
19876
19877         PR rtl-optimization/38426.
19878         * ira.c (ira): Set current_function_is_leaf earlier.
19879
19880 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
19881
19882         PR rtl-optimization/38722
19883         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
19884         too early, only set a flag and modify after last possible
19885         undo_all point.
19886
19887 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
19888
19889         PR c/34252
19890         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
19891         * real.c (decimal_single_format): Correct values of emin and emax.
19892         (decimal_double_format): Ditto.
19893         (decimal_quad_format): Ditto.
19894         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
19895         computation of DECnn_MIN and DECnn_MAX for corrected values of
19896         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
19897         __DECnn_MIN__, and adjust its computation for the corrected value
19898         of emin.
19899
19900 2009-01-06  Jan Hubicka  <jh@suse.cz>
19901
19902         PR target/38744
19903         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
19904
19905 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
19906
19907         * doc/contrib.texi (Contributors): Slightly adjust the end note.
19908         Add Robert Clark to the list of testers.
19909
19910 2009-01-06  Jan Hubicka  <jh@suse.cz>
19911             Kai Tietz  <kai.tietz@onevision.com>
19912
19913         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
19914         * config/i386/i386.c (ix86_expand_call): Add clobbers.
19915
19916 2009-01-06  Jan Hubicka  <jh@suse.cz>
19917             Kai Tietz  <kai.tietz@onevision.com>
19918
19919         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
19920         for w64 ABI.
19921         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
19922         (ix86_nsaved_regs): Count only general purpose regs.
19923         (ix86_nsaved_sseregs): New.
19924         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
19925         to 16 for w64; compute padding and size of sse reg save area.
19926         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
19927         general purpose regs.
19928         (ix86_emit_save_sse_regs_using_mov): New.
19929         (ix86_expand_prologue): Save SSE regs if needed.
19930         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
19931         (ix86_emit_restore_sse_regs_using_mov): New.
19932         (ix86_expand_epilogue): Save SSE regs if needed.
19933
19934 2009-01-06  Jan Hubicka  <jh@suse.cz>
19935             Kai Tietz  <kai.tietz@onevision.com>
19936
19937         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
19938         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
19939         functions when accumulate outgoing args is off.
19940
19941 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
19942
19943         PR bootstrap/38742
19944         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
19945         before using pseudos_have_intersected_live_ranges_p.
19946
19947         * ira-int.h (ira_assert): Always define.
19948
19949 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
19950
19951         AVX Programming Reference (December, 2008)
19952         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
19953         (_mm256_permute2_pd): Likewise.
19954         (_mm_permute2_ps): Likewise.
19955         (_mm256_permute2_ps): Likewise.
19956         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
19957         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
19958
19959         * config/i386/i386.c (ix86_builtins): Remove
19960         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
19961         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
19962         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
19963         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
19964         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
19965         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
19966         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
19967         __builtin_ia32_vpermil2ps256.
19968         (ix86_init_mmx_sse_builtins): Updated.
19969         (ix86_expand_args_builtin): Likewise.
19970
19971 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19972
19973         * pa.c (output_call): Relocate non-jump insns in the delay slot of
19974         long absolute calls when generating PA 2.0 code.
19975
19976 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
19977
19978         PR rtl-optimization/38583
19979         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
19980
19981         * params.def (ira-max-conflict-table-size): New.
19982
19983         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
19984
19985         * ira.h (ira_conflicts_p): New external definition.
19986
19987         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
19988         table.  Report this.  Return result of building.
19989         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
19990         building conflict table.
19991
19992         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
19993         (ira_color): Use ira_conflicts_p.
19994
19995         * global.c: Include ira.h.
19996         (pseudo_for_reload_consideration_p, build_insn_chain): Use
19997         ira_conflicts_p.
19998
19999         * Makefile.in (global.o): Add ira.h.
20000
20001         * ira-build.c (mark_all_loops_for_removal,
20002         propagate_some_info_from_allocno): New.
20003         (remove_unnecessary_allocnos): Call
20004         propagate_some_info_from_allocno.
20005         (remove_low_level_allocnos): New.
20006         (remove_unnecessary_regions): Add parameter.  Call
20007         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
20008         parameter to remove_unnecessary_regions.
20009         (ira_build): Remove all regions but root if the conflict table was
20010         not built.  Update conflict hard regs for allocnos crossing calls.
20011
20012         * ira.c (ira_conflicts_p): New global.
20013         (ira): Define and use ira_conflicts_p.
20014
20015         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
20016         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
20017         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
20018
20019 2009-01-06  Ben Elliston  <bje@au.ibm.com>
20020
20021         * gengtype-lex.l (YY_NO_INPUT): Define.
20022
20023 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20024
20025         PR c/34911
20026         * c-common.c (handle_vector_size_attribute): Also reject
20027         BOOLEAN_TYPE types.
20028
20029 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
20030
20031         PR tree-optimization/38492
20032         * graphite.c (rename_map_elt, debug_rename_elt,
20033         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
20034         rename_map_elt_info, eq_rename_map_elts,
20035         get_new_name_from_old_name, bb_in_sese_p): Moved around.
20036         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
20037         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
20038         (sese_build_livein_liveouts): New.
20039         (new_sese, free_sese): New.
20040         (new_scop): Call new_sese.
20041         (free_scop): Call free_sese.
20042         (rename_variables_from_edge, rename_phis_end_scop): Removed.
20043         (register_old_new_names): Renamed register_old_and_new_names.
20044         (register_scop_liveout_renames, add_loop_exit_phis,
20045         insert_loop_close_phis, struct igp,
20046         default_liveout_before_guard, add_guard_exit_phis,
20047         insert_guard_phis, copy_renames): New.
20048         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
20049         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
20050         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
20051         (scop_adjust_phis_for_liveouts): New.
20052         (gloog): Call scop_adjust_phis_for_liveouts.
20053
20054         * graphite.h (struct sese): Documented.  Added fields liveout,
20055         num_ver and livein.
20056         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
20057         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
20058         (struct scop): Added field liveout_renames.
20059         (SCOP_LIVEOUT_RENAMES): New.
20060
20061 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20062
20063         PR tree-optimization/38510
20064         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
20065         (translate_clast): Call recompute_all_dominators before
20066         graphite_verify.
20067         (gloog): Call recompute_all_dominators before graphite_verify.
20068
20069 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
20070             Jan Sjodin  <jan.sjodin@amd.com>
20071
20072         PR tree-optimization/38500
20073         * graphite.c (create_sese_edges): Call fix_loop_structure after
20074         splitting blocks.
20075
20076 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
20077
20078         * config.gcc: Add m32r*-*-rtems*.
20079         * config/m32r/rtems.h: New file.
20080
20081 2009-01-05  Ben Elliston  <bje@au.ibm.com>
20082
20083         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
20084         (.po.pox): Likewise.
20085         (po/gcc.pot): Likewise.
20086
20087 2009-01-04  David S. Miller  <davem@davemloft.net>
20088
20089         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
20090         (STARTING_FRAME_OFFSET): Always set to zero.
20091
20092 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20093
20094         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
20095         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
20096         fixed-point types, and vectors of the same.
20097
20098 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
20099
20100         * config/mips/sync.md (*mb_barrier): Rename to...
20101         (*memory_barrier): ...this.
20102
20103 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
20104
20105         * doc/extend.texi (Function Attributes): Move @cindex after @item
20106         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
20107         and put in alphabetical order. Fix 'target' name and put in order.
20108         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
20109         typos.
20110
20111 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
20112
20113         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
20114         (memory_barrier): Expand as unspec instead of unspec_volatile.
20115         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20116         (*memory_barrier): Define as unspec instead of unspec_volatile.
20117         Use (match_dup 0) as input operand.
20118
20119         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
20120         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
20121         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
20122         scratch register.  Remove operand 1.
20123         (*stbar): Define as unspec instead of unspec_volatile.
20124         Use (match_dup 0) as input operand, remove (const_int 8).
20125         (*membar): Define as unspec instead of unspec_volatile.
20126         Use (match_dup 0) as input operand, remove input operand 2.
20127
20128         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
20129         (memory_barrier): Expand as unspec instead of unspec_volatile.
20130         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20131         (*memory_barrier): Define as unspec instead of unspec_volatile.
20132         Use (match_dup 0) as input operand.
20133
20134         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
20135         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20136         Set volatile flag on operand 0.
20137         (*memory_barrier): New insn pattern.
20138
20139         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
20140         insn operands.
20141         (*memory_barrier): Use (match_dup 0) as input operand.
20142
20143         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
20144         Remove mem:BLK from insn operands.  Use Pmode scratch register.
20145         Set volatile flag on operand 0.
20146         (*mb_internal): New insn pattern.
20147
20148         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
20149
20150 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20151
20152         PR middle-end/38586
20153         * function.c (struct temp_slot): Move to the section of the file
20154         that deals with temp slots.  Remove field 'address'.
20155         (temp_slot_address_table): New hash table of address -> temp slot.
20156         (struct temp_slot_address_entry): New struct, items for the table.
20157         (temp_slot_address_compute_hash, temp_slot_address_hash,
20158         temp_slot_address_eq, insert_temp_slot_address): Support functions
20159         for the new table.
20160         (find_temp_slot_from_address): Rewrite to use the new hash table.
20161         (remove_unused_temp_slot_addresses): Remove addresses of temp
20162         slots that have been made available.
20163         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
20164         worker function for remove_unused_temp_slot_addresses.
20165         (assign_stack_temp_for_type): Don't clear the temp slot address list.
20166         Add the temp slot address to the address -> temp slot map.
20167         (update_temp_slot_address): Update via insert_temp_slot_address.
20168         (free_temp_slots): Call remove_unused_temp_slot_addresses.
20169         (pop_temp_slots): Likewise.
20170         (init_temp_slots): Allocate the address -> temp slot map, or empty
20171         the map if it is already allocated.
20172         (prepare_function_start): Initialize temp slot processing.
20173
20174 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
20175
20176         PR middle-end/38584
20177         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
20178         Calculate the size of all stack vars assuming no packing of stack
20179         vars will happen, replacing a quadratic algorithm with a linear one.
20180
20181 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20182
20183         PR target/38707
20184         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
20185         can't be used.
20186
20187 2009-01-03  Diego Novillo  <dnovillo@google.com>
20188
20189         * doc/contrib.texi: Update contributions.
20190
20191 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
20192
20193         PR c++/38705
20194         * builtins.c (fold_builtin_memory_op): Give up if either operand
20195         is volatile.  Set srctype or desttype to non-qualified version
20196         of the other type.
20197
20198         PR c/38700
20199         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
20200         and FUNCTION_DECLs.
20201
20202 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
20203
20204         PR rtl-optimization/35805
20205         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
20206         problem if fast dce is able to remove any instructions.
20207         * dce.c (dce_process_block): Fix dump message.
20208
20209 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
20210
20211         PR 33649
20212         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
20213
20214 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
20215
20216         PR middle-end/38690
20217         * tree-flow.h (op_code_prio, op_prio): New prototypes.
20218         * tree-pretty-print.c (op_code_prio): New function.
20219         (op_prio): No longer static.  Use op_code_prio.
20220         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
20221         Use op_prio and op_code_prio to determine if () should be
20222         printed around operand(s) or not.
20223
20224         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
20225         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
20226         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
20227         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
20228         pp_character instead of pp_string for single letter printing.
20229
20230 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
20231
20232         * doc/extend.texi: Fix '#pragma GCC option' typo.
20233
20234 2009-01-02  Richard Guenther  <rguenther@suse.de>
20235
20236         * doc/install.texi (--enable-checking): Mention different
20237         default for stage1.
20238         (--enable-stage1-checking): Document.
20239
20240 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
20241
20242         PR middle-end/30142
20243         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
20244         case to be an error.
20245
20246 2009-01-02  Ben Elliston  <bje@au.ibm.com>
20247
20248         * config/fp-bit.h (pack_d): Constify argument.
20249         * config/fp-bit.c (makenan): Constify return type. Remove casts.
20250         (isnan): Constify argument.
20251         (isinf): Likewise.
20252         (iszero): Likewise.
20253         (pack_d): Likewise.
20254         (_fpadd_parts): Constify return type.
20255         (_fpmul_parts): Likewise.
20256         (_fpdiv_parts): Likewise.
20257
20258 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
20259
20260         PR c/36489
20261         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
20262         warn about overwriting initializer with side-effects or
20263         -Woverride-init if !IMPLICIT.
20264         (output_init_element): Likewise.  Pass IMPLICIT down to
20265         add_pending_init.
20266         (process_init_element): Add IMPLICIT argument.  Pass it down
20267         to output_init_element.
20268         (push_init_element, pop_init_level, set_designator): Adjust
20269         process_init_element callers.
20270         (set_nonincremental_init, set_nonincremental_init_from_string):
20271         Adjust add_pending_init callers.
20272         (output_pending_init_elements): Adjust output_init_element callers.
20273         * c-tree.h (process_init_element): Adjust prototype.
20274         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
20275         process_init_element callers.
20276
20277 \f
20278 Copyright (C) 2009 Free Software Foundation, Inc.
20279
20280 Copying and distribution of this file, with or without modification,
20281 are permitted in any medium without royalty provided the copyright
20282 notice and this notice are preserved.