OSDN Git Service

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