OSDN Git Service

2010-08-25 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-25  Richard Guenther  <rguenther@suse.de>
2
3         PR middle-end/45379
4         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5         TARGET_MEM_REF in alignment computation.
6
7 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
8
9         PR tree-optimization/45059
10         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
11         type conversions from newop{1,2}.  Assert t is a comparison and
12         newop{1,2} after the stripping are gimple vals.
13
14 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
15
16         * config/arm/iterators.md (VU, SE, V_widen_l): New.
17         (V_unpack, US): New.
18         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for
19         vmovl.
20         (vec_unpack<US>_lo_<mode>): Likewise.
21         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
22         (neon_vec_unpack<US>_lo_<mode>): Likewise.
23         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
24         (vec_widen_<US>mult_hi_<mode>): Likewise.
25         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
26         (neon_vec_<US>mult_hi_<mode>"): Likewise.
27         (neon_unpack<US>_<mode>): Widening move intermediate step for
28         vectorizing without -mvectorize-with-neon-quad.
29         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
30         for vectorizing without -mvectorize-with-neon-quad.
31         * config/arm/predicates.md (vect_par_constant_high): Check for
32         high-half lanes of a vector.
33         (vect_par_constant_low): Check for low-half lanes of a vector.
34
35 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
36
37         * tree-if-conv.c (struct ifc_dr): New.
38         (IFC_DR): New.
39         (DR_WRITTEN_AT_LEAST_ONCE): New.
40         (DR_RW_UNCONDITIONALLY): New.
41         (memref_read_or_written_unconditionally): Use the cached values
42         when possible.
43         (write_memref_written_at_least_once): Same.
44         (if_convertible_loop_p): Initialize and free DR->aux fields.
45
46 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
47
48         * gimple.c (gimple_could_trap_p_1): Not static anymore.
49         Pass an extra bool parameter include_mem.
50         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
51         (gimple_assign_rhs_could_trap_p): Same.
52         * gimple.h (gimple_could_trap_p_1): Declared.
53         * tree-data-ref.h (same_data_refs_base_objects): New.
54         (same_data_refs): New.
55         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
56         (write_memrefs_written_at_least_once): New.
57         (ifcvt_memrefs_wont_trap): New.
58         (operations_could_trap): New.
59         (ifcvt_could_trap_p): New.
60         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
61         Gets a vector of data refs.
62         (if_convertible_stmt_p): Same.
63         (if_convertible_loop_p_1): New.
64         (if_convertible_loop_p): Call if_convertible_loop_p_1.
65
66 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
67
68         * common.opt (ftree-loop-if-convert-stores): New flag.
69         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
70         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
71         the created statement before GSI.
72         (if_convertible_phi_p): Allow virtual phi nodes when
73         flag_loop_if_convert_stores is set.
74         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
75         Do not handle types that do not match is_gimple_reg_type.
76         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
77         when flag_loop_if_convert_stores is set, as LHS can contain
78         memory refs.
79         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
80         to if_convertible_gimple_assign_stmt_p.
81         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
82         (replace_phi_with_cond_gimple_assign_stmt): Renamed
83         predicate_scalar_phi.  Do not handle virtual phi nodes.
84         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
85         Call predicate_scalar_phi.
86         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
87         just after the labels for flag_loop_if_convert_stores, otherwise
88         insert the predicate in the end of the BB.
89         (predicate_mem_writes): New.
90         (combine_blocks): Call predicate_all_scalar_phis.  When
91         flag_loop_if_convert_stores is set, call predicate_mem_writes.
92         (tree_if_conversion): Call mark_sym_for_renaming when
93         flag_loop_if_convert_stores is set.
94         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
95         flag_loop_if_convert_stores is set.
96
97 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
98
99         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
100         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
101         (pa_function_value): Make static.
102         (override_options): Rename to...
103         (pa_option_override): ...this. Make static.
104         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
105         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
106         TARGET_OPTION_OVERRIDE): Define.
107         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
108         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
109         Remove.
110         * config/pa/pa-protos.h (override_options): Remove.
111
112 2010-08-24  Richard Guenther  <rguenther@suse.de>
113
114         PR middle-end/45379
115         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
116         if addr->index is NULL or zero.
117         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
118         TARGET_MEM_REF more properly.
119         (indirect_ref_may_alias_decl_p): Likewise.
120         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
121         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more
122         properly.
123
124 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
125
126         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
127         (m32c_override_options): Rename to...
128         (m32c_option_override): ...this. Make static.
129         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
130         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
131         Remove.
132         * config/m32c/m32c-protos.h (m32c_override_options,
133         m32c_function_value_regno_p): Remove.
134
135 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
136
137         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
138         Fix a typo in a previous commit.
139
140 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
141
142         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
143         Pre-initialize innerloop_iters to one.
144
145 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
146
147         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
148         existing static function global.
149
150         *tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
151         is changed to global.
152
153         *tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
154         may_be_nonaddressable_p on base, and don't collect this reference
155         if the address of the base could not be taken.
156
157 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
158
159         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
160         enable the compiler to autovectorize mathmetical functions for
161         power7 using the Mathematical Acceleration Subsystem library.
162
163         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
164         handle which vector math library we have.
165         (rs6000_override_options): Add -mveclibabi=mass support.
166         (rs6000_builtin_vectorized_libmass): New function to handle auto
167         vectorizing math functions that are in the MASS library.
168         (rs6000_builtin_vectorized_function): Call it.
169
170         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
171         -mveclibabi=mass.
172
173 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
174
175         PR boehm-gc/34544
176         * gthr-posix.h (__gthread_active_init): Delete.
177         (__gthread_active_p): Do activity check here.
178         Don't include errno.h on hppa-hpux.  Update comment.
179         * gthr-posix95.h (__gthread_active_init): Delete.
180         (__gthread_active_p): Do activity check here.
181         Don't include errno.h on hppa-hpux.  Update comment.
182         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
183         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
184         add -lpthread when -mt or -pthread is specified.
185         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
186         (LINK_GCC_C_SEQUENCE_SPEC): Define.
187         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
188         (stublib.c, pthread_default_stacksize_np-stub.o,
189         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
190         $(T)libgcc_stub.a): Add methods.
191         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
192         (stublib.c, pthread_default_stacksize_np-stub.o,
193         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
194         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
195         pthread_mutex_unlock): New stubs.
196
197 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
198
199         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
200         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
201         options.
202         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
203         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
204         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
205         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
206         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
207         "-l".
208         * cppspec.c: Include opts.h.
209         (lang_specific_driver): Use cl_decoded_option structures.
210         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
211         * doc/tm.texi: Regenerate.
212         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
213         (driver_handle_option): Allow driver options needing no special
214         processing.
215         (process_command): Decode options before call to
216         lang_specific_driver.  Pass decoded options to
217         lang_specific_driver.
218         * gcc.h (lang_specific_driver): Update prototype.
219         * gccspec.c: Include opts.h.
220         (lang_specific_driver): Use cl_decoded_option structures.
221         * opts-common.c (option_ok_for_language, generate_option,
222         generate_option_input_file): New.
223         (decode_cmdline_option): Use option_ok_for_language.
224         (decode_cmdline_options_to_array): Use generate_option_input_file.
225         (handle_generated_option): Use generate_option.
226         * opts.h (generate_option, generate_option_input_file): Declare.
227
228 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
229
230         * config/mips/mips.c (mips_override_options): Rename to...
231         (mips_option_override): ...this. Make static.
232         (TARGET_OPTION_OVERRIDE): Define.
233         (mips_in_small_data_p): Update comment.
234         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
235         (FIXED_REGISTERS): Update comment.
236         * config/mips/mips-protos.h (mips_override_options): Remove.
237
238 2010-08-21  Olivier Hainque  <hainque@adacore.com>
239
240         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
241
242 2010-08-21  Olivier Hainque  <hainque@adacore.com>
243
244         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
245         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
246
247 2010-08-20  Jan Hubicka  <jh@suse.cz>
248
249         * tree-pass.h (pass_ipa_cdtor_merge): New function.
250         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
251         heap allocated.
252         (record_cdtor_fn): Move to ipa.c; do not test for
253         have_ctors_dtors.
254         (build_cdtor): Move to ipa.c; add code avoiding construction
255         when target have ctors/dtors and there is only one ctor/dtor at given
256         priority.
257         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize sort;
258         reverse order of constructors.
259         (cgraph_build_cdtor_fns):Move to ipa.c; rename to build_cdtor_fns.
260         (cgraph_finalize_function): Do not call record_cdtor_fn.
261         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
262         (cgraph_build_static_cdtor): Move to ipa.c.
263         * ipa.c: Include target.h and tree-iterator.h.
264         (cgraph_build_static_cdtor, static_ctors, static_dtors,
265         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
266         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
267         pass_ipa_cdtor_merge): New.
268         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
269         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of bounds access.
270
271 2010-08-20  Jan Hubicka  <jh@suse.cz>
272
273         PR c++/45307
274         PR c++/17736
275         * cgraph.h (cgraph_only_called_directly_p,
276         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
277         static cdtors.
278         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
279         are not needed.
280         (cgraph_finalize_function): Static cdtors are reachable.
281         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
282
283 2010-08-20  Jan Hubicka  <jh@suse.cz>
284
285         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of flag_wpa.
286         * lto-streamer-out.c (lto_output): Likewise.
287         * passes.c (ipa_write_optimization_summaries): Initialize statement uids.
288
289 2010-08-20  Olivier Hainque  <hainque@adacore.com>
290
291         * tree.h (alias_diag_flags): New enum.
292         (alias_pair): Add an 'emitted_diags' field.
293         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
294         (assemble_alias): Initialize emitted_diags of new pairs.
295
296 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
297
298         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
299         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
300         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
301         (STACK_CHECK_PROTECT): Define.
302         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
303         (output_probe_stack_range): Likewise.
304         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
305         builtin stack checking is enabled.
306         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
307         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
308         (probe_stack_range): New insn.
309
310 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
311
312         PR target/45336
313         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
314         short first.
315
316         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
317         char first.
318
319 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
320
321         PR target/45336
322         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
323         to cover zero extension into 64-bit register.
324         (*sse2_pextrw): Likewise.
325         (*sse4_1_pextrd_zext): New insn.
326
327 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
328
329         revert r163410, partially revert r163267.
330         * config/rs6000/darwin.h (LIB_SPEC): Remove.
331         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all 
332         Darwin versions.
333         
334 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
335
336         PR middle-end/44974
337         * builtins.c (expand_builtin): Don't optimize away
338         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
339
340 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
341
342         * config/i386/i386.md (ashift RSP splitter): Remove splitter.
343         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
344         alternative 1 of operand 2.
345
346 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
347             Paolo Bonzini  <bonzini@gnu.org>
348
349         * simplify-rtx.c (simplify_unary_operation_1): Optimize
350         (sign_extend (zero_extend (...)) and
351         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
352
353 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
354
355         PR rtl-optimization/45353
356         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
357         after bb_note is a BARRIER.
358
359 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
360
361         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
362         linking libgcc.a.
363
364 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
365             Michael Matz  <matz@suse.de>
366
367         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
368
369 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
370
371         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
372         (ggc_mark_roots): ...here.
373
374 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
375
376         * vec.h (FOR_EACH_VEC_ELT): Define.
377         * c-decl.c: Use it.
378         * cfgloop.c: Likewise.
379         * cfgloopmanip.c: Likewise.
380         * cgraph.c: Likewise.
381         * cgraphunit.c: Likewise.
382         * combine.c: Likewise.
383         * config/bfin/bfin.c: Likewise.
384         * config/mips/mips.c: Likewise.
385         * config/rs6000/rs6000.c: Likewise.
386         * dbxout.c: Likewise.
387         * df-scan.c: Likewise.
388         * dominance.c: Likewise.
389         * dse.c: Likewise.
390         * dwarf2out.c: Likewise.
391         * except.c: Likewise.
392         * expr.c: Likewise.
393         * function.c: Likewise.
394         * gcse.c: Likewise.
395         * genattr.c: Likewise.
396         * ggc-common.c: Likewise.
397         * gimplify.c: Likewise.
398         * graphite-blocking.c: Likewise.
399         * graphite-clast-to-gimple.c: Likewise.
400         * graphite-dependences.c: Likewise.
401         * graphite-interchange.c: Likewise.
402         * graphite-poly.c: Likewise.
403         * graphite-scop-detection.c: Likewise.
404         * graphite-sese-to-poly.c: Likewise.
405         * graphite.c: Likewise.
406         * haifa-sched.c: Likewise.
407         * ifcvt.c: Likewise.
408         * implicit-zee.c: Likewise.
409         * ipa-prop.c: Likewise.
410         * ipa-struct-reorg.c: Likewise.
411         * ipa.c: Likewise.
412         * ira-build.c: Likewise.
413         * ira-color.c: Likewise.
414         * ira-emit.c: Likewise.
415         * lambda-code.c: Likewise.
416         * loop-invariant.c: Likewise.
417         * loop-unroll.c: Likewise.
418         * lower-subreg.c: Likewise.
419         * lto-cgraph.c: Likewise.
420         * lto-opts.c: Likewise.
421         * lto-streamer-in.c: Likewise.
422         * lto-streamer-out.c: Likewise.
423         * lto-streamer.c: Likewise.
424         * lto-symtab.c: Likewise.
425         * matrix-reorg.c: Likewise.
426         * opts.c: Likewise.
427         * predict.c: Likewise.
428         * print-tree.c: Likewise.
429         * sdbout.c: Likewise.
430         * sel-sched-dump.c: Likewise.
431         * sel-sched-ir.c: Likewise.
432         * sel-sched.c: Likewise.
433         * sese.c: Likewise.
434         * stor-layout.c: Likewise.
435         * tree-cfg.c: Likewise.
436         * tree-cfgcleanup.c: Likewise.
437         * tree-chrec.c: Likewise.
438         * tree-data-ref.c: Likewise.
439         * tree-emutls.c: Likewise.
440         * tree-inline.c: Likewise.
441         * tree-into-ssa.c: Likewise.
442         * tree-loop-distribution.c: Likewise.
443         * tree-loop-linear.c: Likewise.
444         * tree-mudflap.c: Likewise.
445         * tree-outof-ssa.c: Likewise.
446         * tree-parloops.c: Likewise.
447         * tree-predcom.c: Likewise.
448         * tree-pretty-print.c: Likewise.
449         * tree-scalar-evolution.c: Likewise.
450         * tree-ssa-live.c: Likewise.
451         * tree-ssa-loop-im.c: Likewise.
452         * tree-ssa-loop-ivcanon.c: Likewise.
453         * tree-ssa-loop-ivopts.c: Likewise.
454         * tree-ssa-loop-manip.c: Likewise.
455         * tree-ssa-loop-niter.c: Likewise.
456         * tree-ssa-loop-prefetch.c: Likewise.
457         * tree-ssa-phiprop.c: Likewise.
458         * tree-ssa-pre.c: Likewise.
459         * tree-ssa-reassoc.c: Likewise.
460         * tree-ssa-sccvn.c: Likewise.
461         * tree-ssa-structalias.c: Likewise.
462         * tree-ssa.c: Likewise.
463         * tree-vect-data-refs.c: Likewise.
464         * tree-vect-loop-manip.c: Likewise.
465         * tree-vect-loop.c: Likewise.
466         * tree-vect-patterns.c: Likewise.
467         * tree-vect-slp.c: Likewise.
468         * tree-vect-stmts.c: Likewise.
469         * tree-vrp.c: Likewise.
470         * tree.c: Likewise.
471         * value-prof.c: Likewise.
472         * var-tracking.c: Likewise.
473         * varasm.c: Likewise.
474         * vmsdbgout.c: Likewise.
475
476 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
477             Richard Guenther  <richard.guenther@gmail.com>
478
479         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
480         copy the src value and return a copy.
481         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
482         (C++ Volatiles): Adjust to describe C++ semantics only.
483
484 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
485
486         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
487         be zero or nonzero.
488         * doc/tm.texi: Regenerate.
489         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
490         * df-scan.c (df_get_exit_block_use_set), reginfo.c
491         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
492         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
493         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
494         to 1.
495
496 2010-08-20  Olivier Hainque  <hainque@adacore.com>
497
498         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
499         an extra nop past a sibling call at the very end.
500
501 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
502
503         PR bootstrap/45350
504         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
505         a comment.
506
507 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
508
509         * target.def (function_arg, function_incoming_arg): Remove const
510         qualifier on CUMULATIVE_ARGS parameter.
511         * targhooks.h (default_function_arg, default_function_incoming_arg):
512         Likewise.
513         * targhooks.c (default_function_arg, default_function_incoming_arg):
514         Likewise.
515         * config/i386/i386.c (ix86_function_arg): Likewise.
516
517 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
518
519         PR target/45336
520         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
521         SIGN_EXTENDs or ZERO_EXTENDs.
522
523 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
524
525         PR target/42172
526         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
527         Take its cost into account if nonnull.
528         (insn_a_feeds_b): New static function.
529         (combine_instructions): Look for four-insn combinations.
530         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
531         them into account when computing all_adjacent and looking for other
532         uses.
533         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
534         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
535         (try_combine): New arg I0.  Handle four-insn combinations.
536         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
537         like ELIM_I1.
538
539 2010-08-19  Jason Merrill  <jason@redhat.com>
540
541         PR c++/45307
542         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
543         if ctor is empty.
544         (gimplify_modify_expr_rhs): Adjust.
545
546 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
547
548         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
549         bitmap_bit_p.
550         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
551         * dominance.c (iterate_fix_dominators): Likewise.
552         * dse.c (set_usage_bits): Likewise.
553         (set_position_unneeded, record_store): Likewise.
554         * gimple-fold.c (get_maxval_strlen): Likewise.
555         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
556         * ipa-inline.c (update_caller_keys): Likewise.
557         * ipa-split.c (verify_non_ssa_vars): Likewise.
558         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
559         (close_type_exposed_parameter, close_type_full_escape): Likewise.
560         (close_addressof_down): Likewise.
561         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
562         (setup_allocno_left_conflicts_size): Likewise.
563         (ira_reassign_conflict_allocnos): Likewise.
564         (ira_reassign_pseudos): Likewise.
565         * ira-emit.c (change_loop): Likewise.
566         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
567         * lto-streamer-out.c (write_symbol): Likewise.
568         * predict.c (expr_expected_value_1): Likewise.
569         * regstat.c (regstat_bb_compute_ri): Likewise.
570         * sel-sched.c (create_block_for_bookkeeping): Likewise.
571         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
572         * stmt.c (expand_case): Likewise.
573         * tree-eh.c (emit_eh_dispatch): Likewise.
574         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
575         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
576         Likewise.
577         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
578         (rdg_build_components): Likewise.
579         * tree-object-size.c (collect_object_sizes_for): Likewise.
580         * tree-sra.c (convert_callers): Likewise.
581         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
582         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
583         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
584
585 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
586
587         * config/i386/i386.md (*lea_1): Use P mode iterator.
588         (lea add splitter): Also handle DImode operands.
589         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
590         predicate.  Do not use ix86_lea_for_add_ok.
591         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
592         (lea ashift splitter): Also handle DImode operands.
593         (DImode lea ashift splitter): Remove splitter.
594
595 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
596
597         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
598         ix86_binary_operator_ok.
599
600 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
601
602         PR rtl-optimization/44691
603         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
604         is not a register.
605
606 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
607
608         PR target/45070
609         * config/arm/arm.c (arm_output_epilogue): Ensure that return
610          value of size 1-3 is handled correctly.
611
612 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
613
614         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
615         type for the conditional has wide enough range.
616
617 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
618
619         PR target/45327
620         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
621         ix86_binary_operator_ok.
622
623 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
624
625         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
626         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
627         code to output insn mnemonic.  Fix comment.
628         (*addsi_1_zext): Add r-r-0 alternative 1.
629         <TYPE_LEA>: Split insn to lea.
630         <default>: Handle alternative 1.
631         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
632         multi-level if_then_else RTX to set "type" attribute.
633         <default>: Handle alternative 2.
634         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
635         Use cond RTX instead of multi-level if_then_else RTX to set
636         "type" attribute.
637         <default>: Handle alternatives 2 and 4.
638         (lea splitters): Update calls to ix86_lea_for_add_ok.
639
640         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
641         argument.
642         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
643
644 2010-08-18  Richard Guenther  <rguenther@suse.de>
645
646         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
647         use operand helpers.
648
649 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
650
651         PR middle-end/45292
652         * optabs.c (expand_bool_compare_and_swap): Expand pending
653         pops before trying the optab.
654
655 2010-08-18  Yao Qi  <yao@codesourcery.com>
656
657         PR target/45094
658         * config/arm/arm.c (output_move_double): Fix typo generating
659         instructions ('ldr'->'str').
660
661 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
662
663         PR rtl-optimization/42575
664         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
665         live ranges.
666
667 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
668
669         * config/arm/arm-protos.h (arm_expand_sync): New.
670         (arm_output_memory_barrier, arm_output_sync_insn): New.
671         (arm_sync_loop_insns): New.
672         * config/arm/arm.c (FL_ARCH7): New.
673         (FL_FOR_ARCH7): Include FL_ARCH7.
674         (arm_arch7): New.
675         (arm_print_operand): Support %C markup.
676         (arm_legitimize_sync_memory): New.
677         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
678         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
679         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
680         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
681         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
682         (arm_process_output_sync_insn, arm_output_sync_insn): New.
683         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
684         * config/arm/arm.h (struct arm_sync_generator): New.
685         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
686         (TARGET_HAVE_MEMORY_BARRIER): New.
687         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
688         * config/arm/arm.md: Include sync.md.
689         (UNSPEC_MEMORY_BARRIER): New.
690         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
691         (VUNSPEC_SYNC_OP):New.
692         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
693         (sync_result, sync_memory, sync_required_value): New attributes.
694         (sync_new_value, sync_t1, sync_t2): Likewise.
695         (sync_release_barrier, sync_op): Likewise.
696         (length): Add logic to length attribute defintion to call
697         arm_sync_loop_insns when appropriate.
698         * config/arm/sync.md: New file.
699
700 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
701
702         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
703         ENABLE_TREE_CHECKING.
704         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
705         and GCC >= 4.3.
706
707 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
708
709         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
710         or optimizing for size, always avoid lea if possible.
711
712         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
713
714 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
715
716         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
717         Dunmmy function with NULL return unless the target is
718         OSX >= 10.6 (Darwin10).
719
720 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
721
722         * gcc.c (spec_function): Add remove-outfile.
723         (remove_outfile_spec_function): New function.
724         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
725         * invoke.texi (replace-outfile): Document.
726
727 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
728
729         PR target/45296
730         * reginfo.c (globalize_reg): Reject stack registers.
731
732 2010-08-17  Richard Guenther  <rguenther@suse.de>
733
734         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
735         list of conditional equivalences.
736         (free_all_edge_infos): Adjust.
737         (record_equivalences_from_incoming_edge): Likewise.
738         (record_cond): Likewise.
739         (build_and_record_new_cond): Likewise.
740         (record_conditions): Likewise.
741         (dom_opt_leave_block): Likewise.
742
743 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
744
745         * doc/invoke.texi (ms-extension): Add documentation.
746
747 2010-08-17  Richard Guenther  <rguenther@suse.de>
748
749         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
750
751 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
752
753         PR c/40563
754         * c-decl.c (diagnose_uninitialized_cst_member): New function.
755         (finish_decl): Use it to issue a -Wc++-compat warning about
756         uninitialized const field in struct or union.
757
758         (finish_struct): Use strip_array_types.
759
760 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
761
762         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
763         functions.
764         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
765         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
766         call block_nreverse here.
767         (blocks_nreverse): Rename decl temporary to block.
768
769 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
770
771         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
772         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
773         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
774         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
775         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
776         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
777         thumb2_iorsi3): Delete.
778         (orsi_notsi_si): No longer a named pattern.
779         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
780         * config/arm/predicates.md (shift_amount_operand): New.
781         (mult_operator): New.
782         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
783         attr enabled): New.
784         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
785         arch matches t2.
786         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
787         (not_shiftsi_compare0): Likewise, renamed from
788         arm_notsi_shiftsi_compare0.
789         (not_shiftsi_compare0_scratch): Likweise, renamed from
790         arm_notsi_shiftsi_compare0_scratch.
791         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
792         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
793         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
794         so that the register alternative is disabled when the shift_operator
795         is MULT.  Use "M" as the constraint for constants.
796         (arith_shiftsi splitter): Enable for TARGET_32BIT.
797         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
798         constraint for constants.
799         (arith_shiftsi_compare0_scratch): Likewise.
800         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
801         Handle Thumb2 alternative.
802
803 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
804
805         * doc/options.texi (NoDriverArg): Document.
806         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
807         -MDX and -MMDX.
808         * opt-functions.awk (switch_flags): Handle NoDriverArg.
809         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
810         marking for CL_NO_DRIVER_ARG options when in the driver.
811         * opts.h (CL_NO_DRIVER_ARG): Define.
812         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
813         CL_COMMON): Update values.
814
815 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
816
817         * common.opt: Add driver options.
818         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
819         * doc/options.texi (Driver, RejectDriver): Document.
820         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
821         print_prog_name, print_multi_directory, print_sysroot,
822         print_multi_os_directory, print_multi_lib,
823         print_sysroot_headers_suffix, report_times, combine_flag,
824         use_pipes, wrapper_string): Remove.
825         (save_switch, driver_unknown_option_callback,
826         driver_wrong_lang_callback, driver_post_handling_callback,
827         driver_handle_option): New.
828         (spec_lang, last_language_n_infiles): Make file-scope static
829         instead of local to process_command.
830         (process_command): Use decode_cmdline_options_to_array and
831         read_cmdline_option for option processing.  Compute have_c in
832         prescan of decoded options.
833         * opt-functions.awk (switch_flags): Handle Driver and
834         RejectDriver.
835         (var_type, var_type_struct): Handle Separate options as generating
836         const char * variables.
837         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
838         CL_TARGET to be passed by caller if required.
839         (decode_cmdline_options_to_array): Update comment.
840         * opts.c (complain_wrong_lang): Handle options only valid for the
841         driver.
842         (decode_options): Update call to decode_cmdline_options_to_array.
843         (print_filtered_help): Ignore driver-only options.
844         (print_specific_help): Ignore CL_DRIVER.
845         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
846         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
847         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
848         Update values.
849
850 2010-08-16  Richard Guenther  <rguenther@suse.de>
851
852         * tree-cfg.c (verify_types_in_gimple_reference): Verify
853         TARGET_MEM_REF a bit.
854         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
855         (create_mem_ref_raw): Always create TMR_OFFSET, store the
856         alias pointer type via it.
857         (copy_mem_ref_info): Adjust.
858         (maybe_fold_tmr): Likewise.
859         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
860         (reference_alias_ptr_type): Likewise.
861         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
862         adjust documentation of TMR_OFFSET operand.
863         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
864         use the alias pointer type.
865         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
866         initialize mem attrs but the TMR itself.
867         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
868         similar to MEM_REF.
869         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
870         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
871         (unshare_and_remove_ssa_names): Likewise.
872         (copy_ref_info): Adjust.
873         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
874         TARGET_MEM_REF case.
875         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
876         at TMR_ORIGINAL.
877         * tree.h (TMR_ORIGINAL): Remove.
878         * gimple.c (get_base_address): For TARGET_MEM_REF with a
879         symbol return that.
880         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
881         with a symbol.
882         (get_addr_base_and_unit_offset): Likewise.
883         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
884         TARGET_MEM_REFs.
885         (indirect_ref_may_alias_decl_p): Likewise.
886         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
887
888 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
889
890         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
891         with GCC version 4.6, the default setting (when not optimizing
892         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
893         been changed to -fomit-frame-pointer.
894
895 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
896
897         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
898         Darwin10.  Do not link libgcc.a for Darwin >= 9.
899
900 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
901
902         * doc/invoke.texi (Warning Options): Fix terminology and markup
903         in the description of how unknown warning options are handled.
904
905 2010-08-15  Ira Rosen  <irar@il.ibm.com>
906
907         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
908         in basic blocks.
909         (vect_supportable_dr_alignment): Check alignment for basic blocks.
910         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
911         data references.
912         (vect_bb_vectorization_profitable_p): New function.
913         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
914         check if it's worthwhile to vectorize the basic block.
915
916 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
917
918         * reload.h (register_move_cost, memory_move_secondary_cost,
919         secondary_reload_class): Adjust prototype.
920         * rtl.h (reg_class_subset_p): Adjust prototype.
921         * reload.c (secondary_reload_class): Change arguments type from
922         enum reg_class to reg_class_t. Change result type to reg_class_t.
923         * reginfo.c (register_move_cost, reg_class_subset_p): Change
924         arguments type from enum reg_class to reg_class_t.
925         (memory_move_secondary_cost): Change arguments type from
926         enum reg_class to reg_class_t. Change type of saved_flags to
927         reg_class_t.
928
929         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
930         Remove macros.
931         (mips_cost): Remove.
932         (struct mips_rtx_cost_data): Moved to mips.c.
933         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
934         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
935         (mips_cost): Make static.
936         (mips_canonicalize_move_class): Change argument type to reg_class_t.
937         Change result type to reg_class_t.
938         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
939         type from enum reg_class to reg_class_t.
940         (mips_register_move_cost): Make static. Change arguments
941         type from enum reg_class to reg_class_t.
942         (mips_memory_move_cost): New function.
943         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
944
945 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
946
947         PR rtl-optimization/43358
948         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
949         of a single hard register, using simplify_subreg_regno to decide
950         what that register should be.
951
952 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
953
954         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
955         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
956         (loongson_pmull<V_suffix>): Rename to...
957         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
958
959 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
960
961         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
962         which support dwarf2.
963         * config/i386/i386.c (override_options): Same.
964
965 2010-08-13  Jie Zhang  <jie@codesourcery.com>
966
967         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
968
969 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
970
971         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
972         -MMD.
973
974 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
975
976         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
977         up dot_prod pattern searching if a stmt is outside the loop.
978
979 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
980             Uros Bizjak  <ubizjak@gmail.com>
981
982         * config.gcc: Handle --enable-frame-pointer.
983
984         * configure.ac: Add --enable-frame-pointer.
985         * configure: Regenerated.
986
987         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
988         (override_options): If not configured with --enable-frame-pointer,
989         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
990         optimizing for size), -fasynchronous-unwind-tables and
991         -maccumulate-outgoing-args by default.
992
993 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
994
995         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
996
997         PR middle-end/45262
998         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
999         -a overflows.  Normalize the range.
1000
1001 2010-08-12  Richard Guenther  <rguenther@suse.de>
1002
1003         PR tree-optimization/45232
1004         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
1005         for types with undefined overflow.
1006         (reassociate_bb): Allow re-associating of bit and min/max
1007         operations for types with undefined overflow.
1008         * tree-ssa-forwprop.c (associate_plusminus): New function.
1009         (tree_ssa_forward_propagate_single_use_vars): Call it.
1010
1011 2010-08-12  Richard Guenther  <rguenther@suse.de>
1012
1013         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
1014         * tree-ssa-alias.c (get_ptr_info): Move ...
1015         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
1016         align and misalign fields conservatively.
1017         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
1018         derive alignment information.
1019         (evaluate_stmt): Derive alignment information from memory
1020         allocation functions.
1021         * tree.h (get_pointer_alignment): Make unsigned.
1022         * builtins.c (get_object_alignment): Use alignment information we
1023         have computed for pointers.
1024         (get_pointer_alignment): Likewise.  Make conservative, return
1025         and unsigned value.
1026         (expand_builtin_strlen): Adjust.
1027         (expand_builtin_memcmp): Likewise.
1028         (expand_builtin_strcmp): Likewise.
1029         (expand_builtin_strncmp): Likewise.
1030         (get_builtin_sync_mem): Use at least mode alignment.
1031         (fold_builtin_memset): Adjust.
1032         (fold_builtin_memory_op): Likewise.
1033         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
1034         information also dump pointer alignment knowledge.
1035         (dump_gimple_stmt): Likewise.
1036
1037 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
1038
1039         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
1040         (EMPTY_FIELD_BOUNDARY): Remove.
1041         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
1042
1043 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1044
1045         PR debug/45259
1046         * caller-save.c (save_call_clobbered_regs): Only swap notes with
1047         DEBUG_INSNs if n_regs_saved.
1048
1049 2010-08-12  Wei Guozhi  <carrot@google.com>
1050
1051         PR target/44999
1052         * config/arm/arm.md (andsi3): Change to zero extension if possible.
1053         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
1054
1055 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
1056
1057         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
1058
1059         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
1060
1061 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1062
1063         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
1064         the case removed in the previous patch, when the only phi argument
1065         is defined in the same loop as the phi node itself.  Handle it
1066         separately from the invariant case by both propagating it outside
1067         the region and replacing the phi node with an assign.
1068
1069 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1070
1071         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
1072         constant phi nodes with one argument are is_gimple_min_invariant
1073         and SSA_NAME_IS_DEFAULT_DEF.
1074
1075 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1076
1077         * graphite-cloog-util.c (oppose_constraint):
1078         Extend loop counter's value range (CLOOG_ORG).
1079         (cloog_matrix_to_ppl_constraint): Same.
1080         (new_Constraint_System_from_Cloog_matrix): Same.
1081         * graphite-cloog-compat.h (matrix_num_type): New.
1082
1083 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1084
1085         * graphite.c (graphite_initialize): Do not initialize
1086         CLooG and initialize the Parma Polyhedra Library
1087         manually when using CLOOG_ORG.
1088         (graphite_finalize): Do not finalize CLooG and finalize
1089         the Parma Polyhedra Library manually when using CLOOG_ORG.
1090         * graphite-cloog-compat.h (cloog_initialize): Hide function
1091         when using CLOOG_ORG.
1092         (cloog_finalize): Same.
1093
1094 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1095
1096         * graphite-clast-to-gimple.c (free_scattering): Change
1097         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
1098         (CLOOG_ORG).
1099         (build_cloog_prog): Same.
1100         * graphite-cloog-compat.h (cloog_domain): Removed.
1101         (cloog_scattering): New.
1102         (cloog_set_domain): Removed.
1103         (cloog_set_scattering): New.
1104         (cloog_next_domain): Removed.
1105         (cloog_next_scattering): New.
1106         (cloog_set_next_domain): Removed.
1107         (cloog_set_next_scattering): New.
1108         (CloogScatteringList): New.
1109         (CloogScattering): New.
1110         (cloog_scattering_free): New.
1111         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
1112         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
1113         New.
1114
1115 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1116
1117         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
1118         CloogState.
1119         (set_cloog_options): Same.
1120         (print_clast_stmt): Same.
1121         (scop_to_clast): Same.
1122         (print_generated_program): Same.
1123         (gloog): Same.
1124         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
1125         (scop_to_clast): Extend with CloogState.
1126         * graphite-cloog-util.c: Include graphite-cloog-compat.h
1127         (new_Cloog_Domain_from_ppl_Polyhedron):
1128         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
1129         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
1130         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1131         * graphite-cloog-util.h (build_cloog_prog): Same.
1132         * graphite-cloog-copat.h (build_cloog_prog): New.
1133         (CloogState): New.
1134         (cloog_state_malloc): New.
1135         (cloog_state_free): New.
1136         (cloog_loop_malloc): New.
1137         (cloog_options_malloc): New.
1138         (cloog_statement_alloc): New.
1139         (cloog_domain_from_cloog_matrix): New.
1140         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1141         (new_Cloog_Domain_from_ppl_Polyhedron): New.
1142
1143 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1144
1145         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
1146         type of NAME now depends on used CLooG version.
1147         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
1148         (gcc_type_for_clast_expr): Same.
1149         (print_clast_stmt): Replace pprint with clast_pprint.
1150         * graphite-cloog-compat.h: Provide compatibility macros for
1151         CLooG Legacy.
1152         (clast_name_p): New.
1153         (clast_expr_term): New.
1154         (clast_expr_red): New.
1155         (clast_expr_bin): New.
1156         (clast_pprint): New.
1157
1158 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1159
1160         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
1161         compatible to newer CLooG releases (CLOOG_ORG).
1162         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
1163         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
1164         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
1165         (build_cloog_prog) : New.
1166         (cloog_program_extract_scalars): New.
1167         (cloog_program_scatter): New.
1168
1169 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1170
1171         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1172         conditionally (CLOOG_ORG).
1173         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
1174         (cloog_statement_usr): New.
1175         (cloog_domain): Same.
1176         (cloog_set_domain): Same.
1177         (cloog_next_domain): Same.
1178         (cloog_set_next_domain): Same.
1179         (cloog_program_nb_scattdims): Same.
1180         (cloog_program_set_nb_scattdims): Same.
1181         (cloog_program_names): Same.
1182         (cloog_program_set_names): Same.
1183         (cloog_program_set_context): Same.
1184         (cloog_program_set_loop): Same.
1185         (cloog_program_blocklist): Same.
1186         (cloog_program_set_blocklist): Same.
1187         (cloog_program_scaldims): Same.
1188         (cloog_program_set_scaldims): Same.
1189         (cloog_names_nb_parameters): Same.
1190         (cloog_names_set_nb_parameters): Same.
1191         (cloog_names_parameters): Same.
1192         (cloog_names_set_parameters): Same.
1193         (cloog_names_set_nb_iterators): Same.
1194         (cloog_names_set_iterators): Same.
1195         (cloog_names_set_nb_scattering): Same.
1196         (cloog_names_set_scattering): Same.
1197         (cloog_statement_set_usr): Same.
1198         (cloog_loop_set_next): Same.
1199         (cloog_loop_set_domain): Same.
1200         (cloog_loop_set_block): Same.
1201         (cloog_block_list_next): Same.
1202         (cloog_block_list_set_next):
1203         (cloog_block_list_set_block): Same.
1204
1205 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1206
1207         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1208         a bool.
1209         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1210         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1211         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1212         when something has been changed.
1213         (rewrite_commutative_reductions_out_of_ssa): Same.
1214
1215 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1216
1217         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1218         handle the case when def is in the sese region.
1219         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1220         for invariant expressions.
1221         (rewrite_cross_bb_phi_deps): Removed.
1222         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1223         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1224         rewrite_cross_bb_phi_deps.
1225
1226 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1227
1228         * graphite-sese-to-poly.c
1229         (rewrite_commutative_reductions_out_of_ssa_loop): Call
1230         scev_analyzable_p only on is_gimple_reg
1231
1232 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1233
1234         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1235         (rewrite_close_phi_out_of_ssa): Propagate constant values or
1236         parametric expressions outside the scop region.
1237         (rewrite_cross_bb_scalar_deps): Same.
1238         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1239
1240 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1241
1242         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1243         SSA_NAME_DEF_STMT only on SSA_NAMEs.
1244
1245 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1246
1247         * tree-scalar-evolution.c (instantiate_scev_name): Do not
1248         instantiate default definitions.
1249
1250 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
1251             Sebastian Pop  <sebastian.pop@amd.com>
1252
1253         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1254         (loop_exits_from_bb_p): New.
1255         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1256         (loop_exits_from_bb_p): Declared.
1257         * graphite-scop-detection.c (scopdet_basic_block_info): Call
1258         loop_exits_to_bb_p.
1259
1260 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1261
1262         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1263         extra parameter for the region.  Call scev_analyzable_p.
1264         (rewrite_reductions_out_of_ssa): Update call to
1265         rewrite_close_phi_out_of_ssa.
1266         (rewrite_cross_bb_phi_deps): Same.
1267         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1268         parameter for the region.  Call scev_analyzable_p.
1269         (rewrite_commutative_reductions_out_of_ssa): Update call to
1270         rewrite_commutative_reductions_out_of_ssa_loop.
1271
1272 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1273
1274         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1275
1276 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1277
1278         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1279         SSA scalar phi nodes that can be scev_analyzable_p.
1280
1281 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1282
1283         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1284         handle SSA_NAME_IS_DEFAULT_DEF.
1285
1286 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1287
1288         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1289
1290 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1291
1292         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1293         case non close-phi nodes with one argument.
1294
1295 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1296
1297         * sese.h (scev_analyzable_p): Scevs could be expressions without
1298         chrecs and still be scev_analyzable_p.
1299
1300 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1301
1302         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1303
1304 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1305
1306         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1307         * cfgloop.h (struct loop): Remove single_iv field.
1308         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1309         (scop_canonicalize_loops): Removed.
1310         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
1311         over all the loop phi nodes in loop->header.
1312         (build_poly_scop): Remove use of scop_canonicalize_loops.
1313
1314 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1315
1316         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1317         handle GIMPLE_CALL.
1318
1319 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1320
1321         * tree-chrec.c (chrec_apply): Should only apply to the specified
1322         variable.  Also handle multivariate chains of recurrences that
1323         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
1324
1325 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1326
1327         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1328         (debug_clast_name_indexes_1): Removed.
1329         (debug_clast_name_indexes): Removed.
1330         (pbb_to_depth_to_oldiv): Removed.
1331         (build_iv_mapping): Replace the use of rename_map with iv_map.
1332         (translate_clast_user): Remove uses of rename_map.  Allocate and
1333         free iv_map.
1334         (translate_clast_for_loop): Remove uses of rename_map.
1335         (translate_clast_for): Same.
1336         (translate_clast_guard): Same.
1337         (translate_clast): Same.
1338         (gloog): Same.
1339         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1340         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1341         * sese.c (set_rename): Now static.
1342         (rename_variables_in_stmt): Removed.
1343         (rename_uses): New.
1344         (is_parameter): Removed.
1345         (is_iv): Removed.
1346         (expand_scalar_variables_call): Removed.
1347         (expand_scalar_variables_ssa_name): Removed.
1348         (expand_scalar_variables_expr): Removed.
1349         (expand_scalar_variables_stmt): Removed.
1350         (expand_scalar_variables): Removed.
1351         (rename_variables): Removed.
1352         (remove_condition): Removed.
1353         (get_true_edge_from_guard_bb): Removed.
1354         (get_false_edge_from_guard_bb): Removed.
1355         (struct igp): Removed.
1356         (default_before_guard): Removed.
1357         (convert_for_phi_arg): Removed.
1358         (add_guard_exit_phis): Removed.
1359         (insert_guard_phis): Removed.
1360         (graphite_copy_stmts_from_block): Now also uses iv_map and a
1361         region.  Do not copy conditions.  Do not copy induction variables.
1362         Call rename_uses.
1363         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1364         the translated statement.  Use the iv_map for the induction
1365         variable renaming.
1366         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1367         (set_rename): Removed declaration.
1368         (scev_analyzable_p): ...here.
1369         * tree-chrec.c (chrec_apply_map): New.
1370         * tree-chrec.h (chrec_apply_map): Declared.
1371
1372 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1373
1374         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1375         insert_loop_close_phis.
1376         * sese.c (name_defined_in_loop_p): Removed.
1377         (expr_defined_in_loop_p): Removed.
1378         (alive_after_loop): Removed.
1379         (close_phi_not_yet_inserted_p): Removed.
1380         (struct alep): Removed.
1381         (add_loop_exit_phis): Removed.
1382         (insert_loop_close_phis): Removed.
1383
1384 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1385
1386         * graphite-cloog-util.c
1387         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1388         * graphite-poly.c
1389         (psct_scattering_dim_for_loop_depth): Same.
1390
1391 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1392
1393         * graphite-cloog-util.h: Added cloog.h.
1394         * graphite-blocking.c: Removed cloog.h.
1395         * graphite-dependences.c: Same.
1396         * graphite-interchange.c: Same.
1397         * graphite-poly.c: Same.
1398         * graphite-ppl.c: Same.
1399         * graphite-scop-detection.c: Same.
1400         * graphite-sese-to-poly.c:
1401         Removed cloog.h.
1402         Removed graphite-clast-to-gimple.h.
1403         (check_poly_representation): Removed (unused).
1404         * graphite-sese-to-poly.h
1405         (check_poly_representation): Removed (unused).
1406
1407 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1408
1409         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1410         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1411         (graphite-cloog-util.o): New.
1412         (graphite-ppl.o): Added graphite-cloog-util.h.
1413         * graphite-clast-to-gimple.c:
1414         Added graphite-cloog-util.h to include statements.
1415         * graphite-cloog-util.c: New.
1416         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1417         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1418         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1419         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1420         (insert_constraint_into_matrix): Same.
1421         (ppl_Constrain_System_number_of_constraints): Same.
1422         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1423         (oppose_constraint): Same.
1424         (cloog_matrix_to_ppl_constraint): Same.
1425         (new_Constraint_System_from_Cloog_Matrix): Same.
1426         * graphite-cloog-util.h: New.
1427         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1428         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1429         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1430         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1431         (insert_constraint_into_matrix): Same.
1432         * graphite-ppl.c:
1433         Added graphite-cloog-util.h to include statements.
1434         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1435         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1436         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1437         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1438         (insert_constraint_into_matrix): Same.
1439         (ppl_Constrain_System_number_of_constraints): Same.
1440         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1441         (oppose_constraint): Same.
1442         (cloog_matrix_to_ppl_constraint): Same.
1443         (new_Constraint_System_from_Cloog_Matrix): Same.
1444         * graphite-ppl.h:
1445         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1446         graphite-cloog-util.h.
1447         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1448         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1449         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1450         (insert_constraint_into_matrix): Same.
1451
1452 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1453
1454         * graphite-clast-to-gimple.c
1455         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1456         (precision_for_interval): Same.
1457         (gcc_type_for_interval): Same.
1458         (compute_type_for_level): Same.
1459         * graphite-interchange.c
1460         (lst_interchange_profitable_p): Same.
1461         * graphite-poly.c
1462         (psct_scattering_dim_for_loop_depth): Same.
1463         * graphite-ppl.c
1464         (ppl_max_for_le_pointset): Same.
1465         (ppl_min_for_le_pointset): Same.
1466
1467 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1468
1469         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1470         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1471
1472 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1473
1474         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1475         rewrite_close_phi_out_of_ssa.
1476
1477 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1478
1479         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1480
1481 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1482
1483         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1484         rename_map.
1485         * sese.c (debug_rename_map): Same.
1486         (get_rename): Same.
1487         (set_rename): Same.
1488         (rename_variables_in_stmt): Same.
1489         (expand_scalar_variables_call): Same.
1490         (expand_scalar_variables_ssa_name): Same.
1491         (expand_scalar_variables_expr): Same.
1492         (expand_scalar_variables_stmt): Same.
1493         (expand_scalar_variables): Same.
1494         (rename_variables): Same.
1495         (graphite_copy_stmts_from_block): Same.
1496         (copy_bb_and_scalar_dependences): Same.
1497
1498 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1499
1500         * graphite-clast-to-gimple.c (copy_renames): Removed.
1501         (translate_clast_for): Do not call copy_renames.
1502         (translate_clast_guard): Same.
1503
1504 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1505
1506         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1507         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1508         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1509         before rewrite_cross_bb_scalar_deps.
1510
1511 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1512
1513         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1514         Early return in when flag_associative_math is not set.
1515
1516 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1517
1518         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1519         of SSA copies on edges except for loop->latch.
1520
1521 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1522
1523         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1524         Split out of rewrite_reductions_out_of_ssa.
1525         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1526         Declared.
1527         * graphite.c (graphite_transform_loops): Call it.
1528
1529 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1530
1531         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1532
1533 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1534
1535         * dbgcnt.def (graphite_scop): New counter.
1536         * graphite.c: Include dbgcnt.h.
1537         (graphite_transform_loops): Use new counter to limit transformations.
1538         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1539
1540 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1541
1542         * passes.c (init_optimization_passes): Add pass_graphite.
1543         Schedule a pass_copy_prop before pass_graphite_transforms.
1544         * timevar.def (TV_GRAPHITE): Declared.
1545         * tree-pass.h (pass_graphite): Declared.
1546         * tree-ssa-loop.c (pass_graphite): New.
1547
1548 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1549
1550         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1551         Remove calls to rename_nb_iterations and rename_sese_parameters.
1552         * graphite-clast-to-gimple.h (gloog): Update declaration.
1553         * graphite.c (graphite_transform_loops): Update call to gloog.
1554         * sese.c (rename_variables_in_expr): Removed.
1555         (rename_nb_iterations): Removed.
1556         (rename_sese_parameters): Removed.
1557         * sese.h (rename_nb_iterations): Removed.
1558         (rename_sese_parameters): Removed.
1559
1560 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1561
1562         * graphite-clast-to-gimple.c (gloog): Remove call to
1563         sese_adjust_liveout_phis.
1564         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1565         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1566         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1567         rewrite_phi_out_of_ssa.
1568         * sese.c (get_vdef_before_sese): Removed.
1569         (sese_adjust_vphi): Removed.
1570         (sese_adjust_liveout_phis): Removed.
1571         * sese.h (sese_adjust_liveout_phis): Removed.
1572
1573 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1574
1575         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1576         argument for the place after which to insert the out of SSA copy.
1577         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1578         (rewrite_phi_out_of_ssa): Same.
1579         (rewrite_cross_bb_scalar_deps): Same.
1580         (insert_copyout): Removed.
1581         (insert_copyin): Removed.
1582         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1583         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1584         insert_copyin.
1585
1586 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1587
1588         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1589         (rewrite_reductions_out_of_ssa): Same.
1590         (rewrite_commutative_reductions_out_of_ssa): Same.
1591         (build_poly_scop): Do not call these functions.
1592         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1593         (rewrite_reductions_out_of_ssa): Declared.
1594         (rewrite_commutative_reductions_out_of_ssa): Declared.
1595         * graphite.c (graphite_transform_loops): Call on every scop
1596         rewrite_commutative_reductions_out_of_ssa before calling
1597         rewrite_reductions_out_of_ssa and build_scop_bbs.
1598
1599 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1600
1601         * graphite-dependences.c (dot_deps): Make system call to dotty run
1602         in background.
1603         (dot_deps_stmt): Same.
1604         * graphite-poly.c (dot_lst): Same.
1605
1606 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1607
1608         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1609         phi_arg_in_outermost_loop.
1610         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1611         (remove_invariant_phi): Same.
1612
1613 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1614
1615         * target.def (output_addr_const_extra): New hook.
1616         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1617         * doc/tm.texi: Regenerate.
1618         * targhooks.c (default_asm_output_addr_const_extra): New function.
1619         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1620         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1621         target hook.
1622
1623         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1624         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1625         * config/i386/i386.h (output_addr_const_extra): Rename to...
1626         (i386_asm_output_addr_const_extra): ...this. Make static.
1627         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1628
1629 2010-08-11  Richard Henderson  <rth@redhat.com>
1630
1631         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1632
1633 2010-08-11  Nick Clifton  <nickc@redhat.com>
1634
1635         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1636         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1637         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1638         stormy16-lib2-cmpsi.c.
1639
1640         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1641         -O2.
1642
1643 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1644
1645         * opts.h (struct cl_option_handler_func): Make handler take
1646         cl_decoded_option structure as parameter, not individual elements.
1647         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1648         structure as parameter, not individual elements.
1649         (handle_option): Take cl_decoded_option structure as parameter,
1650         not individual elements.
1651         (handle_generated_option): Declare.
1652         * opts-common.c (handle_option): Take cl_decoded_option structure
1653         as parameter, not individual elements.  Update calls to callback
1654         and handler functions.
1655         (handle_generated_option): New.
1656         (read_cmdline_option): Update calls to callback functions and
1657         handle_option.
1658         * opts.c (common_handle_option, complain_wrong_lang,
1659         unknown_option_callback, post_handling_callback,
1660         lang_handle_option, target_handle_option): Take cl_decoded_option
1661         structure as parameter, not individual elements.
1662         (lang_handle_option, target_handle_option, common_handle_option):
1663         Assert option has at most one argument.
1664         (enable_warning_as_error): Call handle_generated_option instead of
1665         handle_option.  Do not pass -Werror argument as argument of
1666         generated option.
1667
1668 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1669
1670         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1671         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1672         (SUBWORD_BOOL_CAS): Likewise.
1673         (SUBWORD_SYNC_OP): Likewise.
1674         (SUBWORD_TEST_AND_SET): Likewise.
1675         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1676         (SUBWORD_SYNC_OP): Likewise.
1677         (OP_AND_FETCH_WORD): Likewise.
1678
1679 2010-08-10  Xinliang David Li  <davidxl@google.com>
1680
1681         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1682         compute max/min offset in address.
1683
1684 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1685
1686         * ira-live.c: Include sbitmap.h.
1687         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1688         Compress live ranges even more.
1689
1690 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1691
1692         * coverage.c (ctr_labels): Delete.
1693
1694 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1695
1696         PR bootstrap/45177
1697         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1698         test here from arm_gen_load_multiple_1.
1699         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1700         multiple_operation_profitable_p.
1701
1702 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1703
1704         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1705         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1706
1707 2010-08-10  Richard Henderson  <rth@redhat.com>
1708
1709         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1710         after saving registers.  Assert that SSE registers are only saved
1711         with a sufficiently aligned frame.
1712         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1713         remove stack_realign_fp handling.
1714         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1715         and do not mark the stack alignment as frame related.
1716         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1717
1718         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1719         saves when re-aligning the stack.
1720
1721 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1722
1723         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1724         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1725         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1726
1727 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1728
1729         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1730
1731 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1732
1733         * config/arm/iterators.md: New file.
1734         * config/arm/arm.md: Include iterators.md.
1735         (QHSI): Move to new file.
1736         (LTUGEU, cnb, optab, ior_xor): Likewise.
1737         * config/arm/iwmmxt.md (VMMX): Move to new file.
1738         (VSHFT, MMX_char): Likewise.
1739         * config/arm/neon.md (VD): Move to new file.
1740         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1741         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1742         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1743         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1744         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1745         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1746         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1747         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1748         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1749         (Is_d_reg, V_mode_nunits): Likewise.
1750         * config/arm/vec-common.md (VALL): Move to new file.
1751         (VALLW, VINT, VINTW): Likewise.
1752
1753 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1754
1755         PR middle-end/45182
1756         * combine.c (make_compound_operation): Don't try to convert
1757         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1758
1759 2010-08-10  Richard Guenther  <rguenther@suse.de>
1760
1761         * tree.h (get_object_alignment): Adjust prototype.
1762         * builtins.c (get_object_alignment): Return unsigned int,
1763         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1764         and TARGET_MEM_REF properly.
1765         (get_pointer_alignment): Adjust.
1766         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1767         (set_mem_attributes_minus_bitpos): Adjust.
1768         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1769
1770 2010-08-10  Richard Guenther  <rguenther@suse.de>
1771
1772         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1773         (copy_prop_visit_assignment): Simplify.
1774         (copy_prop_visit_stmt): Also visit assignments from
1775         constants.
1776         (copy_prop_visit_phi_node): Use operand_equal_p.
1777
1778 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1779
1780         * ipa-split.c (find_split_points): Free stack.
1781
1782 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1783
1784         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1785         * tree.c (tree_node_kind): Delete corresponding entries.
1786
1787 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1788
1789         * alias.c (may_alias_p): Remove unused ret.
1790
1791 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1792
1793         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1794         alias_sets_conflict_p.
1795         (walk_mems_1): Moved from alias.c.
1796         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1797         in alias.c.
1798         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1799         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1800         * alias.c (walk_mems_2): Moved to ddg.c.
1801         (walk_mems_1): Ditto.
1802         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1803         to ddg.c.
1804         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1805         disambiguation.
1806         *(may_alias_p): New function to check whether two memory expression
1807         may alias or not. Currently used in buidling inter-iteration memory
1808         dependence.
1809         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1810         (insn_alias_sets_conflict_p): Removed
1811         *rtl.h (may_alias_p): New function prototype.
1812
1813 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1814
1815         * tree.c (nreverse): Assert that we don't have a BLOCK.
1816
1817 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1818
1819         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1820         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1821         * config/avr/avr.c (init_cumulative_args): Likewise.
1822         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1823         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1824         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1825         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1826         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1827         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1828         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1829         * dwarf2out.c (gen_subprogram_die): Likewise.
1830         * function.c (allocate_struct_function): Likewise.
1831         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1832         (deserves_ellipsis): Delete.
1833
1834 2010-08-09  Richard Guenther  <rguenther@suse.de>
1835
1836         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1837         (valueize_val): New function.
1838         (get_last_copy_of): Remove.
1839         (set_copy_of_val): Simplify.
1840         (dump_copy_of): Likewise.
1841         (copy_prop_visit_cond_stmt): Use valueize_val.
1842         (copy_prop_visit_phi_node): Properly handle unvisited names.
1843         Drop code managing copy-of chains.
1844         (init_copy_prop): Adjust.
1845         (fini_copy_prop): Likewise.
1846         (execute_copy_prop): Remove obsolete comment.
1847
1848 2010-08-09  Richard Guenther  <rguenther@suse.de>
1849
1850         PR middle-end/44632
1851         * function.c (gimplify_parameters): Do not clear addressable
1852         bit of the original parameter.
1853
1854 2010-08-09  Richard Guenther  <rguenther@suse.de>
1855
1856         PR middle-end/45212
1857         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1858         alignment from MEM_REF offset only if we took it from the
1859         base object.
1860
1861 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1862
1863         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1864
1865 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1866
1867         * c-tree.h (build_arg_info): Declare.
1868         * c-decl.c (build_arg_info): Define.
1869         (get_parm_info): Call it.  Delete initialization code.
1870         * c-parser.c (c_parser_parms_declarator): Likewise.
1871         (c_parser_parms_list_declaractor): Likewise.
1872
1873 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1874
1875         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1876         (struct c_arg_info): Change type of tags field.
1877         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1878         (get_parm_info): Likewise.
1879         (store_parm_decls_newstyle): Likewise.
1880
1881 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1882
1883         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1884         (branch_island_list): Delete.
1885         (branch_islands): Declare.
1886         (add_compiler_branch_island): Adjust for branch_islands instead of
1887         branch_island_list.
1888         (macho_branch_islands): Likewise.
1889         (no_previous_def): Likewise.
1890         (get_prev_label): Likewise.
1891
1892 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1893
1894         PR boehm-gc/34544
1895         * gthr-posix.h (__gthread_start): Delete.
1896         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1897         pthread_create to determine if hpux pthreads are active.
1898         * gthr-posix95.h (__gthread_start): Delete.
1899         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1900
1901 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1902
1903         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1904         _WIN64 not expanded.
1905
1906 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1907             H.J. Lu  <hongjiu.lu@intel.com>
1908
1909         PR target/45213
1910         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1911         to output 32bit SFmode immediate as 8 byte sign extended value.
1912
1913 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1914
1915         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1916         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1917         (SUBWORD_BOOL_CAS): Likewise.
1918         (SUBWORD_SYNC_OP): Likewise.
1919         (SUBWORD_TEST_AND_SET): Likewise.
1920         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1921         (SUBWORD_SYNC_OP): Likewise.
1922         (OP_AND_FETCH_WORD): Likewise.
1923
1924 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1925
1926         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1927         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1928         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1929         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1930         generic part.
1931         (cortex_a9_sched_adjust_cost): New function.
1932         (xscale_sched_adjust_cost): New function.
1933         * config/arm/arm-protos.h (struct tune_params): New field
1934         sched_adjust_cost.
1935         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1936
1937 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1938
1939         PR target/44942
1940         * config/sparc/sparc.c (function_arg_advance): Always take into account
1941         the padding, if any.
1942
1943 2010-08-06  Richard Guenther  <rguenther@suse.de>
1944
1945         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1946         (dump_lattice_value): Dump it.
1947         (get_default_value): Adjust.
1948         (get_constant_value): Likewise.
1949         (set_value_varying): Likewise.
1950         (set_lattice_value): Make sure to not go up the lattice
1951         with bitwise constant values.
1952         (get_value_for_expr): Handle ADDR_EXPRs.
1953         (value_to_double_int): New function.
1954         (get_value_from_alignment): Likewise.
1955         (do_dbg_cnt): Adjust.
1956         (ccp_lattice_meet): Handle partially constant values.
1957         (bit_value_unop_1): New function.
1958         (bit_value_binop_1): Likewise.
1959         (bit_value_unop): Likewise.
1960         (bit_value_binop): Likewise.
1961         (evaluate_stmt): Track partially constant values if
1962         flag_tree_bit_ccp is set.
1963         (ccp_fold_stmt): Dump if we folded a predicate.
1964         (ccp_visit_stmt): Adjust.
1965         * common.opt (ftree-bit-ccp): New flag.
1966         * doc/invoke.texi (ftree-bit-ccp): Document.
1967         * opts.c (decode_options): Enable bit-CCP at -O1.
1968
1969 2010-08-06  Alan Modra  <amodra@gmail.com>
1970
1971         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1972         and -mrelocatable-lib description.
1973
1974 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1975
1976         From Martin Thuresson  <martint@google.com>
1977         * postreload.c (reload_cse_simplify_operands): Use
1978         SET_REGNO_RAW instead of SET_REGNO.
1979         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1980         SET_REGNO.
1981         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1982         instead of SET_REGNO.
1983         * rtl.h (SET_REGNO_RAW): New macro.
1984
1985 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1986
1987         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1988         computations.  Fix formatting issues.
1989         (num_sign_bit_copies1): Likewise.
1990         (canonicalize_condition): Likewise.
1991
1992 2010-08-05  Richard Henderson  <rth@redhat.com>
1993
1994         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1995         (floor_log2): Use clz_hwi.
1996         (exact_log2): Use ctz_hwi.
1997         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1998         * builtins.c (fold_builtin_bitop): Use them.
1999         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2000         * combine.c (get_pos_from_mask): Use ctz_hwi.
2001         * double-int.c (double_int_ctz): Likewise.
2002         * explow.c (force_reg): Likewise.
2003         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
2004
2005 2010-08-05  Richard Henderson  <rth@redhat.com>
2006
2007         PR target/45189
2008         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
2009         the alignment constant is properly sign-extended.
2010
2011 2010-08-05  Richard Guenther  <rguenther@suse.de>
2012
2013         * expr.c (store_expr): Use emit_block_move only if both
2014         source and target are MEMs.  Use store_bit_field if only
2015         the target is a MEM.
2016
2017 2010-08-05  Richard Henderson  <rth@redhat.com>
2018
2019         PR debug/45188
2020         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
2021         (INCOMING_RETURN_ADDR_RTX): Likewise.
2022         (dwarf2out_do_frame): Remove conditional compilation.
2023         (dwarf2out_frame_init): Likewise.
2024
2025 2010-08-05  Nicolas Setton  <setton@adacore.com>
2026
2027         * gcov.c (flag_display_progress): New static variable.
2028         (main): Display progress info on standard output if requested.
2029         (options): Add -d/--display-progress.
2030         (print_usage): Print them.
2031         (process_args): Handle them.
2032         * doc/gcov.texi: Document them.
2033
2034 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2035
2036         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
2037         (ipcp_insert_stage): Redirect only edges not flagged with
2038         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
2039         discovered constants.
2040
2041 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2042
2043         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
2044         (struct ipa_param_descriptor): New fields types and
2045         cannot_devirtualize.
2046         (ipa_param_cannot_devirtualize_p): New function.
2047         (ipa_param_types_vec_empty): Likewise.
2048         (ipa_make_edge_direct_to_target): Declare.
2049         * ipa-cp.c: Fixed first stage driver name in initial comment,
2050         described devirtualization there too.
2051         (ipcp_analyze_node): Call ipa_analyze_params_uses.
2052         (ipcp_print_all_lattices): Print devirtualization info.
2053         (ipa_set_param_cannot_devirtualize): New function.
2054         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
2055         lattice to BOTTOM.
2056         (ipcp_init_stage): Merged into...
2057         (ipcp_generate_summary): ...its caller.
2058         (ipcp_change_tops_to_bottom): Also process type lists.
2059         (ipcp_add_param_type): New function.
2060         (ipcp_copy_types): Likewise.
2061         (ipcp_propagate_types): Likewise.
2062         (ipcp_propagate_stage): Also propagate types.
2063         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
2064         Also return true if propagated types require it.
2065         (ipcp_update_callgraph): Dump redirection info.
2066         (ipcp_process_devirtualization_opportunities): New function.
2067         (ipcp_const_param_count): Include known type information.
2068         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
2069         on new node.  Fixed formatting.
2070         * ipa-prop.c (make_edge_direct_to_target): Renamed to
2071         ipa_make_edge_direct_to_target and changed all callers.  Made
2072         externally visible.
2073         (ipa_node_duplication_hook): Duplicate types vector.
2074         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
2075         redirect outgoing calls for which we can't get a decl from the
2076         statement.  Check that we can get a decl from the call statement.
2077         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2078         ipa_analyze_params_uses only when ipa-cp is disabled.
2079         * tree-inline.c (get_indirect_callee_fndecl): Removed.
2080         (expand_call_inline): Do not call get_indirect_callee_fndecl.
2081         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
2082         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
2083
2084 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2085
2086         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
2087         temporary. Emit move from temporary to accum, so REG_EQUAL note will
2088         be attached to this insn in correct mode.
2089
2090 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2091
2092         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
2093         using REGNO of base_reg directly.
2094
2095 2010-08-05  Jie Zhang  <jie@codesourcery.com>
2096
2097         PR tree-optimization/45144
2098         * tree-sra.c (type_consists_of_records_p): Return false
2099         if the record contains bit-field.
2100
2101 2010-08-04  Richard Henderson  <rth@redhat.com>
2102
2103         * config/i386/i386.c (struct ix86_frame): Remove padding and
2104         to_allocate members.
2105         (ix86_compute_frame_layout): Don't store them.
2106         (ix86_can_use_return_insn_p): Use a more direct and more obviously
2107         correct condition for the position of the stack pointer.
2108         (ix86_expand_prologue): Compute remaining stack allocation based
2109         on the ultimate stack pointer offset.
2110         (ix86_expand_epilogue): Use more obvious expressions testing for
2111         the stack pointer already pointing to the saved registers.
2112
2113         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
2114         duplication deconstructing the frame pointer.  Simplify
2115         deallocation of the local stack frame.
2116
2117         * reg-notes.def (CFA_EXPRESSION): New.
2118         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2119         (dwarf2out_frame_debug_cfa_expression): New.
2120         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
2121
2122         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
2123         * config/i386/i386.c (ix86_expand_prologue): Set it.
2124         (ix86_expand_epilogue): Clear it.
2125         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
2126         context, add REG_CFA_EXPRESSION notes.
2127
2128         * config/i386/i386.h (struct machine_frame_state): Rename from
2129         machine_cfa_state.  Add members tracking SP and FP regardless
2130         of the current CFA register.
2131         (ix86_cfa_state): Remove.
2132         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
2133         and sse_reg_save_offset members.
2134         (ix86_compute_frame_layout): Set them.
2135         (gen_push): Increment sp_offset too.
2136         (choose_baseaddr_len, choose_baseaddr): New.
2137         (ix86_emit_save_reg_using_mov): New.
2138         (ix86_emit_save_regs_using_mov): Use it.
2139         (ix86_emit_save_sse_regs_using_mov): Likewise.
2140         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
2141         compare vs the saved red_zone_offset.
2142         (pro_epilogue_adjust_stack): Adjust sp_offset.
2143         (ix86_adjust_stack_and_probe): Likewise.
2144         (ix86_expand_prologue): Set up, use, and validate the new
2145         frame_state_info members.  Use gen_frame_mem.
2146         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
2147         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
2148         new frame_state_info members.
2149         (ix86_emit_leave): Likewise.
2150         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
2151         out-of-range stack pointer offsets here.
2152         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2153         (ix86_expand_epilogue): Use and validate the new frame_state_info
2154         members.  Break up and simplify the logic selecting the
2155         restore_regs_via_mov code path.  Ensure that there will be no
2156         out-of-range stack pointer offsets.
2157
2158         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
2159
2160         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
2161         argument name to reflect the expected tree; fix indentation.
2162         (ix86_asm_output_function_label): Output the entire 32-bit
2163         ms_hook here as bytes ...
2164         (ix86_expand_prologue): ... not here as insns.  Attach the
2165         unwind info for the ms_hook to a blockage insn.
2166         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
2167         (ix86_ms_bitfield_layout_p): Fix indentation.
2168         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
2169
2170         * config/i386/i386.c (ix86_using_red_zone): New.
2171         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2172         ix86_expand_prologue, ix86_force_to_memory): Use it.
2173
2174         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2175         saving the int registers.
2176
2177         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2178         and DWARF2_UNWIND_INFO conditional compilation.
2179
2180 2010-08-04  Richard Henderson  <rth@redhat.com>
2181
2182         PR debug/45171
2183         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2184         an is_naming_typedef_decl.
2185
2186 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
2187
2188         PR rtl-optimization/45162
2189         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2190         * dce.c (word_dce_process_block): Likewise.
2191
2192 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
2193
2194         PR target/44583
2195         * config/ia64/constraints.md (Z): New.
2196         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2197         (xfreg_or_signed_fp01_operand): New.
2198         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2199         with fr_reg_or_signed_fp01_operand and constraint G with Z.
2200         (subsf3): Ditto.
2201         (*maddsf4): Ditto.
2202         (*msubsf4): Ditto.
2203         (adddf3): Ditto.
2204         (adddf3_trunc): Ditto.
2205         (subdf3): Ditto.
2206         (*subdf3_trunc): Ditto.
2207         (*madddf4): Ditto.
2208         (*madddf4_trunc): Ditto.
2209         (*msubdf4): Ditto.
2210         (*msubdf4_trunc): Ditto.
2211         (addxf3): Replace xfreg_or_fp01_operand with
2212         xfreg_or_signed_fp01_operand and constraint G with Z.
2213         (*addxf3_truncsf): Ditto.
2214         (*addxf3_truncdf): Ditto.
2215         (subxf3): Ditto.
2216         (*subxf3_truncsf): Ditto.
2217         (*subxf3_truncdf): Ditto.
2218         (*maddxf4): Ditto.
2219         (*maddxf4_truncsf): Ditto.
2220         (*maddxf4_truncdf): Ditto.
2221         (*msubxf4): Ditto.
2222         (*msubxf4_truncsf): Ditto.
2223         (*msubxf4_truncdf): Ditto.
2224
2225 2010-08-04  Richard Guenther  <rguenther@suse.de>
2226
2227         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2228         if either alias-set is zero.
2229
2230 2010-08-04  Richard Guenther  <rguenther@suse.de>
2231
2232         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2233         * tree-ssa-ccp.c: ... here.
2234         * tree-ssa-copy.c: ... and here.
2235         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2236         value_range_t): Move ...
2237         * tree-vrp.c: ... here.
2238         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2239         (substitute_and_fold): Adjust prototype.
2240         * tree-ssa-propagate.c (replace_uses_in): Adjust.
2241         (replace_phi_args_in): Likewise.
2242         (substitute_and_fold): Take callback to query lattice instead
2243         of pointer to lattice.  Replace SSA name defs with lattice
2244         values first.
2245         * tree-ssa-ccp.c (ccp_finalize): Adjust.
2246         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2247         (get_value): New function.
2248         (fini_copy_prop): Adjust.
2249         * tree-vrp.c (vrp_finalize): Adjust.
2250
2251 2010-08-04  Richard Guenther  <rguenther@suse.de>
2252
2253         PR middle-end/45176
2254         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2255         points-to set for original MEM_REF.
2256
2257 2010-08-04  Richard Guenther  <rguenther@suse.de>
2258
2259         * tree-ssa-ccp.c (get_constant_value): New function.
2260         (get_rhs_assign_op_for_ccp): Remove.
2261         (valueize_op): New function.
2262         (ccp_fold): Use get_constant_value and valueize_op.
2263         (fold_const_aggregate_ref): Likewise.
2264         (ccp_fold_stmt): Likewise.
2265         (visit_assignment): Simplify.
2266
2267 2010-08-04  Richard Guenther  <rguenther@suse.de>
2268
2269         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2270         * double-int.h (double_int_ctz): Declare.
2271         * double-int.c (double_int_ctz): New function.
2272
2273 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
2274
2275         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2276         Define.
2277         picochip_expand_movmemhi : Expand movmem pattern.
2278         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2279         Declare.
2280         * config/picochip/picochip.md (movmemhi) : New pattern.
2281
2282 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2283
2284         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2285
2286 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
2287
2288         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2289         NEG as operand of a MULT by merging it with the other operand.
2290         * combine.c (make_compound_operation): Use trunc_int_for_mode when
2291         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
2292         MULT.
2293         * config/arm/constraints.md (M): Examine only 32 bits of a
2294         HOST_WIDE_INT.
2295         * config/arm/predicates.md (power_of_two_operand): Likewise.
2296
2297 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2298
2299         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2300         non-NOTE insns.
2301
2302 2010-08-03  Jan Hubicka  <jh@suse.cz>
2303
2304         * ipa-split.c (struct split_point): Add split_part_set_retval.
2305         (find_retval): Forward declare.
2306         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2307         (consider_split): Compute current->split_part_set_retval.
2308         (visit_bb): Do not look into return value.
2309         (split_function): Handle !split_part_set_retval
2310
2311 2010-08-03  Martin Jambor  <mjambor@suse.cz>
2312
2313         * tree-sra.c (completely_scalarize_record): New parameter REF, create
2314         its own access->expr intead of using build_ref_for_offset.
2315
2316 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
2317
2318         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2319         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2320         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2321         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2322         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2323         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2324         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2325         DEFAULT_SWITCH_TAKES_ARG.
2326         * config/rx/rx.opt (-patch=): Remove option.
2327         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2328         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2329         * doc/invoke.texi (RX Options): Remove -patch=.
2330         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2331         (option_map): Remove --profile-blocks, --quiet and --silent.
2332
2333 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2334
2335         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2336         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2337         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
2338         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2339         Update calls to ix86_expand_compare and ix86_expand_branch.
2340         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
2341         ix86_expand_compare.
2342         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
2343         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2344         Make static.
2345         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2346         and ix86_compare_op1.  Update calls to ix86_expand_compare.
2347         (ix86_expand_int_movcc): Ditto.
2348         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
2349         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2350         (ix86_expand_setcc): Ditto.
2351         (ix86_expand_compare): Remove prototype.
2352         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2353         ix86_compare_op0 and ix86_compare_op1.  Update calls
2354         to ix86_expand_branch to directly pass operands[1] and operands[2].
2355         (cbranchxf4): Ditto.
2356         (cbranch<MODEF:mode>4): Ditto.
2357         (cbranchcc4): Ditto.
2358         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2359         Update calls to ix86_expand_setcc to directly pass operands[2] and
2360         operands[3].
2361         (cstorexf4): Ditto.
2362         (cstore<MODEF:mode>4): Ditto.
2363         (cstorecc4): Ditto.
2364
2365 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2366
2367         PR target/45063
2368         * caller-save.c (save_call_clobbered_regs): Remove regs from
2369         hard_regs_saved when they are set.
2370
2371 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2372
2373         PR target/41089
2374         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2375         as volatile.
2376
2377 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2378
2379         * common.opt (ftree-loop-distribute-patterns): New.
2380         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2381         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2382         at -O3.
2383         * tree-data-ref.c (stores_zero_from_loop): New.
2384         * tree-data-ref.h (stores_zero_from_loop): Declared.
2385         * tree-loop-distribution.c (tree_loop_distribution): Call
2386         stores_zero_from_loop.
2387         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2388
2389 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2390
2391         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2392         into account.
2393
2394         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2395         * config/arm/arm.c (thumb1_code): New variable.
2396         (arm_override_options): Set it.
2397         (thumb1_final_prescan_insn): Keep track of condition code status.
2398         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2399         jumps that depend on them.
2400         * config/arm/arm.h (thumb1_code): Declare variable.
2401         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2402         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2403         thumb1_cc_mode.
2404         (CC_STATUS_INIT): New macro.
2405         * config/arm/constraints.md (Pd): New constraint.
2406         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2407         * config/arm/arm.md (is_thumb1): New define_attr.
2408         (conds): Set default to "clob" when generating Thumb1 code.
2409         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2410         code are set.  Use two-operand assembly syntax.
2411         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2412         pattern.
2413         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2414         codes are set.  Use two-operand assembly syntax.
2415         (zero_extendhisi splitter): Remove constraints.
2416         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2417         thumb1_movsf_insn): Set conds attribute as appropriate.
2418         (cbranchsi4_insn): Use condition code status from struct
2419         machine_function to determine whether the comparison can be eliminated.
2420         Discourage the alternative using high registers.
2421         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2422         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2423         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2424         subsi3_cbranch): Delete.
2425         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2426         one subtract and one cbranch insn.
2427
2428         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2429         thumb2_movdf_soft_insn): Delete patterns.
2430         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2431         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2432         (pool_range, neg_pool_range): Use them to define defaults.
2433         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2434         and allow for TARGET_32BIT.
2435
2436         PR target/40457
2437         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2438         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2439         load_multiple_sequence, store_multiple_sequence): Delete
2440         declarations.
2441         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2442         declarations.
2443         * config/arm/ldmstm.md: New file.
2444         * config/arm/arm.c (arm_regs_in_sequence): New array.
2445         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2446         CHECK_REGS.  All callers changed.
2447         If SAVED_ORDER is nonnull, copy the computed order into it.
2448         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2449         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2450         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2451         If SAVED_ORDER is nonnull, copy the computed order into it.
2452         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2453         like REGS.  Handle Thumb mode.
2454         (arm_gen_load_multiple_1): New function, broken out of
2455         arm_gen_load_multiple.
2456         (arm_gen_store_multiple_1): New function, broken out of
2457         arm_gen_store_multiple.
2458         (arm_gen_multiple_op): New function, with code from
2459         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2460         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2461         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2462         changed.
2463         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2464         * config/arm/predicates.md (commutative_binary_operator): New.
2465         (load_multiple_operation, store_multiple_operation): Handle more
2466         variants of these patterns with different starting offsets.  Handle
2467         Thumb-1.
2468         * config/arm/arm.md: Include "ldmstm.md".
2469         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2470         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2471         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2472         peepholes): Delete.
2473         * config/arm/ldmstm.md: New file.
2474         * config/arm/arm-ldmstm.ml: New file.
2475
2476         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2477         if statement which adds extra costs to frame-related expressions.
2478
2479 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2480
2481         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2482
2483 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2484
2485         PR target/45142
2486         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2487         alternative 2.
2488         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2489         split V4SI operands.
2490
2491 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2492
2493         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2494         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2495         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2496         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2497
2498 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2499
2500         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2501         LOCAL_INCLUDE_DIR.
2502
2503 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2504
2505         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2506         used in the call to optab_for_tree_code.  Fix the second
2507         is_widening_mult_p call.  Check that both unwidened operands
2508         have the same sign.
2509
2510 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2511
2512         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2513
2514 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2515
2516         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2517
2518 2010-07-30  DJ Delorie  <dj@redhat.com>
2519
2520         * config/rx/predicates.md (rx_constshift_operand): New.
2521         * config/rx/rx.md (zs_cond): New.
2522         (cbranchsi4): Remove mode.
2523         (*cbranchsi4_<code>): Likewise.
2524         (*tstbranchsi4_<code>): New.
2525         (*tstbranchsi4r_<code>): New.
2526         (*tstbranchsi4m_eq): New.
2527         (*tstbranchsi4m_ne): New.
2528         (cbranchsf4): Remove mode.
2529         (*cbranchsf4_<code>): Likewise.
2530
2531 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2532
2533         * rtlanal.c (simplify_subreg_regno): Don't treat
2534         HARD_FRAME_POINTER_REGNUM specially.
2535
2536 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2537
2538         * common.opt (-G): Don't define option here.
2539         * config/g.opt: New.
2540         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2541         rs6000/powerpc and score targets.
2542         * opts.c (common_handle_option): Don't handle -G here.
2543         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2544         * config/frv/frv.c (frv_handle_option): Handle -G.
2545         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2546         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2547         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2548         * config/mips/mips.c (mips_handle_option): Handle -G.
2549         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2550         * config/score/score.c (score_handle_option): Handle -G.
2551
2552 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2553
2554         * config/mmix/mmix.c: Include basic-block.h.
2555
2556 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2557
2558         PR debug/45055
2559         PR rtl-optimization/45137
2560         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2561         prototypes.
2562         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2563         New functions.
2564         * combine.c (next_nonnote_nondebug_insn): Removed.
2565         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2566         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2567         * sched-deps.c (sched_analyze_insn): Likewise.
2568         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2569         * rtlanal.c (canonicalize_condition): Likewise.
2570         * postreload.c (reload_combine_recognize_pattern): Likewise.
2571         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2572
2573 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2574
2575         * config/i386/i386.md (int_cond): Remove code iterator.
2576         (fp_cond): Ditto.
2577         (cbranch<mode>4): Use ordered_comparison_operator predicate
2578         for operator0.
2579         (cstore<mode>4): Ditto for operator1.
2580         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2581         (add<mode>cc): ditto.
2582
2583 2010-07-30  Richard Guenther  <rguenther@suse.de>
2584
2585         PR middle-end/45141
2586         * expr.c (expand_expr_real_1): Check for not handled base address.
2587
2588 2010-07-30  Richard Guenther  <rguenther@suse.de>
2589
2590         * ipa-prop.c (ipa_modify_formal_parameters): Use
2591         build_distinct_type_copy.
2592
2593 2010-07-30  Anthony Green  <green@moxielogic.com>
2594
2595         * config/moxie/rtems.h: New file.
2596         * config.gcc: Add moxie-rtems support.
2597
2598 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2599
2600         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2601         df flags as in run_fast_df_dce.
2602
2603 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2604
2605         Revert:
2606         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2607
2608         * rtl.def (NOTE): Swap operands 4 and 5.
2609         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2610         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2611         Adjust accordingly.
2612         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2613
2614 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2615
2616         PR debug/45110
2617         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2618         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2619         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2620         formal parameters.
2621         (gen_decl_die): Change return type to dw_die_ref, return what
2622         gen_formal_parameter_die returned.
2623
2624 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2625
2626         * dbgcnt.def (eipa_sra): New counter.
2627         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2628
2629 2010-07-29  Xinliang David Li  <davidxl@google.com>
2630
2631         PR bootstrap/45119
2632         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2633         in revision 162652.
2634
2635 2010-07-29  Richard Guenther  <rguenther@suse.de>
2636
2637         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2638         (TV_TREE_STORE_CCP): Likewise.
2639         (TV_TREE_REDPHI): Likewise.
2640
2641 2010-07-29  Richard Guenther  <rguenther@suse.de>
2642
2643         * double-int.h (double_int_and_not): New function.
2644         * combine.c (try_combine): Use it.
2645         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2646
2647 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2648
2649         PR rtl-optimization/42575
2650         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2651         Argument AU removed.  All callers changed.  Ignore artificial refs.
2652         Use return value of df_word_lr_simulate_defs to decide whether an insn
2653         is necessary.
2654         (fast_dce): Rename arg to WORD_LEVEL.
2655         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2656         static.
2657         (pass_fast_rtl_byte_dce): Delete.
2658         * dce.h (run_word_dce): Declare.
2659         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2660         All callers changed.  Simplify code to only deal with two-word regs.
2661         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2662         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2663         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2664         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2665         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2666         (df_word_lr_mark_ref): Declare.
2667         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2668         df_word_lr_simulate_uses): Declare or rename from byte variants.
2669         (df_byte_lr_simulate_artificial_refs_at_top,
2670         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2671         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2672         declarations.
2673         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2674         (enum df_mm): Delete.
2675         * df-byte-scan.c: Delete file.
2676         * df-problems.c (df_word_lr_problem_data): Renamed from
2677         df_byte_lr_problem_data, all members deleted except for
2678         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2679         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2680         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2681         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2682         df_byte_lr_confluence_0): Delete functions.
2683         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2684         callers changed.
2685         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2686         Don't initialize members that were deleted, don't try to discover data
2687         about registers.  Ignore hard regs.
2688         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2689         (df_word_lr_mark_ref): New function.
2690         (df_word_lr_bb_local_compute): Renamed from
2691         df_byte_bb_lr_local_compute; all callers changed.  Use
2692         df_word_lr_mark_ref.  Assert that artificial refs don't include
2693         pseudos.  Ignore hard registers.
2694         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2695         Assert that exit block uses don't contain pseudos.
2696         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2697         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2698         callers changed.  Ignore hard regs.
2699         (df_word_lr_transfer_function): Renamed from
2700         df_byte_lr_transfer_function; all callers changed.
2701         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2702         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2703         changed.
2704         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2705         callers changed.
2706         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2707         confluence operator 0 set to NULL.
2708         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2709         callers changed.
2710         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2711         Return bool, true if bitmap changed or insn otherwise necessary.
2712         All callers changed.  Simplify using df_word_lr_mark_ref.
2713         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2714         all callers changed.  Simplify using df_word_lr_mark_ref.
2715         * lower-subreg.c: Include "dce.h"
2716         (decompose_multiword_subregs): Call run_word_dce if df available.
2717         * Makefile.in (lower-subreg.o): Adjust dependencies.
2718         (df-byte-scan.o): Delete.
2719         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2720
2721 2010-07-29  Richard Guenther  <rguenther@suse.de>
2722
2723         * tree.c (build_vector): Assert that the vector constant
2724         has enough elements.
2725         (build_vector_from_ctor): Pad with trailing zeros.
2726
2727 2010-07-29  Richard Guenther  <rguenther@suse.de>
2728
2729         PR tree-optimization/45120
2730         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2731         Handle offset in DEREFs properly.
2732         (get_constraint_for_1): Handle MEM_REF offset properly.
2733
2734 2010-07-29  Richard Guenther  <rguenther@suse.de>
2735
2736         PR middle-end/45034
2737         * convert.c (convert_to_integer): Always use an unsigned
2738         type for narrowed negate and bitwise not.
2739
2740 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2741
2742         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2743         to outer loop when creating reduction epilogue for double reduction,
2744         and switch back to the inner loop when updating the phi nodes.
2745         Update uses of outer loop exit phi nodes in double reduction (instead
2746         of uses of reduction).
2747
2748 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2749
2750         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2751         popcount on power7 and parity on power6 systems.
2752         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2753         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2754         instructions.
2755
2756         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2757         (UNSPEC_PARITY): Ditto.
2758         (SFDF): New iterator for SF/DF.
2759         (rreg2): New mode attribute for floating register constraint.
2760         (TARGET_FLOAT): New mode attribute for whether single/double float
2761         is supported.
2762         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2763         pattern.
2764         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2765         machines.
2766         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2767         pattern.  Add support for fcpsgn instruction added in power6.
2768         (copysignsf3): Delete.
2769         (copysigndf3): Delete.
2770         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2771         instead of if_then_else in RTL to avoid problems with -0.
2772
2773         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2774         of if_then_else to mirror scalar code.
2775         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2776         rs6000.md.
2777
2778         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2779         instead of if_then_else.
2780
2781 2010-07-28  Xinliang David Li  <davidxl@google.com>
2782
2783         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2784         (dump_cand): Dump var_before/after.
2785         (htab_inv_expr_eq): New function.
2786         (htab_inv_expr_hash): New function.
2787         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2788         (add_candidate_1): consider base type precision.
2789         (set_use_iv_cost): New parameter.
2790         (adjust_setup_cost): Use profile information.
2791         (get_address_cost): Do not hard code width in computing address
2792         offset limits.
2793         (compare_aff_trees): New function.
2794         (get_loop_invariant_expr_id): New function.
2795         (get_computation_cost_at): New parameter and use profile information.
2796         (get_computation_cost): New parameter.
2797         (determine_use_iv_cost_generic): Pass new parameter.
2798         (determine_use_iv_cost_address): Ditto.
2799         (determine_use_iv_cost_condition): Ditto.
2800         (autoinc_possible_for_pair): Ditto.
2801         (determine_use_iv_costs): More dumps.
2802         (iv_ca_get_num_inv_exprs): New function.
2803         (iv_ca_recount_cost): Consider loop invariants in register pressure
2804         cost.
2805         (iv_ca_add_use): New parameter.
2806         (iv_ca_dump): Better dumping.
2807         (iv_ca_extend): New parameter.
2808         (try_add_cand_for): Attempt to get better partial solution.
2809         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2810         (create_new-ivs): More dumps.
2811         (rewrite_use_compare): Ditto.
2812         (free_loop_data): More cleanup.
2813         (treee_ssa_iv_optimize_finalize): Ditto.
2814
2815 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2816
2817         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2818         * config/i386/i386.c (ix86_profile_before_prologue): New.
2819         (override_options): Add special handling for -mfentry.
2820         (ix86_function_regparm): Likewise.
2821         (ix86_function_sseregparm): Likewise.
2822         (ix86_frame_pointer_required): Likewise.
2823         (ix86_expand_prologue): Check for ms_hook_prologue.
2824         (x86_function_profiler): Adjust mcount output.
2825         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2826         * config/i386/i386.opt (mfentry): New.
2827         * doc/invoke.texi (mfentry): Add documentation.
2828         * doc/tm.texi: Regenerated..
2829         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2830         * final.c (final_start_function): Replace macro
2831         PROFILE_BEFORE_PROLOGUE by target hook.
2832         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2833         * target.def (profile_before_prologue): New hook.
2834         * targhooks.c (default_profile_before_prologue): New.
2835         * targhooks.h (default_profile_before_prologue): New.
2836
2837 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2838
2839         PR debug/45105
2840         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2841
2842         PR debug/45103
2843         * dwarf2out.c (dwarf2out_var_location): Always consider
2844         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2845
2846 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2847
2848         PR rtl-optimization/45107
2849         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2850
2851 2010-07-28  Richard Guenther  <rguenther@suse.de>
2852
2853         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2854         (set_lattice_value): Do not query an old default value.
2855         (get_value_for_expr): New function.  Properly canonicalize
2856         float values.
2857         (ccp_visit_phi_node): Use it.
2858
2859 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2860
2861         * config/arm/arm.c (arm_pcs_default): Remove static.
2862         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2863         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2864         (arm_pcs_default): Declare.
2865
2866 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2867
2868         * config/rs6000/rs6000.c (rs6000_override_options):
2869         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2870         ... to darwin_rs6000_override_options.
2871         (rs6000_return_in_memory): Update preceding comment for darwin
2872         64 bit ABI.  Use TARGET_MACHO inline.
2873         (rs6000_darwin64_struct_check_p): New.
2874         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2875         (function_arg): Likewise.
2876         (rs6000_arg_partial_bytes): Likewise.
2877         (rs6000_function_value): Likewise.
2878
2879 2010-07-28  Andi Kleen <ak@linux.intel.com>
2880
2881         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2882
2883 2010-07-28  Richard Guenther  <rguenther@suse.de>
2884
2885         PR middle-end/44903
2886         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2887         targets try harder to not generate unaligned accesses.
2888
2889 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2890
2891         PR rtl-optimization/45101
2892         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2893         for gcse-las.
2894
2895 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2896
2897         PR tree-optimization/44885
2898         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2899         with non-aliased component.
2900
2901 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2902
2903         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2904         WORD_SWITCH_TAKES_ARG): Remove.
2905         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2906         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2907         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2908         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2909         definitions from gcc.c.
2910         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2911         defaults.h.
2912         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2913         Move to defaults.h.
2914         * opts-common.c: Include tm.h.
2915         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2916         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2917         Handle more than one argument.  Set canonical_option_num_elements.
2918         (decode_cmdline_options_to_array): Set
2919         canonical_option_num_elements and trailing elements of
2920         canonical_option.
2921         * opts.h (struct cl_decoded_option): Allow four elements in
2922         canonical_option.  Add field canonical_option_num_elements.
2923         * Makefile.in (opts-common.o): Update dependencies.
2924
2925 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2926
2927         PR middle-end/44790
2928         PR middle-end/44993
2929         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2930         sure the base has address_mode before adding the offset.
2931
2932 2010-07-27  Xinliang David Li <davidxl@google.com>
2933
2934         * tree-flow.h (create_mem_ref): Add one new parameter.
2935         * tree-ssa-address.c (create_mem_ref): New parameter.
2936         (addr_to_parts): Ditto.
2937         (move_variant_to_index): New function.
2938         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2939
2940 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2941
2942         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2943         4 and 5.
2944         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2945         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2946         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2947         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2948         CODE_LABELs and NOTEs.
2949         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2950         * combine.c (try_combine): Likewise.
2951         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2952         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2953
2954 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2955
2956         * coretypes.h (struct cl_option_handlers): Declare.
2957         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2958         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2959         * langhooks-def.h (lhd_handle_option): Declare.
2960         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2961         * langhooks.c (lhd_handle_option): New.
2962         * langhooks.h (struct lang_hooks): Update prototype and return
2963         value type of handle_option hook.
2964         * optc-gen.awk: Generate target_flags_explicit definition for the
2965         driver.
2966         * opts-common.c: Include diagnostic.h.
2967         (handle_option): Move from opts.c.  Update prototype and return
2968         value type.  Use handlers structure.
2969         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2970         handlers structure.
2971         (set_option): Move from opts.c.
2972         * opts.c (common_handle_option): Update prototype and return value
2973         type.  Update calls to handle_option and enable_warning_as_error.
2974         (unknown_option_callback, post_handling_callback,
2975         lang_handle_option, target_handle_option): New.
2976         (handle_option, read_cmdline_option): Move to opts-common.c.
2977         (read_cmdline_options): Update prototype.  Update call to
2978         read_cmdline_option.
2979         (decode_options): Initialize and use handlers structure.
2980         (set_option): Move to opts-common.c.
2981         (enable_warning_as_error): Update prototype.  Update call to
2982         handle_option.
2983         * opts.h (struct cl_option_handler_func, struct
2984         cl_option_handlers): New.
2985         (handle_option, enable_warning_as_error): Update prototypes.
2986         (read_cmdline_option): Declare.
2987         * Makefile.in (opts-common.o): Update dependencies.
2988
2989 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2990
2991         * config/arm/arm.c (params.h): Include.
2992         (arm_override_options): Tune gcse-unrestricted-cost.
2993         * config/arm/t-arm (arm.o): Define dependencies.
2994
2995 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2996
2997         PR target/42495
2998         PR middle-end/42574
2999         * basic-block.h (get_dominated_to_depth): Declare.
3000         * dominance.c (get_dominated_to_depth): New function, use
3001         get_all_dominated_blocks as a base.
3002         (get_all_dominated_blocks): Use get_dominated_to_depth.
3003
3004         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
3005         (hoist_exprs): Remove.
3006         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
3007         (compute_code_hoist_vbeinout): Add debug print outs.
3008         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
3009
3010         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
3011         quadratic behavior.
3012         * params.h (MAX_HOIST_DEPTH): New macro.
3013         * doc/invoke.texi (max-hoist-depth): Document.
3014
3015 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3016
3017         PR rtl-optimization/40956
3018         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
3019         constants.
3020
3021 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3022
3023         PR target/42495
3024         PR middle-end/42574
3025         * config/arm/arm.c (legitimize_pic_address): Use
3026         gen_calculate_pic_address pattern to emit calculation of PIC address.
3027         (will_be_in_index_register): New function.
3028         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
3029         (thumb1_legitimate_address_p): Use it provided !strict_p.
3030         * config/arm/arm.md (calculate_pic_address): New expand and split.
3031
3032 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3033
3034         PR target/42495
3035         PR middle-end/42574
3036         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
3037         * config/arm/arm.md (define_split "J", define_split "K"): Make
3038         IRA/reload friendly.
3039
3040 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3041
3042         * gcse.c (insert_insn_end_basic_block): Update signature, remove
3043         unused checks.
3044         (pre_edge_insert, hoist_code): Update.
3045
3046 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3047
3048         PR target/42495
3049         PR middle-end/42574
3050         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
3051
3052 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3053
3054         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
3055
3056 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3057
3058         PR rtl-optimization/40956
3059         PR target/42495
3060         PR middle-end/42574
3061         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
3062         for hoisting.
3063         (hoist_code): Count occurences in current block too.
3064
3065 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3066
3067         * gcse.c (struct expr:max_distance): New field.
3068         (doing_code_hoisting_p): New static variable.
3069         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
3070         simple expressions, don't change behavior for PRE.  Set max_distance.
3071         (insert_expr_in_table): Set new max_distance field.
3072         (hash_scan_set): Update.
3073         (hoist_expr_reaches_here_p): Stop search after max_distance
3074         instructions.
3075         (find_occr_in_bb): New static function.  Use it in ...
3076         (hoist_code): Calculate sizes of basic block before any changes are
3077         done.  Pass max_distance to hoist_expr_reaches_here_p.
3078         (one_code_hoisting_pass): Set doing_code_hoisting_p.
3079
3080         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
3081         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
3082         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
3083         macros.
3084         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
3085         Document.
3086
3087 2010-07-27  Jeff Law  <law@redhat.com>
3088             Maxim Kuvyrkov  <maxim@codesourcery.com>
3089
3090         * gcse.c (compute_transpout, transpout): Remove, move logic
3091         to prune_expressions.
3092         (compute_pre_data): Move pruning of trapping expressions ...
3093         (prune_expressions): ... here.  New static function.
3094         (compute_code_hoist_data): Use it.
3095         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
3096
3097 2010-07-27  Xinliang David Li  <davidxl@google.com>
3098
3099         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
3100         (rewrite_use_address): Adjust iv update position when needed.
3101
3102 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3103
3104         * dbgcnt.def (hoist_insn): New debug counter.
3105         * gcse.c (hoist_code): Use it.
3106
3107 2010-07-27  Xinliang David Li  <davidxl@google.com>
3108
3109         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
3110         (niter_for_single_dom_exit): Passes additional parameter.
3111         (iv_period): Fix comments.
3112         (may_eliminate_iv): Handles multiple exit loops properly.
3113         (free_tree_niter_desc): New function.
3114         (free_loop_data): Frees up loop iteration descriptors.
3115
3116 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3117
3118         PR target/44542
3119         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
3120         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
3121         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
3122         (expand_one_var): Don't consider DECL_ALIGN for variables for
3123         which expand_one_stack_var_at has been already called.
3124
3125         PR testsuite/44701
3126         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
3127         constraints on IA-64.
3128
3129 2010-07-27  Jie Zhang  <jie@codesourcery.com>
3130
3131         PR target/44290
3132         Revert:
3133         2010-07-23  Jie Zhang  <jie@codesourcery.com>
3134
3135         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3136         false if ! tree_versionable_function_p.
3137
3138 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3139
3140         * dwarf2out.c (add_data_member_location_attribute): Use
3141         add_AT_unsigned instead of add_AT_int if offset is non-negative.
3142
3143 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3144
3145         * postreload.c (try_replace_in_use): New static function.
3146         (reload_combine_recognize_const_pattern): Use it here.  Allow
3147         substituting into a final add insn, and substituting into a memory
3148         reference in an insn that sets the reg.
3149
3150 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3151
3152         * common.opt (o): Add MissingArgError.
3153         * doc/options.texi (MissingArgError): Document.
3154         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
3155         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
3156         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3157         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
3158         * langhooks.h (struct lang_hooks): Remove missing_argument.
3159         * optc-gen.awk: Handle MissingArgError and output new structure
3160         field initializers.
3161         * opts.c (read_cmdline_option): Use missing_argument_error field
3162         instead of missing_argument langhook.
3163         * opts.h (struct cl_option): Add missing_argument_error field.
3164         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
3165
3166 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3167
3168         PR target/29090
3169         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
3170         Darwin64 ABI, for zero-sized objects.
3171
3172 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3173
3174         PR target/35491
3175         PR target/29090
3176
3177         Merge from Apple local 4.2.1.
3178         2005-05-11  Stan Shebs  <shebs@apple.com>
3179         Fix 64-bit varargs for Darwin (Radar 4028089).
3180         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3181         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3182         Add argument, add case for 8-byte register half-filled with a float.
3183         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3184         single-precision floats specially.
3185
3186 2010-07-27  Ira Rosen  <irar@il.ibm.com>
3187
3188         PR tree-optimization/44152
3189         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3190         complex numbers for further check.
3191         (vect_supported_load_permutation_p): Check nodes with
3192         complex numbers.
3193
3194 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3195
3196         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3197         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3198         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3199         (LANG_HOOKS_INITIALIZER): Add new hooks.
3200         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3201         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3202         and complain_wrong_lang_p.  Update init_options prototype.
3203         * c-objc-common.c (c_initialize_diagnostics): First call
3204         c_common_initialize_diagnostics.
3205         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3206         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3207         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3208         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3209         (hook_uint_void_0): New.
3210         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3211         (hook_uint_void_0): New.
3212         * opts-common.c (decode_cmdline_option,
3213         decode_cmdline_options_to_array): Also fill in canonical_option field.
3214         * opts.c (complain_wrong_lang): Use langhook to determine whether
3215         to complain instead of special-casing LTO.
3216         (decode_options): Separate lang_mask determination with
3217         option_lang_mask hook from call of init_options hook.
3218         * opts.h (struct cl_decoded_option): Add canonical_option.
3219
3220 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3221
3222         PR tree-optimization/45083
3223         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3224
3225 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3226
3227         * postreload.c (reload_combine_recognize_const_pattern): Move test
3228         for limiting the insn movement to the right scope.
3229
3230         PR rtl-optimization/45051
3231         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3232         than reg_mentioned_p.
3233
3234 2010-07-26  Richard Henderson  <rth@redhat.com>
3235
3236         PR target/44132
3237         * tree-emutls.c: New file.
3238         * Makefile.in (OBJS-common): Add it.
3239         * tree-pass.h (pass_ipa_lower_emutls): Declare.
3240         * passes.c (init_optimization_passes): Add it.
3241
3242         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3243         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3244         * expr.c (emutls_var_address): Delete.
3245         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3246         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3247         (emutls_finish): Delete.
3248         * toplev.c (compile_file): Don't call it.
3249         * tree.h (emutls_decl): Delete.
3250         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3251         (emutls_finish, emutls_finalize_control_var): Delete.
3252         (emutls_object_type): Move to tree-emutls.c.
3253         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3254         default_emutls_var_fields, get_emutls_object_type,
3255         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3256         default_emutls_var_init): Likewise.
3257         (get_variable_section): Don't special case emutls.
3258         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3259         default_elf_select_section, default_unique_section,
3260         default_encode_section_info): Likewise.
3261         * varpool.c (decide_is_variable_needed): Likewise.
3262         * gimple-iterator.c (update_call_edge_frequencies): New
3263         (gsi_insert_on_edge_immediate): Use it.
3264         (gsi_insert_seq_on_edge_immediate): Likewise.
3265         (gsi_commit_one_edge_insert): Likewise.
3266
3267         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3268         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3269         (x86_64_elf_unique_section): Likewise.
3270
3271 2010-07-26  Jan Hubicka  <jh@suse.cz>
3272
3273         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3274         GTY((skip)).
3275
3276 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
3277
3278         * target.def (output_source_filename): New hook.
3279         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3280         * doc/tm.texi: Regenerate.
3281         * toplev.c (output_file_directive) Remove function.
3282         * toplev.h (output_file_directive) Remove.
3283         * output.h (default_asm_output_source_filename,
3284         output_file_directive): Declare.
3285         * varasm.h (default_asm_output_source_filename,
3286         output_file_directive): New functions.
3287
3288         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3289         * config/mips/mips-protos.h (mips_output_filename): Remove.
3290         * config/mips/mips.c (mips_output_filename): Make Static.
3291         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3292
3293 2010-07-26  Richard Guenther  <rguenther@suse.de>
3294
3295         PR tree-optimization/43784
3296         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3297         if the destination is used by the call.
3298
3299 2010-07-26  Richard Guenther  <rguenther@suse.de>
3300
3301         PR middle-end/45073
3302         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3303         SSA updating on being in SSA form.
3304
3305 2010-07-26  Richard Guenther  <rguenther@suse.de>
3306
3307         PR middle-end/45056
3308         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3309
3310 2010-07-26  Richard Guenther  <rguenther@suse.de>
3311
3312         PR tree-optimization/45071
3313         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3314         adjust op->opcode.
3315
3316 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
3317
3318         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3319         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3320         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3321         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3322         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3323         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3324         save_r31, return_r31, save_interrupt, return_interrupt,
3325         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3326         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3327         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3328         new ABI requirements.
3329         (save_r6_r9, L_callt_save_r6_r9): Remove.
3330         * config/v850/predicates.md (even_reg_operand, disp23_operand,
3331         const_float_1_operand const_float_0_operand): New Predicates.
3332         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3333         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3334         * config/v850/t-v850: Update multilibs for new target variants.
3335         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3336         * config/v850/t-v850e: Likewise.
3337         * config/v850/v850.c (v850_issue_rate): New.
3338         (v850_strict_argument_naming): New.
3339         (function_arg): Modify to generate a different ABI.
3340         (print_operand): Update case 'z' to support float modes.
3341         (output_move_single): Modify to generate appropriate and better
3342         assembly.
3343         (v850_float_z_comparison_operator, v850_select_cc_mode,
3344         v850_float_nz_comparison_operator,  v850_gen_float_compare,
3345         v850_gen_compare): New functions to support comparison of float values.
3346         (ep_memory_offset): Add support for V850E2 targets.
3347         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3348         (INTERRUPT_REGPARM_NUM): Remove.
3349         (compute_register_save_size): Add extra case to save/restore long call.
3350         (use_prolog_function): New function to support prologue.
3351         (expand_prologue): Add support for V850E2 targets and modified
3352         as per the current ABI requirements.
3353         (expand_epilogue): Likewise.
3354         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3355         (construct_save_jarl): Likewise.
3356         (construct_dispose_instruction): Update as per the current ABI
3357         requirements.
3358         (construct_prepare_instruction): Likewise.
3359         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3360         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3361         (CPP_SPEC): Updated to support v850e2 targets.
3362         (STRICT_ALIGNMENT): Modified.
3363         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3364         (FIXED_REGISTERS): Likewise.
3365         (CALL_USED_REGISTERS): Likewise.
3366         (CONDITIONAL_REGISTER_USAGE): Updated.
3367         (HARD_REGNO_MODE_OK): Updated.
3368         (reg_class): Updated to add even registers.
3369         (REG_CLASS_NAMES): Likewise.
3370         (REG_CLASS_CONTENTS): Likewise.
3371         (REGNO_REG_CLASS): Updated for CC registers.
3372         (REG_CLASS_FROM_LETTER): Added support for even registers.
3373         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3374         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3375         ARG_POINTER_REGNUM): Updated.
3376         (FUNCTION_ARG_ADVANCE): Define.
3377         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3378         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3379         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3380         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3381         (SELECT_CC_MODE): Define.
3382         (REGISTER_NAMES): Updated to add psw and fcc registers.
3383         (ADDITIONAL_REGISTER_NAMES): Updated.
3384         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3385         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3386         * config/v850/v850.md (define_constants): Define new constants.
3387         (type): Update store,bit1,macc,div,fpu and single attributes.
3388         (cpu): New attribute.
3389         (cc): Add set_z attribute.
3390         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3391         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3392         23word_store): New instructions for 23-bit displacement load and store.
3393         (movqi_internal, movhi_internal): Update the attributes.
3394         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3395         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3396         the attributes.
3397         (v850_tst1): Modified using CC_REGNUM.
3398         (tstsi): Remove.
3399         (cmpsi): Modified as define_expand from define_insn.
3400         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3401         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3402         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3403         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3404         one_cmplsi2): Clobber the CC_REGNUM register.
3405         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3406         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3407         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3408         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3409         v850e2v3 target.
3410         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3411         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3412         targets.
3413         (sasf_1, sasf_2): Remove.
3414         (sasf): New instruction.
3415         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3416         targets. CC_REGNUM register is clobbered and attributes are
3417         updated.
3418         (branch_z_normal, branch_z_invert, branch_nz_normal,
3419         branch_nz_invert): New branch related instructions.
3420         (jump): Updated the attributes.
3421         (switch): Update to support new targets. CC_REGNUM register is
3422         clobbered and attributes are updated.
3423         (call_internal_short, call_internal_long, call_value_internal_short,
3424         call_value_internal_long): Updated the attributes.
3425         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3426         clobbered and attributes are updated.
3427         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3428         Update to support new targets. CC_REGNUM register is clobbered.
3429         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3430         instructions.
3431         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3432         are updated.
3433         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3434         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3435         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3436         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3437         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3438         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3439         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3440         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3441         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3442         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3443         point instructions defined for V850e2v3 target.
3444         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3445         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3446         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3447         support for new targets.
3448         * config/v850/v850-modes.def: New file.
3449         * config/v850/v850.opt(mstrict-align): Remove.
3450         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3451         mv850e2v3): New command line options for V850.
3452         * config.gcc: Update the newly added files.
3453         * doc/invoke.texi: Update the newly added command line options for
3454         V850 target.
3455
3456 2010-07-26  Richard Guenther  <rguenther@suse.de>
3457
3458         PR tree-optimization/45052
3459         * ipa-pure-const.c (check_stmt): Check volatileness.
3460
3461 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3462
3463         PR target/44707
3464         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3465         * config/sparc/sparc.c: Include reload.h.
3466         (legitimize_tls_address): Rename into...
3467         (sparc_legitimize_tls_address): ...this.
3468         (legitimize_pic_address): Rename into...
3469         (sparc_legitimize_pic_address): ...this.
3470         (sparc_expand_move): Adjust to above renaming.
3471         (sparc_tls_referenced_p): Likewise.
3472         (sparc_legitimize_tls_address): Likewise.
3473         (sparc_legitimize_pic_address): Likewise.
3474         (sparc_legitimize_address): Likewise.
3475         (sparc_output_mi_thunk): Likewise.
3476         (sparc_legitimize_reload_address): New global function.  Recognize
3477         (lo_sum (high ...) ...) patterns generated by earlier passes.
3478         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3479
3480 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3481
3482         PR target/44484
3483         * config/sparc/predicates.md (memory_reg_operand): Delete.
3484         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3485         (*sync_compare_and_swap): Encode the address form in the pattern.
3486         (*sync_compare_and_swapdi_v8plus): Likewise.
3487
3488 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3489
3490         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3491         Streamline paragraph on compatibility with the system compiler.
3492
3493 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3494
3495         PR middle-end/45035
3496         * alias.c (true_dependence_1): Fix thinko in merge of old
3497         true_dependence and canon_true_dependence.
3498
3499 2010-07-23  Jan Hubicka  <jh@suse.cz>
3500
3501         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3502         references.
3503
3504 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3505
3506         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3507         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3508         and an unnecessary assignment.
3509         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3510         self-assign warning.
3511         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3512         unnecessary self-init.
3513
3514 2010-07-23  Richard Guenther  <rguenther@suse.de>
3515
3516         PR lto/43071
3517         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3518         for -flto and -fwhopr.
3519
3520 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3521
3522         PR target/41943
3523         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3524         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3525         * config.gcc (user_headers_inc_next_pre): New.
3526         (user_headers_inc_next_post): Likewise.
3527         (*-w64-mingw*): Use for float.h post-fixing, and for
3528         stddef.h/stdarg.h pre-fixing by include_next.
3529         * configure.ac (user_headers_inc_next_post): New.
3530         (user_headers_inc_next_pre): New.
3531         * configure: Regenerated.
3532
3533 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3534
3535         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3536         Set tga_func for Solaris 2/x86 resp. SPARC.
3537         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3538         (LIB_THREAD_LDFLAGS_SPEC): Define.
3539         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3540         * configure: Regenerate.
3541         * config.in: Regenerate.
3542         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3543         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3544         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3545         alternate thread libraries on Solaris 8.
3546         Document TLS patch requirements.
3547         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3548         Document tls.
3549
3550         PR target/18788
3551         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3552         -shared.
3553
3554 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3555
3556         * tree.h (struct tree_base): Add nameless_flag bitfield.
3557         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3558         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3559         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3560         DECL_ARTIFICIAL where needed.
3561         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3562         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3563         has DECL_NAMELESS set.
3564
3565 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3566
3567         PR tree-optimization/44915
3568         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3569         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3570         (analyze_function): Likewise.
3571
3572 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3573
3574         PR tree-optimization/44914
3575         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3576         changed, add purging dead eh edges.
3577         (ipa_sra_modify_function_body): Return true if CFG was changed,
3578         simplify purging dead eh edges.
3579         (modify_function): Return true if CFG was changed.
3580         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3581         was changed.
3582         (ipa_early_sra): Likewise.
3583
3584 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3585
3586         PR target/44290
3587         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3588         if "naked".
3589         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3590         false if ! tree_versionable_function_p.
3591
3592 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3593
3594         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3595         * ipa-pure-const.c (special_builtlin_state): Remove
3596         BUILT_IN_ARGS_INFO case.
3597         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3598         * builtins.c (expand_builtin): Likewise.
3599         (expand_builtin_args_info): Remove.
3600         * doc/tm.texi (__builtin_args_info): Remove.
3601         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3602         * doc/tm.text.in: Likewise.
3603
3604 2010-07-23  Richard Guenther  <rguenther@suse.de>
3605
3606         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3607         (lto_symtab_merge_decls_2): Likewise.
3608         * tree-ssa.c (useless_type_conversion_p): Likewise.
3609         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3610         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3611         (struct type_pair_d): Make same_p an array indexed by mode.
3612         Update comment.
3613         (lookup_type_pair): Update initialization.
3614         (struct sccs): Adjust same_p type.
3615         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3616         Adjust.
3617         (print_gimple_types_stats): Likewise.
3618         * gimple.h (enum gtc_mode): New.
3619         (gimple_types_compatible_p): Adjust prototype.
3620
3621 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3622
3623         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3624         again after processing insn.
3625
3626 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3627
3628         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3629         proper words when !tree_versionable_function_p.
3630
3631 2010-07-23  Richard Guenther  <rguenther@suse.de>
3632
3633         PR tree-optimization/45037
3634         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3635
3636 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3637
3638         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3639         Add MCORE instead.
3640
3641 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3642
3643         PR lto/44992
3644         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3645         lto_get_section_name.
3646         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3647         * lto-streamer-out.c (produce_asm): Likewise.
3648         (copy_function): Likewise.
3649         (produce_symtab): Likewise.
3650         (produce_asm_for_decls): Likewise.
3651         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3652         Rewrite to add random postfix to LTO sections.
3653         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3654         (lto_get_section_name): Add file_data argument to prototype.
3655
3656 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3657
3658         * lto-section-in.c (lto_section_name): Synchronize names
3659         with lto_get_section_name.
3660
3661 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3662
3663         * lto-opts.c (lto_read_file_options): Check for missing section.
3664
3665 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3666
3667         * ira.c (check_allocation): Correctly handle the case where an allocno
3668         with two objects was allocated to a single reg.
3669
3670 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3671
3672         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3673         (is_widening_mult_p): Likewise.
3674         (convert_to_widen): Use them.
3675         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3676         well as integer ones.
3677
3678 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3679
3680         * alias.c (true_dependence_1): New function, merged version of
3681         true_dependence and canon_true_dependence.
3682         (true_dependence): Simplify.
3683         (canon_true_dependence): Simplify.
3684
3685 2010-07-22  Richard Henderson  <rth@redhat.com>
3686
3687         PR target/45027
3688         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3689         of V4SFmode for the SSE saves; increase stack alignment if needed.
3690         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3691
3692 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3693
3694         PR bootstrap/45028
3695         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3696         call cprop_find_used_regs again via note_uses.
3697
3698 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3699
3700         * alias.c (get_alias_set): Fix formatting issues.
3701
3702 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3703
3704         PR middle-end/44878
3705         * stmt.c (expand_value_return):  Call promote_function_mode with
3706         a for_return argument of 2 when returning by reference.
3707
3708 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3709
3710         PR debug/45024
3711         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3712         unit DIE if we can find the scope DIE.
3713
3714 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3715
3716         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3717         changed.  Initialize OBJECT_SUBWORD.
3718         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3719         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3720         all callers changed.
3721         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3722         (finish_allocno): Likewise.
3723         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3724         (remove_low_level_allocnos): Likewise.
3725         (update_bad_spill_attribute): Likewise.
3726         (setup_min_max_allocno_live_range_point): Likewise.
3727         (sort_conflict_id_map): Likewise.
3728         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3729         (ior_hard_reg_conflicts): New function.
3730         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3731         (compress_conflict_vecs): Iterate over objects, not allocnos.
3732         (ira_add_live_range_to_object): New function.
3733         (object_range_compare_func): Renamed from allocno_range_compare_func.
3734         All callers changed.
3735         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3736         subobjects, widen the min/max range of the lowest-order object to
3737         potentially include all other such low-order objects.
3738         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3739         (check_allocation): Likewise.  Use more fine-grained tests for register
3740         conflicts.
3741         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3742         allocno subobjects.
3743         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3744         choices about which bits to set in each set.  Don't use
3745         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3746         using the multiple sets we computed.
3747         (push_allocno_to_stack): Iterate over allocno subobjects.
3748         (all_conflicting_hard_regs_coalesced): New static function.
3749         (setup_allocno_available_regs_num): Use it.
3750         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3751         subobjects.
3752         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3753         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3754         by ALLOCNO_NUM_OBJECTS.
3755         (calculate_spill_cost): Likewise.
3756         (color_pass): Express if statement in a more normal way.
3757         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3758         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3759         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3760         (allocno_reload_assign): Likewise.
3761         (ira_reassign_pseudos): Likewise.
3762         (fast_allocation): Likewise.
3763         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3764         (print_allocno_conflicts): Likewise.
3765         (ira_build_conflicts): Likewise.
3766         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3767         callers changed.  Test subword 0 of each allocno for conflicts.
3768         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3769         callers changed.  Iterate over allocno subobjects.
3770         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3771         * ira-int.h (struct ira_allocno): New member: num_objects.
3772         Rename object to objects and change it into an array.
3773         (ALLOCNO_OBJECT): Add new argument N.
3774         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3775         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3776         (ior_hard_reg_conflicts): Declare.
3777         (ira_add_live_range_to_object): Declare.
3778         (ira_allocno_object_iterator): New.
3779         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3780         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3781         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3782         uses changed.
3783         (allocnos_processed): New sparseset.
3784         (make_object_born): Renamed from make_allocno_born; take an
3785         ira_object_t argument.  All callers changed.
3786         (make_object_dead): Renamed from make_allocno_dead; take an
3787         ira_object_t argument.  All callers changed.
3788         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3789         All callers changed.
3790         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3791         (mark_pseudo_regno_dead): Likewise.
3792         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3793         functions.
3794         (mark_ref_live): Detect subword accesses and call
3795         mark_pseudo_regno_subword_live as appropriate.
3796         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3797         (process_bb_nodes_live): Deal with object-related updates first; set
3798         and test bits in allocnos_processed to avoid computing allocno
3799         statistics more than once.
3800         (create_start_finish_chains): Iterate over objects, not allocnos.
3801         (print_object_live_ranges): New function.
3802         (print_allocno_live_ranges): Use it.
3803         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3804         and objects_live.
3805
3806 2010-07-22  Richard Guenther  <rguenther@suse.de>
3807
3808         PR lto/42451
3809         * gimple.c (gtc_next_dfs_num): New global.
3810         (struct sccs): Make value a union, add integer same_p member.
3811         (gtc_visit): New function.
3812         (gimple_types_compatible_p_1): New function, split out from ...
3813         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3814         (iterative_hash_gimple_type): Adjust for sccs change.
3815
3816 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3817
3818         PR tree-optimization/44891
3819         * tree-sra.c: Include gimple-pretty-print.h.
3820         (replace_uses_with_default_def_ssa_name): Renamed to
3821         get_repl_default_def_ssa_name, return the new SSA name instead of
3822         replacing the old one.
3823         (sra_modify_assign): Dump a message when removing a load, if the LHS
3824         is an SSA_NAME, do not do any propagation, just set the RHS to a
3825         default definition SSA NAME, type convert if necessary.
3826         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3827
3828 2010-07-22  Richard Guenther  <rguenther@suse.de>
3829
3830         PR tree-optimization/45017
3831         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3832         TYPE_PRECISION of integral types in addition to size.
3833
3834 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3835
3836         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3837         when no C library is specified.
3838
3839 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3840
3841         * ipa-prop.h (struct ipa_node_params): Updated comment.
3842         (struct ipa_edge_args): Likewise.
3843         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3844
3845 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3846
3847         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3848         (verify_cgraph_node): Verify frequencies of indirect edges.
3849         * tree-inline.c (tree_function_versioning): Update frequencies of
3850         indirect edges.
3851
3852 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3853
3854         PR target/43698
3855         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3856         Set *arm_rev to be predicable.
3857
3858 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3859
3860         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3861         (LINK_COMMAND_SPEC_A): New.
3862         (DSYMUTIL): New.
3863         (DSYMUTIL_SPEC): New.
3864         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3865         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3866
3867 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3868
3869         * calls.c (load_register_parameters): Move check for zero
3870         sized items so that only the call to
3871         mem_overlaps_already_clobbered_arg_p () is protected.
3872
3873 2010-07-22  Jan Hubicka  <jh@suse.cz>
3874
3875         * ipa-pure-const.c (varying_state): Break out from ...
3876         (get_function_state): ... here; always return varying_state
3877         when state would be NULL otherwise.
3878         (remove_node_data): Do not free varying state.
3879
3880 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3881
3882         PR bootstrap/44970
3883         PR middle-end/45009
3884         * postreload.c: Include "target.h".
3885         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3886         into account.
3887         (fixup_debug_insns): Don't copy the rtx.
3888         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3889         Don't copy when replacing.  Call fixup_debug_insns in the case where
3890         we merged one add with another.
3891         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3892         Try harder to determine whether we're picking a valid index register.
3893         Don't set store_ruid for an insn we're going to scan in the
3894         next iteration.
3895         (reload_combine): Remove unused code.
3896         (reload_combine_note_use): When updating use information for
3897         an old insn, ignore a use that occurs after store_ruid.
3898         * Makefile.in (postreload.o): Update dependencies.
3899
3900         * function.c (record_hard_reg_sets): Restrict the previous change
3901         to cases where the incoming nominal mode is the same as the
3902         incoming promoted mode and everything happens in MODE_INT.
3903
3904 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3905
3906         PR debug/45015
3907         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3908         ASM_OPERANDS_OUTPUT_IDX.
3909         (adjust_insn): For inline asm with multiple sets ensure first
3910         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3911         the insn.
3912
3913 2010-07-21  Richard Henderson  <rth@redhat.com>
3914
3915         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3916         comparison for avoiding xmm register saves.  Emit the xmm register
3917         saves explicitly.
3918         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3919         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3920         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3921         Remove patterns and the associated splitters.
3922
3923 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3924
3925         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3926         and imagine parts of a complex, so that they can have the same
3927         base and fall into the same group.
3928
3929 2010-07-21  Richard Guenther  <rguenther@suse.de>
3930
3931         PR lto/45018
3932         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3933         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3934         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3935
3936 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3937
3938         PR tree-optimization/44900
3939         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3940         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3941
3942 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3943
3944         PR middle-end/44738
3945         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3946
3947 2010-07-21  Richard Guenther  <rguenther@suse.de>
3948
3949         PR middle-end/45013
3950         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3951         gimple_types_compatible_p only when in lto.
3952         * gimple.c (gimple_types_compatible_p): Use canonical types
3953         to speed up comparison.
3954
3955 2010-07-21  Richard Guenther  <rguenther@suse.de>
3956
3957         * tree-flow.h (referenced_var): Move define ...
3958         * tree-flow-inline.h (referenced_var): ... here as an inline
3959         function.  Assert here ...
3960         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3961         * tree-ssa.c (maybe_optimize_var): Check if the variable
3962         is in referenced vars.
3963         (execute_update_addresses_taken): Remove old broken check.
3964         * gimple-pretty-print.c (pp_points_to_solution): Use
3965         referenced_var_lookup.
3966         * tree-into-ssa.c (dump_decl_set): Likewise.
3967
3968 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3969
3970         PR debug/45003
3971         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3972         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3973         ZERO_EXTEND here.
3974
3975 2010-07-20  Richard Henderson  <rth@redhat.com>
3976
3977         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3978
3979 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3980
3981         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3982         computing the sum of the stack pointer and a large constant.
3983         * config/arm/constraints.md (M): Remove superfluous parentheses.
3984         (Pc): New constraint.
3985
3986 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3987
3988         PR debug/45006
3989         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3990         operand's type if exp is tcc_unary class tree.
3991
3992 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3993
3994         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3995         Reverse sense of if_then_else condition.
3996
3997 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3998
3999         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
4000         * config/rs6000/rs6000.c (rs6000_override_options): Set
4001         rs6000_block_move_inline_limit appropriately.
4002         (expand_block_move): Use rs6000_block_move_inline_limit.
4003         * doc/invoke.texi (mblock-move-inline-limit): Document.
4004
4005 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4006
4007         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
4008         FROM and TO.  All callers changed.  Don't look for tracked uses,
4009         just scan the RTL for DEBUG_INSNs and substitute.
4010         (reload_combine_recognize_pattern): Call fixup_debug_insns.
4011         (reload_combine): Ignore DEBUG_INSNs.
4012
4013 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4014
4015         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
4016         depth to 8 from 5.
4017
4018         PR debug/45003
4019         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
4020         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
4021         instead of the result's type.
4022
4023 2010-07-20  Richard Guenther  <rguenther@suse.de>
4024
4025         PR tree-optimization/44977
4026         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
4027         SSA form.
4028
4029 2010-07-20  Richard Guenther  <rguenther@suse.de>
4030
4031         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
4032         (lto_symtab_merge_decls_2): Likewise.
4033         * gimple.h (gimple_types_compatible_p): Declare.
4034         * gimple.c (gimple_queue_type_fixup): Remove.
4035         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
4036         (gimple_compatible_complete_and_incomplete_type_p): New function.
4037         (gimple_types_compatible_p): Adjust.
4038         (gimple_register_type): Remove type fixup code.
4039         (print_gimple_types_stats): Adjust.
4040         (free_gimple_type_tables): Likewise.
4041         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
4042         * tree-ssa.c (useless_type_conversion_p): Likewise.
4043
4044 2010-07-20  Richard Guenther  <rguenther@suse.de>
4045
4046         PR middle-end/44971
4047         PR middle-end/44988
4048         * tree-ssa.c (maybe_optimize_var): New function split out from ...
4049         (execute_update_addresses_taken): ... here.
4050         (non_rewritable_mem_ref_base): Likewise.
4051         (execute_update_addresses_taken): Do not iterate over all referenced
4052         vars but just all local decls and parms.
4053         Properly check call and asm arguments and rewrite call arguments.
4054
4055 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4056
4057         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
4058         to top level.
4059         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
4060         definitions ...
4061         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
4062         New macro.
4063         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
4064
4065 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4066
4067         * gengtype.c (start_root_entry): New function, split out from
4068         write_root.  Check whether V is null and raise an error if so.
4069         (write_field_root): Check for V being null.  Don't raise an error here;
4070         set V to null instead.
4071         (write_root): Update comment above function.  Use start_root_entry.
4072
4073 2010-07-19  Xinliang David Li  <davidxl@google.com>
4074
4075         PR testsuite/44932
4076         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
4077         def edges.
4078         (find_uninit_use): Add dump.
4079         (is_use_properly_guarded): Ditto.
4080         (warn_uninitialized_phi): Ditto.
4081         (execute_late_warn_uninitialized): Ditto.
4082
4083 2010-07-19  Richard Guenther  <rguenther@suse.de>
4084
4085         PR middle-end/44941
4086         * expr.c (emit_block_move_hints): Move zero size check first.
4087         Move asserts to more useful places.
4088         * calls.c (load_register_parameters): Check for zero size.
4089
4090 2010-07-19  Richard Henderson  <rth@redhat.com>
4091
4092         * tree-optimize.c (execute_all_early_local_passes): New.  Change
4093         cgraph_state here ...
4094         (execute_early_local_optimizations): ... not here.  Remove.
4095         (pass_early_local_passes, pass_all_early_optimizations): Update.
4096
4097 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
4098
4099         * postreload.c (reload_combine_closest_single_use): Ignore the
4100         number of uses for DEBUG_INSNs.
4101         (fixup_debug_insns): New static function.
4102         (reload_combine_recognize_const_pattern): Use it.  Don't let the
4103         main loop be affected by DEBUG_INSNs.
4104         Really disallow moving adds past a jump insn.
4105         (reload_combine_recognize_pattern): Don't update use_ruid here.
4106         (reload_combine_note_use): Do it here.
4107         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
4108
4109 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
4110
4111         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
4112         of a loop.
4113         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
4114
4115 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
4116
4117         * config/i386/darwin.h: Define darwin_emit_branch_islands.
4118         (TARGET_MACHO_BRANCH_ISLANDS): New.
4119         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
4120         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
4121         default value.
4122         * config/i386/i386.c (output_pic_addr_const): Do not emit
4123         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
4124         (x86_output_mi_thunk): Adjust symbol creation.
4125         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
4126         Remove out of date comment.
4127         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
4128         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4129         (DARWIN_GENERATE_ISLANDS): Ditto.
4130         (output_call):  Do not emit branch islands unless
4131         darwin_emit_branch_islands is set.
4132         * config/darwin.c: Declare darwin_emit_branch_islands.
4133         (machopic_indirect_data_reference): Do not emit unless
4134         darwin_emit_branch_islands is set.
4135         (darwin_override_options): Set darwin_emit_branch_islands
4136         where it is needed.
4137         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4138
4139 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4140
4141         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4142         sse_runtime, sse2_runtime.
4143
4144 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
4145
4146         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
4147         low half of a single-register SCmode return value before ORing
4148         it with the high half.
4149         * config/mips/mips16.S (MERGE_GPRf): Likewise.
4150
4151 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4152
4153         PR target/44805
4154         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
4155         on all targets.
4156
4157 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
4158
4159         PR target/42235
4160         * postreload.c (reload_cse_move2add): Return bool, true if anything.
4161         changed.  All callers changed.
4162         (move2add_use_add2_insn): Likewise.
4163         (move2add_use_add3_insn): Likewise.
4164         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
4165         reload_combine.
4166         (RELOAD_COMBINE_MAX_USES): Bump to 16.
4167         (last_jump_ruid): New static variable.
4168         (struct reg_use): New members CONTAINING_MEM and RUID.
4169         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
4170         (reload_combine_split_one_ruid, reload_combine_split_ruids,
4171         reload_combine_purge_insn_uses, reload_combine_closest_single_use
4172         reload_combine_purge_reg_uses_after_ruid,
4173         reload_combine_recognize_const_pattern): New static functions.
4174         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4175         is true for our reg and that we have available index regs.
4176         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
4177         callers changed.  Use them to initialize fields in struct reg_use.
4178         (reload_combine): Initialize last_jump_ruid.  Be careful when to
4179         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
4180         Call reload_combine_recognize_const_pattern.
4181         (reload_combine_note_store): Update REAL_STORE_RUID field.
4182
4183 2010-07-16  Jason Merrill  <jason@redhat.com>
4184
4185         * Makefile.in (opts-common.o): Depend on options.h.
4186
4187 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4188
4189         * tree.c (build_common_builtin_nodes): Use build_function_type_list
4190         instead of build_function_type.
4191         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4192         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4193
4194 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4195
4196         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4197         do all the work.
4198         (rs6000_emit_int_cmove): Use function pointers for insn generation.
4199         Don't force values into registers unnecessarily.
4200         (output_isel): Assert that we're not given conditions we can't handle.
4201         Delete corresponding code.
4202         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4203         scc_comparison_operator constraint.  Permit 0 for the consequent
4204         operand.  Permit any GPR for the alternative operand.
4205         (isel_unsigned_<mode>): Likewise.
4206
4207 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
4208
4209         PR target/44942
4210         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4211         argument to const_tree.
4212         * config/i386/i386.c (function_arg_advance): If padding needs to be
4213         inserted before argument, increment cum->words by number of padding
4214         words as well.
4215         (contains_aligned_value_p): Change argument to const_tree.
4216         (ix86_function_arg_boundary): Change second argument to const_tree.
4217
4218 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
4219
4220         PR target/42235
4221         * function.c (record_hard_reg_sets): New static function.
4222         (assign_parm_setup_reg): If an optab for extending exists and the
4223         generated code clobbbers no hard regs, emit the insn directly and
4224         create a REG_EQUIV note.
4225
4226 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4227
4228         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4229         TREE_CHAIN.
4230         * c-typeck.c (push_init_level): Likewise.
4231         (process_init_element): Likewise.
4232
4233 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
4234
4235         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4236         (integer_three_node): Add.
4237         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4238         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4239         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4240         of call build_int_cst.
4241         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4242         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4243         (find_interesting_uses_address): Ditto.
4244         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4245         * tree-eh.c (lower_eh_constructs_2): Ditto.
4246         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4247         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4248         * expmed.c (expand_divmod): Ditto.
4249         * tree-mudflap.c (mx_register_decls): Ditto.
4250         * varasm.c (array_size_for_constructor): Ditto.
4251         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4252         * c-parser.c (c_parser_postfix_expression): Ditto.
4253
4254 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
4255
4256         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4257         New static variables.
4258         (reload_combine_recognize_pattern): New static function, broken out
4259         of reload_combine.
4260         (reload_combine): Use it.  Only initialize first_index_reg and
4261         last_index_reg once.
4262
4263 2010-07-15  Richard Henderson  <rth@redhat.com>
4264
4265         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4266         when done.
4267
4268 2010-07-15  Jan Hubicka  <jh@suse.cz>
4269
4270         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4271         comdats for broken gold.
4272         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4273
4274 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4275
4276         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4277
4278 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4279
4280         * tree.h (DECL_CHAIN): Define.
4281         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4282         * c-decl.c: Likewise.
4283         * c-parser.c: Likewise.
4284         * c-typeck.c: Likewise.
4285         * cfgexpand.c: Likewise.
4286         * cgraph.c: Likewise.
4287         * cgraphunit.c: Likewise.
4288         * combine.c: Likewise.
4289         * config/alpha/alpha.c: Likewise.
4290         * config/arm/arm.c: Likewise.
4291         * config/frv/frv.c: Likewise.
4292         * config/i386/i386.c: Likewise.
4293         * config/i386/winnt-cxx.c: Likewise.
4294         * config/ia64/ia64.c: Likewise.
4295         * config/iq2000/iq2000.c: Likewise.
4296         * config/mep/mep.c: Likewise.
4297         * config/mips/mips.c: Likewise.
4298         * config/pa/som.h: Likewise.
4299         * config/rs6000/rs6000.c: Likewise.
4300         * config/s390/s390.c: Likewise.
4301         * config/sh/sh.c: Likewise.
4302         * config/sh/symbian-cxx.c: Likewise.
4303         * config/sparc/sparc.c: Likewise.
4304         * config/spu/spu.c: Likewise.
4305         * config/stormy16/stormy16.c: Likewise.
4306         * config/vxworks.c: Likewise.
4307         * config/xtensa/xtensa.c: Likewise.
4308         * coverage.c: Likewise.
4309         * dbxout.c: Likewise.
4310         * dwarf2out.c: Likewise.
4311         * emit-rtl.c: Likewise.
4312         * expr.c: Likewise.
4313         * function.c: Likewise.
4314         * gimple-low.c: Likewise.
4315         * gimple-pretty-print.c: Likewise.
4316         * gimplify.c: Likewise.
4317         * integrate.c: Likewise.
4318         * ipa-inline.c: Likewise.
4319         * ipa-prop.c: Likewise.
4320         * ipa-split.c: Likewise.
4321         * ipa-struct-reorg.c: Likewise.
4322         * ipa-type-escape.c: Likewise.
4323         * langhooks.c: Likewise.
4324         * lto-cgraph.c: Likewise.
4325         * omp-low.c: Likewise.
4326         * stor-layout.c: Likewise.
4327         * tree-cfg.c: Likewise.
4328         * tree-complex.c: Likewise.
4329         * tree-dfa.c: Likewise.
4330         * tree-dump.c: Likewise.
4331         * tree-inline.c: Likewise.
4332         * tree-mudflap.c: Likewise.
4333         * tree-nested.c: Likewise.
4334         * tree-object-size.c: Likewise.
4335         * tree-pretty-print.c: Likewise.
4336         * tree-sra.c: Likewise.
4337         * tree-ssa-live.c: Likewise.
4338         * tree-ssa-loop-niter.c: Likewise.
4339         * tree-ssa-math-opts.c: Likewise.
4340         * tree-ssa-reassoc.c: Likewise.
4341         * tree-ssa-sccvn.c: Likewise.
4342         * tree-ssa-structalias.c: Likewise.
4343         * tree-tailcall.c: Likewise.
4344         * tree-vrp.c: Likewise.
4345         * tree.c: Likewise.
4346         * var-tracking.c: Likewise.
4347         * varasm.c: Likewise.
4348
4349 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4350
4351         PR target/44877
4352         * config/spu/spu.c (spu_expand_builtin_1): Allow references
4353         (as well as pointers) as argument to mask_for_load builtins.
4354
4355 2010-07-15  Richard Guenther  <rguenther@suse.de>
4356
4357         PR tree-optimization/44946
4358         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4359         with accessing only padding properly.
4360
4361 2010-07-15  Jan Hubicka  <jh@suse.cz>
4362
4363         * ipa.c (function_and_variable_visibility): Variables marked as used
4364         should not be localized.
4365
4366 2010-07-15  Jan Hubicka  <jh@suse.cz>
4367
4368         * cgraph.c: Include lto-streamer.h
4369         (change_decl_assembler_name): Work when assembler name hash is at place.
4370         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4371         be sure to rename it to avoid name clash.
4372         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4373         Localize hidden symbols only when locally defined.
4374
4375 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4376
4377         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4378
4379 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4380             Kevin F. Quinn  <kevquinn@gentoo.org>
4381
4382         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4383         * common.opt: Add -Wtrampolines.
4384         * doc/invoke.texi: Add -Wtrampolines.
4385
4386 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4387
4388         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4389         cortex_a8_issue_ls.
4390
4391 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4392
4393         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4394         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4395
4396 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4397
4398         * config/spu/spu.c (reg_names): Remove prototype.
4399         (call_used_regs): Likewise.
4400
4401 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4402
4403         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4404         "unused" with attribute "used".
4405         (__JCR_END__): Likewise.
4406         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4407         "used" attribute.
4408         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4409
4410 2010-07-14  Richard Guenther  <rguenther@suse.de>
4411
4412         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4413         (maybe_fixup_decls): Likewise.
4414         (input_gimple_stmt): Do not fixup anything.
4415         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4416         non-automatic variable uses are wrapped inside a MEM_REF.
4417
4418 2010-07-14  Richard Henderson  <rth@redhat.com>
4419
4420         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4421         for functions.
4422         * varasm.c (assemble_variable): Remove early exit for functions;
4423         assert that we're given a variable.
4424
4425 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4426
4427         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4428         cortex_a8_default when neon_type is not none.
4429
4430 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4431
4432         * lower-subreg.c (subreg_context): New static bitmap.
4433         (decompose_multiword_subregs): Allocate and free it.
4434         (find_decomposable_subregs): Set a bit in it for a register that
4435         occurs in a subreg that changes mode but not size.
4436         (can_decompose_p): Test it instead of non_decomposable_context.
4437
4438 2010-07-14  Richard Guenther  <rguenther@suse.de>
4439
4440         PR tree-optimization/44824
4441         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4442         is_gimple_mem_ref_addr.
4443         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4444         non-decl_address_invariant_p addresses.
4445
4446 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4447
4448         * reload.c (find_reloads): Revert code to penalize small register
4449         classes that was brought in with the IRA merge.
4450
4451 2010-07-14  Richard Guenther  <rguenther@suse.de>
4452
4453         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4454         as base of ARRAY_REFs.
4455
4456 2010-07-14  Richard Guenther  <rguenther@suse.de>
4457
4458         PR middle-end/44930
4459         * tree-pretty-print.c (do_niy): Do not print a newline.
4460
4461 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4462
4463         * ira-int.h (struct ira_object): New.
4464         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4465         (struct ira_allocno): Remove members min, max,
4466         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4467         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4468         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4469         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4470         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4471         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4472         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4473         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4474         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4475         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4476         an ira_object_t rather than ira_allocno_t.  All uses changed.
4477         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4478         contains a vector of ira_object_t; all uses changed.
4479         (ira_objects_num): Declare variable.
4480         (ira_create_allocno_object): Declare function.
4481         (ira_conflict_vector_profitable_p): Adjust prototype.
4482         (ira_allocate_conflict_vec): Renamed from
4483         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4484         (ira_allocate_object_conflicts): Renamed from
4485         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4486         (struct ira_object_iterator): New.
4487         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4488         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4489         to conflict_vec_p.  All uses changed.
4490         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4491         Changed to take into account that conflicts are now tracked for
4492         objects.
4493         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4494         Args changed to accept ira_object_t.  All uses changed.
4495         (allocnos_conflict_p): New static function.
4496         (collected_conflict_objects): Renamed from collected_allocno_objects;
4497         now a vector of ira_object_t.  All uses changed.
4498         (build_conflict_bit_table): Changed to take into account that
4499         conflicts are now tracked for objects.
4500         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4501         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4502         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4503         setup_allocno_left_conflicts_size, allocno_reload_assign,
4504         fast_allocation): Likewise.
4505         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4506         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4507         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4508         Likewise.
4509         * ira-build.c (ira_objects_num): New variable.
4510         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4511         contains a vector of ira_object_t; all uses changed.
4512         (ira_object_id_map_vec): Corresponding change.
4513         (object_pool): New static variable.
4514         (initiate_allocnos): Initialize it.
4515         (finish_allocnos): Free it.
4516         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4517         New functions.
4518         (ira_create_allocno): Don't set members that were removed.
4519         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4520         (merge_hard_reg_conflicts): Changed to take into account that
4521         conflicts are now tracked for objects.
4522         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4523         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4524         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4525         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4526         setup_min_max_conflict_allocno_ids, ):  Likewise.
4527         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4528         to ira_object_t; all callers changed.
4529         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4530         to ira_object_t, all callers changed.
4531         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4532         to ira_object_t, all callers changed.
4533         (conflict_check, curr_conflict_check_tick): Renamed from
4534         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4535         changed.
4536         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4537         arg changed to ira_object_t, all callers changed.
4538         (create_cap_allocno): Call ira_create_allocno_object.
4539         (finish_allocno): Free the corresponding object.
4540         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4541         callers changed.  Adjusted for dealing with objects.
4542         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4543         dealing with objects.
4544         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4545
4546         * ira-int.h (struct live_range): Rename allocno member to object
4547         and change type to ira_object_t.
4548         (struct ira_object): New member live_ranges.
4549         (struct ira_allocno): Remove member live_ranges.
4550         (ALLOCNO_LIVE_RANGES): Remove.
4551         (OBJECT_LIVE_RANGES): New macro.
4552         (ira_create_live_range, ira_copy_live_range_list,
4553         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4554         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4555         * ira-build.c (ira_create_object): Initialize live ranges here.
4556         (ira_create_allocno): Not here.
4557         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4558         changed to ira_object_t, all callers changed.
4559         (copy_live_range): Rename from copy_allocno_live_range, all callers
4560         changed.
4561         (ira_copy_live_range_list): Rename from
4562         ira_copy_allocno_live_range_list, all callers changed.
4563         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4564         all callers changed.
4565         (ira_live_ranges_intersect_p): Rename from
4566         ira_allocno_live_ranges_intersect_p, all callers changed.
4567         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4568         callers changed.
4569         (ira_finish_live_range_list): Rename from
4570         ira_finish_allocno_live_range_list, all callers changed.
4571         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4572         last arg changed to ira_object_t, all callers changed.
4573         (finish_allocno): Changed to expect live ranges in the allocno's object.
4574         (move_allocno_live_ranges, copy_allocno_live_ranges,
4575         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4576         ira_flattening, ira_build): Likewise.
4577         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4578         slot_coalesced_allocno_live_ranges_intersect,
4579         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4580         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4581         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4582         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4583         make_allocno_dead, create_start_finish_chains,
4584         remove_some_program_points_and_update_live_ranges,
4585         ira_debug_live_range_list): Likewise.
4586
4587         * ira-int.h (ira_object_conflict_iterator): Rename from
4588         ira_allocno_conflict_iterator.
4589         (ira_object_conflict_iter_init): Rename from
4590         ira_allocno_conflict_iter_init, second arg changed to
4591         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4592         FOR_EACH_ALLOCNO_CONFLICT.
4593         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4594         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4595         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4596         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4597
4598 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4599
4600         PR other/44874
4601         * tree-dump.c (dump_options): Add enumerate_locals entry.
4602         Add TDF_NOID exclusion to all entry.
4603         * tree-dump.h (dump_enumerated_decls): Declare.
4604         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4605         Don't display type uid.
4606         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4607         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4608         * tree-ssa-live.c: Include gimple.h.
4609         (numbered_tree_d): New struct.
4610         (numbered_tree): New typedef.
4611         (DEF_VEC_O (numbered_tree): New.
4612         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4613         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4614         (dump_enumerated_decls): Likewise.
4615         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4616         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4617         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4618         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4619
4620 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4621
4622         * expmed.h (MAX_BITS_PER_WORD): Move to...
4623         * defaults.h (MAX_BITS_PER_WORD): ...here.
4624
4625 2010-07-13  DJ Delorie  <dj@redhat.com>
4626
4627         * config/h8300/h8300.c (h8300_init_once): Default to
4628         -fstrict_volatile_bitfields.
4629
4630         * config/sh/sh.c (sh_override_options): Default to
4631         -fstrict_volatile_bitfields.
4632
4633         * config/rx/rx.c (rx_option_override): New.
4634
4635         * config/m32c/m32c.c (m32c_override_options): Default to
4636         -fstrict_volatile_bitfields.
4637
4638 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4639
4640         * tree.h (build_function_call_expr): Delete.
4641         (build_call_expr_loc_array): New function.
4642         (build_call_expr_loc_vec): New function.
4643         * tree-flow.h (struct omp_region): Change type of ws_args field
4644         to a VEC.
4645         * builtins.c (build_function_call_expr): Delete.
4646         (build_call_expr_loc_array): New function.
4647         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4648         (build_call_expr): Likewise.
4649         (build_call_expr_loc_vec): New function.
4650         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4651         build_function_call_expr.
4652         * expr.c (emutls_var_address): Likewise.
4653         * varasm.c (emutls_common_1): Likewise.
4654         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4655         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4656         (get_ws_args_for): Return a VEC instead of a tree.
4657         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4658         build_function_call_expr.
4659         * stor-layout.c (self_referential_size): Likewise.
4660
4661 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4662
4663         PR testsuite/44701
4664         * recog.c (constrain_operands): Allow side-effects in memory
4665         operands if either < or > constraint is used, rather than if
4666         both < and > is used.
4667
4668 2010-07-13  Richard Guenther  <rguenther@suse.de>
4669
4670         PR middle-end/44911
4671         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4672         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4673         without name.
4674
4675 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4676
4677         PR target/44761
4678         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4679         to variable emited.
4680         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4681         * config/sh/sh.md (symGOT_load): Likewise.
4682         (symDTPOFF2reg): Likewise.
4683         (symTPOFF2reg): Likewise.
4684
4685 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4686
4687         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4688         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4689
4690 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4691
4692         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4693         explanation.
4694         Find ucontext_t * on Solaris 11.
4695         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4696         Handle new Solaris 11 __sighndlr patterns.
4697
4698 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4699
4700         PR debug/44901
4701         * vec.h (VEC_block_remove): Fix comment.
4702         * tree-ssa-live.c (remove_unused_locals): Don't use
4703         VEC_unordered_remove on local_decls, instead replace a single
4704         vector element in each iteration if at least one element had
4705         to be removed and VEC_truncate at the end.
4706         * omp-low.c (expand_omp_taskreg): Likewise.
4707
4708 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4709
4710         * c-decl.c (finish_function): Fix typo in comment.
4711
4712 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4713
4714         PR bootstrap/44921
4715         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4716         on min_regno.
4717
4718 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4719
4720         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4721         (simplify_stmt_using_ranges): Use it.
4722
4723 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4724
4725         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4726         member.  Do not mark as GTY(()).
4727         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4728         (spu_builtin_decls): New static variable.
4729         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4730         (spu_init_builtins): Likewise.
4731         (spu_builtin_mul_widen_even): Likewise.
4732         (spu_builtin_mul_widen_odd): Likewise.
4733         (spu_builtin_mask_for_load): Likewise.
4734         (spu_builtin_vec_perm): Likewise.
4735         * config/spu/spu-c.c: Include "target.h".
4736         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4737         of using spu_builtins[].fndecl.
4738
4739 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4740
4741         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4742         imply -minterlink-mips16.
4743
4744 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4745
4746         * config/mips/mips.h (mips16_globals): Declare.
4747         (SWITCHABLE_TARGET): Define.
4748         * config/mips/mips.c: Include target-globals.h.
4749         (mips16_globals): New variable.
4750         (mips_set_mips16_mode): Use save_target_globals and
4751         restore_target_globals instead of target_reinit.
4752
4753 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4754
4755         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4756         to say that the function can be called more than once.
4757         * target-globals.c (save_target_globals): Call init_reg_sets.
4758
4759 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4760
4761         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4762         * bb-reorder.h: New file.
4763         * bb-reorder.c (default_target_bb_reorder): New variable.
4764         (this_target_bb_reorder): New conditional variable.
4765         (uncond_jump_length): Redefine as a macro.
4766         * target-globals.h (this_target_bb_reorder): Declare.
4767         (target_globals): Add a bb_reorder field.
4768         (restore_target_globals): Copy the bb_reorder field to
4769         this_target_bb-reorder.
4770         * target-globals.c: Include bb-reorder.h.
4771         (default_target_globals): Initialize the bb_reorder field.
4772         (save_target_globals): Likewise.
4773
4774 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4775
4776         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4777         * gcse.h: New file.
4778         * gcse.c: Include gcse.h.
4779         (default_target_gcse): New variable.
4780         (this_target_gcse): New conditional variable.
4781         (can_copy): Redefine as a macro.
4782         (can_copy_init_p): New macro.
4783         (can_copy_p): Remove can_copy_init_p.
4784         * target-globals.h (this_target_gcse): Declare.
4785         (target_globals): Add a gcse field.
4786         (restore_target_globals): Copy the gcse field to this_target_gcse.
4787         * target-globals.c: Include gcse.h.
4788         (default_target_globals): Initialize the gcse field.
4789         (save_target_globals): Likewise.
4790
4791 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4792
4793         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4794         and x_ira_prohibited_mode_move_regs_initialized_p.
4795         (ira_prohibited_mode_move_regs): Redefine as a macro.
4796         * ira.c (ira_prohibited_mode_move_regs): Delete.
4797         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4798
4799 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4800
4801         * reload.h (target_reload): Add x_cached_reg_save_code and
4802         x_cached_reg_restore_code.
4803         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4804         Redefine as macros.
4805
4806 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4807
4808         * Makefile.in (target-globals.o): Depend on builtins.h.
4809         * builtins.h: New file.
4810         * builtins.c: Include builtins.h.
4811         (default_target_builtins): New variable.
4812         (this_target_builtins): New conditional variable.
4813         (apply_args_mode, apply_result_mode): Redefine as macros.
4814         * target-globals.h (this_target_builtins): Declare.
4815         (target_globals): Add a builtins field.
4816         (restore_target_globals): Copy the builtins field to
4817         this_target_builtins.
4818         * target-globals.c: Include builtins.h.
4819         (default_target_globals): Initialize the builtins field.
4820         (save_target_globals): Likewise.
4821
4822 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4823
4824         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4825         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4826         from expmed.c.
4827         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4828         (alg_hash, alg_hash_used_p): New macros.
4829         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4830         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4831         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4832
4833 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4834
4835         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4836         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4837         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4838         (this_op_costs, costs_classes): Redefine as macros.
4839         (record_reg_classes): Don't take op_costs as a parameter.
4840         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4841         (scan_one_insn): Update call to record_operand_costs.
4842
4843 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4844
4845         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4846         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4847         (target_ira_int): New structure.
4848         (default_target_ira_int): Declare.
4849         (this_target_ira_int): Declare as a variable or define as a macro.
4850         (ira_reg_mode_hard_regset, ira_register_move_cost)
4851         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4852         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4853         (prohibited_class_mode_regs, ira_important_classes_num)
4854         (ira_important_classes, ira_reg_class_intersect)
4855         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4856         (ira_reg_class_union): Redefine as macros.
4857         * ira.h (target_ira): New structure.
4858         (default_target_ira): Declare.
4859         (this_target_ira): Declare as a variable or define as a macro.
4860         (ira_available_class_regs, ira_hard_regno_cover_class)
4861         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4862         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4863         (ira_class_hard_regs_num): Redefine as macros.
4864         * ira.c (default_target_ira, default_target_ira_int): New variables.
4865         (this_target_ira, this_target_ira_int): New conditional variables.
4866         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4867         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4868         (ira_class_subset_p): Delete.
4869         (no_unit_alloc_regs): Redefine as a macro.
4870         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4871         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4872         (ira_available_class_regs): Delete.
4873         (alloc_reg_class_subclasses): Redefine as a macro.
4874         (ira_reg_class_cover_size, ira_reg_class_cover)
4875         (ira_important_classes_num, ira_important_classes)
4876         (ira_important_class_nums, ira_class_translate): Delete.
4877         (cover_class_order): Document the variable's lifetime.
4878         (reorder_important_classes): Don't set ira_important_class_nums.
4879         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4880         (ira_reg_class_super_classes, ira_reg_class_union)
4881         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4882         Delete.
4883         (setup_reg_class_nregs): Don't set ira_max_regs.
4884         (prohibited_class_mode_regs): Delete.
4885         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4886         (target_globals): Add ira and ira_int fields.
4887         (restore_target_globals): Copy the ira field to this_target_ira
4888         and the ira_int field to this_target_ira_int.
4889         * target-globals.c: Include ira-int.h.
4890         (default_target_globals): Initialize the ira and ira_int fields.
4891         (save_target_globals): Likewise.
4892
4893 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4894
4895         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4896         * cfgloop.h (target_cfgloop): New structure.
4897         (default_target_cfgloop): Declare.
4898         (this_target_cfgloop): Declare as a variable or define as a macro.
4899         (target_avail_regs, target_clobbered_regs, target_res_regs)
4900         (target_reg_cost, target_spill_cost): Redefine as macros.
4901         * cfgloopanal.c (default_target_cfgloop): New variable.
4902         (this_target_cfgloop): New conditional variable.
4903         (target_avail_regs, target_clobbered_regs, target_res_regs)
4904         (target_reg_cost, target_spill_cost): Delete.
4905         * target-globals.h (this_target_cfgloop): Declare.
4906         (target_globals): Add a cfgloop field.
4907         (restore_target_globals): Copy the cfgloop field to
4908         this_target_cfgloop.
4909         * target-globals.c: Include cfgloop.h.
4910         (default_target_globals): Initialize the cfgloop field.
4911         (save_target_globals): Likewise.
4912
4913 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4914
4915         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4916         x_float_extend_from_mem.
4917         (direct_load, direct_store, float_extend_from_mem): New macros.
4918         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4919
4920 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4921
4922         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4923         (target-globals.o): Depend on $(LIBFUNCS_H).
4924         * libfuncs.h: Include hashtab.h.
4925         (libfunc_entry): Moved from optabs.c.
4926         (target_libfuncs): New structure.
4927         (default_target_libfuncs): Declare.
4928         (this_target_libfuncs): Declare as a variable or define as a macro.
4929         (libfunc_table): Redefine as a macro.
4930         * optabs.c (default_target_libfuncs): New variable.
4931         (this_target_libfuncs): New conditional variable.
4932         (libfunc_table): Delete.
4933         (libfunc_entry): Moved to optabs.h.
4934         (libfunc_hash): Redefine as a macro.
4935         (hash_libfunc, eq_libfunc): Fix comments.
4936         (init_optabs): Use libfunc_hash to detect cases where the function
4937         has already been called.  Clear the hash table instead of
4938         recreating it.
4939         * target-globals.h (this_target_libfuncs): Declare.
4940         (target_globals): Add a libfuncs field.
4941         (restore_target_globals): Copy the libfuncs field to
4942         this_target_libfuncs.
4943         * target-globals.c: Include libfuncs.h.
4944         (default_target_globals): Initialize the libfuncs field.
4945         (save_target_globals): Likewise.
4946
4947 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4948
4949         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4950         in all dependency lists.
4951
4952 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4953
4954         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4955         * optabs.h (target_optabs): New structure.
4956         (default_target_optabs): Declare.
4957         (this_target_optabs): Declare as a variable or define as a macro.
4958         (optab_table, convert_optab_table, direct_optab_table): Redefine
4959         as macros.
4960         * optabs.c (default_target_optabs): New variable.
4961         (this_target_optabs): New conditional variable.
4962         (optab_table, convert_optab_table, direct_optab_table): Delete.
4963         * target-globals.h (this_target_optabs): Declare.
4964         (target_globals): Add a optabs field.
4965         (restore_target_globals): Copy the optabs field to
4966         this_target_optabs.
4967         * target-globals.c: Include expr.h and optabs.h.
4968         (default_target_globals): Initialize the optabs field.
4969         (save_target_globals): Likewise.
4970
4971 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4972
4973         * flags.h (target_flagstate): Add x_flag_excess_precision.
4974         (flag_excess_precision): Redefine as a macro.
4975         * toplev.c (flag_excess_precision): Delete.
4976
4977 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4978
4979         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4980         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4981         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4982         (no_caller_save_reg_set): Redefine as a macro.
4983         * reload.h (target_reload): Add x_caller_save_initialized_p and
4984         x_regno_save_mode.
4985         (caller_save_initialized_p): Redefine as a macro.
4986         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4987         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4988         (regno_save_mode): Redefine as a macro.
4989
4990 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4991
4992         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4993         * expmed.h: New file.
4994         * expmed.c (default_target_costs): New variable.
4995         (this_target_costs): New conditional variable.
4996         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4997         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4998         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4999         * target-globals.h (this_target_expmed): Declare.
5000         (target_globals): Add a expmed field.
5001         (restore_target_globals): Copy the expmed field to
5002         this_target_expmed.
5003         * target-globals.c: Include expmed.h.
5004         (default_target_globals): Initialize the expmed field.
5005         (save_target_globals): Likewise.
5006
5007 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5008
5009         * Makefile.in (target-globals.o): Depend on reload.h.
5010         * reload.h (target_reload): New structure.
5011         (default_target_reload): Declare.
5012         (this_target_reload): Declare as a variable or define as a macro.
5013         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
5014         * reload1.c (default_target_reload): New variable
5015         (this_target_reload): New conditional variable.
5016         (indirect_symref_ok, double_reg_address_ok): Delete.
5017         (spill_indirect_levels): Redefine as a macro.
5018         * target-globals.h (this_target_reload): Declare.
5019         (target_globals): Add a reload field.
5020         (restore_target_globals): Copy the reload field to
5021         this_target_reload.
5022         * target-globals.c: Include hard-reg-set.h.
5023         (default_target_globals): Initialize the reload field.
5024         (save_target_globals): Likewise.
5025
5026 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5027
5028         * rtl.h (target_rtl): Add x_static_reg_base_value.
5029         * alias.c (static_reg_base_value): Redefine as a macro.
5030
5031 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5032
5033         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
5034         (GTFILES): Remove reginfo.c.
5035         * rtl.h (target_rtl): Add x_top_of_stack.
5036         (top_of_stack): New macro.
5037         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
5038         (top_of_stack): Delete.
5039
5040 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5041
5042         * regs.h (target_regs): Add x_hard_regs_of_mode,
5043         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
5044         x_may_move_out_cost and x_last_mode_for_init_move_cost.
5045         (have_regs_of_mode, contains_reg_of_mode, move_cost)
5046         (may_move_in_cost, may_move_out_cost): Redefine as macros.
5047         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
5048         (may_move_in_cost, may_move_out_cost): Delete.
5049         (last_mode_for_init_move_cost): Redefine as a macro.
5050
5051 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5052
5053         * hard-reg-set.h (target_hard_regs): New structure.
5054         (default_target_hard_regs): Declare.
5055         (this_target_hard_regs): Declare as a variable or define as a macro.
5056         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
5057         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
5058         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
5059         (reg_class_size, reg_class_subclasses, reg_class_subunion)
5060         (reg_class_superunion, reg_names): Redefine as macros.
5061         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
5062         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
5063         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
5064         (reg_class_contents, reg_class_size, reg_class_subclasses)
5065         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
5066         (default_target_hard_regs): New variable
5067         (this_target_hard_regs, initial_call_really_used_regs)
5068         (initial_reg_alloc_order): New conditional variables.
5069         (initial_reg_names): New variable.
5070         (init_reg_sets): Assert that initial_call_really_used_regs,
5071         initial_reg_alloc_order and initial_reg_names
5072         are all the same size as their variable counterparts.  Use them to
5073         initialize those counterparts.
5074         * target-globals.h (this_target_hard_regs): Declare.
5075         (target_globals): Add a hard_regs field.
5076         (restore_target_globals): Copy the hard_regs field to
5077         this_target_hard_regs.
5078         * target-globals.c: Include hard-reg-set.h.
5079         (default_target_globals): Initialize the hard_regs field.
5080         (save_target_globals): Likewise.
5081
5082 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5083
5084         * Makefile.in (target-globals.o): Depend on $(RTL_H).
5085         * rtl.h (target_rtl): New structure.
5086         (default_target_rtl): Declare.
5087         (this_target_rtl): Declare as a variable or define as a macro.
5088         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
5089         Redefine as macros.
5090         * emit-rtl.c (default_target_rtl): New variable.
5091         (this_target_rtl): New conditional variable.
5092         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
5093         (return_address_pointer_rtx): Delete.
5094         (initial_regno_reg_rtx): New macro.
5095         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
5096         (init_emit_regs): Likewise.
5097         * target-globals.h (this_target_rtl): Declare.
5098         (target_globals): Add a rtl field.
5099         (restore_target_globals): Copy the rtl field to this_target_rtl.
5100         * target-globals.c: Include rtl.h.
5101         (default_target_globals): Initialize the rtl field.
5102         (save_target_globals): Likewise.
5103
5104 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5105
5106         * Makefile.in (target-globals.o): Depend on $(REGS_H).
5107         * regs.h (target_reg_modes): New structure.
5108         (default_target_reg_modes): Declare.
5109         (this_target_reg_modes): Declare as a variable or define as a macro.
5110         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
5111         * reginfo.c (default_target_reg_modes): New variable.
5112         (this_target_reg_modes): New conditional variable.
5113         (hard_regno_nregs, reg_raw_mode): Delete.
5114         * target-globals.h (this_target_regs): Declare.
5115         (target_globals): Add a regs field.
5116         (restore_target_globals): Copy the regs field to this_target_regs.
5117         * target-globals.c: Include regs.h.
5118         (default_target_globals): Initialize the regs field.
5119         (save_target_globals): Likewise.
5120
5121 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5122
5123         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
5124         * doc/tm.texi: Regenerate.
5125         * Makefile.in (OBJS-common): Add target-globals.o.
5126         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
5127         and target-globals.h.
5128         (target-globals.o): New rule.
5129         (GTFILES): Include $(srcdir)/target-globals.h.
5130         * defaults.h (SWITCHABLE_TARGET): Define.
5131         * gengtype.c (open_base_files): Add target-globals.h to the
5132         list of includes.
5133         * target-globals.h: New file.
5134         * target-globals.c: Likewise.
5135
5136         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
5137         * flags.h (target_flag_state): New structure.
5138         (default_target_flag_state): Declare.
5139         (this_target_flag_state): Declare as a variable or define as a macro.
5140         (align_loops_log): Redefine as a macro.
5141         (align_loops_max_skip, align_jumps_log): Likewise.
5142         (align_jumps_max_skip, align_labels_log): Likewise.
5143         (align_labels_max_skip, align_functions_log): Likewise.
5144         * toplev.c (default_target_flag_state): New variable.
5145         (this_target_flag_state): New conditional variable.
5146         (align_loops_log): Delete.
5147         (align_loops_max_skip, align_jumps_log): Likewise.
5148         (align_jumps_max_skip, align_labels_log): Likewise.
5149         (align_labels_max_skip, align_functions_log): Likewise.
5150         * target-globals.h (this_target_flag_state): Declare.
5151         (target_globals): Add a flag_state field.
5152         (restore_target_globals): Copy the flag_state field to
5153         this_target_flag_state.
5154         * target-globals.c: Include flags.h.
5155         (default_target_globals): Initialize the flag_state field.
5156         (save_target_globals): Likewise.
5157
5158 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5159
5160         * postreload.c (reg_symbol_ref[]): New.
5161         (move2add_use_add2_insn): New.
5162         (move2add_use_add3_insn): New.
5163         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
5164         (move2add_note_store): Likewise.
5165
5166 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5167
5168         PR rtl-optimization/44752
5169         * genautomata.c (main): Don't emit an empty file even if there
5170         is no automaton.
5171
5172 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5173
5174         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5175         ix86_solaris_return_in_memory.
5176         * config/i386-protos.h: Reflect this.
5177         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5178         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5179         Move ...
5180         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5181
5182 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5183
5184         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5185         align the stack when it's going to be saved.
5186
5187 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5188
5189         PR pch/14940
5190         * config/host-solaris.c (mmap_fixed): New function.
5191         (sol_gt_pch_get_address): Use it.
5192         (sol_gt_pch_use_address): Likewise.
5193
5194 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5195
5196         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5197         pentiumpro on Solaris 8 and 9/x86.
5198         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5199         Document SSE/SSE2 support.
5200         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5201
5202 2010-07-12  Andi Kleen  <ak@linux.intel.com>
5203
5204         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5205         instead of gcc_assert to print better error message for multiple
5206         prevailing defs.
5207
5208 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
5209
5210         * config/i386/i386.c (ix86_asm_output_function_label): Change format
5211         string placeholder from 0x%x to %#x.
5212         (ix86_code_end): Use putc to output '\n'.
5213         (ix86_print_operand) <case ';'>: Use putc to output ';'.
5214
5215 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
5216
5217         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5218         in directive -export.
5219
5220 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
5221
5222         * reginfo.h (reg_classes_intersect_p): Change arguments type to
5223         reg_class_t.
5224         * rtl.h (reg_classes_intersect_p): Adjust prototype.
5225
5226         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5227         Remove macros.
5228         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5229         rs6000_memory_move_cost): Remove
5230         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5231         TARGET_MEMORY_MOVE_COST): Define.
5232         (rs6000_register_move_cost): Make static. Change arguments type from
5233         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5234         (rs6000_memory_move_cost): Make static. Change arguments type from
5235         'enum reg_class' to reg_class_t.
5236
5237 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
5238
5239         PR middle-end/42505
5240         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5241         lookup code into....
5242         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5243         new functions.
5244         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5245         * cfgloopanal.c (target_clobbered_regs): Define.
5246         (init_set_costs): Initialize target_clobbered_regs.
5247         (estimate_reg_pressure_cost): Add call_p argument.  When true,
5248         adjust the number of available registers to exclude the
5249         call-clobbered registers.
5250         * cfgloop.h (target_clobbered_regs): Declare.
5251         (estimate_reg_pressure_cost): Adjust declaration.
5252         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5253         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5254         (determine_set_costs): Dump target_clobbered_regs.
5255         (loop_body_includes_call): New function.
5256         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5257         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5258         call_p flag through.
5259         (best_gain_for_invariant): Likewise.
5260         (find_invariants_to_move): Likewise.
5261         (move_single_loop_invariants): Likewise, using already-computed
5262         has_call field.
5263
5264 2010-07-10  Richard Guenther  <rguenther@suse.de>
5265             Joern Rennecke  <joern.rennecke@embecosm.com>
5266
5267         PR debug/44832
5268         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5269         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5270         unless they have DECL_IGNORED_P set.
5271
5272 2010-07-10  Richard Guenther  <rguenther@suse.de>
5273
5274         PR lto/44889
5275         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5276         helper function.
5277         (gimple_types_compatible_p): Similar to pointed-to
5278         types allow and merge a mix of complete and incomplete aggregate.
5279         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5280         (iterative_hash_gimple_type): Adjust for that.
5281
5282 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
5283
5284         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5285
5286 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
5287
5288         PR objc/44140
5289         * config/darwin.c (output_objc_section_asm_op): Save and restore
5290         section when outputting ObjC section list.
5291
5292 2010-07-09  Jan Hubicka  <jh@suse.cz>
5293
5294         * lto-streamer-out.c (produce_symtab): Do not write alias
5295         cgraph/varpool nodes.
5296
5297 2010-07-09  Jan Hubicka  <jh@suse.cz>
5298
5299         * tree-inline.c (declare_return_variable): Fix ICE while
5300         inlining DECL_BY_VALUE function not in SSA form
5301
5302 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
5303
5304         PR tree-optimization/44576
5305         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5306         New.  Pull out from is_loop_prefetching_profitable to implement
5307         the trip count to ahead ratio heuristic.
5308         (mem_ref_count_reasonable_p): New.  Pull out from
5309         is_loop_prefetching_profitable to implement the instruction to
5310         memory reference ratio heuristic.  Also consider not reasonable if
5311         the memory reference count is above a threshold (to avoid
5312         explosive compilation time.
5313         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
5314         is_loop_prefetching_profitable to implement the instruction to
5315         prefetch ratio heuristic.
5316         (is_loop_prefetching_profitable): Removed.
5317         (loop_prefetch_arrays): Distribute the cost analysis across the
5318         function to allow early exit of the prefetch analysis.
5319         is_loop_prefetching_profitable is splitted into three functions,
5320         with each one called as early as possible.
5321         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
5322         number of memory references in a loop is considered too many.
5323
5324 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5325
5326         * reload.c (find_reloads): Don't clear badop if we have a winreg
5327         alternative, but not win, and the class only has fixed regs.
5328         * hard-reg-set.h (class_only_fixed_regs): Declare.
5329         * reginfo.c (class_only_fixed_regs): New array.
5330         (init_reg_sets_1): Initialize it.
5331         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5332         discourage alternatives using the stack pointer.
5333
5334         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5335
5336         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5337
5338         * config/arm/arm.md (cbranchqi4): Fix array size.
5339         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5340         calculating length.
5341
5342 2010-07-09  Richard Guenther  <rguenther@suse.de>
5343
5344         * gimple.c (struct type_fixup_s): New struct and VEC type.
5345         (gimple_register_type_fixups): New static global.
5346         (gimple_queue_type_fixup): New function.
5347         (gimple_types_compatible_p): Queue type fixups instead of
5348         applying them here.
5349         (gimple_register_type): Apply queued fixups for the
5350         canonical type.  Empty the type fixup queue.
5351
5352 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5353
5354         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5355         * configure: Regenerate.
5356         * config.in: Ditto.
5357
5358 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5359             Denys Vlasenko  <dvlasenk@redhat.com>
5360             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5361
5362         PR tree-optimization/28632
5363         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5364         (extract_range_from_binary_expr): Further optimize
5365         BIT_AND_EXPR and BIT_IOR_EXPR.
5366
5367 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5368
5369         * tree-if-conv.c (fold_or_predicates): New.
5370         (add_to_predicate_list): Call it.
5371
5372 2010-07-09  Richard Guenther  <rguenther@suse.de>
5373
5374         PR middle-end/44890
5375         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5376         if base is a pointer.
5377         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5378
5379 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5380
5381         PR target/44877
5382         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5383         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5384         builtin mask for load/store builtins.
5385
5386 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5387
5388         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5389         for "lock addl".
5390         * configure: Regenerate.
5391         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5392         Remove TARGET_MACHO.
5393
5394 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5395
5396         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5397         default ISA flags.
5398         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5399
5400 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5401
5402         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5403
5404 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5405
5406         * config/picochip/picochip.md (commsTestPort): Emit more
5407         efficient sequence for tstport instruction.
5408
5409 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5410
5411         * config/i386/i386.c (ix86_veclib_handler): Make static.
5412
5413 2010-07-09  Richard Guenther  <rguenther@suse.de>
5414
5415         PR tree-optimization/44852
5416         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5417         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5418         in MEM_REF.
5419         (indirect_refs_may_alias_p): Likewise.
5420         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5421
5422 2010-07-09  Richard Guenther  <rguenther@suse.de>
5423
5424         PR tree-optimization/44882
5425         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5426         sets do conflict.
5427         (vectorizable_load): Likewise.
5428
5429 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5430
5431         PR target/40657
5432         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5433         All callers changed.
5434         Handle the case when we're called for the epilogue.
5435         (thumb_unexpanded_epilogue): Use it.
5436         (thumb1_expand_epilogue): Likewise.
5437
5438 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5439
5440         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5441         both ranges are range_int_cst_p with non-negative minimum,
5442         try harder to derive smaller range.
5443
5444 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5445
5446         * genrecog.c: Include diagnostic-core.h before toplev.h.
5447         * genoutput.c: Likewise.
5448         * genextract.c: Likewise.
5449         * genautomata.c: Likewise.
5450         * genemit.c: Likewise.
5451         * genpeep.c: Likewise.
5452         * genattrtab.c: Likewise.
5453         * genconditions.c: Likewise.
5454         * genpreds.c: Likewise.
5455
5456 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5457
5458         * lto-section-in.c (lto_section_name): Add missing comma.
5459
5460 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5461
5462         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5463         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5464         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5465         (ia64_override_options): Rename to...
5466         (ia64_option_override): ... this one. Make static.
5467
5468 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5469
5470         PR middle-end/44843
5471         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5472         pointed-to type of the offset in a MEM_REF to compute the alignment.
5473
5474 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5475
5476         * final.c (final_scan_insn): Replace
5477         TARGET_UNWIND_INFO macro check by unwind_emit
5478         hook NULL check.
5479         * targhooks.c (default_unwind_emit): Removed.
5480         * targhooks.h (default_unwind_emit): Likewise.
5481         * target.def (unwind_emit): Set default value to NULL.
5482
5483         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5484         New prototype.
5485         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5486         for NULL fntype argument and allow 64-bit targets.
5487         (ix86_asm_output_function_label): New function.
5488         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5489         (ix86_handle_fndecl_attribute): Likewise.
5490         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5491         * doc/doc/tm.texi: Regenerated.
5492         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5493         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5494         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5495         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5496         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5497         * config/elfos.h: Likewise.
5498         * config/i386/cygming.h: Likewise.
5499         * config/netbsd-aout.h: Likewise.
5500         * config/openbsd.h: Likewise.
5501         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5502         by ix86_asm_output_function_label function call.
5503         * varasm.c (assemble_start_function): Use
5504         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5505
5506 2010-07-08  Jan Hubicka  <jh@suse.cz>
5507
5508         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5509         New function.
5510         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5511         Declare.
5512         * ipa-cp.c (ipcp_estimate_growth): Use it.
5513         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5514         Likewise.
5515
5516 2010-07-08  Jan Hubicka  <jh@suse.cz>
5517
5518         * tree-inline.c (declare_return_variable): Allocate annotation for new
5519         temporary.
5520
5521 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5522
5523         PR tree-optimization/44710
5524         * tree-if-conv.c (parse_predicate): New.
5525         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5526         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5527
5528 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5529
5530         * common.opt (ftree-loop-if-convert): New flag.
5531         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5532         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5533         when flag_tree_loop_if_convert is set.
5534
5535 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5536
5537         * config/i386/i386.c: Use short syntax for function calls
5538         through function pointers.
5539         * config/i386/i386.md: Ditto.
5540
5541 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5542
5543         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5544
5545 2010-07-08  Richard Guenther  <rguenther@suse.de>
5546
5547         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5548         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5549
5550 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5551
5552         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5553         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5554         (loc_list_from_tree): Likewise.
5555         (output_loc_operands): Handle outputting DW_OP_const[48]u
5556         with loc->dtprel set.
5557         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5558
5559 2010-07-08  Jan Hubicka  <jh@suse.cz>
5560
5561         * ipa.c: Include pointer-set.h
5562         (cgraph_externally_visible_p): New attribute ALIASED;
5563         when in LTO, hidden symbols are local unless they are aliased.
5564         (function_and_variable_visibility): Compute aliased nodes;
5565         handle LTO and hidden symbol on functions and vars.
5566         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5567         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5568
5569 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5570
5571         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5572         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5573         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5574         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5575         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5576         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5577         (ix86_gen_probe_stack_range): Likewise.
5578         (override_options): Set them.
5579         (ix86_target_stack_probe): New function.
5580         (ix86_compute_frame_layout): Force use of push instructions to
5581         save registers if stack checking with probes is enabled.
5582         (get_scratch_register_on_entry): New function.
5583         (release_scratch_register_on_entry): Likewise.
5584         (ix86_adjust_stack_and_probe): Likewise.
5585         (output_adjust_stack_and_probe): Likewise.
5586         (ix86_emit_probe_stack_range): Likewise.
5587         (output_probe_stack_range): Likewise.
5588         (ix86_expand_prologue): Emit stack checking code if static built-in
5589         stack checking is enabled.
5590         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5591         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5592         (output_adjust_stack_and_probe): Likewise.
5593         (output_probe_stack_range): Likewise.
5594         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5595         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5596         TARGET_STACK_PROBE.
5597         (allocate_stack_worker_64): Likewise.
5598         (allocate_stack): Likewise.
5599         (adjust_stack_and_probe): New insn.
5600         (probe_stack_range): Likewise.
5601
5602 2010-07-08  Richard Guenther  <rguenther@suse.de>
5603
5604         PR tree-optimization/44831
5605         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5606         a MEM_REF preserving TBAA info of the original dereference.
5607         Dereference the original pointer if the address is not invariant.
5608         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5609         at least one invariant address that we are going to dereference.
5610
5611 2010-07-08  Richard Guenther  <rguenther@suse.de>
5612
5613         PR tree-optimization/44861
5614         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5615         information when building MEM_REFs.
5616         (vectorizable_load): Likewise.
5617         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5618
5619 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5620
5621         * config/sol2-c.c: Do not include diagnostic-core.h.
5622
5623 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5624
5625         PR bootstrap/44768
5626         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5627         with respect to current_function_decl. Pass decl of the function.
5628         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5629         * ipa-inline.c (compute_inline_parameters): Pass decl to
5630         estimated_stack_frame_size.
5631
5632 2010-07-08  Richard Guenther  <rguenther@suse.de>
5633
5634         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5635         New function.
5636         (valueize_refs): Call it.
5637
5638 2010-07-08  Richard Guenther  <rguenther@suse.de>
5639
5640         PR rtl-optimization/44838
5641         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5642         SSA form do not use pointer equivalence.
5643
5644 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5645
5646         * dwarf2out.c (AT_linkage_name): Delete.
5647         (add_linkage_attr): New function.
5648         (add_linkage_name): Call it to emit the linkage attribute.
5649         (dwarf2out_finish): Likewise.
5650         (move_linkage_attr): Explicitly accept both attribute variants.
5651
5652 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5653
5654         * toplev.h: Do not include diagnostic-core.h.
5655         Include diagnostic-core.h in every file that includes toplev.h.
5656         * c-tree.h: Do not include toplev.h.
5657         * pretty-print.h: Update comment.
5658         * Makefile.in: Update dependencies.
5659         * alias.c: Include diagnostic-core.h in every file that includes
5660         toplev.h.
5661         * attribs.c: Likewise.
5662         * auto-inc-dec.c: Likewise.
5663         * bb-reorder.c: Likewise.
5664         * bt-load.c: Likewise.
5665         * caller-save.c: Likewise.
5666         * calls.c: Likewise.
5667         * cfg.c: Likewise.
5668         * cfganal.c: Likewise.
5669         * cfgbuild.c: Likewise.
5670         * cfgcleanup.c: Likewise.
5671         * cfghooks.c: Likewise.
5672         * cfgloop.c: Likewise.
5673         * combine.c: Likewise.
5674         * config/alpha/alpha.c: Likewise.
5675         * config/arc/arc.c: Likewise.
5676         * config/arm/arm.c: Likewise.
5677         * config/arm/pe.c: Likewise.
5678         * config/avr/avr.c: Likewise.
5679         * config/bfin/bfin.c: Likewise.
5680         * config/cris/cris.c: Likewise.
5681         * config/crx/crx.c: Likewise.
5682         * config/darwin-c.c: Likewise.
5683         * config/darwin.c: Likewise.
5684         * config/fr30/fr30.c: Likewise.
5685         * config/frv/frv.c: Likewise.
5686         * config/h8300/h8300.c: Likewise.
5687         * config/host-darwin.c: Likewise.
5688         * config/i386/i386.c: Likewise.
5689         * config/i386/netware.c: Likewise.
5690         * config/i386/nwld.c: Likewise.
5691         * config/i386/winnt-cxx.c: Likewise.
5692         * config/i386/winnt-stubs.c: Likewise.
5693         * config/i386/winnt.c: Likewise.
5694         * config/ia64/ia64-c.c: Likewise.
5695         * config/ia64/ia64.c: Likewise.
5696         * config/iq2000/iq2000.c: Likewise.
5697         * config/lm32/lm32.c: Likewise.
5698         * config/m32c/m32c-pragma.c: Likewise.
5699         * config/m32c/m32c.c: Likewise.
5700         * config/m32r/m32r.c: Likewise.
5701         * config/m68hc11/m68hc11.c: Likewise.
5702         * config/m68k/m68k.c: Likewise.
5703         * config/mcore/mcore.c: Likewise.
5704         * config/mep/mep-pragma.c: Likewise.
5705         * config/mep/mep.c: Likewise.
5706         * config/mmix/mmix.c: Likewise.
5707         * config/mn10300/mn10300.c: Likewise.
5708         * config/moxie/moxie.c: Likewise.
5709         * config/pa/pa.c: Likewise.
5710         * config/pdp11/pdp11.c: Likewise.
5711         * config/picochip/picochip.c: Likewise.
5712         * config/rs6000/rs6000-c.c: Likewise.
5713         * config/rs6000/rs6000.c: Likewise.
5714         * config/rx/rx.c: Likewise.
5715         * config/s390/s390.c: Likewise.
5716         * config/score/score.c: Likewise.
5717         * config/score/score3.c: Likewise.
5718         * config/score/score7.c: Likewise.
5719         * config/sh/sh.c: Likewise.
5720         * config/sh/symbian-base.c: Likewise.
5721         * config/sh/symbian-c.c: Likewise.
5722         * config/sh/symbian-cxx.c: Likewise.
5723         * config/sol2-c.c: Likewise.
5724         * config/sol2.c: Likewise.
5725         * config/sparc/sparc.c: Likewise.
5726         * config/spu/spu.c: Likewise.
5727         * config/stormy16/stormy16.c: Likewise.
5728         * config/v850/v850-c.c: Likewise.
5729         * config/v850/v850.c: Likewise.
5730         * config/vax/vax.c: Likewise.
5731         * config/vxworks.c: Likewise.
5732         * config/xtensa/xtensa.c: Likewise.
5733         * convert.c: Likewise.
5734         * cse.c: Likewise.
5735         * cselib.c: Likewise.
5736         * dbgcnt.c: Likewise.
5737         * dbxout.c: Likewise.
5738         * ddg.c: Likewise.
5739         * dominance.c: Likewise.
5740         * emit-rtl.c: Likewise.
5741         * explow.c: Likewise.
5742         * expmed.c: Likewise.
5743         * fixed-value.c: Likewise.
5744         * fold-const.c: Likewise.
5745         * fwprop.c: Likewise.
5746         * gcse.c: Likewise.
5747         * ggc-common.c: Likewise.
5748         * ggc-page.c: Likewise.
5749         * ggc-zone.c: Likewise.
5750         * gimple-low.c: Likewise.
5751         * gimplify.c: Likewise.
5752         * graph.c: Likewise.
5753         * haifa-sched.c: Likewise.
5754         * ifcvt.c: Likewise.
5755         * implicit-zee.c: Likewise.
5756         * integrate.c: Likewise.
5757         * ira-build.c: Likewise.
5758         * ira-color.c: Likewise.
5759         * ira-conflicts.c: Likewise.
5760         * ira-costs.c: Likewise.
5761         * ira-lives.c: Likewise.
5762         * ira.c: Likewise.
5763         * lists.c: Likewise.
5764         * loop-doloop.c: Likewise.
5765         * loop-iv.c: Likewise.
5766         * lto-opts.c: Likewise.
5767         * lto-symtab.c: Likewise.
5768         * main.c: Likewise.
5769         * modulo-sched.c: Likewise.
5770         * optabs.c: Likewise.
5771         * params.c: Likewise.
5772         * plugin.c: Likewise.
5773         * postreload-gcse.c: Likewise.
5774         * postreload.c: Likewise.
5775         * predict.c: Likewise.
5776         * profile.c: Likewise.
5777         * real.c: Likewise.
5778         * regcprop.c: Likewise.
5779         * reginfo.c: Likewise.
5780         * regmove.c: Likewise.
5781         * reorg.c: Likewise.
5782         * resource.c: Likewise.
5783         * rtl.c: Likewise.
5784         * rtlanal.c: Likewise.
5785         * sched-deps.c: Likewise.
5786         * sched-ebb.c: Likewise.
5787         * sched-rgn.c: Likewise.
5788         * sdbout.c: Likewise.
5789         * sel-sched-dump.c: Likewise.
5790         * sel-sched-ir.c: Likewise.
5791         * simplify-rtx.c: Likewise.
5792         * stmt.c: Likewise.
5793         * stor-layout.c: Likewise.
5794         * store-motion.c: Likewise.
5795         * targhooks.c: Likewise.
5796         * tree-cfg.c: Likewise.
5797         * tree-cfgcleanup.c: Likewise.
5798         * tree-dump.c: Likewise.
5799         * tree-eh.c: Likewise.
5800         * tree-inline.c: Likewise.
5801         * tree-nomudflap.c: Likewise.
5802         * tree-object-size.c: Likewise.
5803         * tree-optimize.c: Likewise.
5804         * tree-outof-ssa.c: Likewise.
5805         * tree-phinodes.c: Likewise.
5806         * tree-profile.c: Likewise.
5807         * tree-ssa-ccp.c: Likewise.
5808         * tree-ssa-coalesce.c: Likewise.
5809         * tree-ssa-live.c: Likewise.
5810         * tree-ssa-loop-niter.c: Likewise.
5811         * tree-ssa-loop-prefetch.c: Likewise.
5812         * tree-ssa-loop.c: Likewise.
5813         * tree-ssa-structalias.c: Likewise.
5814         * tree-ssa-uninit.c: Likewise.
5815         * tree-ssa.c: Likewise.
5816         * tree-vect-data-refs.c: Likewise.
5817         * tree-vect-loop-manip.c: Likewise.
5818         * tree-vect-loop.c: Likewise.
5819         * tree-vect-patterns.c: Likewise.
5820         * tree-vect-stmts.c: Likewise.
5821         * tree-vrp.c: Likewise.
5822         * varasm.c: Likewise.
5823         * vec.c: Likewise.
5824         * web.c: Likewise.
5825         * xcoffout.c: Likewise.
5826
5827 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5828
5829         * gengtype.c (write_field_root): New function.
5830         (write_root): Use it.
5831
5832 2010-07-07  Wei Guozhi  <carrot@google.com>
5833
5834         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5835         of lowest bits to lshift/compare): Add a missing line.
5836
5837 2010-07-07  Wei Guozhi  <carrot@google.com>
5838
5839         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5840         of lowest bits to lshift/compare): New.
5841
5842 2010-07-07  Tom Tromey  <tromey@redhat.com>
5843
5844         * doc/tm.texi: Update.
5845         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5846         Add @hook.
5847         * target.def (want_debug_pub_sections): New hook.
5848         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5849         * dwarf2out.c (add_pubname_string): Check
5850         targetm.want_debug_pub_sections.
5851         (add_pubname): Likewise.
5852         (add_pubtype): Likewise.
5853
5854 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5855
5856         * genautomata.c (output_automata_list_min_issue_delay_code):
5857         Correctly decompress min_issue_delay.
5858
5859 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5860
5861         PR rtl-optimization/44404
5862         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5863         possible, use reg_overlap_mentioned_p instead.
5864
5865 2010-07-07  Duncan Sands  <baldrick@free.fr>
5866
5867         PR middle-end/41355
5868         * tree.c (build_function_type_skip_args): Copy the original type using
5869         build_distinct_type_copy rather than copy_node.
5870
5871 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5872
5873         PR target/44850
5874         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5875         revision 161876.
5876         (ix86_expand_prologue): Likewise.
5877         (ix86_handle_fndecl_attribute): Likewise.
5878         (ix86_asm_declare_function_name): Likewise.
5879         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5880         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5881         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5882         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5883         * doc/extend.texi: Likewise.
5884
5885 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5886
5887         PR target/44844
5888         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5889         retry if the carry flag isn't valid.
5890         (rdrand<mode>_1): New.
5891
5892 2010-07-07  Richard Guenther  <rguenther@suse.de>
5893
5894         PR middle-end/44790
5895         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5896         for expanding the constant offset for MEM_REFs.
5897
5898 2010-07-07  Richard Guenther  <rguenther@suse.de>
5899
5900         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5901         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5902         * gimple.h (is_gimple_operand): Remove.
5903         * gimple.c (is_gimple_operand): Likewise.
5904         (walk_gimple_op): Fix wi->val_only setting for calls.
5905         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5906         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5907         invalid gimple calls.
5908
5909 2010-07-06  Jan Hubicka  <jh@suse.cz>
5910
5911         * lto-cgraph.c (output_cgraph): Add missing declaration.
5912
5913 2010-07-06  Jan Hubicka  <jh@suse.cz>
5914
5915         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5916         partition.
5917
5918 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5919
5920         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5921         * doc/rtl.texi (Debug Information): New node.
5922         (NOTE_INSN_VAR_LOCATION): Document.
5923         (debug_insn): Likewise.
5924         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5925
5926 2010-07-07  Jan Hubicka  <jh@suse.cz>
5927
5928         With parts by Richard Guenther.
5929
5930         PR middle-end/44813
5931         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5932         for functions passed by reference.
5933         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5934         in memory when passed by reference.
5935         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5936         beggining.
5937         * ipa-split.c (split_function): Cleanup way return value is passed;
5938         handle SSA DECL_BY_REFERENCE retvals.
5939         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5940         DECL_BY_REFERENCE is set.
5941         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5942         find_what_p_points_to): Handle RESULT_DECL.
5943         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5944         when passing by reference ensure that RESULT_DECL is gimple_val.
5945         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5946         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5947
5948 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5949
5950         PR rtl-optimization/44787
5951         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5952         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5953
5954 2010-07-06  Jan Hubicka  <jh@suse.cz>
5955
5956         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5957         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5958         with body can prevail.
5959         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5960         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5961         * cgraph.c (cgraph_get_node_or_alias): New function.
5962         * cgraph.h (cgraph_get_node_or_alias): Declare.
5963
5964 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5965
5966         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5967         support.
5968         (ix86_expand_prologue): Likewise.
5969         (ix86_handle_fndecl_attribute): Likewise.
5970         (ix86_asm_declare_function_name): New function for
5971         ASM_DECLARE_FUNCTION_NAME.
5972         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5973         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5974         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5975         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5976         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5977         attribute.
5978
5979 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5980
5981         * config/i386/i386.md (immediate_operand): New mode attribute.
5982
5983         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5984         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5985         using P mode iterator.
5986         (pro_epilogue_adjust_stack_di_2): Rename from
5987         pro_epilogue_adjust_stack_rex64_2.
5988
5989         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5990
5991 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5992
5993         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5994         through gen_mov_insv_1 function pointer.
5995         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5996         gen_truncxf<mode>2 through gen_truncxf function pointer.
5997         (remainder<mode>3): Ditto.
5998         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5999         (allocate_stack): Call gen_allocate_stack_worker_64 or
6000         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
6001         function pointer.
6002         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
6003         function pointer.
6004
6005 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6006
6007         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
6008         operand constraint instead of <r><i>m.
6009
6010 2010-07-06  Richard Guenther  <rguenther@suse.de>
6011
6012         PR middle-end/44828
6013         * convert.c (convert_to_integer): Watch out for overflowing
6014         MULT_EXPR as well.
6015
6016 2010-07-05  Jan Hubicka  <jh@suse.cz>
6017
6018         * lto-streamer.c (write_symbol_vec): Rename to ...
6019         (write_symbol) ... this one; write only symbol given and when
6020         present in cache. Sanity check that what is defined is present
6021         in cgraph/varpool with body/finalized decl.
6022         (write_symbols_of_kind): Remove.
6023         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
6024         pairs to produce symtab.
6025         (produce_asm_for_decls): Update call of produce_symtab; don't do so
6026         when doing WPA streaming.
6027
6028 2010-07-05  Jan Hubicka  <jh@suse.cz>
6029
6030         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
6031         function is still available to fold into.
6032
6033 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6034
6035         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
6036         * function.h (struct_function): Change type of local_decls field
6037         to a VEC.
6038         (add_local_decl): New function.
6039         (FOR_EACH_LOCAL_DECL): New macro.
6040         * cfgexpand.c (init_vars_expansion): Adjust for new type of
6041         cfun->local_decls.
6042         (estimated_stack_frame_size): Likewise.
6043         (expand_used_vars): Likewise.
6044         * cgraphbuild.c (build_cgraph_edges): Likewise.
6045         * function.c (instantiate_decls_1): Likewise.
6046         * ipa-struct-reorg.c (build_data_structure): Likewise.
6047         * ipa-type-escape.c (analyze_function): Likewise.
6048         * lto-streamer-in.c (input_function): Likewise.
6049         * lto-streamer-out.c (output_function): Likewise.
6050         * tree-ssa-live.c (remove_unused_locals): Likewise.
6051         * tree.c (free_lang_data_in_decl): Likewise.
6052         (find_decls_types_in_node): Likewise.
6053         * omp-low.c (remove_exit_barrier): Likewise.
6054         (expand_omp_taskreg): Likewise.
6055         (list2chain): Rename to...
6056         (vec2chain): ...this.  Adjust.
6057         * cgraphunit.c (assemble_thunk): Call add_local_decl.
6058         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
6059         * gimple-low.c (record_vars_into): Likewise.
6060         * tree-inline.c (remap_decls): Likewise.
6061         (declare_return_variable): Likewise.
6062         (declare_inline_vars): Likewise.
6063         (copy_forbidden): Adjust for new type of cfun->local_decls.
6064         (add_local_variables): New function.
6065         (expand_call_inline): Call it.
6066         (tree_function_versioning): Likewise.
6067
6068 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6069
6070         AVX Programming Reference (June, 2010)
6071         * config/i386/cpuid.h (bit_F16C): New.
6072         (bit_RDRND): Likewise.
6073         (bit_FSGSBASE): Likewise.
6074
6075         * config/i386/i386-builtin-types.def: Add
6076         "DEF_FUNCTION_TYPE (UINT16)", function types for
6077         float16 <-> float conversions and
6078         "DEF_FUNCTION_TYPE (VOID, UINT64)".
6079
6080         * config/i386/i386-c.c (ix86_target_macros_internal): Support
6081         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
6082         OPTION_MASK_ISA_F16C.
6083
6084         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
6085         (OPTION_MASK_ISA_RDRND_SET): Likewise.
6086         (OPTION_MASK_ISA_F16C_SET): Likewise.
6087         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
6088         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
6089         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
6090         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
6091         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
6092         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
6093         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
6094         (override_options): Handle them.
6095         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
6096         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
6097         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
6098         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
6099         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
6100         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
6101         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
6102         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
6103         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
6104         (bdesc_args): Likewise.
6105         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
6106         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
6107         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
6108         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
6109         Handle non-memory store.
6110
6111         * config/i386/i386.h (TARGET_FSGSBASE): New.
6112         (TARGET_RDRND): Likewise.
6113         (TARGET_F12C): Likewise.
6114
6115         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
6116         (UNSPEC_VCVTPS2PH): Likewise.
6117         (UNSPECV_RDFSBASE): Likewise.
6118         (UNSPECV_RDGSBASE): Likewise.
6119         (UNSPECV_WRFSBASE): Likewise.
6120         (UNSPECV_WRGSBASE): Likewise.
6121         (UNSPECV_RDRAND): Likewise.
6122         (rdfsbase<mode>): Likewise.
6123         (rdgsbase<mode>): Likewise.
6124         (wrfsbase<mode>): Likewise.
6125         (wrgsbase<mode>): Likewise.
6126         (rdrand<mode>): Likewise.
6127
6128         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
6129
6130         * config/i386/immintrin.h (_rdrand_u16): New.
6131         (_rdrand_u32): Likewise.
6132         (_readfsbase_u32): Likewise.
6133         (_readfsbase_u64): Likewise.
6134         (_readgsbase_u32): Likewise.
6135         (_readgsbase_u64): Likewise.
6136         (_writefsbase_u32): Likewise.
6137         (_writefsbase_u64): Likewise.
6138         (_writegsbase_u32): Likewise.
6139         (_writegsbase_u64): Likewise.
6140         (_rdrand_u64): Likewise.
6141         (_cvtsh_ss): Likewise.
6142         (_mm_cvtph_ps): Likewise.
6143         (_mm256_cvtph_ps): Likewise.
6144         (_cvtss_sh): Likewise.
6145         (_mm_cvtps_ph): Likewise.
6146         (_mm256_cvtps_ph): Likewise.
6147
6148         * config/i386/sse.md (vcvtph2ps): New.
6149         (*vcvtph2ps_load): Likewise.
6150         (vcvtph2ps256): Likewise.
6151         (vcvtps2ph): Likewise.
6152         (*vcvtps2ph): Likewise.
6153         (*vcvtps2ph_store): Likewise.
6154         (vcvtps2ph256): Likewise.
6155
6156         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
6157
6158         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
6159
6160 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6161
6162         PR bootstrap/44512
6163         * genenums.c (main): Output include of insn-constants.h
6164         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
6165
6166 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
6167
6168         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
6169         (override_options): Initialize it.
6170         (ix86_expand_prologue): Use it.
6171
6172 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6173
6174         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6175
6176 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6177
6178         * double-int.h (fit_double_type): Remove declaration.
6179         * double-int.c (fit_double_type): Remove function.
6180         * tree.h (int_fits_type_p): Adjust prototype.
6181         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6182         instead of fit_double_type.
6183         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6184         instead of fit_double_type and build_int_cst_wide.
6185         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6186         instead of fit_double_type and build_int_cst_wide.
6187         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6188         of fit_double_type.
6189
6190 2010-07-05  Jan Hubicka  <jh@suse.cz>
6191
6192         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6193         in_other_partition.
6194         * lto-cgraph.c (referenced_from_other_partition_p,
6195         reachable_from_other_partition_p): Use in_other_partition flags.
6196         (output_node, output_varpool_node): COMDAT nodes always have private
6197         copies and thus are never used from other partition.
6198
6199 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6200
6201         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6202         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6203         * config/ia64/ia64.c Include reload.h.
6204         (ia64_memory_move_cost): New function.
6205         (TARGET_MEMORY_MOVE_COST): Define.
6206         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6207         memory_move_cost.
6208
6209 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
6210
6211         PR middle-end/42505
6212         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6213         comments about cost model.
6214         (try_add_cand_for):  Add second strategy for choosing initial set
6215         based on original IVs, controlled by ORIGINALP argument.
6216         (get_initial_solution): Add ORIGINALP argument.
6217         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6218         (find_optimal_iv_set): Try two different strategies for choosing
6219         the IV set, and return the one with lower cost.
6220
6221 2010-07-05  Richard Guenther  <rguenther@suse.de>
6222
6223         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6224
6225 2010-07-05  Richard Guenther  <rguenther@suse.de>
6226
6227         * tree.c (reference_alias_ptr_type): New function.
6228         * tree.h (reference_alias_ptr_type): Declare.
6229         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6230         allow non-TARGET_MEM_REF new refs.
6231         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6232         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6233         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6234         (create_mem_ref): Get alias pointer type.  Adjust calls to
6235         create_mem_ref_raw.
6236         (maybe_fold_tmr): Likewise.
6237         * tree-flow.h (create_mem_ref): Adjust prototype.
6238
6239 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6240
6241         PR c++/44808
6242         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6243         *from_p is VAR_DECL.
6244
6245 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6246
6247         * tree.h (build_call_list): Remove.
6248         * tree.c (build_call_list): Remove.
6249
6250 2010-07-05  Richard Guenther  <rguenther@suse.de>
6251
6252         * double-int.h (double_int_sub): Declare.
6253         * double-int.c (double_int_sub): New function.
6254         * dwarf2out.c (field_byte_offset): Use it.
6255         * fixed-value.c (do_fixed_add): Likewise.
6256         (do_fixed_multiply): Likewise.
6257         (do_fixed_divide): Likewise.
6258         * tree-predcom.c (add_ref_to_chain): Likewise.
6259         (determine_roots_comp): Likewise.
6260         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6261
6262 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6263
6264         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
6265         implementations.
6266
6267 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
6268
6269         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6270         * arm-modes.def (CC_NOTB): Don't define.
6271         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6272         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6273         (LTUGEU): New code_iterator.
6274         (cnb, optab): New corresponding code_attrs.
6275         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
6276         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
6277         using LTUGEU.
6278         (addsi3_carryin_shift_<optab>): Likewise.
6279         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6280         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
6281         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6282         (subsi3_compare): Renamed from subsi3_compare0_c.
6283         Change CC_NOTB to CC.
6284         (arm_subsi3_insn): Allow constants for operand 0.
6285         (compare_scc peephole for eq case): New.
6286         (compare_scc splitters): Change CC_NOTB to CC.
6287
6288 2010-07-05  Richard Guenther  <rguenther@suse.de>
6289
6290         * tree-ssa-loop-im.c (for_each_index): Do not handle
6291         ALIGN_INDIRECT_REF.
6292         (gen_lsm_tmp_name): Likewise.
6293         * tree-dump.c (dequeue_and_dump): Likewise.
6294         * tree-pretty-print.c (dump_generic_node): Likewise.
6295         (op_code_prio): Likewise.
6296         (op_symbol_code): Likewise.
6297         * tree.c (staticp): Likewise.
6298         (build1_stat): Likewise.
6299         * tree.h (INDIRECT_REF_P): Likewise.
6300         * fold-const.c (maybe_lvalue_p): Likewise.
6301         (operand_equal_p): Likewise.
6302         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6303         (ao_ref_init_from_vn_reference): Likewise.
6304         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6305         (find_interesting_uses_address): Likewise.
6306         * dwarf2out.c (loc_list_from_tree): Likewise.
6307         * gimplify.c (gimplify_expr): Likewise.
6308         * tree-eh.c (tree_could_trap_p): Likewise.
6309         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6310         * cfgexpand.c (expand_debug_expr): Likewise.
6311         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6312         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6313         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6314         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6315         * tree-ssa-operands.c (get_expr_operands): Likewise.
6316         * expr.c (safe_from_p): Likewise.
6317         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
6318         * tree-vect-data-refs.c (vect_setup_realignment): Build
6319         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6320         * tree-vect-stmts.c (vectorizable_load): Likewise.
6321         * tree.def (ALIGN_INDIRECT_REF): Remove.
6322
6323 2010-07-05  Richard Guenther  <rguenther@suse.de>
6324
6325         PR tree-optimization/44784
6326         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6327         for inserted stmts.
6328         (find_or_generate_expression): Fix SCCVN insertion check.
6329
6330 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6331
6332         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6333         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6334         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6335         directives.
6336
6337 2010-07-05  Ira Rosen  <irar@il.ibm.com>
6338
6339         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6340         statements that are not vectorized.
6341         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6342         in INSIDE_COST.
6343
6344 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
6345
6346         PR bootstrap/44820
6347         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6348
6349 2010-07-05  Richard Guenther  <rguenther@suse.de>
6350
6351         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6352         RESULT_DECLs properly.
6353
6354 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
6355
6356         PR rtl-optimization/44695
6357         * config/i386/i386.md (extract_code): Removed.
6358         (<u>divmodqi4): Likewise.
6359         (divmodqi4): New.
6360         (udivmodqi4): Likewise.
6361         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6362         (udivmodhiqi3): Likewise.
6363
6364 2010-07-04  Jan Hubicka  <jh@suse.cz>
6365
6366         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6367
6368 2010-07-04  Jan Hubicka  <jh@suse.cz>
6369
6370         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6371         is not already initialized.
6372
6373 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6374
6375         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6376         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6377         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6378         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6379         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6380         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6381         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6382         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6383         (sync_new_nand_optab): Redefine as macros.
6384         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6385         Delete.
6386         (direct_optab_index): New enum.
6387         (direct_optab_d): New structure.
6388         (direct_optab): New typedef.
6389         (direct_optab_table): Declare.
6390         (direct_optab_handler, set_direct_optab_handler): New functions.
6391         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6392         (sync_lock_release_optab): New macros.
6393         * optabs.c (direct_optab_table): New variable.
6394         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6395         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6396         cmpstr_optab and cmpstrn_optab.
6397         (emit_conditional_move): Likewise for movcc_optab.
6398         (can_conditionally_move_p): Likewise for movcc_gen_code.
6399         (init_insn_codes): Clear direct_optab_table.
6400         (init_optabs): Don't initialize the new "direct optabs" here.
6401         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6402         vcond_gen_code.
6403         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6404         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6405         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6406         (expand_sync_operation): Likewise other sync_*_optabs.
6407         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6408         to sync_compare_and_swap_optab.
6409         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6410         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6411         to the names of both.
6412         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6413         cmpstr_optab and cmpstrn_optab.
6414         (expand_builtin_lock_release): Likewise sync_lock_release.
6415         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6416         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6417         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6418         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6419         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6420         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6421         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6422         (sync_lock_test_and_set, sync_lock_release): Delete.
6423         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6424         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6425         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6426         macro optabs.
6427         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6428         the "optab" local variable.  Use direct_optab_handler for optab and
6429         sync_compare_and_swap_optab.
6430         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6431         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6432         reload_in_optab and reload_out_optab.
6433         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6434         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6435         * config/pa/pa.c (pa_secondary_reload): Likewise.
6436         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6437         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6438         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6439         (VMSupportsCS8_builtin): Likewise.
6440
6441 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6442
6443         * optabs.h (optab_handlers): Change type of insn_code to int.
6444         (optab_handler, set_optab_handler, convert_optab_handler)
6445         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6446         CODE_FOR_nothing".
6447         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6448         (init_insn_codes): Zero both the above arrays.
6449         (init_optabs): Never call init_insn_codes first time around.
6450
6451 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6452
6453         * optabs.h (optab_handler, convert_optab_handler): Turn into
6454         inline functions that return an insn code.
6455         (set_optab_handler, set_convert_optab_handler): New functions.
6456         * builtins.c: Replace optab_handler(X)->insn_code with
6457         optab_handler or set_optab_handler thoughout.  Likewise
6458         convert_optab_handler(X)->insn_code with convert_optab_handler
6459         and set_convert_optab_handler.
6460         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6461         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6462         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6463         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6464         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6465         config/spu/spu.c: Likewise.
6466
6467 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6468
6469         PR target/44531
6470         * config.gcc (sh*-*-*): Use regular expressions instead of
6471         the 'i' modifier for sed substitutions.
6472
6473 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6474
6475         * gimple.c (gimple_body): Comments added.
6476
6477 2010-07-04  Richard Guenther  <rguenther@suse.de>
6478
6479         PR middle-end/44809
6480         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6481         of an INDIRECT_REF.
6482
6483 2010-07-04  Richard Guenther  <rguenther@suse.de>
6484
6485         PR tree-optimization/44479
6486         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6487         extra SSA name copy statements which preserves points-to
6488         information.
6489         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6490         Copy points-to information for all pointers.  Properly handle
6491         MEM_REFs.
6492         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6493         copy statements.
6494         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6495         dependency.
6496
6497 2010-07-04  Richard Guenther  <rguenther@suse.de>
6498
6499         PR middle-end/44785
6500         * tree-inline.c (initialize_inlined_parameters): Do not
6501         re-use pointer-map slot over remap_type call.
6502
6503 2010-07-04  Richard Guenther  <rguenther@suse.de>
6504
6505         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6506
6507 2010-07-04  Richard Guenther  <rguenther@suse.de>
6508
6509         PR tree-optimization/44656
6510         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6511         again after value-replacing in the defintions lhs.
6512
6513 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6514             Revital Eres  <eres@il.ibm.com>
6515
6516         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6517         Document new arguments.
6518         * doc/tm.texi: Regenerate.
6519         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6520         Handle unaligned store.
6521         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6522         * target.def (builtin_vectorization_cost): Add new arguments.
6523         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6524         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6525         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6526         (vect_vfa_segment_size): Fix indentation.
6527         * tree-vectorizer.h (struct _vect_peel_info): New.
6528         (struct _vect_peel_extended_info): New.
6529         (struct _loop_vec_info): Add new field for peeling hash table and a
6530         macro for its access.
6531         (VECT_MAX_COST): Define.
6532         (vect_get_load_cost): Declare.
6533         (vect_get_store_cost, vect_get_known_peeling_cost,
6534         vect_get_single_scalar_iteraion_cost): Likewise.
6535         (vect_supportable_dr_alignment): Add new argument.
6536         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6537         field.
6538         (destroy_loop_vec_info): Free peeling hash table.
6539         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6540         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6541         vect_analyze_slp. Fix indentation.
6542         (vect_get_single_scalar_iteraion_cost): New function.
6543         (vect_get_known_peeling_cost): Likewise.
6544         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6545         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6546         statement. Move outside cost calculation inside unknown peeling case.
6547         Call vect_get_known_peeling_cost for known amount of peeling.
6548         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6549         reference to the print message of forced alignment.
6550         (vect_verify_datarefs_alignment): Update call to
6551         vect_supportable_dr_alignment.
6552         (vect_get_data_access_cost): New function.
6553         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6554         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6555         vect_peeling_hash_choose_best_peeling): Likewise.
6556         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6557         to store all the accesses in the loop and find best possible access to
6558         align using peeling for known alignment case. For unknown alignment
6559         check if stores are preferred or if peeling is worthy.
6560         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6561         (vect_supportable_dr_alignment): Add new argument and check aligned
6562         accesses according to it.
6563         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6564         (cost_for_stmt): Call vect_get_stmt_cost.
6565         (vect_model_simple_cost): Likewise.
6566         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6567         vect_get_store_cost to calculate the cost of the statement.
6568         (vect_get_store_cost): New function.
6569         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6570         vect_get_load_cost to calculate the cost of the statement.
6571         (vect_get_load_cost): New function.
6572         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6573         (vectorizable_load): Likewise.
6574         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6575         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6576         arguments. Handle unaligned store.
6577         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6578         (rs6000_builtin_support_vector_misalignment): Return true for word and
6579         double word alignments for VSX.
6580         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6581         vect_supportable_dr_alignment and builtin_vectorization_cost.
6582
6583 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6584
6585         PR target/44597
6586         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6587         (prefetch_nocc_operand): Likewise.
6588         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6589         (prefetch_20): New insn.
6590         (prefetch_cc): Remove.
6591         (prefetch_nocc): Likewise.
6592
6593 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6594
6595         * expr.c (vector_mode_valid_p): Move to c-common.c.
6596         * expr.h (vector_mode_valid_p): Do not declare here.
6597         * system.h: Poison GCC_EXPR_H in front-ends.
6598         * Makefile.in: Update dependencies.
6599
6600 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6601
6602         PR target/44705
6603         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6604
6605 2010-07-03  Jan Hubicka  <jh@suse.cz>
6606
6607         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6608         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6609         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6610         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6611         Likewise.
6612
6613         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6614         Update timevars.V
6615         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6616         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6617         TV_IPA_LTO_DECL_OUT): New.
6618         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6619
6620 2010-07-03  Jan Hubicka  <jh@suse.cz>
6621
6622         * ipa-inline.c (update_edge_key): Break out from ...
6623         update_callers_keys): ... here;
6624         (update_callee_keys): Update only the edges from caller to callee.
6625         (update_all_calle_keys): Do what update_calle_keys did.
6626         (decide_inlining_of_small_functions): Avoid recomputing of all
6627         callees when badness increase.
6628
6629 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6630
6631         * config/arm/arm.c (arm_attr_length_move_neon): New.
6632         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6633         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6634         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6635         to compute length attribute.
6636
6637 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6638
6639         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6640         as predicate for operand 1 and remove its constraint.
6641         * config/arm/predicates.md (vfp_register_operand): New.
6642         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6643         (*push_fp_multi): Likewise.
6644
6645 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6646
6647         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6648
6649 2010-07-03  Jan Hubicka  <jh@suse.cz>
6650
6651         * config/i386/i386.c (override_options): Revert accidental commit.
6652
6653 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6654
6655         PR c++/44128
6656         * doc/invoke.texi: Update documentation of -Wshadow.
6657
6658 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6659             Julian Brown  <julian@codesourcery.com>
6660             Sandra Loosemore <sandra@codesourcery.com>
6661
6662         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6663         comparisons.  Adjust to take both operands.
6664         (arm_select_cc_mode): Handle DImode comparisons.
6665         (arm_gen_compare_reg): Generate a scratch register for DImode
6666         comparisons which require one.  Use xor for Thumb equality checks.
6667         (arm_const_double_by_immediates): New.
6668         (arm_print_operand): Allow 'Q' and 'R' for constants.
6669         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6670         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6671         arm_canonicalize_comparison.
6672         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6673         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6674         prototype.
6675         (arm_const_double_by_immediates): Declare.
6676         * config/arm/constraints.md (Di): New constraint.
6677         * config/arm/predicates.md (arm_immediate_di_operand)
6678         (arm_di_operand, cmpdi_operand): New.
6679         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6680         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6681         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6682         (cstoredi4): Handle non-Cirrus also.
6683
6684 2010-07-02  Julian Brown  <julian@codesourcery.com>
6685             Sandra Loosemore <sandra@codesourcery.com>
6686
6687         PR target/43703
6688         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6689         (smax<mode>3): Disable for NEON float modes when
6690         flag_unsafe_math_optimizations is false.
6691         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6692         (*mul<mode>3_neon)
6693         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6694         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6695         for NEON float modes when flag_unsafe_math_optimizations is false.
6696         (quad_halves_<code>v4sf): Only enable if
6697         flag_unsafe_math_optimizations is true.
6698         * doc/invoke.texi (ARM Options): Add note about floating point
6699         vectorization requiring -funsafe-math-optimizations.
6700
6701 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6702             Julian Brown  <julian@codesourcery.com>
6703
6704         * config/arm/neon.md (UNSPEC_VABA): Delete.
6705         (UNSPEC_VABAL): Delete.
6706         (UNSPEC_VABS): Delete.
6707         (UNSPEC_VMUL_N): Delete.
6708         (adddi3_neon): New.
6709         (subdi3_neon): New.
6710         (mul<mode>3add<mode>_neon): Make the pattern named.
6711         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6712         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6713         unspec parts...
6714         (neon_vadd<mode>_unspec): ...to this.
6715         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6716         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6717         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6718         (neon_vaba<mode>): Rewrite in terms of vabd.
6719         (neon_vabal<mode>): Rewrite in terms of vabdl.
6720         (neon_vabs<mode>): Rewrite without unspec.
6721         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6722         (*arm_subdi3): Likewise.
6723         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6724         No_op attribute to disable assembly output checks.
6725         * config/arm/arm_neon.h: Regenerated.
6726         * doc/arm-neon-intrinsics.texi: Regenerated.
6727
6728 2010-07-02  Jan Hubicka  <jh@suse.cz>
6729
6730         * ipa-split.c (split_function): For aggregate values, set the return
6731         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6732         *<retval> = fncall.part ().
6733         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6734
6735 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6736
6737         * config/arm/neon.md (UNSPEC_VAND): Delete.
6738         (UNSPEC_VBIC): Delete.
6739         (UNSPEC_VCLZ): Delete.
6740         (UNSPEC_VCNT): Delete.
6741         (UNSPEC_VEOR): Delete.
6742         (UNSPEC_VORN): Delete.
6743         (UNSPEC_VORR): Delete.
6744         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6745         core registers too.
6746         (anddi3_neon): Likewise.
6747         (orndi3_neon): Likewise.
6748         (bicdi3_neon): Likewise.
6749         (xordi3_neon): Likewise.
6750         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6751         rid of unspec and handle unused operand.
6752         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6753         * config/arm/predicates.md (imm_for_neon_logic_operand):
6754         Require TARGET_NEON.
6755         (imm_for_neon_inv_logic_operand): Likewise.
6756         * config/arm/arm.md (define_split for logical_binary_operator):
6757         Disable for NEON registers.
6758         (anddi3): Add new define_expand, and rename the insn.  Disable
6759         this insn for NEON, where anddi3_neon now applies.
6760         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6761         (iordi3): As for anddi3.
6762         (xordi3): Likewise.
6763         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6764         as No_op to disable testing for exact instruction match.
6765         (Vorr): Likewise.
6766         (Veor): Likewise.
6767         (Vbic): Likewise.
6768         (Vorn): Likewise.
6769         * config/arm/arm_neon.h: Regenerated.
6770         * doc/arm-neon-intrinsics.texi: Regenerated.
6771
6772 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6773
6774         * expr.h (emit_stack_probe): Declare.
6775         * explow.c (emit_stack_probe): Make global.
6776         (anti_adjust_stack_and_probe): Fix comments.
6777         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6778         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6779         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6780         * config/sparc/sparc.c: Include except.h.
6781         (sparc_emit_probe_stack_range): New function.
6782         (output_probe_stack_range): Likewise.
6783         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6784         built-in stack checking is enabled.
6785         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6786         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6787         (probe_stack_range): New insn.
6788
6789 2010-07-02  Richard Guenther  <rguenther@suse.de>
6790
6791         PR target/43958
6792         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6793         for argument alignment.
6794
6795 2010-07-02  Jan Hubicka  <jh@suse.cz>
6796
6797         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6798         walk backwards from entry_bb to check only those basic block of header
6799         that might lead to execution of split part.
6800         (consider_split) ... here.
6801         (find_return_bb): Allow assignment in return BB.
6802         (find_retval): New.
6803         (split_function): Fix name of cloned function; take care of updating
6804         return value in return_bb containing move.
6805
6806 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6807
6808         PR target/44771
6809         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6810         used variable insn.
6811
6812 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6813
6814         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6815         (is_set_with_extension_DI): Delete.
6816         (struct zero_extend_info): New structure.
6817         (add_removable_zero_extend): New function.
6818         (find_removable_zero_extends): Use note_stores to find SETs.
6819         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6820
6821 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6822
6823         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6824         is_miss_rate_acceptable. Pull total_positions computation
6825         out of the loops.  Early return if miss_positions exceeds
6826         the acceptable threshold.
6827         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6828         is_miss_rate_acceptable after renaming of compute_miss_rate.
6829
6830 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6831
6832         PR middle-end/44576
6833         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6834         of 1000) for miss rate if the address diference is greater than or
6835         equal to the cache line size (the two reference will never hit the
6836         same cache line).
6837
6838 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6839
6840         PR target/42835
6841         * config/arm/arm-modes.def (CC_NOTB): New mode.
6842         * config/arm/arm.c (get_arm_condition_code): Handle it.
6843         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6844         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6845         (compare_scc): Now a define_and_split.  Add a number of extra
6846         splitters before it.
6847
6848         PR target/42172
6849         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6850         and ZERO_EXTEND.
6851         (arm_rtx_costs_1): Likewise.
6852         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6853         * config/arm/arm.md (is_arch6): New attribute.
6854         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6855         extendqisi2): Tighten the code somewhat, avoiding invalid
6856         RTL to occur in the expander patterns.
6857         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6858         (thumb1_zero_extendhisi2_v6): Delete.
6859         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6860         (thumb1_extendhisi2_v6): Delete.
6861         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6862         (thumb1_extendqisi2_v6): Delete.
6863         (zero_extendhisi2 for register input splitter): New.
6864         (zero_extendqisi2 for register input splitter): New.
6865         (thumb1_extendhisi2 for register input splitter): New.
6866         (extendhisi2 for register input splitter): New.
6867         (extendqisi2 for register input splitter): New.
6868         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6869         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6870         and add support for a register alternative requiring a split.
6871         (thumb1_zero_extendqisi2): Likewise.
6872         (arm_zero_extendqisi2): Likewise.
6873         (arm_extendhisi2): Likewise.
6874         (arm_extendqisi2): Likewise.
6875
6876 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6877
6878         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6879         instead of an unspec.
6880         (neon_expand_vector_init): Likewise.
6881         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6882         (UNSPEC_VDUP_LANE): Delete.
6883         (UNSPEC VDUP_N): Delete.
6884         (UNSPEC_VGET_HIGH): Delete.
6885         (UNSPEC_VGET_LANE): Delete.
6886         (UNSPEC_VGET_LOW): Delete.
6887         (UNSPEC_VMVN): Delete.
6888         (UNSPEC_VSET_LANE): Delete.
6889         (V_double_vector_mode): New.
6890         (vec_set<mode>_internal): Make code emitted match that for the
6891         corresponding intrinsics.
6892         (vec_setv2di_internal): Likewise.
6893         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6894         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6895         (neon_vset_lane<mode>): Combine double and quad patterns and
6896         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6897         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6898         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6899         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6900         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6901         with neon_vdup_lanev2di, adjusting the pattern from the latter
6902         to be predicable for consistency.
6903         (neon_vdup_lane<mode>_internal): New.
6904         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6905         to avoid using an unspec.
6906         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6907         (neon_vdup_lanev2di): Turn into a define_expand.
6908         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6909         (neon_vget_high<mode>): Replace with....
6910         (neon_vget_highv16qi): New pattern using canonical RTL.
6911         (neon_vget_highv8hi): Likewise.
6912         (neon_vget_highv4si): Likewise.
6913         (neon_vget_highv4sf): Likewise.
6914         (neon_vget_highv2di): Likewise.
6915         (neon_vget_low<mode>): Replace with....
6916         (neon_vget_lowv16qi): New pattern using canonical RTL.
6917         (neon_vget_lowv8hi): Likewise.
6918         (neon_vget_lowv4si): Likewise.
6919         (neon_vget_lowv4sf): Likewise.
6920         (neon_vget_lowv2di): Likewise.
6921
6922         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6923         test for this emitting vmov.
6924         (Vset_lane): Likewise.
6925         (Vdup_n): Likewise.
6926         (Vmov_n): Likewise.
6927
6928         * doc/arm-neon-intrinsics.texi: Regenerated.
6929
6930 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6931
6932         * config/arm/neon.md (vec_extractv2di): Correct error in register
6933         numbering to reconcile with neon_vget_lanev2di.
6934
6935 2010-07-02  Richard Guenther  <rguenther@suse.de>
6936
6937         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6938         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6939         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6940         points-to information.
6941
6942 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6943
6944         * config/s390/s390.c (override_options): Adopt prefetching
6945         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6946
6947 2010-07-02  Jan Hubicka  <jh@suse.cz>
6948
6949         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6950         (df_set_note): Just call add_reg_note.
6951         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6952         df_create_unused_note): Do not deal with lists of old notes.
6953         (df_note_bb_compute): Likewise.
6954
6955 2010-07-02  Richard Guenther  <rguenther@suse.de>
6956
6957         * tree-ssa-structalias.c (find_func_aliases): Handle
6958         pointer alignment via BIT_AND_EXPR.
6959         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6960
6961 2010-07-02  Richard Guenther  <rguenther@suse.de>
6962
6963         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6964         mismatching number of dimensions properly.
6965
6966 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6967
6968         PR target/44707
6969         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6970         (lo_sum (high ...) ...) patterns generated by earlier passes.
6971
6972 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6973
6974         * doc/install.texi (Prerequisites): Document Perl requirement on
6975         Solaris 2.
6976         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6977
6978 2010-07-02  Richard Guenther  <rguenther@suse.de>
6979
6980         PR middle-end/44777
6981         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6982
6983 2010-07-02  Jan Hubicka  <jh@suse.cz>
6984
6985         PR middle-end/44706
6986         * predict.c (predict_paths_for_bb): Handle case when control dependence
6987         BB has only abnormal edges.
6988
6989 2010-07-02  Richard Guenther  <rguenther@suse.de>
6990
6991         PR tree-optimization/44748
6992         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6993         the embedded conversion in MEM_REFs.
6994
6995 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6996
6997         * reload.c: Include toplev.h.
6998         * recog.c:  Likewise.
6999         * Makefile.in: Adjust dependencies.
7000
7001 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
7002
7003         PR debug/44694
7004         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
7005         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
7006
7007 2010-07-01  Richard Guenther  <rguenther@suse.de>
7008
7009         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
7010         types for offsets.
7011
7012 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7013
7014         PR target/44732
7015         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
7016         Fix argument types.
7017
7018 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
7019
7020         PR target/44727
7021         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7022         Make sure operand 0 dies.
7023
7024 2010-07-01  Richard Guenther  <rguenther@suse.de>
7025
7026         PR middle-end/42834
7027         PR middle-end/44468
7028         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
7029         * doc/generic.texi (References to storage): Document MEM_REF.
7030         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
7031         (print_call_name): Likewise.
7032         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
7033         (build_simple_mem_ref_loc): New function.
7034         (mem_ref_offset): Likewise.
7035         * tree.h (build_simple_mem_ref_loc): Declare.
7036         (build_simple_mem_ref): Define.
7037         (mem_ref_offset): Declare.
7038         * fold-const.c: Include tree-flow.h.
7039         (operand_equal_p): Handle MEM_REF.
7040         (build_fold_addr_expr_with_type_loc): Likewise.
7041         (fold_comparison): Likewise.
7042         (fold_unary_loc): Fold
7043         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
7044         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
7045         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
7046         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
7047         (ptr_deref_may_alias_ref_p_1): Likewise.
7048         (ao_ref_base_alias_set): Properly differentiate base object for
7049         offset and TBAA.
7050         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
7051         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
7052         (indirect_refs_may_alias_p): Likewise.
7053         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
7054         chasing code.
7055         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
7056         (call_may_clobber_ref_p_1): Likewise.
7057         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
7058         * expr.c (expand_assignment): Handle MEM_REF.
7059         (store_expr): Handle MEM_REFs from STRING_CSTs.
7060         (store_field): If expanding a MEM_REF of a non-addressable
7061         decl use bitfield operations.
7062         (get_inner_reference): Handle MEM_REF.
7063         (expand_expr_addr_expr_1): Likewise.
7064         (expand_expr_real_1): Likewise.
7065         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
7066         * alias.c (ao_ref_from_mem): Handle MEM_REF.
7067         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
7068         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
7069         (dr_analyze_indices): Likewise.
7070         (dr_analyze_alias): Likewise.
7071         (object_address_invariant_in_loop_p): Likewise.
7072         * gimplify.c (mark_addressable): Handle MEM_REF.
7073         (gimplify_cond_expr): Build MEM_REFs.
7074         (gimplify_modify_expr_to_memcpy): Likewise.
7075         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
7076         (gimple_fold_indirect_ref): Adjust.
7077         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
7078         * tree.def (MEM_REF): New tree code.
7079         * tree-dfa.c: Include toplev.h.
7080         (get_ref_base_and_extent): Handle MEM_REF.
7081         (get_addr_base_and_unit_offset): New function.
7082         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
7083         * gimple-fold.c (may_propagate_address_into_dereference): Handle
7084         MEM_REF.
7085         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
7086         accesses if the array has just one dimension.  Remove always true
7087         parameter.  Do not require type compatibility here.
7088         (maybe_fold_offset_to_component_ref): Remove.
7089         (maybe_fold_stmt_indirect): Remove.
7090         (maybe_fold_reference): Remove INDIRECT_REF handling.
7091         Fold back to non-MEM_REF.
7092         (maybe_fold_offset_to_address): Simplify.  Deal with type
7093         mismatches here.
7094         (maybe_fold_reference): Likewise.
7095         (maybe_fold_stmt_addition): Likewise.  Also handle
7096         &ARRAY + I in addition to &ARRAY[0] + I.
7097         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
7098         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
7099         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
7100         * tree-ssa.c (useless_type_conversion_p): Make most pointer
7101         conversions useless.
7102         (warn_uninitialized_var): Handle MEM_REF.
7103         (maybe_rewrite_mem_ref_base): New function.
7104         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
7105         to SSA form.
7106         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
7107         INDIRECT_REF handling.
7108         (copy_tree_body_r): Handle MEM_REF.
7109         * gimple.c (is_gimple_addressable): Adjust.
7110         (is_gimple_address): Likewise.
7111         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
7112         invariant base are invariant.
7113         (is_gimple_min_lval): Adjust.
7114         (is_gimple_mem_ref_addr): New function.
7115         (get_base_address): Handle MEM_REF.
7116         (count_ptr_derefs): Likewise.
7117         (get_base_loadstore): Likewise.
7118         * gimple.h (is_gimple_mem_ref_addr): Declare.
7119         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
7120         * tree-cfg.c (verify_address): New function, split out from ...
7121         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
7122         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
7123         INDIRECT_REFs.
7124         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
7125         INDIRECT_REF.  Allow conversions.
7126         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
7127         a register does not change its size.
7128         (verify_types_in_gimple_reference): Verify MEM_REF.
7129         (verify_gimple_assign_single): Disallow INDIRECT_REF.
7130         Handle MEM_REF.
7131         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
7132         New.
7133         (mark_address_taken): Handle MEM_REF.
7134         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
7135         (get_asm_expr_operands): Pass opf_not_non_addressable.
7136         (get_expr_operands): Handle opf_[not_]non_addressable.
7137         Handle MEM_REF.  Remove INDIRECT_REF handling.
7138         * tree-vrp.c (check_array_ref): Handle MEM_REF.
7139         (search_for_addr_array): Likewise.
7140         (check_array_bounds): Likewise.
7141         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
7142         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
7143         (ref_always_accessed_p): Likewise.
7144         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
7145         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
7146         Handle MEM_REF.
7147         * cgraphbuild.c (mark_load): Properly check for NULL result
7148         from get_base_address.
7149         (mark_store): Likewise.
7150         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
7151         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
7152         handling for MEM_REF.
7153         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
7154         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
7155         * builtins.c (stabilize_va_list_loc): Use the function ABI
7156         valist type if we couldn't canonicalize the argument type.
7157         Always dereference with the canonical va-list type.
7158         (maybe_emit_free_warning): Handle MEM_REF.
7159         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
7160         memmove to memcpy.
7161         * builtins.c (fold_builtin_memory_op): Use ref-all types
7162         for all memcpy foldings.
7163         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
7164         (build_outer_var_ref): Likewise.
7165         (scan_omp_1_op): Likewise.
7166         (lower_rec_input_clauses): Likewise.
7167         (lower_lastprivate_clauses): Likewise.
7168         (lower_reduction_clauses): Likewise.
7169         (lower_copyprivate_clauses): Likewise.
7170         (expand_omp_atomic_pipeline): Likewise.
7171         (expand_omp_atomic_mutex): Likewise.
7172         (create_task_copyfn): Likewise.
7173         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7174         Remove old union trick.  Initialize constant offsets.
7175         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
7176         INDIRECT_REF.  Init base_alias_set properly.
7177         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7178         (vn_reference_fold_indirect): Adjust for MEM_REFs.
7179         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
7180         for ARRAY_REFs.
7181         (may_insert): Remove.
7182         (visit_reference_op_load): Do not test may_insert.
7183         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7184         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7185         a field to store the constant offset this op applies.
7186         (run_scc_vn): Adjust prototype.
7187         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7188         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7189         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
7190         bother about volatile qualifiers on pointers.
7191         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7192         * tree-ssa-loop-ivopts.c
7193         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7194         (strip_offset_1): Likewise.
7195         (find_interesting_uses_address): Replace INDIRECT_REF handling with
7196         MEM_REF handling.
7197         (get_computation_cost_at): Likewise.
7198         * ipa-pure-const.c (check_op): Handle MEM_REF.
7199         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7200         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7201         and constants.
7202         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7203         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7204         (eliminate_local_variables_1): Likewise.
7205         (create_call_for_reduction_1): Likewise.
7206         (create_loads_for_reductions): Likewise.
7207         (create_loads_and_stores_for_name): Likewise.
7208         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7209         (ssa_accessed_in_tree): Handle MEM_REF.
7210         (ssa_accessed_in_assign_rhs): Likewise.
7211         (update_type_size): Likewise.
7212         (analyze_accesses_for_call_stmt): Likewise.
7213         (analyze_accesses_for_assign_stmt): Likewise.
7214         (transform_access_sites): Likewise.
7215         (transform_allocation_sites): Likewise.
7216         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7217         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7218         not handle INDIRECT_REF.
7219         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7220         (cond_store_replacement): Likewise.
7221         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7222         MEM_REF, no not handle INDIRECT_REFs.
7223         (insert_into_preds_of_block): Properly initialize avail.
7224         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
7225         for ARRAY_REFs.  Properly handle reference lookups that
7226         require a bit re-interpretation.
7227         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
7228         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7229         (build_ref_for_offset_1): Remove.
7230         (build_ref_for_offset): Build MEM_REFs.
7231         (gate_intra_sra): Disable for now.
7232         (sra_ipa_modify_expr): Handle MEM_REF.
7233         (ipa_early_sra_gate): Disable for now.
7234         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7235         MEM_REF handling.
7236         (disqualify_base_of_expr): Likewise.
7237         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7238         MEM_REF handling.
7239         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7240         Use mem_ref_offset.  Remove bogus folding.
7241         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7242         (make_fancy_name_1): Add support for MEM_REF.
7243         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7244         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7245         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7246         (compute_complex_ancestor_jump_func): Likewise.
7247         (ipa_analyze_virtual_call_uses): Likewise.
7248         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7249         INDIRECT_REF folding with more generalized MEM_REF folding.
7250         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7251         (forward_propagate_addr_into_variable_array_index): Also handle
7252         &ARRAY + I in addition to &ARRAY[0] + I.
7253         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7254         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7255         creates assignments with overlap.
7256         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7257         (get_frame_field): Likewise.
7258         (get_nonlocal_debug_decl): Likewise.
7259         (convert_nonlocal_reference_op): Likewise.
7260         (struct nesting_info): Add mem_refs pointer-set.
7261         (create_nesting_tree): Allocate it.
7262         (convert_local_reference_op): Insert to be folded mem-refs.
7263         (fold_mem_refs): New function.
7264         (finalize_nesting_tree_1): Perform defered folding of mem-refs
7265         (free_nesting_tree): Free the pointer-set.
7266         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7267         (vectorizable_load): Likewise.
7268         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7269         (propagate_with_phi): Likewise.
7270         * tree-object-size.c (addr_object_size): Handle MEM_REFs
7271         instead of INDIRECT_REFs.
7272         (compute_object_offset): Handle MEM_REF.
7273         (plus_stmt_object_size): Handle MEM_REF.
7274         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7275         for &MEM_REF.
7276         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7277         (symbol_marked_for_renaming): Likewise.
7278         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7279         (fold-const.o): Add $(TREE_FLOW_H).
7280         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7281         (find_func_clobbers): Likewise.
7282         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7283         (decompose_access): Likewise.
7284         (replace_field_acc): Likewise.
7285         (replace_field_access_stmt): Likewise.
7286         (insert_new_var_in_stmt): Likewise.
7287         (get_stmt_accesses): Likewise.
7288         (reorg_structs_drive): Disable.
7289         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7290         (ix86_canonical_va_list_type): Likewise.
7291
7292 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7293
7294         PR other/44566
7295         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7296         * target.def (struct gcc_target): Replace enum reg_class with
7297         reg_class_t in hook argument / return types.
7298         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7299         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7300         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7301         * targhooks.h (default_branch_target_register_class): Likewise.
7302         (default_ira_cover_classes, default_secondary_reload): Likewise.
7303         (default_memory_move_cost, default_register_move_cost): Likewise.
7304         * targhooks.c (default_branch_target_register_class): Likewise.
7305         (default_ira_cover_classes, default_secondary_reload): Likewise.
7306         (default_memory_move_cost, default_register_move_cost): Likewise.
7307         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7308         * bt-load.c (branch_target_load_optimize): Likewise.
7309         * ira.c (setup_cover_and_important_classes): Likewise.
7310         * ira-costs.c (copy_cost): Likewise.
7311         * reload1.c (emit_input_reload_insns): Likewise.
7312         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7313         * config/frv/frv.c (frv_secondary_reload): Likewise.
7314         * config/s390/s390.c (s390_secondary_reload): Likewise.
7315         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7316         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7317         (ix86_register_move_cost): Likewise.
7318         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7319         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7320         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7321         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7322         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7323         (rs6000_ira_cover_classes): Likewise.
7324         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7325         * config/picochip/picochip-protos.h (picochip_secondary_reload):
7326         Likewise.
7327         * config/pa/pa.c (pa_secondary_reload): Likewise.
7328         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7329         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7330         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7331         * doc/tm.texi: Regenerate.
7332
7333 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
7334
7335         PR bootstrrap/44726
7336         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7337         use.
7338         (build_alias_set_optimal_p): Likewise.
7339         (build_base_obj_set_for_drs): Likewise.
7340
7341 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7342
7343         * target.def: Remove comment about licensing problems of function
7344         declarations.
7345
7346         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
7347         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7348         * doc/tm.texi: Regenerate.
7349
7350         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
7351         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7352
7353         * target.def (enum_va_list_p): Use DEFHOOK.
7354         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7355         Rename ptype to ptree.
7356         * doc/tm.texi: Regenerate.
7357
7358         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
7359         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7360         * doc/tm.texi: Regenerate.
7361
7362         * target.def (memory_move_cost): Use DEFHOOK.
7363         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7364         Rename regclass AKA class to rclass.
7365         * doc/tm.texi: Regenerate.
7366
7367         * target.def (pragma_parse): Use DEFHOOK.
7368         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7369         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7370         * doc/tm.texi: Regenerate.
7371
7372         * target.def (pass_by_reference): Use DEFHOOK.
7373         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7374         * doc/tm.texi: Regenerate.
7375
7376         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7377         Use DEFHOOK.
7378         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7379         * doc/tm.texi: Regenerate.
7380
7381         * target.def (return_pops_args): Use DEFHOOK.
7382         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7383         Rename stack-size to size.
7384         * doc/tm.texi: Regenerate.
7385
7386         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7387         last-sched_cycle to last_clock, cur_cycle to clock.
7388         * doc/tm.texi.in: Use @hook.
7389         * doc/tm.texi: Regenerate.
7390
7391         * target.def (print_operand, print_operand_address): Update comment.
7392         (print_operand_punct_valid_p): Likewise.
7393
7394 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7395
7396         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7397         to rtl.h.
7398         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7399         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7400         * rtl-error.h: New.
7401         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7402         * rtl-error.c: Likewise.
7403         * reload.c: Likewise.
7404         * recog.c:  Likewise.
7405         * sel-sched.c: Likewise.
7406         * function.c: Likewise.
7407         * reg-stack.c: Likewise.
7408         * cfgrtl.c: Likewise.
7409         * reload1.c: Likewise.
7410         * final.c: Include rtl-error.
7411         * Makefile.in: Adjust dependencies.
7412
7413 2010-06-30  Jan Hubicka  <jh@suse.cz>
7414
7415         PR middle-end/PR44706
7416         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7417         to return the value.
7418
7419 2010-06-30  Michael Matz  <matz@suse.de>
7420
7421         PR bootstrap/44699
7422         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7423         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7424         a gimple reg, attach the original VDEF to the last store in the
7425         sequence.
7426
7427 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7428
7429         PR other/44034
7430         * config/darwin.c (darwin_override_options): Use renamed
7431         targetm.asm_out.emit_unwind_label.
7432
7433 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7434
7435         PR tree-optimization/39799
7436         * tree-inline.c (remap_ssa_name): Initialize variable only if
7437         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7438
7439 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7440
7441         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7442
7443 2010-06-30  Richard Guenther  <rguenther@suse.de>
7444
7445         PR target/44722
7446         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7447         against oscillation with reverse peephole2.
7448
7449 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7450
7451         PR target/44721
7452         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7453         Fix last commit.
7454
7455 2010-06-30  Nick Clifton  <nickc@redhat.com>
7456
7457         * config/rx/rx-modes.def: New file.
7458         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7459         (CC_REGNUM): Define.
7460         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7461         register.
7462         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7463         (SELECT_CC_MODE): Define.
7464         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7465         (reg:CC CC_REG) instead of (cc0).
7466         (attr "cc"): Delete.
7467         (cbranchsi4): Do not split compare and branch here. Instead move
7468         it to...
7469         (cbranchsi4_<code>): ... here.  New patterns.
7470         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7471         to emit the compare instruction.
7472         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7473         cc_status flags.
7474         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7475         FIRST_PSEUDO_REGNUM.
7476         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7477         (rx_notice_update_cc): Delete.
7478         (rx_cc_modes_compatible): New function.
7479         (flags_needed_for_conditional): New function.
7480         (flags_from_mode): New function.
7481         (rx_compare_redundant): New function - scans backwards through
7482         insn list to find out if condition flags are already set correctly.
7483         (TARGET_CC_MODES_COMPATIBLE): Define.
7484         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7485
7486         * config/rx/rx.h (BRANCH_COST): Define.
7487         (REGISTER_MOVE_COST): Define.
7488         * config/rx/predicates (rx_source_operand): Allow all constant types.
7489         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7490         (tstsi4): New pattern.
7491         * config/rx/rx.c (rx_memory_move_cost): Define.
7492         (TARGET_MEMORY_MOVE_COST): Define.
7493
7494 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7495
7496         * tree.h (block_may_fallthru): Declare here.
7497         * tree-flow.h (block_may_fallthru): Do not declare here.
7498         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7499         bitmap.h
7500         * Makefile.in (c-typeck.o): Update dependencies.
7501
7502 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7503
7504         PR debug/44694
7505         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7506         * cselib.c (cfa_base_preserved_regno): New static variable.
7507         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7508         of REGNO (cfa_base_preserved_val->locs->loc).
7509         (cselib_preserve_cfa_base_value): Add regno argument, set
7510         cfa_base_preserved_regno to it.
7511         (cselib_invalidate_regno): Allow removal of registers other than
7512         cfa_base_preserved_regno from cfa_base_preserved_val.
7513         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7514         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7515         of MEM addresses, if not on LHS.
7516         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7517         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7518
7519 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7520
7521         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7522         static variables.
7523         (peep2_buf_position): New static function.
7524         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7525         peephole2_optimize): Use it.
7526         (peep2_attempt, peep2_update_life): New static functions, broken out
7527         of peephole2_optimize.
7528         (peep2_fill_buffer): New static function.
7529         (peephole2_optimize): Change the main loop to try to fill the buffer
7530         with the maximum number of insns before matching them against
7531         peepholes.  Use a forward scan.  Remove special case for targets with
7532         conditional execution.
7533         * genrecog.c (change_state): Delete dead code.
7534         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7535         Rewrite so as not to expect the second insn to have had a peephole
7536         applied yet.
7537
7538 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7539
7540         * genhooks.c (emit_findices): Cast field precision to int.
7541         (emit_documentation): Likewise.
7542
7543 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7544
7545         PR tree-optimization/43801
7546         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7547         if old_decl was DECL_ONE_ONLY.
7548
7549         PR debug/44668
7550         * dwarf2out.c (add_accessibility_attribute): New function.
7551         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7552         instead of adding DW_AT_accessibility manually.
7553         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7554         gen_typedef_die): Use it.
7555
7556 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7557
7558         * vmsdbgout.c (full_name): Just output the file name if not native.
7559
7560 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7561
7562         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7563         (funcnam_table): New static table.
7564         (funcnum_table): New static table.
7565         (write_rtnbeg): Write value saved in funcnum_table.
7566         (write_rtnend): Write value saved in funcnum_table.
7567         (vmsdbgout_begin_function): Save current function info in
7568         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7569         (vmsdbgout_finish): Iterate over funcnum_table.
7570
7571 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7572
7573         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7574         (vmsdbgout_type_decl): Declare
7575         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7576         (FUNC_EPILOGUE_LABEL): New macro
7577         (vmsdbgout_begin_epilogue): New function.
7578         (vmsdbgout_type_decl): New function.
7579
7580 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7581
7582         * vmsdbg.h: Update copyright.
7583
7584 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7585
7586         * vmsdbg.h (DST_K_TBG): New DST constant.
7587         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7588         (write_modbeg): Cast module_language to avoid warning.
7589         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7590
7591 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7592
7593         PR other/44034
7594         * target.def, doc/tm.texi.in, genhooks.c: New files.
7595         * target.h: Instead of defining individual hook members,
7596         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7597         include target.def.
7598         * target-def.h: Instead of defining individual hook initializers,
7599         include target-hooks-def.h.
7600         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7601         targetm.live_on_entry -> targetm.extra_live_on_entry
7602         targetm.sched.md_finish ->targetm.sched.finish
7603         targetm.sched.md_init -> targetm.sched.init
7604         targetm.sched.md_init_global -> targetm.sched.init_global
7605         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7606         targetm.asm_out.except_table_label ->
7607           targetm.asm_out.emit_except_table_label
7608         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7609         targetm.target_help -> targetm.help
7610         targetm.vectorize.builtin_support_vector_misalignment ->
7611           targetm.vectorize.support_vector_misalignment
7612         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7613         targetm.file_start_file_directive ->
7614          targetm.asm_file_start_file_directive
7615         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7616         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7617         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7618         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7619           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7620         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7621           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7622         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7623         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7624         * Makefile.in (TARGET_H): Depend on target.def.
7625         (TARGET_DEF_H): Depend on target-hooks-def.h.
7626         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7627         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7628         * doc/tm.texi: Regenerate.
7629
7630         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7631
7632         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7633         (targetm.sched.init): Likewise.
7634
7635 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7636
7637         PR bootstrap/44713
7638         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7639         (function_arg_advance_32): Const-ify TYPE parameter.
7640         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7641         (ix86_function_arg_advance): Change type of NAMED to bool.
7642         (function_arg_32): Const-ify CUM and TYPE parameters.
7643         (function_arg_64): Likewise.  Change type of NAMED to bool.
7644         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7645         to bool.
7646         (ix86_function_arg): Change type of NAMED to bool.
7647         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7648         last argument as a bool.
7649
7650 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7651
7652         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7653         (OVERRIDE_OPTIONS): Add note of obsolescence.
7654         Replace references with references to TARGET_OPTION_OVERRIDE.
7655         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7656          the macro).
7657         * targhooks.c (default_target_option_override): New function.
7658         * targhooks.h (default_target_option_override): Declare.
7659         * target.h (struct gcc_target): Add override member to
7660         target_option member.
7661         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7662         targetm.target_option.override call.
7663         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7664         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7665
7666 2010-06-29  Jan Hubicka  <jh@suse.cz>
7667
7668         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7669
7670 2010-06-29  Jan Hubicka  <jh@suse.cz>
7671
7672         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7673         unreachable.
7674         (rebuild_frequencies): New function.
7675         * predict.h (rebuild_frequencies): Declare.
7676         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7677         entry block and edge reaching new_entry.
7678         (tree_function_versioning): When doing partial cloning, rebuild
7679         frequencies when done.
7680         * passes.c (execute_function_todo): Use rebild_frequencies.
7681
7682 2010-06-29  Richard Guenther  <rguenther@suse.de>
7683
7684         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7685         * tree-flow.h (enum noalias_state): Remove.
7686         (struct var_ann_d): Remove noalias_state member.
7687
7688 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7689
7690         PR target/43902
7691         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7692         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7693         (maddhidi4): Likewise.
7694
7695         Revert parts of the change for PR25130.
7696         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7697         MEM_ALIAS_SET.
7698
7699 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7700
7701         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7702         targetm.calls.function_incoming_arg, and
7703         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7704         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7705         * target.h (struct gcc_target): Add function_arg_advance,
7706         function_arg, and function_incoming_arg fields.
7707         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7708         (TARGET_FUNCTION_INCOMING_ARG): Define.
7709         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7710         and TARGET_FUNCTION_INCOMING_ARG.
7711         * targhooks.h (default_function_arg_advance): Declare.
7712         (default_function_arg, default_function_incoming_arg): Declare.
7713         * targhooks.c (default_function_arg_advance): New function.
7714         (default_function_arg, default_function_incoming_arg): New function.
7715         * config/i386/i386.c (function_arg_advance): Rename to...
7716         (ix86_function_arg_advance): ...this.  Make static.
7717         (function_arg): Rename to...
7718         (ix86_function_arg): ...this.  Make static.
7719         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7720         (TARGET_FUNCTION_ARG): Define.
7721         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7722         (FUNCTION_ARG): Delete.
7723         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7724         (function_arg): Delete prototype.
7725
7726 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7727
7728         * reginfo.c (init_reg_sets_1): Adjust comments.
7729         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7730         * calls.c (prepare_call_address): Likewise.
7731         (emit_call_1): Use targetm.calls.return_pops_args.
7732         (expand_call): Likewise.
7733         * function.c (assign_parms): Likewise.
7734         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7735         * target.h (struct gcc_target) [struct calls]: Add
7736         return_pops_args field.
7737         * targhooks.h (default_return_pops_args): Declare.
7738         * targhooks.c (default_return_pops_args): Define.
7739         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7740         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7741         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7742         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7743         documentation.
7744         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7745         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7746         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7747         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7748         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7749         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7750         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7751         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7752         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7753         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7754         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7755         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7756         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7757         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7758         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7759         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7760         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7761         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7762         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7763         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7764         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7765         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7766         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7767         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7768         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7769         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7770         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7771         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7772         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7773         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7774         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7775         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7776         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7777         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7778         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7779         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7780         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7781         * config/i386/i386.c (ix86_return_pops_args): Make static.
7782         Constify arguments.
7783         (TARGET_RETURN_POPS_ARGS): Define.
7784         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7785         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7786         (TARGET_RETURN_POPS_ARGS): Define.
7787         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7788         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7789         (TARGET_RETURN_POPS_ARGS): Define.
7790
7791 2010-06-29  Richard Guenther  <rguenther@suse.de>
7792
7793         PR middle-end/44667
7794         * tree-inline.c (initialize_inlined_parameters): Make sure
7795         to remap the inlined parameter variable substitutions types.
7796
7797 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7798
7799         PR rtl-optimization/44659
7800         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7801         result of force_to_mode if it partially re-expanded the compound.
7802
7803 2010-06-28  Jan Hubicka  <jh@suse.cz>
7804
7805         PR middle-end/44671
7806         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7807         RESULT_DECL.
7808
7809 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7810
7811         * double-int.h (force_fit_type_double): Remove declaration.
7812         * double-int.c (force_fit_type_double): Move to tree.c.
7813         * tree.h (force_fit_type_double): Declare.
7814         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7815         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7816         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7817         * convert.c (convert_to_pointer): Adjust call to
7818         force_fit_type_double.
7819         * tree-vrp.c (extract_range_from_assert,
7820         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7821         * fold-const.c: Update comment.
7822         (int_const_binop, fold_convert_const_int_from_int,
7823         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7824         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7825         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7826         round_up_loc): Adjust call to force_fit_type_double.
7827
7828 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7829
7830         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7831
7832 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7833
7834         * tree-sra.c (convert_callers): New parameter, change fndecls of
7835         recursive calls.
7836         (modify_function): Pass the old decl to convert_callers.
7837
7838 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7839
7840         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7841         ipa_check_create_node_params and ipa_initialize_node_params with
7842         checking asserts they are not necessary.
7843
7844 2010-06-28  Jan Hubicka  <jh@suse.cz>
7845
7846         PR tree-optimization/44687
7847         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7848
7849 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7850
7851         PR c++/44535
7852         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7853         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7854         instead of BINFO_BASE_BINFO.
7855
7856 2010-06-28  Michael Matz  <matz@suse.de>
7857
7858         PR middle-end/44592
7859         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7860         proper VDEF chain for intermediate stores in the sequence.
7861
7862 2010-06-28  Jan Hubicka  <jh@suse.cz>
7863
7864         PR tree-optimization/44357
7865         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7866         uninlinable functions.
7867
7868 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7869
7870         * config.gcc (powerpc*-*-*): Handle titan.
7871         * config/rs6000/rs6000.c (titan_cost): New costs.
7872         (rs6000_override_options): Add "titan" to processor_target_table.
7873         Add Titan to branch alignment logic.
7874         Correctly set rs6000_cost for titan.
7875         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7876         * config/rs6000/titan.md: New file.
7877         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7878
7879 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7880
7881         * tree-browser.c (TB_history_stack): Convert to a VEC.
7882         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7883         (TB_history_prev): Likewise.
7884
7885 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7886
7887         * vec.h (vec_heap_free): Add parentheses around free.
7888
7889 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7890
7891         * system.h: Poison GCC_EXCEPT_H for front-end files.
7892
7893         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7894         langhook.
7895         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7896         Define to NULL by default.
7897         * except.h: Define GCC_EXCEPT_H.
7898         (doing_eh): Remove prototype.
7899         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7900         (lang_protect_cleanup_actions): Remove.
7901         * except.c (lang_protect_cleanup_actions): Remove.
7902         (doing_eh): Remove.
7903         (gen_eh_region): Don't check doing_eh here.
7904         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7905         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7906         instead of lang_protect_cleanup_actions.
7907         * omp-low.c (maybe_catch_exception): Likewise.
7908         * Makefile.in: Update dependencies.
7909
7910 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7911
7912         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7913         (struct cgraph_local_info): new used_from_object_file flag.
7914         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7915         (cgraph_clone_node): initialize used_from_object_file.
7916         (cgraph_create_virtual_clone): initialize used_from_object_file.
7917         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7918         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7919         when compiling with -fwhole-program.
7920         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7921         internal resolver.
7922         * ipa.c (function_and_variable_visibility): Set externally_visible
7923         flag of varpool_node if used_from_object_file flag is set.
7924         (cgraph_externally_visible_p): check used_from_object_file flag.
7925         * doc/invoke.texi (-fwhole-program option): Change description of
7926         externally_visible attribute accordingly.
7927         * doc/extend.texi (externally_visible): Ditto.
7928
7929 2010-06-27  Jan Hubicka  <jh@suse.cz>
7930
7931         * params.def (max-inline-insns-auto): Default to 40.
7932         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7933
7934 2010-06-27  Jan Hubicka  <jh@suse.cz>
7935
7936         PR middle-end/44671
7937         PR middle-end/44686
7938         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7939         signature change.
7940         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7941         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7942
7943 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7944
7945         * target.h (struct gcc_target): Add register_move_cost field.
7946         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7947         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7948         * targhooks.c (default_register_move_cost): New function.
7949         * targhooks.h (default_register_move_cost): Declare function.
7950         * defaults.h (REGISTER_MOVE_COST): Delete.
7951         * ira-int.h (ira_register_move_cost): Update comment.
7952         * ira.c (ira_register_move_cost): Update comment.
7953         * reload.h (register_move_cost): Declare.
7954         * reginfo.c (register_move_cost): New function.
7955         (move_cost): Update comment.
7956         (init_move_cost, memory_move_secondary_cost): Replace
7957         REGISTER_MOVE_COST with register_move_cost.
7958         * postreload.c (reload_cse_simplify_set): (Ditto.).
7959         * reload.c (find_valid_class, find_reloads): (Ditto.).
7960         * reload1.c (choose_reload_regs): (Ditto.).
7961         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7962         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7963         * doc/md.texi (can_create_pseudo_p): Update documentation.
7964
7965         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7966         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7967         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7968         (TARGET_MEMORY_MOVE_COST): Define.
7969
7970         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7971         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7972         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7973         (TARGET_MEMORY_MOVE_COST): Define.
7974
7975 2010-06-27  Richard Guenther  <rguenther@suse.de>
7976
7977         PR tree-optimization/44683
7978         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7979         false edge from the inverted condition.
7980
7981 2010-06-27  Richard Guenther  <rguenther@suse.de>
7982
7983         PR middle-end/44684
7984         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7985         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7986         for register LHS.  Or non-store assignments.
7987
7988 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7989
7990         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7991         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7992         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7993         (sparc_emit_set_const64): Likewise.
7994
7995 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7996
7997         * config/mips/mips.md (alu_type): New attribute.
7998         (type): Infer type from alu_type.
7999         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
8000         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
8001         *subsi3_extended, negsi2, negdi2, *low<mode>,
8002         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
8003         xor<mode>3, *nor<mode>3,
8004         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
8005         *zero_extendhi_truncqi):  Set alu_type instead of type.
8006
8007 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
8008
8009         * config/alpha/alpha.c (alpha_need_linkage): Adjust
8010         splay_tree_new_ggc call.
8011         (alpha_use_linkage): Likewise.
8012
8013 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8014
8015         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
8016         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
8017         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
8018         (static_specs): Remove switches_need_spaces.
8019         (process_command, do_self_spec): Hardcode handling "-o" instead of
8020         checking switches_need_spaces.
8021         * system.h (SWITCHES_NEED_SPACES): Poison.
8022
8023 2010-06-26  Richard Guenther  <rguenther@suse.de>
8024
8025         PR tree-optimization/44393
8026         * tree-loop-distribution.c (generate_loops_for_partition): Fix
8027         stmt removal and VOP renaming.
8028         (generate_memset_zero): Remove redundant stmt updating.
8029         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
8030         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
8031
8032 2010-06-26  Jan Hubicka  <jh@suse.cz>
8033
8034         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
8035         edges comming from header are equivalent.
8036         (visit_bb): Handle PHIs correctly.
8037         * tree-inline.c (copy_phis_for_bb): Be able to copy
8038         PHI from entry edge.
8039         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
8040
8041 2010-06-26  Richard Guenther  <rguenther@suse.de>
8042
8043         PR middle-end/44674
8044         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
8045         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
8046
8047 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8048
8049         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
8050         add_infile, alloc_switch): New.
8051         (process_command): Remove variable lang_n_infiles.  Process
8052         options in a single pass.  Use new functions for allocating
8053         infiles and switches arrays.  Properly skip operands of
8054         -Xpreprocessor and -Xassembler.
8055
8056 2010-06-26  Jan Hubicka  <jh@suse.cz>
8057
8058         PR middle-end/44671
8059         * cgraphunit.c (cgraph_function_versioning): Remove wrong
8060         cgraph_make_decl_local call; fix typo copying RTL data.
8061
8062 2010-06-25  DJ Delorie  <dj@redhat.com>
8063
8064         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
8065         (m32c_output_aligned_common): Likewise.
8066         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8067         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8068         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
8069         (m32c_register_pragmas): Register it.
8070         * config/m32c/m32c.c (m32c_get_pragma_address): New.
8071         (m32c_insert_attributes): Set #pragma address decls volatile.
8072         (pragma_entry_eq): New.
8073         (pragma_entry_hash): New.
8074         (m32c_note_pragma_address): New.
8075         (m32c_get_pragma_address): New.
8076         (m32c_output_aligned_common): New.
8077         * doc/extend.texi: Document the new pragma.
8078
8079         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
8080         also.
8081         * config/m32c/predicates.md (m32c_any_operand): Check the code
8082         instead of memory_operand so as to allow matching volatile MEMs.
8083         (m32c_nonimmediate_operand): Likewise.
8084         (mra_operand): Allow volatiles.
8085
8086 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
8087
8088         PR debug/44610
8089         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
8090         address if the offset is unknown.
8091
8092 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
8093
8094         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
8095         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
8096         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
8097         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
8098         to ia64_start_function. Invoke it.
8099         * config/ia64/ia64.c (ia64_start_function): Call new function
8100         dwarf2out_vms_debug_main_pointer.
8101
8102 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8103
8104         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
8105         statements computing the true predicate.
8106
8107 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8108
8109         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
8110         to boolean_true_node.
8111         (reset_bb_predicate): New.
8112         (predicate_bbs): Call reset_bb_predicate.
8113
8114 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8115
8116         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
8117         (tree_if_conversion): Returns true when something has been changed.
8118         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
8119         changed something.
8120
8121 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8122
8123         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
8124         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
8125         * tree-if-conv.c: Include dbgcnt.h.
8126         (tree_if_conversion): Use if_conversion_tree to count the number of
8127         if-convertible loops.
8128
8129 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
8130
8131         * common.opt (fprefetch-loop-arrays): Re-define
8132         -fprefetch-loop-arrays as a tri-state option with the initial
8133         value of -1.
8134         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
8135         pass only when flag_prefetch_loop_arrays > 0.
8136         * toplev.c (process_options): Note that, with tri-states,
8137         flag_prefetch_loop_arrays>0 means prefetching is enabled.
8138         * config/i386/i386.c (override_options): Enable prefetching at -O3
8139         for a set of CPUs that sw prefetching is helpful.
8140         (software_prefetching_beneficial_p): New.  Return TRUE if software
8141         prefetching is beneficial for the given CPU.
8142
8143 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8144
8145         PR rtl-optimization/44326
8146         * implicit-zee.c (find_removable_zero_extends): Replace
8147         INSN_P with NONDEBUG_INSN_P.
8148
8149 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8150
8151         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
8152         (struct ipa_node_params): Removed the modification_analysis_done flag.
8153         (ipa_is_param_modified): Removed.
8154         (ipa_analyze_node): Declare.
8155         (ipa_compute_jump_functions): Remove declaration.
8156         (ipa_count_arguments): Likewise.
8157         (ipa_detect_param_modifications): Likewise.
8158         (ipa_analyze_params_uses): Likewise.
8159         * ipa-prop.c (struct param_analysis_info): New type.
8160         (visit_store_addr_for_mod_analysis): Removed.
8161         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
8162         moved down in the file.
8163         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
8164         (ipa_count_arguments): Made static.
8165         (mark_modified): New function.
8166         (is_parm_modified_before_call): New function.
8167         (compute_pass_through_member_ptrs): New parameter parms_info, call
8168         is_parm_modified_before_call instead of ipa_is_param_modified.
8169         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
8170         it to compute_pass_through_member_ptrs.
8171         (ipa_compute_jump_functions): New parameter parms_info, pass it to
8172         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
8173         on the callee if it is analyzed.  Made static.
8174         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8175         is_parm_modified_before_call instead of ipa_is_param_modified.
8176         (ipa_analyze_call_uses): New parameter parms_info, pass it to
8177         ipa_analyze_indirect_call_uses.
8178         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8179         ipa_analyze_call_uses.
8180         (ipa_analyze_params_uses): New parameter parms_info, pass it to
8181         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
8182         (ipa_analyze_node): New function.
8183         (ipa_print_node_params): Do not dump the modified flag.
8184         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8185         it.  Do not stream the modified parameter flag.
8186         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8187         it.  Do not stream the modified parameter flag.
8188         * ipa-cp.c (ipcp_analyze_node): Removed.
8189         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8190         with only a call to ipa_analyze_node.
8191         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8192         node with only a call to ipa_analyze_node.
8193
8194 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8195
8196         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8197
8198 2010-06-25  Jan Hubicka  <jh@suse.cz>
8199
8200         * tree-pass.h (pass_split_functions): Declare.
8201         * opts.c (decode_options): Enable function splitting at -O2
8202         * timevar.def (TV_IPA_FNSPLIT): New macro.
8203         * ipa-split.c: New file.
8204         * common.opt (-fpartial-inlining): New flag.
8205         * Makefile.in (ipa-split.o): New object file.
8206         * passes.c (init_optimization_passes): Add ipa-split.
8207         * params.def (partial-inlining-entry-probability): New parameters.
8208         * doc/invoke.texi (-fpartial-inlining): New.
8209
8210 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8211
8212         PR 44665
8213         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8214         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8215         (gimplify_expr): Likewise.
8216
8217 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8218
8219         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8220         statements instead of bailing out on them.
8221         (ipa_analyze_indirect_call_uses): Do not require that loads from the
8222         parameter are in the same BB as the condition.  Update comments.
8223
8224 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
8225
8226         PR middle-end/43866
8227         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8228         true or always false, return NULL_TREE.
8229         (tree_unswitch_single_loop): Optimize conditions even when reaching
8230         max-unswitch-level parameter.  If num > 0, optimize first all conditions
8231         using entry checks, then do still reachable block discovery and consider
8232         only conditions in still reachable basic blocks in the loop.
8233
8234         PR tree-optimization/44539
8235         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8236         the call doesn't have LHS, but has VDEF.
8237
8238 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8239
8240         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8241         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8242         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8243         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8244         * system.h (MODIFY_TARGET_NAME): Poison.
8245
8246 2010-06-25  Alan Modra  <amodra@gmail.com>
8247
8248         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8249         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8250         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8251         CMODEL_LARGE as default.
8252         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8253         (offsettable_ok_by_alignment): Delete.
8254         (rs6000_emit_move): Remove mcmodel=medium optimization.
8255
8256 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8257
8258         With large parts from Jim Wilson:
8259         PR target/43902
8260         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8261         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8262         * optabs.c (optab_for_tree_code): Likewise.
8263         (expand_widen_pattern_expr): Likewise.
8264         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8265         out of execute_optimize_widening_mul.
8266         (convert_plusminus_to_widen): New function.
8267         (execute_optimize_widening_mul): Use the two new functions.
8268         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8269         Remove code to generate widening multiply-accumulate.  Add support
8270         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8271         * gimple-pretty-print.c (dump_ternary_rhs): New function.
8272         (dump_gimple_assign): Call it when appropriate.
8273         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8274         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8275         (expand_gimple_stmt_1): Likewise.
8276         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8277         WIDEN_MULT_MINUS_EXPR.
8278         * tree-ssa-operands.c (get_expr_operands): Likewise.
8279         * tree-inline.c (estimate_operator_cost): Likewise.
8280         * gimple.c (extract_ops_from_tree_1): Renamed from
8281         extract_ops_from_tree.  Add new arg for a third operand; fill it.
8282         (gimple_build_assign_stat): Support operations with three operands.
8283         (gimple_build_assign_with_ops_stat): Likewise.
8284         (gimple_assign_set_rhs_from_tree): Likewise.
8285         (gimple_assign_set_rhs_with_ops_1): Renamed from
8286         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
8287         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8288         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8289         WIDEN_MULT_MINUS_EXPR.
8290         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8291         (extract_ops_from_tree_1): Adjust declaration.
8292         (gimple_assign_set_rhs_with_ops_1): Likewise.
8293         (gimple_build_assign_with_ops): Pass NULL for last operand.
8294         (gimple_build_assign_with_ops3): New macro.
8295         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8296         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8297         functions.
8298         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8299         (verify_gimple_assign): Call it.
8300         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8301         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8302         functions for dealing with three-operand statements.
8303         * tree.c (commutative_ternary_tree_code): New function.
8304         * tree.h (commutative_ternary_tree_code): Declare it.
8305         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8306         ternary statements.
8307         (gimple_assign_nonzero_warnv_p): Likewise.
8308         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8309         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8310         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
8311         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8312         (struct hashtable_expr): New member ternary in the union.
8313         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8314         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
8315         (iterative_hash_hashable_expr): Likewise.
8316         (print_expr_hash_elt): Handle EXPR_TERNARY.
8317         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8318         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8319         statements.  Handle GIMPLE_TERNARY_RHS.
8320
8321 2010-06-25  Jan Hubicka  <jh@suse.cz>
8322
8323         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8324
8325 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
8326
8327         PR c/44517
8328         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8329         parameters are not good.
8330         (c_parser_parameter_declaration): Error unknown type name if the type
8331         name can't start declaration specifiers.
8332
8333 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8334
8335         * gcc.c (translate_options): Don't mention +e in comment.
8336         (process_command): Don't handle +e specially.
8337
8338 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8339
8340         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8341
8342         * ira-build.c (merge_hard_reg_conflicts): New function.
8343         (create_cap_allocno, copy_info_to_removed_store_destinations,
8344         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8345         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8346         (remove_unnecessary_allocnos, remove_low_level_allocnos)
8347         copy_nifo_to_removed_store_destination): Use them.
8348         * ira-lives.c (make_hard_regno_born): New function, split out of
8349         make_regno_born.
8350         (make_allocno_born): Likewise.
8351         (make_hard_regno_dead): New function, split out of make_regno_dead.
8352         (make_allocno_dead): Likewise.
8353         (inc_register_pressure): New function, split out of set_allocno_live.
8354         (dec_register_pressure): New function, split out of clear_allocno_live.
8355         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8356         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
8357         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8358         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
8359         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8360         mark_pseudo_regno_live.
8361         (process_bb_node_lives): Use mark_pseudo_regno_live,
8362         make_hard_regno_born and make_allocno_dead.
8363         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8364         set_allocno_live, clear_allocno_live): Delete functions.
8365
8366         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8367         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8368         functions.
8369         (ira_flattening): Use ira_parent_allocno.
8370         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8371         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8372
8373         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8374         statement.
8375
8376         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8377         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8378         minmax_set_iter_cond, minmax_set_iter_next,
8379         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8380         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8381         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8382         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8383         uses changed.
8384
8385         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8386         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8387         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8388         All uses changed.
8389
8390 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8391
8392         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8393         (peephole2 to convert zero_extract/compare of single bit to
8394          lshift/compare): New.
8395
8396 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8397
8398         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8399         recursive call and call to 'int_const_binop'.
8400         (build_range_check, fold_cond_expr_with_comparison, unextend,
8401         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8402         multiple_of_p): Adjust call to const_binop.
8403
8404 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8405
8406         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8407         determine size of XFmode operand.
8408         (XFmode extended DFmode push splitter): Ditto.
8409         (XFmode extended SFmode push splitter): Ditto.
8410
8411 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8412
8413         PR target/44588
8414         * config/i386/i386.md (extract_code): New.
8415         (<u>divmodqi4): Likewise.
8416         (divmodhiqi3): Likewise.
8417         (udivmodhiqi3): Likewise.
8418         (<u>divqi3): Remvoved.
8419
8420 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8421
8422         PR middle-end/44492
8423         * recog.h (struct recog_data): Add is_asm field.
8424         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8425         present in constraints of inline-asm operand and memory operand
8426         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8427         (extract_insn): Initialize recog_data.is_asm.
8428         * doc/md.texi (Constraints): Document operand side-effect rules.
8429
8430 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8431
8432         * c-parser.c (c_parser_conditional_expression): Call
8433         warn_for_omitted_condop.
8434         * doc/invoke.texi: Document omitted condop warning.
8435
8436 2010-06-24  Nick Clifton<nickc@redhat.com>
8437
8438         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8439         insn in the sequence is a jump insn before setting its label.
8440
8441 2010-06-24  Alan Modra  <amodra@gmail.com>
8442
8443         * collect2.c (main): Match exactly --version and --help.
8444
8445 2010-06-24  DJ Delorie  <dj@redhat.com>
8446
8447         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8448
8449 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8450
8451         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8452         using X87MODEF mode iterator.
8453         (pushsf splitter): Macroize splitter using P mode iterator.
8454         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8455         mode iterator.
8456
8457         (*movxf_internal): Rename from *movxf_integer.
8458         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8459         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8460         (*movdf_internal): Rename from *movdf_integer.
8461         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8462         (*movsf_internal): Rename from *movdf_1.
8463
8464 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8465
8466         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8467         (const_gimple_seq_node): Removed typedefs.
8468
8469         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8470         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8471
8472 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8473
8474         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8475         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8476         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8477         and CODE_FOR_vec_extract_lo_v4df.
8478
8479         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8480         Changed to define_insn_and_split.
8481         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8482         (vec_extract_lo_v16hi): Likewise.
8483         (vec_extract_lo_v32qi): Likewise.
8484         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8485         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8486
8487 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8488
8489         PR target/44640
8490         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8491         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8492         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8493         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8494         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8495
8496         PR target/44640
8497         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8498
8499         PR other/44644
8500         * df-core.c (struct df): Rename to df_d.
8501         * df.h (struct df): Likewise.
8502         * dse.h (struct df): Remove forward declaration.
8503         * recog.h (struct insn_data): Rename to:
8504         (struct_insn_data_d).  Adjusted all users.
8505
8506 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8507
8508         PR ada/22220
8509         * doc/install.texi: Update requirements to build GNAT.
8510
8511 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8512
8513         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8514         enum type.
8515         (m68k_sched_attr_opx_type): Remove unreachable return.
8516         (m68k_sched_attr_opy_type): Likewise.
8517         (m68k_sched_attr_size): Likewise.
8518         (sched_get_opxy_mem_type): Likewise.
8519         (m68k_sched_attr_op_mem): Likewise.
8520
8521 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8522
8523         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8524         new statement and adjust VDEF only if necessary.  Remove superfluous
8525         call to maybe_clean_or_replace_eh_stmt.
8526         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8527         copy the flags.
8528         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8529         * tree-inline.c (copy_bb): ...and not there.
8530
8531 2010-06-22  Cary Coutant  <ccoutant@google.com>
8532
8533         * dwarf2out.c (is_nested_in_subprogram): New function.
8534         (should_move_die_to_comdat): Use it.
8535         (copy_ancestor_tree): Don't mark DIEs here.
8536         (copy_decls_walk): Start walk from root of newly-added tree;
8537         mark DIEs here instead.
8538
8539 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8540
8541         * config/i386/i386.md (unit): Also check sseishft1.
8542
8543 2010-06-22  Jan Hubicka  <jh@suse.cz>
8544
8545         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8546         enabled.
8547
8548 2010-06-22  Jan Hubicka  <jh@suse.cz>
8549
8550         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8551         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8552         Return true if something changed.
8553         * df.h (df_confluence_function_n): Return bool.
8554         * df-core.c (df_worklist_propagate_forward,
8555         df_worklist_propagate_backward): Track changes and ages.
8556         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8557         track ages.
8558         * dse.c (dse_confluence_n): Return always true.
8559
8560 2010-06-22  Jan Hubicka  <jh@suse.cz>
8561
8562         * bitmap.c (bitmap_clear_bit): Micro optimize.
8563
8564 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8565
8566         * config/i386/i386.md (SWI1248x): New mode iterator.
8567         (SWI48x): Ditto.
8568         (SWI12): Ditto.
8569         (SWI24): Ditto.
8570
8571         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8572         SWI1248x mode iterator.
8573         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8574         using SWI124 mode iterator.
8575         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8576         mode iterator.
8577         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8578         *pushdi2_prologue_rex64 using P mode iterator.
8579         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8580         using SWI48 mode iterator.
8581         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8582         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8583         using SWI1248x mode iterator.
8584         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8585         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8586         SWI48 mode iterator.
8587         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8588         iterator.
8589         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8590         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8591         SWI12 mode iterator.
8592         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8593         SWI12 mode iterator.
8594         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8595         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8596         SWI24 mode iterator.
8597         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8598         SWI48 mode iterator.
8599         (mov<mode>_insn_1): New expander.
8600         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8601         using SWI48x mode iterator.
8602
8603         (*movoi_internal_avx): Rename from *movoi_internal.
8604         (*movti_internal_rex64): Rename from *movti_rex64.
8605         (*movti_internal_sse): Rename from *movti_sse.
8606         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8607         (*movdi_internal): Rename from *movdi_2.
8608         (*movsi_internal): Rename from *movsi_1.
8609         (*movhi_internal): Rename from *movhi_1.
8610         (*movqi_internal): Rename from *movqi_1.
8611
8612         (insv): Update the call to gen_movsi_insv_1 for rename.
8613         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8614
8615 2010-06-22  Jan Hubicka  <jh@suse.cz>
8616
8617         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8618         to ...
8619         (execute_todo) ... this one.
8620
8621 2010-06-22  Alan Modra  <amodra@gmail.com>
8622
8623         PR target/44364
8624         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8625         * caller-save.c (insert_restore, insert_save): Use non-validate
8626         form of adjust_address.
8627
8628 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8629
8630         PR target/39690
8631         * config/pa/pa.c (override_options): Disable
8632         -freorder-blocks-and-partition.
8633
8634 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8635
8636         PR target/44615
8637         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8638
8639         * config/i386/i386.md (type): Add sseishft1
8640
8641         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8642         (ppro_insn_load): Likewise.
8643         (ppro_insn_store): Likewise.
8644         (ppro_insn_both): Likewise.
8645
8646         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8647         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8648         for type.
8649         (*vec_extractv2di_1_avx): Likewise.
8650         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8651         type.  Remove atom_unit.
8652         (*vec_extractv2di_1_sse2): Likewise.
8653
8654 2010-06-21  DJ Delorie  <dj@redhat.com>
8655
8656         * diagnostic.h (diagnostic_classification_change_t): New.
8657         (diagnostic_context): Add history and push/pop list.
8658         (diagnostic_push_diagnostics): Declare.
8659         (diagnostic_pop_diagnostics): Declare.
8660         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8661         from pragmas in a history chain instead of the global table.
8662         (diagnostic_push_diagnostics): New.
8663         (diagnostic_pop_diagnostics): New.
8664         (diagnostic_report_diagnostic): Scan history chain to find state
8665         of diagnostics as of the diagnostic location.
8666         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8667         diagnostic_classify_diagnostic.
8668         (enable_warning_as_error): Likewise.
8669         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8670         use in the history chain.
8671         * doc/extend.texi: Document pragma GCC diagnostic changes.
8672
8673 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8674
8675         * dwarf2out.c (add_linkage_name): New function.  Don't add
8676         anything to DW_TAG_member DIEs.
8677         (add_name_and_src_coords_attributes): Use it.
8678         (gen_variable_die): Call it for C++ static data members if
8679         specification is DW_TAG_member.
8680
8681         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8682         C++ char16_t and char32_t.
8683
8684         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8685         * genattrtab.c: Include vecprim.h.
8686         (cached_attrs, cached_attr_count, attrs_seen_once,
8687         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8688         attrs_cached_after): New variables.
8689         (find_attrs_to_cache): New function.
8690         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8691         (write_test_expr): Add attrs_cached argument, return it too,
8692         attempt to cache non-const attributes used more than once in
8693         a single case handling.
8694         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8695         emit cached_* variables.  Adjust write_attr_set callers.
8696         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8697         to find attributes that should be cached in this block.  Adjust
8698         write_test_expr callers.
8699         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8700         callers.
8701         (make_automaton_attrs): Adjust write_test_expr caller.
8702
8703         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8704         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8705         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8706         write separate internal_dfa_insn_code_* and insn_default_latency_*
8707         functions for each attribute's value and emit init_sched_attrs
8708         function and function pointers.
8709         * genattr.c (const_attrs, reservations): New variables.
8710         (gen_attr): Add const attributes to const_attrs vector.
8711         (check_tune_attr, find_tune_attr): New functions.
8712         (main): Add reservations to reservations vector.  If find_tune_attr
8713         returns true, add prototype for init_sched_attrs and make
8714         internal_dfa_insn_code and insn_default_latency function pointers,
8715         otherwise define init_sched_attrs as dummy macro.
8716         * cfgexpand.c: Include insn-attr.h.
8717         (gimple_expand_cfg): Call init_sched_attrs.
8718
8719         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8720
8721         PR target/44575
8722         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8723         va_arg from a set of register save slots into a temporary,
8724         if the container is bigger than type size, do the copying
8725         using smaller mode or using memcpy.
8726
8727         PR bootstrap/44426
8728         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8729         prototype.
8730         (sel_print_to_dot): Remove macro.
8731         (sel_print): Likewise.  New prototype.
8732         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8733         (sel_print): New function.
8734
8735 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8736
8737         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8738         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8739
8740 2010-06-21  Nick Clifton  <nickc@redhat.com>
8741
8742         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8743         (SMALL_REGISTER_CLASS): Define (to zero).
8744         (PRINT_OPERAND): Delete.
8745         (PRINT_OPERAND_ADDRESS): Delete.
8746         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8747         (rx_print_operand_address): Delete prototype.
8748         * config/rx/rx.c (rx_print_operand): Make static.
8749         Allow %H and %L to handle CONST_DOUBLEs.
8750         (rx_print_operand_address): Make static.
8751         (rx_gen_move_template): Rename local variable 'template' to
8752         out_template.
8753         (rx_function_arg): Do not pass unknown sized objects in registers.
8754         (TARGET_PRINT_OPERAND): Define.
8755         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8756
8757 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8758
8759         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8760
8761 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8762
8763         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8764         stack-alignment for simple leaf-functions.
8765
8766 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8767
8768         * doc/install.texi: Document bootstrap-lto.
8769
8770 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8771
8772         PR debug/44248
8773         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8774         (input_function): Drop them here, if VTA is disabled.
8775
8776 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8777
8778         PR target/44546
8779         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8780         New predicate.
8781         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8782         ix86_swapped_fp_comparsion_operator instead of
8783         ix86_fp_comparison_operator.
8784
8785         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8786         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8787         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8788         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8789         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8790         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8791
8792 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8793
8794         PR other/32998
8795         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8796         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8797         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8798         (decode_cmdline_option): Update for this return value.  Set
8799         orig_option_with_args_text field.  Set arg field for unknown
8800         options.  Make static.
8801         (decode_cmdline_options_to_array): New.
8802         (prune_options): Update handling of find_opt return value.
8803         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8804         (read_cmdline_options): Take decoded options.
8805         (decode_options): Add parameters for decoded options.  Use
8806         decode_cmdline_options_to_array.  Use decoded options for -O
8807         scan.  Use integral_argument for -O parameters.  Update call to
8808         read_cmdline_options.
8809         (enable_warning_as_error): Update handling of find_opt return value.
8810         * opts.h: Update comment on unknown options.
8811         (struct cl_decoded_option): Update comments on opt_index and arg.
8812         Add orig_option_with_args_text.
8813         (decode_cmdline_option): Remove.
8814         (decode_cmdline_options_to_array): Declare.
8815         (decode_options): Update prototype.
8816         * toplev.c (save_argv): Remove.
8817         (save_decoded_options, save_decoded_options_count): New.
8818         (read_integral_parameter): Remove.
8819         (print_switch_values): Use decoded options.
8820         (toplev_main): Don't set save_argv.  Update call to decode_options.
8821         * toplev.h (read_integral_parameter): Remove.
8822         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8823
8824 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8825
8826         PR target/44072
8827         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8828         immediate.
8829         * constraints.md (Pw, Px): New constraints.
8830         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8831
8832 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8833
8834         * config/i386/sse.md (fma4modesuffixf4): Removed.
8835         (ssemodesuffixf2s): Likewise.
8836         (ssemodesuffixf4): Likewise.
8837         (ssemodesuffixf2c): Likewise.
8838         (ssescalarmodesuffix2s): Likewise.
8839         (avxmodesuffixf2c): Likewise.
8840         (ssemodesuffix): New.
8841         (ssescalarmodesuffix): Likewise.
8842         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8843
8844 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8845
8846         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8847
8848 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8849
8850         * stor-layout.c (debug_rli): Remove unused local variables.
8851
8852 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8853
8854         PR rtl-optimization/40900
8855         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8856         original expression for later reuse.
8857         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8858         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8859
8860 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8861
8862         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8863         double_int_fits_in_uhwi_p): Implement as static inline.
8864         (double_int_xor): New inline function.
8865         (double_int_lrotate, double_int_rrotate, double_int_max,
8866         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8867         double_int_smin): Declare.
8868         (lrotate_double, rrotate_double): Remove declaration.
8869         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8870         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
8871         (double_int_lrotate, double_int_rrotate, double_int_max,
8872         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8873         double_int_smin): New function.
8874         * fold-const.c (int_const_binop): Clean up, use double_int_*
8875         functions.
8876         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8877         double_int_* and immed_double_int_const functions.
8878
8879 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8880
8881         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8882         * function.c (types_used_by_cur_var_decl): Likewise.
8883         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8884
8885 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8886
8887         * tree.h (record_layout_info): Change type of pending_statics field
8888         to a VEC.
8889         * stor-layout.c (start_record_layout): Store NULL into
8890         pending_statics.
8891         (debug_rli): Call debug_vec_tree instead of debug_tree.
8892         (place_field): Likewise.
8893         (finish_record_layout): Likewise.
8894
8895 2010-06-18  Alan Modra  <amodra@gmail.com>
8896
8897         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8898
8899 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8900
8901         PR target/43740
8902         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8903         for SET source operand from SET destination operand.
8904
8905 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8906
8907         PR rtl-optimization/39871
8908         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8909         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8910         (function_invariant_p): Rule out a plus of frame or arg pointer with
8911         a SYMBOL_REF.
8912         * ira.c (find_reg_equiv_invariant_const): Likewise.
8913
8914 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8915
8916         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8917         print_operand_address and puts to output the operand for CONST.
8918
8919 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8920
8921         PR debug/44572
8922         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8923         hook.
8924
8925 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8926
8927         * v850-protos.h (print_operand): Delete.
8928         (print_operand_address): Delete.
8929         * v850.h (PRINT_OPERAND): Delete.
8930         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8931         (PRINT_OPERAND_ADDRESS): Delete.
8932         * v850.c (print_operand_address): Rename to...
8933         (v850_print_operand_address): ...this.  Make static. Call
8934         v850_print_operand.
8935         (print_operand): Rename to...
8936         (v850_print_operand): ...this.  Make static.  Call
8937         v850_print_operand_address.
8938         (v850_print_operand_punct_valid_p): New function.
8939         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8940         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8941
8942 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8943
8944         * config/sh/sh-protos.h (print_operand): Delete.
8945         (print_operand_address): Delete.
8946         * config/sh/sh.h (PRINT_OPERAND): Delete.
8947         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8948         (PRINT_OPERAND_ADDRESS): Delete.
8949         * config/sh/sh.c (sh_print_operand_address): Make static.
8950         (sh_print_operand): Make static.  Call sh_print_operand_address
8951         and sh_print_operand.
8952         (sh_print_operand_punct_valid_p): New function.
8953         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8954         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8955
8956 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8957
8958         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8959         (mcore_print_operand_address): Delete.
8960         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8961         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8962         (PRINT_OPERAND_ADDRESS): Delete.
8963         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8964         (mcore_print_operand): Make static.
8965         (mcore_print_operand_punct_valid_p): New function.
8966         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8967         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8968
8969 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8970
8971         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8972         (print_operand_address): Delete.
8973         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8974         (PRINT_OPERAND_ADDRESS): Delete.
8975         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8976         static.
8977         (m68hc11_print_operand): Make static.
8978         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8979
8980 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8981
8982         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8983         (m32r_print_operand_address): Delete.
8984         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8985         (PRINT_OPERAND): Delete.
8986         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8987         (PRINT_OPERAND_ADDRESS): Delete.
8988         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8989         (m32r_print_operand_address): Make static.
8990         (m32r_print_operand): Make static.
8991         (m32r_print_operand_punct_valid_p): New function.
8992         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8993         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8994
8995 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8996
8997         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8998         (print_operand_address): Delete.
8999         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
9000         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9001         (PRINT_OPERAND_ADDRESS): Delete.
9002         (iq2000_print_operand_punct): Delete.
9003         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
9004         (iq2000_print_operand_address): Make static.
9005         (iq2000_print_operand): Make static.
9006         (iq2000_print_operand_punct_valid_p): New function.
9007         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9008         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9009
9010 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9011
9012         * config/frv/frv-protos.h (frv_print_operand): Delete.
9013         (frv_print_operand_address): Delete.
9014         * config/frv/frv.h (PRINT_OPERAND): Delete.
9015         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9016         (PRINT_OPERAND_ADDRESS): Delete.
9017         * config/frv/frv.c (frv_print_operand_address): Make static.
9018         (frv_print_operand): Make static.
9019         (frv_print_operand_punct_valid_p): New function.
9020         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9021         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9022
9023 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9024
9025         * tree.h (vec_member): Declare.
9026         * tree.c (vec_member): Define.
9027
9028 2010-06-17  Richard Guenther  <rguenther@suse.de>
9029
9030         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
9031         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
9032
9033 2010-06-17  Richard Guenther  <rguenther@suse.de>
9034
9035         * tree-inline.c (declare_return_variable): Remove bogus code.
9036
9037 2010-06-17  Richard Guenther  <rguenther@suse.de>
9038
9039         * gimplify.c (gimplify_bind_expr): Always promote complex
9040         and vector variables to registers if possible.
9041
9042 2010-06-17  Richard Guenther  <rguenther@suse.de>
9043
9044         * expr.c (get_inner_reference): Use double_int for bit_offset
9045         calculation.
9046
9047 2010-06-16  DJ Delorie  <dj@redhat.com>
9048
9049         * common.opt (-fstrict-volatile-bitfields): new.
9050         * doc/invoke.texi: Document it.
9051         * fold-const.c (optimize_bit_field_compare): For volatile
9052         bitfields, use the field's type to determine the mode, not the
9053         field's size.
9054         * expr.c (expand_assignment): Likewise.
9055         (get_inner_reference): Likewise.
9056         (expand_expr_real_1): Likewise.
9057         * expmed.c (store_fixed_bit_field): Likewise.
9058         (extract_bit_field_1): Likewise.
9059         (extract_fixed_bit_field): Likewise.
9060
9061 2010-06-16  Richard Guenther  <rguenther@suse.de>
9062
9063         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
9064
9065 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
9066
9067         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
9068         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
9069         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
9070         * debug.c: Likewise.
9071         * sdbout.c: Likewise.
9072         * vmsdbgout.c: Likewise.
9073         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
9074         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
9075         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
9076         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
9077         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
9078         * dwarf2out.c (dw_fde_struct): New fields
9079         dw_fde_vms_{end,begin}_prologue.
9080         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
9081         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
9082         (dwarf2out_vms_end_prologue): New function.
9083         (dwarf2out_vms_begin_epilogue): New function.
9084         (dw_val_struct): New value dw_val_class_vms_delta.
9085         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
9086         begin_epilogue for VMS.
9087         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
9088         new static functions.
9089         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
9090         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
9091         static functions.
9092         (print_die): New case dw_val_class_vms_delta.
9093         (attr_checksum): Likewise.
9094         (same_dw_val_p: Likewise.
9095         (size_of_die): Likewise.
9096         (value_format): Likewise.
9097         (output_die): Likewise.
9098         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
9099         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
9100         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
9101         dwarf2out_cfi_begin_epilogue
9102         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
9103
9104 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9105
9106         * config/cris/cris-protos.h (cris_print_operand): Delete.
9107         (cris_print_operand_address): Delete.
9108         * config/cris/cris.h (PRINT_OPERAND): Delete.
9109         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9110         (PRINT_OPERAND_ADDRESS): Delete.
9111         * config/cris/cris.c (cris_print_operand_address): Make static.
9112         (cris_print_operand): Make static.
9113         (cris_print_operand_punct_valid_p): New function.
9114         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9115         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9116
9117 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9118
9119         * config/arm/arm-protos.h (arm_print_operand): Delete.
9120         (arm_print_operand_address): Delete.
9121         * config/arm/arm.h (PRINT_OPERAND): Delete.
9122         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9123         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
9124         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
9125         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
9126         (arm_print_operand): Make static.
9127         (arm_print_operand_punct_valid_p): New function.
9128         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9129         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9130
9131 2010-06-16  Nick Clifton  <nickc@redhat.com>
9132
9133         * config/rx/constraints.md (NEGint4): New constraint.
9134         * config/rx/rx.md (attr cc): Add set_zsc.
9135         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
9136         initialised.
9137         (cmpsf): Likewise.
9138         (call_internal): Clobber the cc0 register.
9139         (call_value_internal): Likewise.
9140         (cstoresi4): Likewise.
9141         (movsieq): Likewise.
9142         (movsine): Likewise.
9143         (addsi3): Add alternative to handle small negative constants.
9144         (sunsi3): Likewise.
9145         (addsi3): Do not set the O bit in the cc0 register.
9146         (adddi3): Likewise.
9147         (subsi3): Likewise.
9148         (subdi3): Likewise.
9149         (andsi3): Reorder alternatives to prefer shorter forms.
9150         (mulsi3): Likewise.
9151         (iorsi3): Likewise.
9152         (negsi2): Note that the cc0 flags are set.
9153         (rotlsi3): Note that only the Z and S bits are set in cc0.
9154         (lshrsi3): Likewise.
9155         (ashlsi3): Likewise.
9156         (subsf3): Use %Q for the MEM operand.
9157         (fix_truncsfsi2): Likewise.
9158         (floatsisf2): Likewise.
9159         (bitset): Remove early clobber from destination.
9160         (bitset_in_memory): Likewise.
9161         (lrintsf2): Clobber the cc0 register.
9162         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
9163         (rx_print_operand): Handle %N.
9164
9165 2010-06-16  Jan Hubicka  <jh@suse.cz>
9166
9167         * df-core.c (df_compact_blocks): Free problem_temps vector.
9168
9169 2010-06-16  Martin Jambor  <mjambor@suse.cz>
9170
9171         PR tree-optimization/43905
9172         * tree-sra.c: Include tree-inline.h.
9173         (create_abstract_origin): Removed.
9174         (modify_function): Version the call graph node instead of creating
9175         abstract origins and dealing with same_body aliases.
9176         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9177         function is versionable.
9178         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9179
9180 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9181
9182         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9183         (CHOOSE_DYNAMIC_LINKER): Update.
9184
9185 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
9186
9187         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
9188         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9189         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9190         *prefetch_3dnow_rex.
9191
9192 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
9193
9194         * target.h (struct asm_out):Add declare_constant_name field.
9195         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9196         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9197         * output.h (default_asm_declare_constant_name): Declare.
9198         (assemble_label): Update prototype.
9199         * varasm.c (assemble_constant_contents): Use
9200         targetm.asm_out.declare_constant_name target hook.
9201         (assemble_label): Add 'file' argument.
9202         (default_asm_declare_constant_name): New function.
9203         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9204         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9205         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9206
9207         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9208         * config/darwin.c (darwin_asm_declare_constant_name): New function.
9209         (machopic_output_indirection): Update assemble_label argument list.
9210         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9211         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9212
9213 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
9214
9215         PR middle-end/44391
9216         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9217         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
9218
9219 2010-06-15  Richard Guenther  <rguenther@suse.de>
9220
9221         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9222
9223 2010-06-15  Paul Brook  <paul@codesourcery.com>
9224
9225         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9226         hard-float ABI.
9227
9228 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
9229
9230         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9231         don't get a vector type for output.
9232
9233 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
9234
9235         PR fortran/44536
9236         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9237         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9238         (LANG_HOOKS_DECLS): Add it.
9239         * gimplify.c (omp_notice_variable): Call
9240         lang_hooks.decls.omp_report_decl.
9241
9242 2010-06-15  Martin Jambor  <mjambor@suse.cz>
9243
9244         PR lto/44464
9245         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9246         on the newly dead SSA name.
9247
9248 2010-06-15  Alan Modra  <amodra@gmail.com>
9249
9250         * doc/invoke.texi: Add mcmodel to powerpc options.
9251         * configure.ac: Add HAVE_LD_LARGE_TOC test.
9252         * configure: Regenerate.
9253         * config.in: Regenerate.
9254         * config/rs6000/linux64.opt (mcmodel): New.
9255         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9256         (TARGET_CMODEL, SET_CMODEL): Define.
9257         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9258         select CMODEL_MEDIUM default.
9259         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9260         (TARGET_CMODEL): Define default.
9261         * config/rs6000/rs6000.c (cmodel): New variable.
9262         (rs6000_explicit_options): Add cmodel field.
9263         (rs6000_handle_option): Handle -mcmodel.
9264         (create_TOC_reference): Add largetoc_reg param.  Generate high,
9265         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
9266         (rs6000_delegitimize_address): Recognise new toc reference rtl
9267         and minimal-toc rtl.
9268         (rs6000_legitimize_reload_address): Handle new toc references.
9269         (print_operand_address): Handle legitimate_constant_pool_address_p
9270         match before lo_sum.
9271         (rs6000_eliminate_indexed_memrefs): Tidy.
9272         (rs6000_emit_move): Tweak threshold for inlining constants.
9273         Keep rs6000_emit_allocate_stack large stack frame offsets
9274         loaded into r0 inline.
9275         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9276         (tocrel_base, tocrel_offset): New variables.
9277         (toc_relative_expr_p): Set them here.
9278         (print_operand_address): Skip over any offset on constant pool address.
9279         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9280         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9281         (offsettable_ok_by_alignment): New function.
9282         (rs6000_emit_move): Address suitably aligned local symbol_refs
9283         relative to the toc pointer for -mcmodel=medium.
9284         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
9285         strict param.  Allow lo_sum version of addressing.  Verify reg
9286         used for -mminimal-toc and -mcmodel != small.  Update all callers.
9287         * config/rs6000/constraints.md: Update for above change.
9288         * config/rs6000/predicates.md: Likewise.
9289         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9290         code.
9291         (tls_gd): Split for -mcmodel=medium/large.
9292         (tls_gd_high, tls_gd_low): New.
9293         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9294         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9295         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9296         (largetoc_high, largetoc_low): New.
9297         (cmptf_internal2): Add clobber.
9298         * config/rs6000/rs6000-protos.h: Update.
9299
9300 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
9301
9302         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
9303         true if no prefetch is going to be generated for a given group.
9304         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9305         estimate the prefetch_count.
9306         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9307         prefetch count by considering the unroll_factor and prefetch_mod
9308         for is_loop_prefetching_profitable.
9309
9310 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
9311
9312         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9313         anything if the argument is not a MEM.
9314
9315 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9316
9317         PR debug/43650
9318         PR debug/44181
9319         PR debug/44247
9320         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9321         debug stmts.
9322         (canonicalize_loop_ivs): Likewise.
9323
9324 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9325
9326         PR debug/43656
9327         * haifa-sched.c (setup_insn_reg_pressure_info,
9328         update_register_pressure): Reject debug insns.
9329         (ready_sort): Don't setup reg pressure for debug insns.
9330         (schedule_insn): Don't update reg pressure for debug insns.
9331
9332 2010-06-14  Richard Guenther  <rguenther@suse.de>
9333
9334         * lto-streamer.c (cached_bp): Remove.
9335         (bitpack_delete): Likewise.
9336         (bitpack_create): Likewise.
9337         (bp_get_next_word): Likewise.
9338         (bp_pack_value, bp_unpack_value): Move ...
9339         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9340         Re-implement.
9341         (struct bitpack_d): Likewise.
9342         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9343         New inline functions.
9344         * lto-streamer-out.c (lto_output_bitpack): Remove.
9345         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9346         (pack_value_fields): Adjust.
9347         (lto_write_tree): Likewise.
9348         (output_gimple_stmt): Likewise.
9349         (output_function): Likewise.
9350         * lto-streamer-in.c (input_gimple_stmt): Adjust.
9351         (input_function): Likewise.
9352         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9353         (lto_input_bitpack): Remove.
9354         (lto_materialize_tree): Adjust.
9355         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9356         * lto-cgraph.c (lto_output_edge): Adjust.
9357         (lto_output_node): Likewise.
9358         (lto_output_varpool_node): Likewise.
9359         (lto_output_ref): Likewise.
9360         (input_node): Likewise.
9361         (input_varpool_node): Likewise.
9362         (input_ref): Likewise.
9363         (input_edge): Likewise.
9364         (output_node_opt_summary): Likewise.
9365         (input_node_opt_summary): Likewise.
9366         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9367         (pure_const_read_summary): Likewise.
9368         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9369         (ipa_read_indirect_edge_info): Likewise.
9370         (ipa_write_node_info): Likewise.
9371         (ipa_read_node_info): Likewise.
9372
9373 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9374
9375         PR target/44534
9376         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9377         (vec_extract_lo_v16hi): Likewise.
9378         (vec_extract_lo_v32qi): Likewise.
9379
9380 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9381
9382         PR bootstrap/44426
9383         * tree.h (build_call_expr): Don't define as vararg macro, instead
9384         add a prototype.
9385         * builtins.c (build_call_nofold): Remove.
9386         (expand_builtin_int_roundingfn, expand_builtin_pow,
9387         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9388         expand_builtin_memset_args, expand_builtin_strcmp,
9389         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9390         build_call_nofold_loc instead of build_call_nofold.
9391         (build_call_expr): New function.
9392
9393         PR tree-optimization/44508
9394         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9395         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9396         don't eliminate trivially dead stmts.
9397         * tree-vrp.c (vrp_finalize): Pass false as last argument
9398         to substitute_and_fold.
9399         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9400         to substitute_and_fold.
9401         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9402
9403         PR bootstrap/44509
9404         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9405
9406 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9407
9408         PR tree-optimization/44507
9409         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9410         to build initial vector for BIT_AND_EXPR.
9411         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9412
9413 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9414
9415         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9416         adjust z10prop set_attr.
9417
9418 2010-06-13  Jan Hubicka  <jh@suse.cz>
9419
9420         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9421         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9422         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9423         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9424         datastructure checks into checking asserts.
9425         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9426         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9427         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9428         df_ref_create_structure): Likewise.
9429         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9430         pool_free): Use gcc_checking_assert.
9431         * alias.c (get_alias_set): Likewise.
9432         * var-tracking.c (variable_htab_free, shared_hash_copy,
9433         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9434         * lto-streamer.c (bp_unpack_value): Likewise.
9435
9436 2010-06-13  Richard Guenther  <rguenther@suse.de>
9437
9438         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9439         Do not stream but initialize TYPE_CANONICAL to NULL.
9440         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9441         * gimple.c (gimple_types_compatible_p): Disregard
9442         TYPE_STRUCTURAL_EQUALITY_P.
9443         (gimple_register_type): Use TYPE_CANONICAL as cache.
9444         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9445         before registering common types.
9446         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9447         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9448         * tree.h (TYPE_CANONICAL): Clarify documentation.
9449
9450 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9451
9452         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9453         LIBCALL_VALUE): Remove macros.
9454         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9455         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9456         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9457         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9458         (ia64_function_value): Make static. Handle receiving the function
9459         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9460
9461 2010-06-12  Jan Hubicka  <jh@suse.cz>
9462
9463         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9464         at correct place.
9465
9466 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9467
9468         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9469
9470 2010-06-12  Jan Hubicka  <jh@suse.cz>
9471
9472         * df-core.c (df_clear_bb_info): New function.
9473         (df_set_blocks): bb_info is always allocated.
9474         (df_get_bb_info): Use block_info_elt_size.
9475         (df_set_bb_info): Likewise.
9476         (df_compact_blocks): Update for new block_info.
9477         (grow_bb_info): New function.
9478         * df-problems.c (df_grow_bb_info): Move to df-core.c
9479         (df_rd_set_bb_info): Remove.
9480         (df_rd_free_bb_info): Do not free block pool.
9481         (df_rd_alloc): Do not create pool, use check for
9482         obstack presence instead of NULL pointer for new blocks.
9483         (df_rd_free): DO not free alloc pool; clear block_info.
9484         (problem_RD): Add size of block info structure.
9485         (df_lr_set_bb_info): Remove.
9486         (df_lr_free_bb_info): Do not free block pool.
9487         (df_lr_alloc): Do not create pool, use check for
9488         obstack presence instead of NULL pointer for new blocks.
9489         (df_lr_free): DO not free alloc pool; clear block_info.
9490         (problem_LR): Add size of block info structure.
9491         (df_live_set_bb_info): Remove.
9492         (df_live_free_bb_info): Do not free block pool.
9493         (df_live_alloc): Do not create pool, use check for
9494         obstack presence instead of NULL pointer for new blocks.
9495         (df_live_free): DO not free alloc pool; clear block_info.
9496         (problem_LIVE): Add size of block info structure.
9497         (problem_CHAIN): Add size of block info structure.
9498         (df_byte_lr_set_bb_info): Remove.
9499         (df_byte_lr_free_bb_info): Do not free block pool.
9500         (df_byte_lr_alloc): Do not create pool, use check for
9501         obstack presence instead of NULL pointer for new blocks.
9502         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9503         (problem_BYTE_LR): Add size of block info structure.
9504         (problem_NOTE): Add size of block info structure.
9505         (df_byte_MD_set_bb_info): Remove.
9506         (df_byte_MD_free_bb_info): Do not free block pool.
9507         (df_byte_MD_alloc): Do not create pool, use check for
9508         obstack presence instead of NULL pointer for new blocks.
9509         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9510         (problem_BD): Add size of block info structure.
9511         * df-scan.c (df_scan_free_internal): Free block pool.
9512         (df_scan_set_bb_info): Remove.
9513         (df_scan_free_bb_info): Check for artificial_defs instead
9514         of bb_info being non-NULL.
9515         (df_scan_alloc): DO not create df_scan_block pool.
9516         (problem_SCAN): Set size of block info.
9517         (df_bb_refs_record): Do not allocate bb_info.
9518         * df.h (df_problem): Add block_info_elt_size.
9519         (struct dataflow): Change block_info to void *.
9520         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9521         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9522         in-line structures.
9523
9524 2010-06-12  Jan Hubicka  <jh@suse.cz>
9525
9526         PR tree-optimize/44485
9527         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9528         containing use of return value of noreturn function.
9529
9530 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9531
9532         * targhooks.c (default_function_value): Don't use
9533         FUNCTION_OUTGOING_VALUE.
9534         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9535         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9536
9537 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9538
9539         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9540         Add crtfastmath.o to extra_parts.
9541         * config/mips/crtfastmath.c: New.
9542         * config/mips/linux.h (ENDFILE_SPEC): New.
9543
9544 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9545
9546         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9547         old_type in parameter.
9548         (gcc_type_for_value): Update call to gcc_type_for_interval.
9549         (compute_type_for_level_1): Renamed compute_type_for_level.
9550         Update call to gcc_type_for_interval.
9551
9552 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9553
9554         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9555         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9556
9557 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9558
9559         * opts-common.c: Include options.h.
9560         (integral_argument): Move from opts.c.
9561         (decode_cmdline_option): New.  Based on read_cmdline_option.
9562         * opts.c (integral_argument): Move to opts-common.c.
9563         (read_cmdline_option): Move most contents to
9564         decode_cmdline_option.  Use %qs in diagnostics.
9565         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9566         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9567         decode_cmdline_option): New.
9568
9569 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9570
9571         PR target/44481
9572         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9573         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9574         (partiysi2_cmp): Ditto.
9575         (*partiyhi2_cmp): Ditto.
9576         (*parityqi2_cmp): Remove.
9577
9578 2010-06-11  Jan Hubicka  <jh@suse.cz>
9579
9580         * bitmap.h (bmp_iter_next_bit): New.
9581         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9582
9583 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9584             Eric Botcazou  <ebotcazou@adacore.com>
9585
9586         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9587         computed cost.
9588
9589 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9590
9591         * config/i386/i386.md (unspec): New define_c_enum.
9592         (unspecv): Ditto.
9593
9594 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9595
9596         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9597
9598 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9599
9600         PR middle-end/44483
9601         * tree-if-conv.c (bb_predicate_s): New struct.
9602         (bb_predicate_p): New.
9603         (bb_has_predicate): New.
9604         (bb_predicate): New.
9605         (set_bb_predicate): New.
9606         (bb_predicate_gimplified_stmts): New.
9607         (set_bb_predicate_gimplified_stmts): New.
9608         (add_bb_predicate_gimplified_stmts): New.
9609         (init_bb_predicate): New.
9610         (free_bb_predicate): New.
9611         (is_predicated): Use bb_predicate.
9612         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9613         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9614         before processing their successors.
9615         (clean_predicate_lists): Removed.
9616         (find_phi_replacement_condition): Use bb_predicate.
9617         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9618         computations.
9619         (insert_gimplified_predicates): New.
9620         (combine_blocks): Call insert_gimplified_predicates.
9621         (tree_if_conversion): Call free_bb_predicate instead of
9622         clean_predicate_lists.
9623
9624 2010-10-11  Paul Brook  <paul@codesourcery.com>
9625
9626         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9627         * config/arm/arm.c (all_architectures): Change v7e-m default to
9628         cortexm4.
9629         * config/arm/arm-cores.def: Add cortex-m4.
9630         * config/arm/arm-tune.md: Regenerate.
9631
9632 2010-06-11  Jan Hubicka  <jh@suse.cz>
9633
9634         * ipa-pure-const.c (special_builtlin_state): New function.
9635         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9636         (propagate_pure_const): Use it.
9637
9638 2010-06-11  Jan Hubicka  <jh@suse.cz>
9639
9640         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9641         (df_live_alloc): Initialize df_live_scratch when initializing
9642         problem_data.
9643         (df_live_transfer_function): Update uses of df_live_scratch.
9644         (df_live_free): Free problem_data; clear df_live_scratch before
9645         releasing the obstack.
9646         (df_md_free): Free problem data.
9647
9648 2010-06-11  Jan Hubicka  <jh@suse.cz>
9649
9650         * doc/invoke.texi (Wsuggest-attribute): Document.
9651         (Wmissing-noreturn): Remove.
9652         * ipa-pure-const.c (warn_function_noreturn): New function.
9653         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9654         warn_missing_noreturn.
9655         * common.opt (Wsuggest-attribute=noreturn): New.
9656         * tree-flow.h (warn_function_noreturn): Declare.
9657         * tree-cfg.c (execute_warn_function_noreturn): Use
9658         warn_function_noreturn.
9659         (gate_warn_function_noreturn): New.
9660         (pass_warn_function_noreturn): Update.
9661
9662 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9663
9664         * c-typeck.c (handle_warn_cast_qual): Add loc
9665         parameter. Improve warning message.
9666         (build_c_cast): Pass location to handle_warn_cast_qual.
9667
9668 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9669
9670         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9671         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9672         insn mnemonic.
9673         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9674
9675 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9676
9677         Fix bootstap on mips
9678         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9679         be naming typedefs.
9680
9681 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9682
9683         * system.h (helper_const_non_const_cast): New inline for
9684         gcc version <= 4.0.
9685         (CONST_CAST2): For gcc version <= 4.0 use
9686         new helper to do const/non-const casting.
9687
9688 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9689
9690         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9691         * Makefile.in (OBJS-common): Include insn-enums.o.
9692         (insn-enums.o): New rule.
9693         (simple_generated_c): Add insn-enums.c.
9694         (build/genenums.o): New rule.
9695         (genprogmd): Add "enums".
9696         * genconstants.c (print_enum_type): Declare a C string array
9697         for each enum.
9698         * genenums.c: New file.
9699         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9700         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9701         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9702
9703 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9704
9705         * doc/md.texi (define_enum_attr): Document.
9706         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9707         * read-md.h (lookup_enum_type): Declare.
9708         * read-md.c (lookup_enum_type): New function.
9709         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9710         * genattrtab.c (attr_desc): Add an enum_name field.
9711         (evaluate_eq_attr): Take the associated attribute as argument.
9712         Get the enum prefix from the enum_name field, if defined.
9713         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9714         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9715         (add_attr_value): New function, split out from...
9716         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9717         (write_test_expr): Pass attr to evaluate_eq_attr.
9718         (write_attr_get): Use the enum_name as the enum tag, if defined.
9719         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9720         (find_attr): Initialize enum_name.
9721         (main): Handle DEFINE_ENUM_ATTR.
9722         * gensupport.c (process_rtx): Likewise.
9723         * config/mips/mips.h (mips_tune_attr): Delete.
9724         * config/mips/mips.md (cpu): Use define_attr_enum.
9725
9726 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9727
9728         * doc/md.texi (define_c_enum, define_enum): Document.
9729         * read-md.h (md_constant): Add a parent_enum field.
9730         (enum_value, enum_type): New structures.
9731         (upcase_string, traverse_enum_types): Declare.
9732         * read-md.c (enum_types): New variable.
9733         (upcase_string, add_constant): New functions.
9734         (handle_constants): Don't create the hash table here.
9735         Use add_constant.
9736         (traverse_md_constants): Don't check for a null md_constants.
9737         (decimal_string, handle_enum, traverse_enum_types): New functions.
9738         (read_md_files): Initialize md_constants and md_enums.
9739         * genconstants.c (print_md_constant): Ignore info argument.
9740         Only print constants that belong to no enum.
9741         (print_enum_type): New function.
9742         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9743         for each defined enum type.
9744         * config/mips/mips.md (processor): New define_enum.
9745         (unspec): New define_c_enum.
9746         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9747         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9748         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9749         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9750         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9751         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9752         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9753         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9754         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9755         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9756         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9757         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9758         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9759         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9760         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9761         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9762         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9763         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9764         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9765         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9766         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9767         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9768         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9769         (UNSPEC_RDDSP): Move to mips-dsp.md.
9770         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9771         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9772         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9773         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9774         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9775         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9776         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9777         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9778         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9779         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9780         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9781         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9782         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9783         Moved to mips-dspr2.md.
9784         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9785         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9786         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9787         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9788         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9789         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9790         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9791         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9792         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9793         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9794         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9795         UNSPEC_LOONGSON_PSADBH)
9796         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9797         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9798         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9799         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9800         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9801         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9802         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9803         (cpu): Update comment.
9804         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9805         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9806         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9807         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9808         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9809         UNSPEC_LOONGSON_PCMPEQ)
9810         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9811         UNSPEC_LOONGSON_PINSR_0)
9812         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9813         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9814         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9815         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9816         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9817         UNSPEC_LOONGSON_PSADBH)
9818         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9819         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9820         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9821         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9822         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9823         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9824         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9825         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9826         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9827         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9828         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9829         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9830         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9831         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9832         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9833         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9834         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9835         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9836         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9837         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9838         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9839         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9840         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9841         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9842         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9843         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9844         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9845         (UNSPEC_RDDSP): Moved from mips.md.
9846         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9847         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9848         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9849         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9850         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9851         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9852         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9853         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9854         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9855         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9856         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9857         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9858         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9859         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9860         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9861         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9862         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9863         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9864         (UNSPEC_SCC): Moved from mips.md.
9865         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9866         "processor_type" to "processor".
9867         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9868         * config/mips/mips.h (processor_type): Delete.
9869         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9870         "processor_type" to "processor".
9871
9872 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9873
9874         * configure.ac (tm_include_list): Add insn-constants.h.
9875         * configure: Regenerate.
9876         * Makefile.in (GTM_H): Move insn-constants.h here from...
9877         (TM_H): ...here.
9878         * mkconfig.sh: Remove special handling for insn-constants.h.
9879
9880 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9881
9882         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9883         (BUILD_MD): ...this new variable.
9884         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9885         that include the old contents of simple_generated_h and
9886         simple_generated_c.
9887         (simple_generated_h, simple_generated_c): Include them.  Add
9888         insn-constants.h.
9889         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9890         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9891         Remove these dependencies from the main rule and include
9892         insn-conditions.md in the command line only if it appears
9893         in the dependency list.
9894         (insn-constants.h, s-constants): Delete.
9895         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9896         or gensupport.h.
9897         (build/genmddeps.o): Likewise.
9898         (genprogrtl): New variable that contains everything from genprogmd
9899         except mddeps and constants.
9900         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9901         depend on $(BUILD_MD)
9902         (genprog): New variable.  Make these programs depend on
9903         $(BUILD_ERRORS).
9904         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9905         (main): Use read_md_files instead of init_rtx_reader_args.
9906         * genconstants.c: As for genmddeps.c.
9907         * read-md.h (read_skip_construct): Declare.
9908         * read-md.c (read_skip_construct): New function.
9909         (handle_file): Allow a null handle_directive, skipping the
9910         construct if so.
9911         (parse_include): Update the comment accordingly.
9912
9913 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9914
9915         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9916         * genmddeps.c: Include read-md.h.
9917         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9918         * genattr.c (main): Likewise.
9919         * genattrtab.c (main): Likewise.
9920         * genautomata.c (main): Likewise.
9921         * gencodes.c (main): Likewise.
9922         * genconditions.c (main): Likewise.
9923         * genconfig.c (main): Likewise.
9924         * genconstants.c (main): Likewise.
9925         * genemit.c (main): Likewise.
9926         * genextract.c (main): Likewise.
9927         * genflags.c (main): Likewise.
9928         * genopinit.c (main): Likewise.
9929         * genoutput.c (main): Likewise.
9930         * genpeep.c (main): Likewise.
9931         * genrecog.c (main): Likewise.
9932         * genpreds.c (main): Likewise.
9933         * gensupport.h (in_fname): Move to read-md.h.
9934         (init_md_reader_args_cb): Rename to...
9935         (init_rtx_reader_args_cb): ...this and return a bool.
9936         (init_md_reader_args): Rename to...
9937         (init_rtx_reader_args): ...this and return a bool.
9938         (include_callback): Move to read-md.h.
9939         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9940         (file_name_list, first_dir_md_include): Move to read-md.c
9941         (first_bracket_include): Delete unused variable.
9942         (last_dir_md_include): Move to read-md.c.
9943         (process_include): Delete, moving code to read-md.c:handle_include.
9944         (process_rtx): Don't handle INCLUDE.
9945         (save_string): Delete.
9946         (rtx_handle_directive): New function.
9947         (init_md_reader_args_cb): Rename to...
9948         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9949         Use read_md_args.
9950         (init_md_reader_args): Rename to...
9951         (init_rtx_reader_args): ...this and return a boolean success value.
9952         * rtl.def (INCLUDE): Delete.
9953         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9954         argument.
9955         * read-rtl.c (read_conditions): Don't gobble ')' here.
9956         (read_mapping): Likewise.
9957         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9958         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9959         Store the whole queue in *X.  Remove call to init_md_reader.
9960         (read_rtx_1): Rename to...
9961         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9962         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9963         here.
9964         (read_nested_rtx): New function.  Handle (nil) here rather than
9965         in read_rtx_code.
9966         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9967         gobble ')' here.
9968         * read-md.h (directive_handler_t): New type.
9969         (in_fname, include_callback): Moved from read-md.h.
9970         (read_constants, init_md_reader): Delete.
9971         (read_md_files): Declare.
9972         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9973         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9974         from gensupport.c.
9975         (read_constants): Rename to...
9976         (handle_constants): ...this.  Don't gobble ')' here.
9977         (handle_include, handle_file, handle_toplevel_file)
9978         (parse_include): New functions, mostly taken from gensupport.c.
9979         (init_md_reader): Subsume into...
9980         (read_md_files): ...this new function.
9981
9982 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9983
9984         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9985         (unread_char): Decrement read_md_lineno after putting back '\n'.
9986         * read-md.c (fatal_with_file_and_line): Push back any characters
9987         that we decide not to add to the context.
9988         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9989         fatal_expected_char in cases where '/' ends a line (for example).
9990         (read_name): Don't increment read_md_lineno here.
9991         (read_escape): Likewise.
9992         (read_quoted_string): Likewise.
9993         (read_braced_string): Likewise.
9994
9995 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9996
9997         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9998         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9999         * genconstants.c: Include read-md.h.
10000         * read-rtl.c (md_constants): Move to read-md.c.
10001         (md_name): Move to read-md.h.
10002         (initialize_iterators): Use leading_string_hash instead of def_hash
10003         and leading_string_eq_p instead of def_name_eq_p.
10004         (read_name): Move to read-md.c.
10005         (def_hash, def_name_eq_p): Delete.
10006         (read_constants, traverse_md_constants): Move to read-md.c.
10007         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
10008         * read-md.h: Include hashtab.h.
10009         (md_name): Moved from read-rtl.c.
10010         (md_constant): Moved from read-md.h.
10011         (leading_string_hash, leading_string_eq_p, read_name)
10012         (read_constants, traverse_md_constants): Declare.
10013         * read-md.c (md_constants): Moved from read-rtl.c.
10014         (leading_string_hash, leading_string_eq_p): New functions.
10015         (read_name, read_constants, traverse_md_constants): Moved from
10016         read-rtl.c.
10017
10018 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10019
10020         * read-rtl.c (md_name): New structure.
10021         (read_name): Take an md_name instead of a buffer pointer.
10022         Use the "string" field instead of strcpy when expanding constants.
10023         (read_constants): Remove the tmp_char argument.  Update the calls
10024         to read_name, using two local name buffers instead of the tmp_char
10025         argument.  Merge the constant-creation code.
10026         (read_conditions): Remove the tmp_char argument.  Update the calls
10027         to read_name, using a local name buffer instead of the tmp_char
10028         argument.
10029         (read_mapping): Replace tmp_char variable with a local name buffer.
10030         Update the calls to read_name.
10031         (read_rtx_1): Likewise.  Update the calls to read_constants and
10032         read_conditions.
10033
10034 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10035
10036         * Makefile.in (build/read-md.o): Depend on errors.h.
10037         * read-md.h (error_with_line): Declare.
10038         * read-md.c: Include errors.h.
10039         (message_with_line_1): New function, extracted from...
10040         (message_with_line): ...here.
10041         (error_with_line): New function.
10042         * genattrtab.c: If a call to message_with_line is followed by
10043         "have_error = 1;", replace both statements with a call to
10044         error_with_line.
10045         * genoutput.c: Likewise.
10046         * genpreds.c: Likewise.
10047         * genrecog.c: If a call to message_with_line is followed by
10048         "error_count++;", replace both statements with a call to
10049         error_with_line.
10050         (errorcount): Delete.
10051         (main): Don't check it.
10052         * gensupport.c: If a call to message_with_line is followed by
10053         "errors = 1;", replace both statements with a call to error_with_line.
10054         (errors): Delete.
10055         (process_define_cond_exec): Check have_error instead of errors.
10056         (init_md_reader_args_cb): Likewise.  Don't set errors.
10057
10058 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10059
10060         * read-md.h (read_md_file): Declare.
10061         (read_char, unread_char): New functions.
10062         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10063         (read_quoted_string, read_string): Remove FILE * argument.
10064         * read-md.c (read_md_file): New variable.
10065         (read_md_filename, read_md_lineno): Update comments and remove
10066         unnecessary initialization.
10067         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10068         (read_escape, read_quoted_string, read_braced_string, read_string):
10069         Remove FILE * argument.  Update calls accordingly, using read_char
10070         and unread_char instead of getc and ungetc.
10071         * rtl.h (read_rtx): Remove FILE * argument.
10072         * read-rtl.c (iterator_group): Remove FILE * argument from
10073         "find_builtin".
10074         (iterator_traverse_data): Remove "infile" field.
10075         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
10076         (add_mapping, read_name, read_constants, read_conditions)
10077         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
10078         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
10079         Remove file arguments from all calls, using read_char and unread_char
10080         instead of getc and ungetc.
10081         * gensupport.c (process_include): Preserve read_md_file around
10082         the include.  Set read_md_file to the handle of the included file.
10083         Update call to read_rtx.
10084         (init_md_reader_args_cb): Set read_md_file to the handle of the file
10085         and remove local FILE *.  Update calls to read_rtx.
10086
10087 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10088
10089         * read-md.h (read_rtx_lineno): Rename to...
10090         (read_md_lineno): ...this.
10091         (read_rtx_filename): Rename to...
10092         (read_md_filename): ...this.
10093         (copy_rtx_ptr_loc): Rename to...
10094         (copy_md_ptr_loc): ...this.
10095         (print_rtx_ptr_loc): Rename to...
10096         (print_md_ptr_loc): ...this.
10097         * read-md.c: Likewise.  Update references after renaming.
10098         (string_obstack): Replace RTL with MD in comment.
10099         (set_rtx_ptr_loc): Rename to...
10100         (set_md_ptr_loc): ...this.
10101         (get_rtx_ptr_loc): Rename to...
10102         (get_md_ptr_loc): ...this.
10103         * genconditions.c: Update references after renaming.
10104         * genemit.c: Likewise.
10105         * genoutput.c: Likewise.
10106         * genpreds.c: Likewise.
10107         * gensupport.c: Likewise.
10108         * read-rtl.c: Likewise.
10109
10110 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10111
10112         * Makefile.in (READ_MD_H): New variable.
10113         (BUILD_RTL): Add build/read-md.o.
10114         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
10115         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
10116         (build/genattrtab.o, build/genconditions.o build/genemit.o)
10117         (build/genextract.o, build/genflags.o, build/genoutput.o)
10118         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
10119         (build/read-md.o): New rule.
10120         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
10121         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
10122         * coretypes.h: ...here.
10123         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
10124         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
10125         * genattr.c: Include read-md.h.
10126         * genattrtab.c: Likewise.
10127         * genconditions.c: Likewise.
10128         * genemit.c: Likewise.
10129         * genextract.c: Likewise.
10130         * genflags.c: Likewise.
10131         * genoutput.c: Likewise.
10132         * genpreds.c: Likewise.
10133         * genrecog.c: Likewise.
10134         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
10135         (join_c_conditions, print_c_condition, read_rtx_filename)
10136         (read_rtx_lineno): Move to read-md.h.
10137         * read-rtl.c: Include read-md.h.
10138         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
10139         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
10140         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
10141         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
10142         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
10143         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
10144         (read_braced_string, read_string): Move to read-md.c.
10145         (read_rtx): Move some initialization to init_md_reader and call
10146         init_md_reader here.
10147         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
10148         Move to read-md.h.
10149         * gensupport.c: Include read-md.h.
10150         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
10151         * read-md.h, read-md.c: New files.
10152
10153 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
10154
10155         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10156         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10157         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
10158         * config/moxie/moxie.c (moxie_function_value): Make static.
10159         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
10160         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10161
10162 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10163
10164         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
10165         * dbgcnt.def (tree_sra): New counter.
10166         * tree-sra.c: Include dbgcnt.h.
10167         (gate_intra_sra): Check tree_sra debug counter.
10168
10169 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10170
10171         PR tree-optimization/44258
10172         * tree-sra.c (build_access_subtree): Return false iff there is a
10173         partial overlap.
10174         (build_access_trees): Likewise.
10175         (analyze_all_variable_accesses): Disqualify candidates if
10176         build_access_trees returns true for them.
10177
10178 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
10179
10180         PR debug/41371
10181         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10182         tail-recurse into canonical node.  Fast-forward over
10183         non-canonical VALUEs.
10184
10185 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         PR boostrap/44470
10188         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10189         (*addsi_1_zext) <TYPE_LEA>: Likewise.
10190         (add lea splitter): Likewise.
10191         (add_zext lea splitter): Likewise.
10192
10193 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
10194
10195         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10196
10197 2010-06-10  Jan Hubicka  <jh@suse.cz>
10198
10199         * df-problems.c (df_live_problem_data): Add live_bitmaps.
10200         (df_live_alloc): Initialize problem data and live_osbtacks.
10201         (df_live_finalize): Remove obstack, problem data; do not
10202         clear all bitmaps.
10203         (df_live_top_dump, df_live_bottom_dump): Do not dump old
10204         data when not allocated.
10205         (df_live_verify_solution_start): Do not allocate problem data.
10206         (df_live_verify_solution_end): Check if out is allocated.
10207         (struct df_md_problem_data): New structure.
10208         (df_md_alloc): Allocate problem data.
10209         (df_md_free): Free problem data; do not clear bitmaps.
10210
10211 2010-06-10  Jan Beulich  <jbeulich@novell.com>
10212
10213         PR bootstrap/37304
10214         * configure.ac: Replace $() with ${} when intending to expand
10215         variables rather than invoking commands.
10216         * configure: Re-generate.
10217
10218 2010-06-10  Jan Hubicka  <jh@suse.cz>
10219
10220         PR rtl-optimization/44460
10221         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10222         TYPE_NEEDS_CONSTRUCTING sanity check.
10223
10224 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10225
10226         * doc/include/fdl.texi: Move to GFDL version 1.3.
10227
10228         * doc/cpp.texi: Move to GFDL version 1.3.
10229         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
10230         * doc/gccint.texi: Move to GFDL version 1.3.
10231         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
10232         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
10233         * doc/invoke.texi: Move to GFDL version 1.3.
10234
10235 2010-06-09  Jan Hubicka  <jh@suse.cz>
10236
10237         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10238         Break out from ...
10239         (propagate) ... here; swap the order.
10240
10241 2010-06-09  Jan Hubicka  <jh@suse.cz>
10242
10243         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10244         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10245         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10246         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10247
10248 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10249
10250         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10251         Do not the gather memory reference in the outer loop if the step
10252         is not a constant.
10253
10254 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10255
10256         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10257         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10258         8 to 4.  Minor change of the related comments.
10259
10260 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10261
10262         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10263         the scev analysis when the variable is not used outside the loop
10264         in a close phi node: call compute_overall_effect_of_inner_loop.
10265
10266 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10267
10268         * graphite-sese-to-poly.c (single_pred_cond): Renamed
10269         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
10270         (build_sese_conditions_before): Renamed call to single_pred_cond.
10271         (build_sese_conditions_after): Same.
10272
10273 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10274
10275         * graphite-poly.h: Fix comments and indentation.
10276         * graphite-sese-to-poly.c: Same.
10277         (build_sese_conditions_before): Compute stmt and gbb only when needed.
10278         * tree-chrec.c: Fix comments and indentation.
10279         (tree-ssa-loop-niter.c): Same.
10280
10281 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10282
10283         PR rtl-optimization/42461
10284         * dce.c (deletable_insn_p): Return true for const or pure calls again.
10285         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10286
10287 2010-06-09  Jan Hubicka  <jh@suse.cz>
10288
10289         * bitmap.c (bitmap_and): Walk array forward.
10290         (bitmap_and_compl_into): Likewise.
10291         (bitmap_xor): Likewise.
10292         (bitmap_xor_into):  Likewise.
10293         (bitmap_equal_p): Likewise.
10294         (bitmap_intersect_p): Likewise.
10295         (bitmap_intersect_compl_p): Likewise.
10296         (bitmap_ior_and_into): Likewise.
10297         (bitmap_elt_copy): Likewise.
10298         (bitmap_and_compl): Likewise.
10299         (bitmap_elt_ior): Likewise.
10300
10301 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
10302
10303         * opts-common.c (prune_options): Ensure replacement argv array
10304         is correctly terminated by a NULL entry.
10305
10306 2010-06-09  Jan Hubicka  <jh@suse.cz>
10307
10308         * cgraph.h (varpool_first_static_initializer,
10309         varpool_next_static_initializer): Make checking only when
10310         checking enabled.
10311         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10312         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10313         gcc_assert to gcc_checking_assert.
10314         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10315         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10316         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10317         op_iter_init_phiuse, op_iter_init_phidef,
10318         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10319         gcc_checking_assert.
10320         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10321         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10322         partition_is_global, live_on_entry, live_on_exit,
10323         live_merge_and_clear): Likewise.
10324         * system.h (gcc_checking_assert): New macro.
10325         * gimple.h (set_bb_seq): Use gcc_checking_assert.
10326
10327 2010-06-09  Jason Merrill  <jason@redhat.com>
10328
10329         * Makefile.in (TAGS): Collect tags info from c-family.
10330
10331 2010-06-09  Jan Hubicka  <jh@suse.cz>
10332
10333         * gimple.h (gcc_gimple_checking_assert): New macro.
10334         (gimple_set_def_ops, gimple_set_use_ops,
10335         gimple_set_vuse, gimple_set_vdef,
10336         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10337         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10338         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10339         gimple_asm_output_op, gimple_asm_output_op_ptr,
10340         gimple_asm_set_output_op, gimple_asm_clobber_op,
10341         gimple_asm_set_clobber_op, gimple_asm_label_op,
10342         gimple_asm_set_label_op, gimple_try_set_kind,
10343         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10344         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10345         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10346         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10347         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10348         gimple_omp_for_set_initial, gimple_omp_for_final,
10349         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10350         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10351         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10352         conditional with ENABLE_GIMPLE_CHECKING.
10353         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10354
10355 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
10356
10357         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10358         (get_computation_cost_at): Use it.
10359         (determine_use_iv_cost_condition): Likewise.
10360         (determine_iv_cost): Likewise.
10361
10362 2010-06-09  Richard Guenther  <rguenther@suse.de>
10363
10364         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10365         replace constants.
10366
10367 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10368
10369         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10370
10371 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10372
10373         PR tree-optimization/44423
10374         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10375         (analyze_access_subtree): Pass negative allow_replacements to children
10376         if the current type is scalar.
10377
10378 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10379
10380         PR testsuite/42843
10381         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10382         * doc/plugins.texi (Plugin license check): Update information
10383         on type of plugin_is_GPL_compatible.
10384         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10385         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10386
10387 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10388
10389         * config/arm/arm.c (thumb2_reorg): New function.
10390         (arm_reorg): Call it.
10391         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10392         arithmetic operations): Delete.
10393
10394 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10395
10396         PR target/44067
10397         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10398         e500v2 target.
10399
10400 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10401
10402         PR plugins/44459
10403         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10404
10405 2010-06-08  Jan Hubicka  <jh@suse.cz>
10406
10407         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10408         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10409
10410 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10411
10412         PR tree-optimization/39874
10413         PR middle-end/28685
10414         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10415         Declare.
10416         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10417         same_bool_result_p): New.
10418         (and_var_with_comparison, and_var_with_comparison_1,
10419         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10420         (or_var_with_comparison, or_var_with_comparison_1,
10421         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10422         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10423         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10424         of combine_comparisons.
10425         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10426
10427 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10428
10429         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10430         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10431         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10432         pdp11_function_value_regno_p): New functions.
10433         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10434         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10435
10436 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10437
10438         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10439         Thumb-2 in the MINUS case.
10440
10441 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10442
10443         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10444
10445         * doc/gty.texi (GTY Options): Document typed GC allocation and
10446         variable_size GTY option.
10447
10448         * ggc-internal.h: New.
10449
10450         * ggc.h: Update copyright year.
10451         (digit_string): Move to stringpool.c.
10452         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10453         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10454         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10455         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10456         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10457         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10458         (ggc_force_collect, ggc_get_size, ggc_statistics)
10459         (ggc_print_common_statistics): Move to ggc-internal.h.
10460         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10461         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10462         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10463         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10464         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10465         (ggc_alloc_zone_pass_stat): Remove.
10466         (ggc_internal_alloc_stat, ggc_internal_alloc)
10467         (ggc_internal_cleared_alloc_stat): New.
10468         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10469         (ggc_internal_vec_alloc_stat)
10470         (ggc_internal_cleared_vec_alloc_stat)
10471         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10472         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10473         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10474         (ggc_cleared_alloc_ptr_array_two_args): New.
10475         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10476         (ggc_splay_alloc): Change the type of the first argument to
10477         enum gt_types_enum.
10478         (ggc_alloc_string): Make macro.
10479         (ggc_alloc_string_stat): New.
10480         (ggc_strdup): Redefine.
10481         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10482         (ggc_alloc_rtvec_sized): New.
10483         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10484         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10485         (ggc_internal_cleared_alloc_zone_stat)
10486         (ggc_internal_zone_alloc_stat)
10487         (ggc_internal_zone_cleared_alloc_stat)
10488         (ggc_internal_zone_vec_alloc_stat)
10489         (ggc_alloc_zone_rtx_def_stat)
10490         (ggc_alloc_zone_tree_node_stat)
10491         (ggc_alloc_zone_cleared_tree_node_stat)
10492         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10493
10494         * ggc-common.c: Include ggc-internal.h.
10495         (ggc_internal_cleared_alloc_stat): Rename from
10496         ggc_alloc_cleared_stat.
10497         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10498         (ggc_calloc): Remove.
10499         (ggc_cleared_alloc_htab_ignore_args): New.
10500         (ggc_cleared_alloc_ptr_array_two_args): New.
10501         (ggc_splay_alloc): Add obj_type parameter.
10502         (init_ggc_heuristics): Formatting fixes.
10503
10504         * ggc-none.c: Update copyright year.
10505         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10506         (ggc_alloc_cleared_stat): Rename to
10507         ggc_internal_cleared_alloc_stat.
10508         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10509
10510         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10511         Remove references to ggc_alloc in comments.
10512         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10513         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10514         (new_ggc_zone, destroy_ggc_zone): Remove.
10515         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10516
10517         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10518         ggc_alloc in comments.
10519         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10520         (ggc_internal_alloc_zone_pass_stat): New.
10521         (ggc_internal_cleared_alloc_zone_stat): New.
10522         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10523         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10524         (new_ggc_zone, destroy_ggc_zone): Remove.
10525
10526         * stringpool.c: Update copyright year.  Include ggc-internal.h
10527         (digit_vector): Make static.
10528         (digit_string): Moved from ggc.h.
10529         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10530         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10531
10532         * Makefile.in (GGC_INTERNAL_H): New.
10533         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10534         $(GGC_INTERNAL_H) to dependencies.
10535
10536         * gentype.c: Update copyright year.
10537         (walk_type): Accept variable_size GTY option.
10538         (USED_BY_TYPED_GC_P): New macro.
10539         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10540         whitespace at the end of strings.
10541         (get_type_specifier, variable_size_p): New functions.
10542         (alloc_quantity, alloc_zone): New enums.
10543         (write_typed_alloc_def): New function.
10544         (write_typed_struct_alloc_def): Likewise.
10545         (write_typed_typed_typedef_alloc_def): Likewise.
10546         (write_typed_alloc_defns): Likewise.
10547         (output_typename, write_splay_tree_allocator_def): Likewise.
10548         (write_splay_tree_allocators): Likewise.
10549         (main): Call write_typed_alloc_defns and
10550         write_splay_tree_allocators.
10551
10552         * lto-streamer.h (lto_file_decl_data_ptr): New.
10553
10554         * passes.c (order): Define using cgraph_node_ptr.
10555
10556         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10557         ht_identifier_ptr.
10558
10559         * gimple.h (union gimple_statement_d): Likewise.
10560
10561         * rtl.h (struct rtx_def): Likewise.
10562         (struct rtvec_def): Likewise.
10563
10564         * tree.h (union tree_node): Likewise.
10565
10566         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10567
10568         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10569
10570         * tree-scalar-evolution.c (scev_initialize): Likewise.
10571
10572         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10573
10574         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10575
10576         * omp-low.c (lower_omp_critical): Likewise.
10577
10578         * bitmap.h (struct bitmap_head_def): Update comment to not
10579         reference ggc_alloc.
10580
10581         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10582
10583         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10584
10585         * ipa-prop.c (duplicate_ggc_array): Rename to
10586         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10587         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10588
10589         * gimple.c (gimple_alloc_stat): Use
10590         ggc_alloc_cleared_gimple_statement_d_stat.
10591
10592         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10593
10594         * tree.c (make_node_stat): Use
10595         ggc_alloc_zone_cleared_tree_node_stat.
10596         (make_tree_vec_stat): Likewise.
10597         (build_vl_exp_stat): Likewise.
10598         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10599         (make_tree_binfo_stat): Likewise.
10600         (tree_cons_stat): Likewise.
10601
10602         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10603         (shallow_copy_rtx_stat): Likewise.
10604         (make_node_stat): Likewise.
10605
10606         * lto-symtab.c: Fix comment.
10607
10608         * tree-cfg.c (create_bb): Update comment to not reference
10609         ggc_alloc_cleared.
10610         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10611
10612         * varpool.c (varpool_node): Use typed GC allocation.
10613         (varpool_extra_name_alias): Likewise.
10614
10615         * varasm.c (emutls_decl): Likewise.
10616         (get_unnamed_section): Likewise.
10617         (get_noswitch_section): Likewise.
10618         (get_section): Likewise.
10619         (get_block_for_section): Likewise.
10620         (build_constant_desc): Likewise.
10621         (create_constant_pool): Likewise.
10622         (force_const_mem): Likewise.
10623
10624         * tree.c (build_vl_exp_stat): Likewise.
10625         (build_real): Likewise.
10626         (build_string): Likewise.
10627         (decl_debug_expr_insert): Likewise.
10628         (decl_value_expr_insert): Likewise.
10629         (type_hash_add): Likewise.
10630         (build_omp_clause): Likewise.
10631
10632         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10633
10634         * tree-ssa.c (init_tree_ssa): Likewise.
10635
10636         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10637
10638         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10639
10640         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10641
10642         * tree-ssa-alias.c (get_ptr_info): Likewise.
10643
10644         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10645
10646         * tree-phinodes.c (allocate_phi_node): Likewise.
10647
10648         * tree-iterator.c (tsi_link_before): Likewise.
10649         (tsi_link_after): Likewise.
10650
10651         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10652
10653         * tree-dfa.c (create_var_ann): Likewise.
10654
10655         * tree-cfg.c (create_bb): Likewise.
10656
10657         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10658         (general_init): Likewise.
10659
10660         * stringpool.c (stringpool_ggc_alloc): Likewise.
10661         (gt_pch_save_stringpool): Likewise.
10662
10663         * sese.c (if_region_set_false_region): Likewise.
10664
10665         * passes.c (do_per_function_toporder): Likewise.
10666
10667         * optabs.c (set_optab_libfunc): Likewise.
10668         (set_conv_libfunc): Likewise.
10669
10670         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10671
10672         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10673         (input_eh_region): Likewise.
10674         (input_eh_lp): Likewise.
10675         (make_new_block): Likewise.
10676         (unpack_ts_real_cst_value_fields): Likewise.
10677
10678         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10679
10680         * lto-cgraph.c (input_node_opt_summary): Likewise.
10681
10682         * loop-init.c (loop_optimizer_init): Likewise.
10683
10684         * lambda.h (lambda_vector_new): Likewise.
10685
10686         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10687
10688         * ira.c (update_equiv_regs): Likewise.
10689
10690         * ipa.c (cgraph_node_set_new): Likewise.
10691         (cgraph_node_set_add): Likewise.
10692         (varpool_node_set_new): Likewise.
10693         (varpool_node_set_add): Likewise.
10694
10695         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10696         (duplicate_ipa_jump_func_array): Likewise.
10697         (ipa_read_node_info): Likewise.
10698
10699         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10700
10701         * integrate.c (get_hard_reg_initial_val): Likewise.
10702
10703         * gimple.c (gimple_alloc_stat): Likewise.
10704         (gimple_build_omp_for): Likewise.
10705         (gimple_seq_alloc): Likewise.
10706         (gimple_copy): Likewise.
10707
10708         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10709         (gsi_insert_after_without_update): Likewise.
10710
10711         * function.c (add_frame_space): Likewise.
10712         (insert_temp_slot_address): Likewise.
10713         (assign_stack_temp_for_type): Likewise.
10714         (allocate_struct_function): Likewise.
10715         (types_used_by_var_decl_insert): Likewise.
10716
10717         * except.c (init_eh_for_function): Likewise.
10718         (gen_eh_region): Likewise.
10719         (gen_eh_region_catch): Likewise.
10720         (gen_eh_landing_pad): Likewise.
10721         (add_call_site): Likewise.
10722
10723         * emit-rtl.c (get_mem_attrs): Likewise.
10724         (get_reg_attrs): Likewise.
10725         (start_sequence): Likewise.
10726         (init_emit): Likewise.
10727
10728         * dwarf2out.c (new_cfi): Likewise.
10729         (queue_reg_save): Likewise.
10730         (dwarf2out_frame_init): Likewise.
10731         (new_loc_descr): Likewise.
10732         (find_AT_string): Likewise.
10733         (new_die): Likewise.
10734         (add_var_loc_to_decl): Likewise.
10735         (clone_die): Likewise.
10736         (clone_as_declaration): Likewise.
10737         (break_out_comdat_types): Likewise.
10738         (new_loc_list): Likewise.
10739         (loc_descriptor): Likewise.
10740         (add_loc_descr_to_each): Likewise.
10741         (add_const_value_attribute): Likewise.
10742         (tree_add_const_value_attribute): Likewise.
10743         (add_comp_dir_attribute): Likewise.
10744         (add_name_and_src_coords_attributes): Likewise.
10745         (lookup_filename): Likewise.
10746         (store_vcall_insn): Likewise.
10747         (dwarf2out_init): Likewise.
10748
10749         * dbxout.c (dbxout_init): Likewise.
10750
10751         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10752
10753         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10754
10755         * config/score/score7.c (score7_output_external): Likewise.
10756
10757         * config/score/score3.c (score3_output_external): Likewise.
10758
10759         * config/s390/s390.c (s390_init_machine_status): Likewise.
10760
10761         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10762         (rs6000_init_machine_status): Likewise.
10763         (output_toc): Likewise.
10764
10765         * config/pa/pa.c (pa_init_machine_status): Likewise.
10766         (get_deferred_plabel): Likewise.
10767
10768         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10769
10770         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10771
10772         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10773
10774         * config/mep/mep.c (mep_init_machine_status): Likewise.
10775         (mep_note_pragma_flag): Likewise.
10776
10777         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10778
10779         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10780
10781         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10782
10783         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10784         (i386_pe_maybe_record_exported_symbol): Likewise.
10785
10786         * config/i386/i386.c (get_dllimport_decl): Likewise.
10787         (ix86_init_machine_status): Likewise.
10788         (assign_386_stack_local): Likewise.
10789
10790         * config/frv/frv.c (frv_init_machine_status): Likewise.
10791
10792         * config/darwin.c (machopic_indirection_name): Likewise.
10793
10794         * config/cris/cris.c (cris_init_machine_status): Likewise.
10795
10796         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10797
10798         * config/avr/avr.c (avr_init_machine_status): Likewise.
10799
10800         * config/arm/arm.c (arm_init_machine_status): Likewise.
10801
10802         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10803         (alpha_need_linkage): Likewise.
10804         (alpha_use_linkage): Likewise.
10805
10806         * cgraph.c (cgraph_allocate_node): Likewise.
10807         (cgraph_create_edge_1): Likewise.
10808         (cgraph_create_indirect_edge): Likewise.
10809         (cgraph_add_asm_node): Likewise.
10810
10811         * cfgrtl.c (init_rtl_bb_info): Likewise.
10812
10813         * cfgloop.c (alloc_loop): Likewise.
10814         (rescan_loop_exit): Likewise.
10815
10816         * cfg.c (init_flow): Likewise.
10817         (alloc_block): Likewise.
10818         (unchecked_make_edge): Likewise.
10819
10820         * c-parser.c (c_parse_init): Likewise.
10821         (c_parse_file): Likewise.
10822
10823         * c-decl.c (bind): Likewise.
10824         (record_inline_static): Likewise.
10825         (push_scope): Likewise.
10826         (make_label): Likewise.
10827         (lookup_label_for_goto): Likewise.
10828         (finish_struct): Likewise.
10829         (finish_enum): Likewise.
10830         (c_push_function_context): Likewise.
10831
10832         * bitmap.c (bitmap_element_allocate): Likewise.
10833         (bitmap_gc_alloc_stat): Likewise.
10834
10835         * alias.c (record_alias_subset): Likewise.
10836         (init_alias_analysis): Likewise.
10837
10838 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10839
10840         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10841         * tree-inline.c (expand_call_inline): Pass translated return value of
10842         cgraph_inline_failed_string to diagnostic function.
10843
10844 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10845             Shujing Zhao  <pearly.zhao@oracle.com>
10846
10847         PR c/37724
10848         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10849         implicit bad conversions is initialization.
10850         (error_init): Use gmsgid instead of msgid for argument name and change
10851         the call for error.
10852         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10853         change the call for pedwarn.
10854         (warning_init): Use gmsgid instead of msgid for argument name and
10855         change the call for warning.
10856
10857 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10858
10859         * config/mips/mips-protos.h (mips_print_operand): Delete.
10860         (mips_print_operand_address): Delete.
10861         * config/mips/mips.h (mips_print_operand_punct): Delete.
10862         (PRINT_OPERAND): Delete.
10863         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10864         (PRINT_OPERAND_ADDRESS): Delete.
10865         * config/mips/mips.c (mips_print_operand_punct): Make static.
10866         (mips_print_operand_address): Make static.
10867         (mips_print_operand): Make static.  Call
10868         mips_print_operand_punct_valid_p.
10869         (mips_print_operand_punct_valid_p): New function.
10870         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10871         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10872
10873 2010-06-07  Jan Hubicka  <jh@suse.cz>
10874
10875         PR middle-end/44454
10876         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10877         are allocated.
10878
10879 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10880
10881         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10882         name of RECORD.
10883
10884 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10885
10886         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10887         attributes): Document gas.
10888
10889 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10890
10891         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10892         <TYPE_LEA>: Split instruction.
10893         <default>: Remove alternative 2 handling.
10894         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10895         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10896         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10897
10898         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10899         (ashift_zext lea splitter): Use DImode for multiplication.
10900
10901         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10902         to generate addition.
10903
10904 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10905
10906         * common.opt (fira-verbose): Use Var.
10907         (fpcc-struct-return): Use Init instead of VarExists.
10908         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10909         toplev.c.
10910         * flags.h (flag_signed_char, flag_short_enums,
10911         flag_pcc_struct_return, flag_ira_verbose,
10912         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10913         * toplev.c (flag_detailed_statistics, flag_signed_char,
10914         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10915         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10916         * toplev.h (flag_crossjumping, flag_if_conversion,
10917         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10918         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10919         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10920         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10921         flag_ira_coalesce, flag_ira_move_spills,
10922         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10923
10924 2010-06-07  Jan Hubicka  <jh@suse.cz>
10925
10926         * df-core.c (df_analyze_problem): Do verification after allocation.
10927
10928         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10929         (df_lr_alloc): Initialize problem data; move bitmaps to
10930         lr_bitmaps obstack.
10931         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10932         (df_lr_verify_solution_start): Do not initialize problem data;
10933         allocate bitmaps in lr_bitmaps.
10934         (df_lr_verify_solution_end): Do not free problem data.
10935
10936 2010-06-07  Jan Hubicka  <jh@suse.cz>
10937
10938         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10939         if caller is noreturn.
10940         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10941         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10942         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10943         * ipa-pure-const.c (check_decl): Add IPA parameter.
10944         (state_from_flags): New function.
10945         (better_state, worse_state): New functions.
10946         (check_call): When in IPA mode, do not care about callees.
10947         (check_load, check_store): Update.
10948         (check_ipa_load, check_ipa_store): New.
10949         (check_stmt): When in IPA mode, use IPA checkers.
10950         (analyze_function): Use state_from_flags.
10951         (propagate): Check indirect edges and references.
10952
10953 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10954
10955         PR rtl-optimization/44404
10956         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10957         of count_occurrences to see if it's safe to modify mem_insn.
10958
10959 2010-06-07  Richard Guenther  <rguenther@suse.de>
10960
10961         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10962         and EH-only cleanup drop the cleanup instead of inserting it
10963         unconditionally.
10964
10965 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10966
10967         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10968         documentation.
10969         * targhooks.c (default_builtin_vectorization_cost): New function.
10970         * targhooks.h (default_builtin_vectorization_cost): Declare.
10971         * target.h (enum vect_cost_for_stmt): Define.
10972         (builtin_vectorization_cost): Change argument and comment.
10973         * tree-vectorizer.h: Remove cost model macros.
10974         * tree-vect-loop.c: Include target.h.
10975         (vect_get_cost): New function.
10976         (vect_estimate_min_profitable_iters): Replace cost model macros with
10977         calls to vect_get_cost.
10978         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10979         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10980         default implementation.
10981         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10982         calls to target hook builtin_vectorization_cost.
10983         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10984         Likewise.
10985         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10986         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10987         implementation to return costs.
10988         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10989         * config/spu/spu.h: Remove vectorizer cost model macros.
10990         * config/i386/i386.h: Likewise.
10991         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10992         a call to target hook builtin_vectorization_cost.
10993
10994 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10995
10996         PR target/44319
10997         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10998         and above and defer till target is known.
10999         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
11000         turn off otherwise.
11001
11002 2010-05-25  Jan Hubicka  <jh@suse.cz>
11003
11004         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
11005         (df_compact_blocks): Likewise.
11006         * df.h (struct df): Turn hardware_regs_used,
11007         regular_block_artificial_uses, eh_block_artificial_uses,
11008         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
11009         bitmap_head.
11010         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
11011         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
11012         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
11013         df_scan_blocks, df_insn_delete, df_insn_rescan,
11014         df_insn_rescan_debug_internal, df_insn_rescan_all,
11015         df_process_deferred_rescans, df_process_deferred_rescans,
11016         df_notes_rescan, df_get_call_refs, df_get_call_refs,
11017         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
11018         df_record_entry_block_defs, df_record_exit_block_uses,
11019         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
11020         df_scan_verify): Update.
11021
11022 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11023
11024         PR c++/44188
11025         * c-common.c (is_typedef_decl): Move this definition ...
11026         * tree.c (is_typedef_decl): ... here.
11027         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11028         * c-common.h (is_typedef_decl): Move this declaration ...
11029         * tree.h (is_typedef_decl): ... here.
11030         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11031         * dwarf2out.c (is_naming_typedef_decl): New function.
11032         (gen_tagged_type_die): Split out of ...
11033         (gen_type_die_with_usage): ... this function. When an anonymous
11034         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11035         is emitted for the typedef.
11036         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11037         anonymous tagged types.
11038
11039 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11040
11041         PR c/20000
11042         * c-decl.c (grokdeclarator): Delete warning.
11043
11044 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11045
11046         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
11047         newly built CALL_EXPR.
11048         * tree-profile.c (tree_profiling): Don't profile functions produced
11049         for built-in stuff.
11050
11051 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
11052
11053         PR bootstrap/44427
11054         PR bootstrap/44428
11055         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
11056         endianness-independent.
11057
11058 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
11059
11060         * c-common.c: Move to c-family/.
11061         * c-common.def: Likewise.
11062         * c-common.h: Likewise.
11063         * c-cppbuiltin.c: Likewise.
11064         * c-dump.c: Likewise.
11065         * c-format.c: Likewise.
11066         * c-format.h : Likewise.
11067         * c-gimplify.c: Likewise.
11068         * c-lex.c: Likewise.
11069         * c-omp.c: Likewise.
11070         * c.opt: Likewise.
11071         * c-opts.c: Likewise.
11072         * c-pch.c: Likewise.
11073         * c-ppoutput.c: Likewise.
11074         * c-pragma.c: Likewise.
11075         * c-pragma.h: Likewise.
11076         * c-pretty-print.c: Likewise.
11077         * c-pretty-print.h: Likewise.
11078         * c-semantics.c: Likewise.
11079         * stub-objc.c: Likewise.
11080
11081         * gengtype.c (get_file_langdir): Special-case files in c-family/.
11082         (get_output_file_with_visibility): Fix name for c-common.h.
11083         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
11084
11085         * c-tree.h: Update include path for moved files.
11086         * c-lang.c: Likewise.
11087         * c-lang.h: Likewise.
11088         * c-parser.c: Likewise.
11089         * c-convert.c: Likewise.
11090         * c-decl.c: Likewise.
11091         * c-objc-common.c: Likewise.
11092         * configure.ac: Make sure c-family/ exists in the build directory.
11093         * configure: Regenerate.
11094         * Makefile.in: Update paths for moved files.  Regroup files per
11095         location and update dependencies.  Move generated_files down after
11096         ALL_GTFILES_H.
11097
11098         * config/spu/spu-c.c: Update paths for moved files.
11099         * config/mep/mep-pragma.c: Likewise.
11100         * config/darwin-c.c: Likewise.
11101         * config/i386/msformat-c.c: Likewise.
11102         * config/i386/i386-c.c: Likewise.
11103         * config/avr/avr-c.c: Likewise.
11104         * config/sol2-c.c: Likewise.
11105         * config/ia64/ia64-c.c: Likewise.
11106         * config/rs6000/rs6000-c.c: Likewise.
11107         * config/arm/arm.c: Likewise.
11108         * config/arm/arm-c.c: Likewise.
11109         * config/h8300/h8300.c: Likewise.
11110         * config/v850/v850-c.c: Likewise.
11111
11112         * config/t-darwin: Fix dependencies for moved files.
11113         * config/t-sol2: Fix dependencies for moved files.
11114         * config/mep/t-mep: Fix dependencies for moved files.
11115         * config/ia64/t-ia64: Fix dependencies for moved files.
11116         * config/rs6000/t-rs6000: Fix dependencies for moved files.
11117         * config/v850/t-v850: Fix dependencies for moved files.
11118         * config/v850/t-v850e: Fix dependencies for moved files.
11119
11120         * config/m32c/m32c-pragma.c
11121
11122         * po/exgettext: Look in c-family/ also.
11123
11124 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11125
11126         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
11127         (mark_control_dependent_edges_necessary): Call it instead of marking
11128         the last statement manually.
11129         (propagate_necessity): Likewise.
11130
11131 2010-06-05  Jan Hubicka  <jh@suse.cz>
11132
11133         * basic-block.h (compute_dominance_frontiers): Updated.
11134         (compute_idf): Likewise.
11135
11136         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
11137         for dominance frontiers.
11138         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
11139         (insert_updated_phi_nodes_for): Likewise.
11140         (update_ssa): Likewise.
11141         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11142         (compute_dominance_frontiers): Likewise.
11143         (compute_idf): Likewise.
11144         * df-problems.c (df_md_local_compute): Likewise.
11145
11146 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
11147
11148         * target.h (struct gcc_target): Add memory_move_cost field.
11149         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
11150         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
11151         * targhooks.c (default_memory_move_cost): New function.
11152         * targhooks.h (default_memory_move_cost): Declare function.
11153         * reload.h (memory_move_cost): Declare.
11154         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11155         * reginfo.c (memory_move_cost): New function.
11156         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11157         * ira.h (ira_memory_move_cost): Update comment.
11158         * ira.c (ira_memory_move_cost): Update comment.
11159         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
11160         with memory_move_cost.
11161         * postreload.c (reload_cse_simplify_set): (Ditto.).
11162         * reload1.c (choose_reload_regs): (Ditto.).
11163         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
11164         (MEMORY_MOVE_COST):  Revise documentation.
11165
11166         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11167         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11168         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
11169         type of 'in' argument to bool.
11170         (TARGET_MEMORY_MOVE_COST): Define.
11171
11172 2010-06-05  Jan Hubicka  <jh@suse.cz>
11173
11174         * ipa-pure-const.c (propagate): Fix typo in handling of functions
11175         that cannot return.  Be more careful when merging the results with
11176         previously known ones.
11177
11178 2010-06-05  Matthias Klose  <doko@ubuntu.com>
11179
11180         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11181         function to add the -iplugindir option.
11182         (find_plugindir_spec_function): Add new declaration and function.
11183         (static_spec_func): Use it for "find-plugindir".
11184
11185 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
11186
11187         PR c++/44361
11188         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11189         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11190         statement expression.
11191
11192 2010-06-05  Jan Hubicka  <jh@suse.cz>
11193
11194         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11195         (df_rd_problem_data): Convert sparse_invalidated_by_call,
11196         dense_invalidated_by_call to bitmap head.
11197         (df_rd_alloc, df_rd_bb_local_compute_process_def,
11198         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11199         df_rd_start_dump, df_lr_verify_transfer_functions,
11200         df_live_verify_transfer_functions, df_chain_create_bb,
11201         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11202         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11203         df_simulate_one_insn_forwards, df_md_alloc,
11204         df_md_bb_local_compute_process_def,
11205         df_md_bb_local_compute_process_def, df_md_local_compute,
11206         df_md_transfer_function df_md_free): Update.
11207
11208 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
11209
11210         PR c/44322
11211         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11212         target type for ADDR_EXPR; require no changes to qualifiers except
11213         for function types.
11214         * c-tree.h (c_build_type_variant): Remove.
11215
11216 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11217
11218         * genautomata.c (get_excl_set): Do work per element, not per char.
11219         (check_presence_pattern_sets): Similar.
11220         (check_absence_pattern_sets): Similar.
11221
11222 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11223
11224         * genautomata.c (curr_state_pass_num): Delete.
11225         (min_issue_delay_pass_states): Delete.
11226         (min_issue_delay): Delete.
11227         (initiate_min_issue_delay_pass_states): Delete.
11228         (output_min_issue_delay_table): Compute min_issue_delay_vect
11229         using a breadth-first search variant.
11230         (output_tables): Don't call initiate_min_issue_delay_pass_states.
11231
11232 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11233
11234         PR boostrap/44421
11235         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11236         (df_byte_lr_bb_local_compute): Likewise.
11237
11238 2010-06-03  Jason Merrill  <jason@redhat.com>
11239
11240         Implement noexcept operator (5.3.7)
11241         * c-common.c (c_common_reswords): Add noexcept.
11242         * c-common.h (enum rid): Add RID_NOEXCEPT.
11243
11244 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
11245
11246         * config/darwin-driver.c (darwin_default_min_version): Use
11247         GCC-specific formats in diagnostics.
11248         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11249         diagnostics.
11250         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11251         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11252         eval_spec_function, handle_braces, process_brace_body, main,
11253         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11254         getenv_spec_function, compare_version_strings,
11255         version_compare_spec_function): Use GCC-specific formats in
11256         diagnostics.
11257
11258 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11259
11260         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11261         that operand 0 and operand 1 are equal.
11262         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11263         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11264         and operand 1 are equal.
11265         <default>: Ditto.  Remove ??? comment.
11266         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11267         and operand 1 are equal.
11268         <default>: Ditto.  Remove ??? comment.
11269         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11270         are equal.
11271         (*add<mode>_4) <default>: Ditto.
11272         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11273
11274 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
11275
11276         * config/i386/i386-protos.h (ix86_print_operand): Declare.
11277         * config/i386/i386.c (ix86_print_operand): Make non-static.
11278         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11279         * output.h (output_operand): Declare.
11280         * final.c (output_operand): Make non-static.
11281
11282 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
11283
11284         PR rtl-optimization/44013
11285         * sched-deps.c (add_dependence_list_and_free): Don't free lists
11286         when processing debug insns.
11287
11288         PR debug/41371
11289         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11290         recursing.  Check that recursion is bounded.  Rename inner var
11291         to avoid hiding incoming argument.
11292
11293 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11294
11295         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11296         operands[2] == 255.
11297         (*addqi_3): Ditto.
11298         (*addqi_4): Ditto.
11299         (*addqi_5): Ditto.
11300         (*addqi_ext_1_rex64): Ditto.
11301         (*addqi_ext_1): Ditto.
11302
11303         (*addqi_4): Check for incdec_operand in QImode.
11304
11305         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11306         using SWI mode iterator.
11307         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11308         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11309         mode iterator.
11310         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11311         using SWI mode iterator.
11312
11313 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11314
11315         PR c/25880
11316         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11317         * c-format.c (gcc_diag_flag_specs): Add hash.
11318         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11319         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11320         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11321         pp_c_cv_qualifiers. Handle qualifiers spelling here.
11322         (pp_c_type_qualifier_list): Call the function above.
11323         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11324         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11325         (WARN_FOR_QUALIFIERS): New macro.
11326         (convert_for_assignment): Use it.
11327
11328 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
11329
11330         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11331
11332 2010-06-04  Jan Hubicka  <jh@suse.cz>
11333
11334         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11335         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11336         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11337         DF_BYTE_LR_OUT): Update for embedded bitmaps.
11338         * fwprop.c (single_def_use_enter_block): Likewise.
11339         * ddg.c (create_ddg_dep_from_intra_loop_link,
11340         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11341         * loop-iv.c (latch_dominating_def): Likewise.
11342         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11343         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11344         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11345         df_rd_transfer_function, df_rd_top_dump,
11346         df_rd_bottom_dump): Update.
11347         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11348         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11349         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11350         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11351         df_lr_verify_solution_start, df_lr_verify_solution_end,
11352         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11353         df_live_free_bb_info, df_live_alloc, df_live_reset,
11354         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11355         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11356         df_live_verify_solution_start, df_live_verify_solution_end,
11357         df_live_verify_transfer_functions, df_chain_create_bb,
11358         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11359         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11360         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11361         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11362         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11363         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11364         df_byte_lr_bottom_dump, df_create_unused_note,
11365         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11366         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11367         df_md_transfer_function, df_md_init, df_md_confluence_0,
11368         df_md_confluence_n,
11369         df_md_top_dump, df_md_bottom_dump): Update.
11370         (struct df_lr_problem_data): Embedd bitmap headers.
11371
11372 2010-06-04  Jan Hubicka  <jh@suse.cz>
11373
11374         * dce.c (dce_process_block): Do not re-scan already marked
11375         instructions.
11376
11377 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11378
11379         PR rtl-optimization/39871
11380         PR rtl-optimization/40615
11381         PR rtl-optimization/42500
11382         PR rtl-optimization/42502
11383         * ira.c (init_reg_equiv_memory_loc: New function.
11384         (ira): Call it twice.
11385         * reload.h (calculate_elim_costs_all_insns): Declare.
11386         * ira-costs.c: Include "reload.h".
11387         (regno_equiv_gains): New static variable.
11388         (init_costs): Allocate it.
11389         (finish_costs): Free it.
11390         (ira_costs): Call calculate_elim_costs_all_insns.
11391         (find_costs_and_classes): Take estimated elimination costs
11392         into account.
11393         (ira_adjust_equiv_reg_cost): New function.
11394         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11395         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11396         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11397         (elim_bb): New static variable.
11398         (reload): Move code out of here into init_eliminable_invariants and
11399         free_reg_equiv.  Call them.
11400         (calculate_elim_costs_all_insns): New function.
11401         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11402         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11403         but call note_reg_elim_costly if we turned a valid memory address
11404         into an invalid one.
11405         * Makefile.in (ira-costs.o): Depend on reload.h.
11406
11407 2010-06-04  Julian Brown  <julian@codesourcery.com>
11408
11409         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11410         for pool ranges.
11411
11412 2010-06-04  Richard Guenther  <rguenther@suse.de>
11413
11414         PR lto/41584
11415         * cgraph.h (struct varpool_node): Add lto_file_data field.
11416         * lto-cgraph.c (input_varpool_node): Initialize it.
11417
11418 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11419
11420         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11421         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11422         predicate in "type" attribute calculation.
11423         (*addsi_1_zext): Ditto.
11424         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11425         (*addsi_2_zext): Ditto.
11426         (*add<mode>_3): Ditto.
11427         (*addsi_3_zext): Ditto.
11428         (*add<mode>_5): Ditto.
11429
11430 2010-06-03  Jan Hubicka  <jh@suse.cz>
11431
11432         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11433         of bitmap_bit_p.
11434         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11435
11436 2010-06-03  Jan Hubicka  <jh@suse.cz>
11437
11438         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11439         micro-optimize the checks when to add new note.
11440
11441 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11442
11443         * final.c (output_asm_insn): Call
11444         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11445         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11446         (output_address): Call targetm.asm_out.print_operand_address.
11447         Update comments.
11448         * target.h (struct gcc_target): Add print_operand,
11449         print_operand_address, and print_operand_punct_valid_p fields.
11450         * targhooks.h (default_print_operand): Declare.
11451         (default_print_operand_address): Declare.
11452         (default_print_operand_punct_valid_p): Declare.
11453         * targhooks.c (default_print_operand): Define.
11454         (default_print_operand_address): Define.
11455         (default_print_operand_punct_valid_p): Define.
11456         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11457         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11458         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11459         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11460         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11461         * vmsdbgout.c (addr_const_to_string): Update comment.
11462         * config/i386/i386.c (print_operand): Rename to...
11463         (ix86_print_operand): ...this.  Make static.
11464         (print_operand_address): Rename to...
11465         (ix86_print_operand_address): ...this.  Make static.  Call
11466         ix86_print_operand instead of PRINT_OPERAND.
11467         (ix86_print_operand_punct_valid_p): New function.
11468         (TARGET_PRINT_OPERAND): Define.
11469         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11470         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11471         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11472         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11473         (PRINT_OPERAND): Delete.
11474         (PRINT_OPERAND_ADDRESS): Delete.
11475         * config/i386/i386-protos.h (print_operand): Delete prototype.
11476         (print_operand_address): Delete prototype.
11477
11478 2010-06-03  Richard Guenther  <rguenther@suse.de>
11479
11480         PR tree-optimization/44403
11481         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11482         Preserve pointer qualifiers.
11483         (vect_create_data_ref_ptr): Likewise.
11484
11485 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11486
11487         PR c++/44294
11488         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11489
11490         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11491
11492 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11493
11494         PR debug/44375
11495         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11496         return false if merging the bbs would lead to goto_locus
11497         location being lost from the IL.
11498
11499 2010-06-03  Jan Hubicka  <jh@suse.cz>
11500             Jakub Jelinek  <jakub@redhat.com>
11501
11502         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11503         set->regs[i] is NULL or has just one entry.
11504
11505 2010-06-03  Jan Hubicka  <jh@suse.cz>
11506
11507         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11508         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11509
11510 2010-06-03  Paul Brook  <paul@codesourcery.com>
11511
11512         * config/arm/arm.c (FL_TUNE): Define.
11513         (arm_default_cpu, arm_cpu_select): Remove.
11514         (all_cores): Populate core field.
11515         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11516         (arm_find_cpu): New function.
11517         (arm_handle_option): Lookup cpu/architecture names.
11518         (arm_override_options): Cleanup mcpu/march/mtune handling.
11519         (arm_file_start): Ditto.
11520
11521 2010-06-03  Alan Modra  <amodra@gmail.com>
11522
11523         PR target/44169
11524         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11525         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11526         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11527         (rs6000_emit_load_toc_table): Likewise.
11528
11529 2010-06-02  Jan Hubicka  <jh@suse.cz>
11530
11531         * passes.c (init_optimization_passes): Put ipa reference
11532         after ipa pure-const.
11533
11534 2010-06-02  Jan Hubicka  <jh@suse.cz>
11535
11536         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11537         calls_read_all and calls_write_all.
11538         (get_reference_optimization_summary): Fix formatting.
11539         (is_proper_for_analysis): Check that decl is not readonly.
11540         (propagate_bits): Check CONST/PURE/noreturn flags.
11541         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11542         (analyze_function): Ignore indirect edges.
11543         (copy_global_bitmap): For all module statics, do nothing.
11544         (generate_summary): Do not print calls_read_all/calls_write_all.
11545         (read_write_all_from_decl): Take node as argument; check
11546         cgraph_node_cannot_return.
11547         (propagate): Reorganize read_all/write_all computation;
11548         check indirect edges; check ecf flags; use all_module_statics
11549         in the results; do not free all_module_statics.
11550         (stream_out_bitmap): Handle all_module_statics.
11551         (ipa_reference_write_optimization_summary): Likewise; use
11552         varpool/cgraph encoders to get boundaries.
11553         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11554         use it when possible.
11555
11556 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11557
11558         PR target/44218
11559         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11560         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11561
11562         * doc/extend.texi (powerpc builtins): Document vec_recip,
11563         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11564
11565         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11566         (rs6000_emit_swrsqrt): Ditto.
11567         (rs6000_emit_swdivsf): Delete.
11568         (rs6000_emit_swdivdf): Ditto.
11569         (rs6000_emit_swrsqrtsf): Ditto.
11570
11571         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11572         describe the reciprocal estimate support for each type.
11573         (recip_options): Map -mrecip=<opt> into option bits.
11574         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11575         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11576         reciprocal estimate instructions.
11577         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11578         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11579         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11580         cost information if -mdebug=cost or -mdebug=reg.
11581         (rs6000_override_options): Set -mrecip-precision for power6, and
11582         power7 machines.  If -mvsx or -mdfp, enable various options that
11583         came in previous instruction set ISAs, unless the option was
11584         explicitly disabled by the command line option.  Parse
11585         -mrecip=<opt> options.
11586         (rs6000_builtin_vectorized_function): Add support for vectorizing
11587         the reciprocal estimate builtins and expansions.
11588         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11589         (bdesc_2arg): Add reciprocal estimate builtins.
11590         (bdesc_1arg): Add reciprocal square root estimate builtins.
11591         (rs6000_expand_builtin): Rewrite to use a switch statement,
11592         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11593         (rs6000_init_builtins): Create declarations for reciprocal
11594         estimate builtins.
11595         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11596         sized, prefer traditional floating point registers, if integer
11597         vector types, prefer altivec registers.  Don't actually look at
11598         the memory address any more.
11599         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11600         builtins.
11601         (rs6000_load_constant_and_splat): New helper function to load up
11602         the constant for reciprocal estimate instructions.
11603         (rs6000_emit_madd): New helper function for generating
11604         multiply/add type instructions, based on the current switches.
11605         (rs6000_emit_msub): Ditto.
11606         (rs6000_emit_mnsub): Ditto.
11607         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11608         replace a divide with a reciprocal estimate and fixup, adding
11609         support for machines with high precision and vectors.
11610         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11611         low precision machines.
11612         (rs6000_emit_swdiv): New common function to be called to replace a
11613         division with reciprocal estimate and fixup.
11614         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11615         for double and vector types.  Add support for high precision machines.
11616
11617         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11618         the reciprocal estimate instructions can be generated.
11619         (TARGET_FRE): Ditto.
11620         (TARGET_FRSQRTES): Ditto.
11621         (TARGET_FRSQRTE): Ditto.
11622         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11623
11624         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11625         square root estimate on vectors.
11626         (re<mode>2): New insn for reciprocal division estimate on vectors.
11627
11628         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11629         New builtin.
11630         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11631         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11632         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11633         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11634         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11635         (RS6000_BUILTIN_RSQRT): Ditto.
11636         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11637         floating point builtin.
11638
11639         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11640         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11641         __RECIP_PRECISION__ based on the command line switches.
11642         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11643
11644         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11645         replacing division instructions with reciprocal estimate and fixup.
11646         (-mrecip=<opt>): New option.
11647         (-mrecip-precision): Ditto.
11648
11649         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11650         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11651         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11652         precision scalar.
11653
11654         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11655         (UNSPEC_VREFP): Ditto.
11656         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11657         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11658         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11659         reciprocal estimate instructions to be generated.
11660         (altivec_vrefp): Ditto.
11661
11662         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11663         estimate support.
11664         (rreg): New mode attribute for reciprocal estimate support.
11665         (recip<mode>3): New insn for division using reciprocal estimate
11666         and fixup builtins.
11667         (divide define_split): New define_split to convert floating point
11668         division to use reciprocal estimate if the user used the
11669         appropriate options and the split is run when we can add new
11670         pseudo registers for the fixup.
11671         (rsqrt<mode>2): New insn for reciprocal square root support.
11672         (recipsf3): Move into recip<mode>3.
11673         (recipdf3): Ditto.
11674         (fres): Use TARGET_FRES.
11675         (rsqrtsf2): Move into rsqrt<mode>2.
11676         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11677         (copysignsf3): Add support for VSX.
11678         (fred): Use TARGET_FRE.
11679         (fred_fpr): Ditto.
11680         (rsqrtdf_internal1): New function for frsqrte instruciton.
11681
11682         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11683         (vec_rsqrt): Ditto.
11684
11685 2010-06-03  Richard Guenther  <rguenther@suse.de>
11686
11687         PR middle-end/44291
11688         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11689         (set_user_assembler_libfunc): Likewise.
11690
11691 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11692
11693         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11694         defaults.h.
11695         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11696         to defaults.h
11697         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11698         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11699         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11700         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11701         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11702         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11703         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11704         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11705         * defaults.h: Updated for above mentioned changes.
11706
11707 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11708
11709         * c-common.c: Remove header include of tm_p.h.
11710         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11711
11712 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11713
11714         * tree.h (struct tree_decl_map): New type.
11715         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11716         (tree_decl_map_hash): New prototype.
11717         (debug_expr_for_decl, value_expr_for_decl): Change into
11718         tree_decl_map hashtab from tree_map.
11719         (init_ttree): Adjust initialization.
11720         (tree_decl_map_hash): New function.
11721         (decl_debug_expr_lookup, decl_debug_expr_insert,
11722         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11723
11724 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11725
11726         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11727         linker emulations.
11728         * configure: Regenerate.
11729         * config.in: Regenerate.
11730
11731         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11732         (X86_64_EMULATION): Define.
11733         (TARGET_LD_EMULATION): Use them.
11734
11735         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11736         (SPARC64_EMULATION): Define.
11737         (LINK_ARCH_SPEC): Use them.
11738
11739 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11740
11741         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11742         smallest_mode_for_size for computing the precision types of new
11743         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11744
11745 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11746
11747         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11748         information.
11749         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11750
11751 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11752
11753         PR middle-end/44363
11754         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11755         return false instead.
11756
11757 2010-06-02  Jan Hubicka  <jh@suse.cz>
11758
11759         PR middle-end/44295
11760         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11761         create new cgraph node to check callee.
11762
11763 2010-06-02  Richard Guenther  <rguenther@suse.de>
11764
11765         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11766
11767 2010-06-02  Richard Guenther  <rguenther@suse.de>
11768
11769         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11770         (lto_wrapper_cleanup): ... this.  Do not exit.
11771         (fatal): Adjust.  Exit here.
11772         (fatal_perror): Likewise.
11773         (fatal_signal): New function.
11774         (main): Set up signal handlers to cleanup temporary files.
11775         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11776
11777 2010-06-02  Richard Guenther  <rguenther@suse.de>
11778
11779         PR tree-optimization/44377
11780         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11781
11782 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11783
11784         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11785         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11786         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11787         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11788         instruction.
11789         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11790
11791 2010-06-02  Jan Hubicka  <jh@suse.cz>
11792
11793         * bitmap.c (bitmap_descriptor): Add search_iter.
11794         (bitmap_find_bit): Increment it.
11795         (print_statistics): Print it.
11796
11797 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11798
11799         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11800         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11801
11802 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11803
11804         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11805         change from yesterday.
11806
11807 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11808
11809         * c-ada-spec.c: Clean up redundant includes.
11810
11811 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11812
11813         * gimplify.c: Do not include except.h and optabs.h.
11814         (gimplify_body): Do not initialize RTL profiling.
11815         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11816         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11817         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11818         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11819         langhooks.h.
11820
11821         * tree-pretty-print.h: Include pretty-print.h.
11822         * gimple-pretty-print.h: Include pretty-print.h.
11823
11824         * tree-pretty-print.c: Do not include diagnostic.h.
11825         * tree-vrp.c: Likewise.
11826         * tree-tailcall.c: Likewise
11827         * tree-scalar-evolution.c: Likewise
11828         * tree-ssa-dse.c: Likewise
11829         * tree-chrec.c: Likewise
11830         * tree-ssa-sccvn.c: Likewise
11831         * tree-ssa-copyrename.c: Likewise
11832         * tree-nomudflap.c: Likewise
11833         * tree-call-cdce.c: Likewise
11834         * tree-stdarg.c: Likewise
11835         * tree-ssa-math-opts.c: Likewise
11836         * tree-nrv.c: Likewise
11837         * tree-ssa-sink.c: Likewise
11838         * tree-browser.c: Likewise
11839         * tree-ssa-loop-ivcanon.c: Likewise
11840         * tree-ssa-loop.c: Likewise
11841         * tree-parloops.c: Likewise
11842         * tree-ssa-address.c: Likewise
11843         * tree-ssa-ifcombine.c: Likewise
11844         * tree-if-conv.c: Likewise
11845         * tree-data-ref.c: Likewise
11846         * tree-affine.c: Likewise
11847         * tree-ssa-phiopt.c: Likewise
11848         * tree-ssa-coalesce.c: Likewise
11849         * tree-ssa-pre.c: Likewise
11850         * tree-ssa-live.c: Likewise
11851         * tree-predcom.c: Likewise
11852         * tree-ssa-forwprop.c: Likewise
11853         * tree-ssa-dce.c: Likewise
11854         * tree-ssa-ter.c: Likewise
11855         * tree-ssa-loop-prefetch.c: Likewise
11856         * tree-optimize.c: Likewise
11857         * tree-ssa-phiprop.c: Likewise
11858         * tree-object-size.c: Likewise
11859         * tree-outof-ssa.c: Likewise
11860         * tree-ssa-structalias.c: Likewise
11861         * tree-switch-conversion.c: Likewise
11862         * tree-ssa-reassoc.c: Likewise
11863         * tree-ssa-operands.c: Likewise
11864         * tree-vectorizer.c: Likewise
11865         * tree-vect-data-refs.c: Likewise
11866         * tree-vect-generic.c: Likewise
11867         * tree-vect-stmts.c: Likewise
11868         * tree-vect-patterns.c: Likewise
11869         * tree-vect-slp.c: Likewise
11870         * tree-vect-loop.c: Likewise
11871         * tree-ssa-loop-ivopts.c: Likewise
11872         * tree-ssa-loop-im.c: Likewise
11873         * tree-ssa-loop-niter.c: Likewise
11874         * tree-ssa-loop-unswitch.c: Likewise
11875         * tree-ssa-loop-manip.c: Likewise
11876         * tree-ssa-loop-ch.c: Likewise
11877         * tree-dump.c: Likewise
11878         * tree-complex.c: Likewise
11879
11880         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11881         * tree-ssa-uninit.c: Likewise
11882         * tree-ssa-threadupdate.c: Likewise
11883         * tree-ssa-uncprop.c: Likewise
11884         * tree-ssa-ccp.c: Likewise
11885         * tree-ssa-dom.c: Likewise
11886         * tree-ssa-propagate.c: Likewise
11887         * tree-ssa-alias.c: Likewise
11888         * tree-dfa.c: Likewise
11889         * tree-cfgcleanup.c: Likewise
11890         * tree-sra.c: Likewise
11891         * tree-ssa-copy.c: Likewise
11892         * tree-ssa.c: Likewise
11893         * tree-profile.c: Likewise
11894         * tree-cfg.c: Likewise
11895         * tree-ssa-threadedge.c: Likewise
11896         * tree-vect-loop-manip.c: Likewise
11897
11898         * tree-inline.c: Do not include diagnostic.h and expr.h.
11899         Include rtl.h.
11900         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11901
11902         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11903         * tree-loop-distribution.c: Likewise.
11904
11905 2010-06-01  Jan Hubicka  <jh@suse.cz>
11906
11907         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11908
11909 2010-06-01  Jan Hubicka  <jh@suse.cz>
11910
11911         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11912         remove return value.
11913         (split_bbs_on_noreturn_calls) .... here.
11914         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11915         * tree-flow.h (fixup_noreturn_call): New.
11916
11917 2010-06-01  Jan Hubicka  <jh@suse.cz>
11918
11919         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11920
11921 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11922
11923         * tree.h (build_nt_call_list): Delete.
11924         * tree.c (build_nt_call_list): Delete.
11925
11926 2010-06-01  Jan Hubicka  <jh@suse.cz>
11927
11928         * fwprop.c: Make emit-rtl.h include last.
11929         * rtlanal.c: Include emit-rtl.h.
11930         * genautomata.c: Output emit-rtl include into insn-automata.c
11931         * df-scan.c: Include emit-rtl.h.
11932         * haifa-sched.c: Indlude emit-rtl.h.
11933         * mode-switching.c: Indlude emit-rtl.h.
11934         * graph.c: Indlude emit-rtl.h.
11935         * sel-sched.c: Include emit-rtl.h.
11936         * sel-sched-ir.c: Include emit-rtl.h.
11937         * ira-build.c: Include emit-rtl.h.
11938         * emit-rtl.c (first_insn, last_insn): Remove defines.
11939         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11940         Move to emit-rtl.h.
11941         (set_new_first_and_last_insn, get_last_insn_anywhere,
11942         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11943         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11944         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11945         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11946         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11947         Use accessor functions.
11948         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11949          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11950         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11951         mem_expr_equal_p): Move here from rtl.h.
11952         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11953         Move here from emit-rtl.c; make inline.
11954         * cfglayout.h: Include emit-rtl.h.
11955         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11956          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11957         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11958         mem_expr_equal_p, get_insns, set_first-insn,
11959         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11960         * reg-stack.c: Include emit-rtl.h.
11961         * dce.c: Likewise.
11962
11963 2010-06-01  Jan Hubicka  <jh@suse.cz>
11964
11965         * cgraph.h (tree_function_versioning): Update prototype.
11966         (cgraph_function_versioning): Update prototype.
11967         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11968         bitmap.
11969         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11970         (cgraph_materialize_clone, save_inline_function_body): Update use of
11971         tree_function_versioning.
11972         * tree-inline.c (copy_bb): Look for previous copied block to link
11973         after; fix debug output.
11974         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11975         (copy_body): Likewise.
11976         (expand_call_inline): Update use of copy_body.
11977         (tree_function_versioning): Update use of copy body; accept
11978         blocks_to_copy and new_entry.
11979
11980 2010-06-01  Jan Hubicka  <jh@suse.cz>
11981
11982         * gegenrtl.c: Remove unnecesary prototypes.
11983         (gendecl): Remove.
11984         (gendef): Produce static inline.
11985         (gencode): Remove.
11986         (main): Do not decode parameters; generate header only.
11987         * Makefile.in (genrtl.c): Remove.
11988
11989 2010-06-01  Jan Hubicka  <jh@suse.cz>
11990
11991         * tree-switch-conversion.c (build_one_array): Make it readonly.
11992
11993 2010-06-01  Richard Guenther  <rguenther@suse.de>
11994
11995         * optabs.c (init_optabs): Guard all accesses to reinit.
11996         * ipa-pure-const.c (propagate): Fix another typo.
11997         * opts.c (common_handle_option): Split assignment to bool.
11998         * c-opts.c (c_common_handle_option): Likewise.
11999
12000 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
12001             Matthew Gingell  <gingell@adacore.com>
12002
12003         * doc/invoke.texi: Mention -fdump-ada-spec.
12004         * tree-dump.c (dump_files): Add ada-spec.
12005         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
12006         * tree-pass.h (tree_dump_index): Add TDI_ada.
12007         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
12008         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
12009         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
12010         * c-decl.c: Include c-ada-spec.h.
12011         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
12012         functions.
12013         (c_write_global_declarations): Add handling of -fdump-ada-spec.
12014         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
12015         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
12016         * c-ada-spec.h, c-ada-spec.c: New files.
12017
12018 2010-06-01  Richard Guenther  <rguenther@suse.de>
12019
12020         PR lto/43853
12021         * ipa-pure-const.c (get_function_state): Hand back varying state
12022         if we do not have one.
12023         (has_function_state): New function.
12024         (duplicate_node_data): Adjust.
12025         (remove_node_data): Likewise.
12026         (pure_const_write_summary): Likewise.
12027         (propagate): Likewise.  Fix typo.
12028
12029 2010-06-01  Jan Hubicka  <jh@suse.cz>
12030
12031         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
12032         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
12033         (execute_all_ipa_transforms): Do not play with the states.
12034
12035 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
12036
12037         * config/arm/t-linux-androideabi: New.
12038         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
12039
12040 2010-06-01  Jan Hubicka  <jh@suse.cz>
12041
12042         * tree-inline.c (estimate_num_insns): For stdarg functions look
12043         into call statement to count cost of argument passing.
12044
12045 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
12046
12047         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
12048         argument for fprintf.
12049         (ix86_output_addr_diff_elt): Likewise.
12050         (x86_function_profiler): Likewise.
12051         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
12052         (LPREFIX): Likewise.
12053         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
12054
12055 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12056
12057         PR target/44338
12058         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
12059         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
12060         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
12061         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
12062         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
12063         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
12064         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
12065         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
12066         TARGET_FUSED_MADD.
12067
12068 2010-05-31  Jan Hubicka  <jh@suse.cz>
12069
12070         * tree.h (tree_range_check_failed): Declare noreturn.
12071
12072 2010-05-31  Jan Hubicka  <jh@suse.cz>
12073
12074         * gimple.c (gimple_call_builtin_p): New function.
12075         * gimple.h (gimple_call_builtin_p): Declare.
12076         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
12077         to exit.
12078         (execute_warn_function_return): BUILT_IN_RETURN is return.
12079         (split_critical_edges): Return edges are not critical.
12080         (is_ctrl_altering_stmt): Builtin_in_return is altering.
12081         (gimple_verify_flow_info): Handle built_in_return.
12082         (execute_warn_function_return): Handle built_in_return.
12083         * ipa-pure-const.c (check_call): Ignore builtin_return.
12084
12085 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12086
12087         PR middle-end/44337
12088         * expr.c (expand_assignment): Don't store anything for out-of-bounds
12089         array accesses with non-MEM.
12090
12091         PR tree-optimization/44182
12092         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
12093         newly needs to end a bb is followed by debug stmts, instead return
12094         true from the function at the end.
12095         (maybe_move_debug_stmts_to_successors): New function.
12096         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
12097
12098 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
12099
12100         PR target/44161
12101         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
12102
12103 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12104
12105         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
12106         for nested functions in non-optimized compilation.
12107
12108 2010-05-31  Richard Guenther  <rguenther@suse.de>
12109
12110         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
12111
12112 2010-05-30  Jan Hubicka  <jh@suse.cz>
12113
12114         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
12115
12116 2010-05-30  Richard Guenther  <rguenther@suse.de>
12117
12118         PR lto/42975
12119         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
12120         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
12121         no longer needed.
12122
12123 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
12124
12125         * config/darwin.c (output_objc_section_asm_op): Add comment.
12126         (name_needs_quotes): Add '_' to list of valid comment chars.
12127         (machopic_output_function_base_name): Remove unneeded quotes.
12128         (darwin_encode_section_info): Adjust asm whitespace.
12129         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
12130         (ASM_OUTPUT_LOCAL): Ditto.
12131         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
12132         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
12133         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
12134
12135 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12136
12137         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
12138         RS6000_OUTPUT_BASENAME unconditionally.
12139         (rs6000_output_function_epilogue): Likewise.
12140
12141 2010-05-30  Jan Hubicka  <jh@suse.cz>
12142
12143         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
12144         nodes.
12145
12146 2010-05-30  Richard Guenther  <rguenther@suse.de>
12147
12148         * tree-cfg.c (verify_gimple_assign_single): Implement
12149         verification for COND_EXPR rhs.
12150
12151 2010-05-30  Jan Hubicka  <jh@suse.cz>
12152
12153         * cgraph.h (cgraph_dump_file): Declare.
12154         * cgraphunit.c (cgraph_dump_file): Export.
12155         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
12156
12157 2010-05-30  Jan Hubicka  <jh@suse.cz>
12158
12159         * dwarf2out.c (reference_to_unused,
12160         premark_types_used_by_global_vars_helper): Avoid creation of new
12161         varpool nodes.
12162
12163 2010-05-30  Jan Hubicka  <jh@suse.cz>
12164
12165         * cgraph.h (cgraph_node_cannot_return,
12166         cgraph_edge_cannot_lead_to_return): New functions.
12167         * cgraph.c (cgraph_node_cannot_return,
12168         cgraph_edge_cannot_lead_to_return): Use them.
12169         * ipa-pure-const.c (pure_const_names): New static var.
12170         (check_call): Handle calls not leading to return.
12171         (pure_const_read_summary): Dump info read.
12172         (propagate): Dump info about propagation process; ignore side effects
12173         of functions not leading to exit; fix handling of pure functions.
12174
12175 2010-05-30  Jan Hubicka  <jh@suse.cz>
12176
12177         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12178         for tail call epilogues.
12179
12180 2010-05-30  Jan Hubicka  <jh@suse.cz>
12181
12182         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12183         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12184         dump files.
12185
12186 2010-05-29  Jan Hubicka  <jh@suse.cz>
12187
12188         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12189         node; remove references in node we no longer keep in cgrpah but need
12190         body of.
12191
12192 2010-05-29  Jan Hubicka  <jh@suse.cz>
12193
12194         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12195
12196 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12197
12198         PR target/44165
12199         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12200
12201 2010-05-29  Jan Hubicka  <jh@suse.cz>
12202
12203         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12204         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12205         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12206         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12207         debug_names_replaced_by, debug_update_ssa): Likewise.
12208         * sbitmap.c (debug_sbitmap): Likewise.
12209         * genrecog.c (debug_decision, debug_decision_list): Likewise.
12210         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12211         debug_tree_chain): Likewise.
12212         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12213         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12214         * optabs.c (debug_optab_libfuncs): Likewise.
12215         (verify_loop_closed_ssa): Likewise.
12216         * value-prof.c (verify_histograms): Likewise.
12217         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12218         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12219         * cfghooks.c (verify_flow_info): Likewise.
12220         * fold-const.c (debug_fold_checksum): Likewise.
12221         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12222         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12223         Likewise.
12224         * omega.c (debug_omega_problem): Likewise.
12225         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12226         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12227         * dominance.c (verify_dominators, debug_dominance_info,
12228         debug_dominance_tree): Likewise.
12229         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12230         * df_regno_debug, df_ref_debug,
12231         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12232         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12233         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12234         * sel-sched.c (debug_state): Likewise.
12235         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12236         Likewise.
12237         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12238         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12239         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12240         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12241         Likewise.
12242         * c-pretty-print.c (debug_c_tree): Likewise.
12243         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12244         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12245         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12246         * ebitmap.c (debug_ebitmap): Likewise.
12247         * function.c (debug_find_var_in_block_tree): Likewise.
12248         * print-rtl.c (debug_rtx): Likewise.
12249         (debug_rtx_count): Likewise.
12250         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12251         * stor-layout.c (debug_rli): Likewise.
12252         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12253         * tree-data-ref.c (debug_data_references,
12254         debug_data_dependence_relations, debug_data_reference,
12255         debug_data_dependence_relation, debug_rdg_vertex,
12256         debug_rdg_component, debug_rdg): Likewise.
12257         * tree-affine.c (debug_aff): Likewise.
12258         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12259         Likewise.
12260         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12261         * emit-rtl.c (verify_rtl_sharing): Likewise.
12262         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12263         debug_value_expressions): Likewise.
12264         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12265         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12266         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12267         * cfglayout.c (verify_insn_chain): Likewise.
12268         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12269         debug_clast_stmt, debug_generated_program): Likewise.
12270         * ggc-page.c (debug_print_page_list): Likewise.
12271         * tree-ssa-ter.c (debug_ter): Likewise.
12272         * graphite-dependences.c (debug_pddr): Likewise.
12273         * sched-deps.c (debug_ds): Likewise.
12274         * tree-ssa.c (verify_ssa): Likewise.
12275         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12276         debug_scattering_functions, debug_iteration_domains, debug_pdr,
12277         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12278         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12279         * tree-inline.c (debug_find_tree): Likewise.
12280         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12281         debug_ppl_powerset_matrix): Likewise.
12282         * var-tracking.c (debug_dv): Likewise.
12283         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12284         * cfgloop.c (verify_loop_structure): Likewise.
12285         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12286         * c-common.c (verify_sequence_points): Likewise.
12287         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12288         debug_candidates, debug_rgn_dependencies): Likewise.
12289         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12290         * debug_constraint_graph, debug_solution_for_var,
12291         debug_sa_points_to_info): Likewise.
12292         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12293         Likewie.
12294         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12295         debug_loops, debug_loop, debug_loop_num): Likewise.
12296         * passes.c (debug_pass): Likewise.
12297         (dump_properties): Likewise; add cfglayout property.
12298         (debug_properties): Likewise.
12299         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12300         * varpool.c (debug_varpool): Likewise.
12301         * regcprop.c (debug_value_data): Likewise.
12302         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12303         debug_immediate_uses_for): Likewise.
12304
12305 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12306
12307         PR bootstrap/44315
12308         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12309         Filter out insn-flags.h.
12310
12311 2010-05-29  Jan Hubicka  <jh@suse.cz>
12312
12313         * cgraph.h (struct varpool_node_set_def,
12314         struct cgraph_node_set_def): Remove unused AUX pointer.
12315         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12316         VEC_empty macro.
12317
12318 2010-05-29  Jan Hubicka  <jh@suse.cz>
12319
12320         PR middle-end/44324
12321         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12322
12323 2010-05-29  Richard Guenther  <rguenther@suse.de>
12324
12325         * lto-streamer.c (cached_bp): New global variable.
12326         (bitpack_create): Return the cached bitpack, if available.
12327         (bitpack_delete): Clear and cache the bitpack, if appropriate.
12328         (bp_pack_value): Remove redundant asserts.
12329
12330 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12331
12332         PR middle-end/44306
12333         * tree-if-conv.c (is_true_predicate): New.
12334         (is_predicated): Use is_true_predicate.
12335         (add_to_predicate_list): Same.  Do not use unshare_expr.
12336         (add_to_dst_predicate_list): Same.
12337
12338 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12339
12340         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12341         field on edges.
12342         (predicate_bbs): Same.
12343         (clean_predicate_lists): Same.
12344         (find_phi_replacement_condition): Do not AND the predicate from
12345         edge->aux.
12346
12347 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12348
12349         PR bootstrap/44315
12350         * Makefile.in (build/gencondmd.o): Add a missing `\'.
12351
12352 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12353
12354         PR target/44261
12355         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12356         (negdf2): Adjust expander pattern and use negdf2_slow.
12357         (negsf2): Likewise.
12358
12359 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
12360
12361         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12362         up.
12363         * df.h (struct df_base_ref): Move regno field up.
12364         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12365         * expr.h (struct separate_ops): Move location field up.
12366         * optabs.h (struct optab_d): Move libcall_basename field down.
12367         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12368         * config/i386/i386.h (struct machine_function): Convert call_abi field
12369         into a bitfield.  Move cfa field to the end of the structure.
12370
12371 2010-05-29  Jan Hubicka  <jh@suse.cz>
12372
12373         * varpool.c (varpool_get_node): Fix lookup.
12374
12375 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12376
12377         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12378         RTL specific prototypes with #ifdef RTX_CODE.
12379         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12380         * config/spu/t-spu-elf: Fix dependencies.
12381
12382         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12383
12384 2010-05-29  Mike Stump  <mikestump@comcast.net>
12385
12386         PR bootstrap/44315
12387         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12388         TM_H when building to avoid dependency loops.
12389
12390 2010-05-29  Jan Hubicka  <jh@suse.cz>
12391
12392         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12393         refs and body; not the whole node for masters of materialized clones.
12394
12395 2010-05-29  Mike Stump  <mikestump@comcast.net>
12396
12397         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12398
12399 2010-05-29  Jan Hubicka  <jh@suse.cz>
12400
12401         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12402         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12403         use of clone_function_name.
12404         * cgraph.h (cgraph_create_virtual_clone,
12405         cgraph_function_versioning): update prototypes.
12406         (clone_function_name): Declare.
12407         * ipa-cp.c (ipcp_insert_stage): Update call of
12408         cgraph_create_virtual_clone.
12409         * omp-low.c (create_omp_child_function_name): Use
12410         cgraph_create_virtual_clone.
12411         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12412         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12413         and make decl local.
12414
12415 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12416
12417         * vec.h: Include statistics.h
12418         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12419         with VEC_H.
12420
12421 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12422
12423         * c-lex.c: Do not include c-tree.h.
12424         * c-pretty-print.c: Likewise.
12425         * c-opts.c: Likewise.
12426         * c-gimplify.c: Likewise.
12427         * c-common.c: Likewise.
12428         * c-dump.c: Likewise.  Include c-common.h.
12429
12430 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12431
12432         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12433         before including diagnostic-core.h.
12434         (c_cpp_error): New prototype moved from c-tree.h.
12435         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12436         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12437         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12438         (c_cpp_error): Prototype moved to c-common.h.
12439         * Makefile.in: Update dependency for C_COMMON_H.
12440
12441 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12442
12443         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12444         * c-common.c (c_register_addr_space): Remove here.
12445         * c-decl.c (c_register_addr_space): Re-add here.
12446
12447 2010-05-28  Mike Stump  <mikestump@comcast.net>
12448
12449         * config/darwin-c.c: Remove c-tree.h include.
12450
12451 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12452
12453         * gcc.c: Include diagnostic.h.
12454         (error_count): Remove.  All users changed to use errorcount.
12455         (programname): Remove.  All users changed to use progname.
12456         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12457         fnotice): Remove.
12458         (execute): Don't include "Internal error" and bug reporting
12459         information in argument of internal_error call.
12460         (process_command): Don't increment error_count after calling
12461         perror_with_name.
12462         (input_filename): Rename to gcc_input_filename.  All users
12463         changed.
12464         (main): Call diagnostic_initialize.  Register delete_temp_files
12465         with atexit.  Use seen_error to test for errors.
12466         * gcc.h: Include diagnostic-core.h.
12467         (fatal_error, error, warning): Remove.
12468         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12469         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12470         (gcc.o): Update dependencies.
12471
12472 2010-05-28  Jeff Law  <law@redhat.com>
12473
12474         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12475         functions.
12476         * ira.h (ira_bad_reload_regno): Declare
12477         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12478
12479         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12480         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12481         (allocno_reload_assign): Likewise.
12482
12483 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12484
12485         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12486         build1_stat.
12487
12488 2010-05-28  Richard Guenther  <rguenther@suse.de>
12489
12490         PR lto/44312
12491         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12492         Stream fixed-point constants mode.
12493         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12494         and TYPE_PRECISION.
12495         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12496         Stream fixed-point constants mode.
12497         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12498         and TYPE_PRECISION.
12499
12500 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12501
12502         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12503         only place it was called from.
12504         (number_of_latch_executions): Do not return chrec_dont_know when the
12505         may_be_zero is a runtime condition: instead, return a COND_EXPR
12506         including the may_be_zero condition.
12507         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12508         of nb_iterations.
12509         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12510         COND_EXPRs.
12511
12512 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12513
12514         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12515         generate COND_EXPRs for degenerate_phi_result.
12516
12517 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12518
12519         PR middle-end/44293
12520         * tree-if-conv.c (if_convertible_loop_p): Check the
12521         if-convertibility of phi nodes in non predicated BBs.
12522
12523 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12524
12525         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12526
12527 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12528
12529         PR driver/15303
12530         * gcc.c (inform, warning, inform): New functions.
12531         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12532         gmsgid.  All callers changed.
12533         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12534         (fatal_error): Rename to fatal_signal.  All users changed.
12535         (fatal): Rename to fatal_error; change cmsgid parameter to
12536         gmsgid.  All callers changed.
12537         (process_command): Use warning instead of error for warnings.
12538         (end_going_arg): Don't use _() around argument of error.
12539         (do_spec_1): Use inform for message from %n specs.  Use warning
12540         instead of error for warnings.
12541         (main): Use inform for comparison messages.  Use warning for
12542         message about unused linker input.
12543         (error): Increment error_count.  Print "error: ".
12544         * gcc.h (fatal): Change to fatal_error.
12545         (warning): Declare.
12546         * config/darwin-driver.c (darwin_default_min_version): Use warning
12547         instead of fprintf for warnings.
12548         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12549
12550 2010-05-28  Julian Brown  <julian@codesourcery.com>
12551
12552         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12553         (*thumb2_addsi3_compare0_scratch): New.
12554         * config/arm/constraints.md (Pv): New.
12555         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12556         for ARM mode only.
12557         (*addsi3_compare0_scratch): Likewise.
12558
12559 2010-05-28  Jan Hubicka  <jh@suse.cz>
12560
12561         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12562         check.
12563         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12564         only on local statics.
12565
12566 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12567
12568         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12569
12570 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12571
12572         PR bootstrap/44314
12573         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12574         (OPTION_GLIBC): Define.
12575
12576 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12577
12578         PR debug/41048
12579         * dwarf2out.c (double_int_type_size_in_bits): New function.
12580         (round_up_to_align): Change first argument and return value to
12581         double_int.
12582         (field_byte_offset): Work internally on double_ints.
12583
12584         PR target/43636
12585         * builtins.c (expand_movstr): Use a temporary pseudo instead
12586         of target even when target is not NULL and not const0_rtx, but
12587         fails movstr predicate.
12588         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12589
12590 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12591
12592         * final.c (rest_of_clean_state): Use %m in errors instead of
12593         strerror (errno).
12594         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12595         instead of strerror.
12596         * toplev.c (process_options): Use %m in errors instead of strerror
12597         (errno).
12598         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12599         (errno).
12600
12601 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12602
12603         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12604         (ix86_canonical_va_list_type): Make static.  Add declaration.
12605         (ix86_enum_va_list): Make static.  Reindent.
12606         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12607         (ix86_canonical_va_list_type): Ditto.
12608         (ix86_enum_va_list): Ditto.
12609
12610 2010-05-28  Richard Guenther  <rguenther@suse.de>
12611
12612         * lto-wrapper.c (run_gcc): With -save-temps generate a
12613         user-visible ltrans filename.  Fixup ltrans unit numbering.
12614
12615 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12616
12617         * c-common.c (c_common_nodes_and_builtins): Replace use
12618         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12619         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12620         to ix86_enum_va_list.
12621         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12622         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12623         (TARGET_ENUM_VA_LIST_P): Add hook description.
12624         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12625         * target.h (gcc_target): Add enum_va_list hook.
12626
12627         PR bootstrap/44299
12628         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12629         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12630         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12631
12632 2010-05-28  Alan Modra  <amodra@gmail.com>
12633
12634         PR target/44266
12635         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12636         emit_library_call machinery to set up __tls_get_addr calls.
12637
12638 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12639
12640         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12641
12642 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12643
12644         Revert fix for PR c++/44188
12645         * c-common.c (is_typedef_decl): Revert the moving of  this
12646         definition ...
12647         * tree.c (is_typedef_decl): ... here.
12648         (typdef_variant_p): Revert the moving of this  definition
12649         here from gcc/cp/tree.c.
12650         * c-common.h (is_typedef_decl): Revert the moving of this
12651         declaration ...
12652         * tree.h (is_typedef_decl): ... here.
12653         (typedef_variant_p): Revert the moving of this  declaration here
12654         from gcc/cp/cp-tree.h
12655         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12656         (gen_tagged_type_die): Revert the splitting out of ...
12657         (gen_type_die_with_usage): ... this function. Revert the anonymous
12658         tagged type handling.
12659         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12660         typedefs naming anonymous tagged types.
12661
12662 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12663
12664         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12665
12666 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12667
12668         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12669         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12670         throughout.
12671         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12672         "xer" to "ca".
12673         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12674         XER_REGS to CA_REGS throughout.
12675         * config/rs6000/rs6000.h: Same.
12676         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12677         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12678         that mode_iterator "P" is the size for arithmetic carries as well.
12679         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12680
12681 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12682
12683         PR bootstrap/44255
12684         * combine.c (struct rtx_subst_pair): Define unconditionally.
12685         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12686         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12687         Call make_compound_operation on pair->to.
12688         (propagate_for_debug): Don't call make_compound_operation here.
12689         Always use simplify_replace_fn_rtx.
12690
12691 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12692
12693         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12694         * config/xtensa/xtensa.c (override_options): Check
12695           TARGET_FORCE_NO_PIC and set flag_pic.
12696         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12697
12698 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12699
12700         PR bootstrap/44299
12701         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12702         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12703
12704 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12705
12706         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12707         toplev.h.
12708         * diagnostic.c: Don't include toplev.h.
12709         (progname): Define.  Moved from toplev.c.
12710         (seen_error): New function.
12711         * diagnostic.h: Include diagnostic-core.h.
12712         (diagnostic_t, emit_diagnostic): Don't declare here.
12713         * toplev.c (progname): Move to toplev.c.
12714         (emit_debug_global_declarations, compile_file, finalize,
12715         do_compile, toplev_main): Use seen_error.
12716         * toplev.h: Include diagnostic-core.h.
12717         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12718         internal_error, warning, warning_at, error, error_n, error_at,
12719         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12720         verbatim, fnotice, progname): Move to diagnostic-core.h.
12721         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12722         (expand_builtin_expect): Use seen_error.
12723         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12724         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12725         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12726         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12727         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12728         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12729         errorcount for errors.
12730         * c-opts.c (c_common_finish): Use seen_error.
12731         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12732         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12733         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12734         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12735         (get_coverage_counts): Use seen_error.
12736         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12737         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12738         gimplify_body): Use seen_error.
12739         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12740         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12741         * ipa-reference.c (gate_reference): Use seen_error.
12742         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12743         * lambda-code.c: Include diagnostic-core.h instead of
12744         diagnostic.h.
12745         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12746         * lto-compress.c: Include diagnostic-core.h instead of
12747         diagnostic.h.
12748         * lto-section-in.c: Include diagnostic-core.h instead of
12749         diagnostic.h.
12750         * lto-streamer-out.c: Include diagnostic-core.h instead of
12751         diagnostic.h.
12752         * lto-streamer.c: Include diagnostic-core.h instead of
12753         diagnostic.h.
12754         (gate_lto_out): Use seen_error.
12755         * matrix-reorg.c: Include diagnostic-core.h instead of
12756         diagnostic.h.
12757         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12758         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12759         (gate_expand_omp, lower_omp_1): Use seen_error.
12760         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12761         (rest_of_decl_compilation, rest_of_type_compilation,
12762         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12763         * tree-cfg.c (label_to_block_fn): Use seen_error.
12764         * tree-inline.c (optimize_inline_calls): Use seen_error.
12765         * tree-mudflap.c (mudflap_finish_file): Use
12766         seen_error.
12767         * tree-optimize.c (gate_all_optimizations,
12768         gate_all_early_local_passes, gate_all_early_optimizations): Use
12769         seen_error.
12770         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12771         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12772         (varpool_remove_unreferenced_decls,
12773         varpool_assemble_pending_decls): Use seen_error.
12774         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12775         (TOPLEV_H, DIAGNOSTIC_H): Update.
12776         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12777         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12778         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12779         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12780         coverage.o, lambda-code.o): Update dependencies.
12781
12782 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12783
12784         PR c++/44188
12785         * c-common.c (is_typedef_decl): Move this definition ...
12786         * tree.c (is_typedef_decl): ... here.
12787         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12788         * c-common.h (is_typedef_decl): Move this declaration ...
12789         * tree.h (is_typedef_decl): ... here.
12790         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12791         * dwarf2out.c (is_naming_typedef_decl): New function.
12792         (gen_tagged_type_die): Split out of ...
12793         (gen_type_die_with_usage): ... this function. When an anonymous
12794         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12795         is emitted for the typedef.
12796         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12797         anonymous tagged types.
12798
12799 2010-05-27  Jason Merrill  <jason@redhat.com>
12800
12801         * print-tree.c (debug_vec_tree): New fn.
12802         (print_vec_tree): New fn.
12803         * tree.h: Declare them.
12804         * gdbinit.in (pvt): New command.
12805
12806         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12807
12808         * gdbinit.in (pdd): New command.
12809
12810 2010-05-27  Jan Hubicka  <jh@suse.cz>
12811
12812         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12813         (update_caller_keys): Return early if there are no callers;
12814         only update fibheap when decresing the key.
12815         (update_callee_keys): Avoid recursion.
12816         (decide_inlining_of_small_functions): When badness does not match;
12817         re-insert into fibheap.
12818
12819 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12820
12821         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12822         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12823         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12824         (ALL_HOST_OBJS): Now a union of the above two.
12825         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12826         all files in ALL_HOST_FRONTEND_OBJS.
12827         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12828
12829         * c-common.c: Pretend to be a backend file by undefining
12830         IN_GCC_FRONTEND (still need rtl.h here).
12831
12832 2010-05-27  Jan Hubicka  <jh@suse.cz>
12833
12834         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12835         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12836
12837 2010-05-27  Jan Hubicka  <jh@suse.cz>
12838
12839         * sched-ebb.c: Rename struct deps to struct deps_desc.
12840         * ddg.c: Likewise.
12841         * sel-sched-ir.c: Likewise.
12842         * sched-deps.c: Likewise.
12843         * sched-int.h: Likewise.
12844         * sched-rgn.c: Likewise.
12845
12846 2010-05-27  Jon Beniston  <jon@beniston.com>
12847
12848         PR 43726
12849         * config/lm32/lm32.h: Remove definition of
12850         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12851
12852 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12853
12854         PR lto/44230
12855         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12856
12857 2010-05-27  Richard Guenther  <rguenther@suse.de>
12858
12859         PR tree-optimization/44284
12860         * tree-vect-stmts.c (vectorizable_assignment): Handle
12861         sign-changing conversions as simple copy.
12862
12863 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12864
12865         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12866         Bionic C library.
12867         (__gthread_active_p): Check for pthread_create if compiling against
12868         Bionic C library.
12869
12870 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12871
12872         Support compilation for Android platform.  Reimplement -mandroid.
12873
12874         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12875         (*android*): Set ANDROID_DEFAULT.
12876         (arm*-*-linux*): Include linux-android.h.
12877         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12878         * config/arm/eabi.h: Remove, move Android-specific parts ...
12879         * config/linux-android.h: ... here.  New file.
12880         * config/arm/eabi.opt: Rename to ...
12881         * config/linux-android.opt: ... this.
12882         (mandroid): Allow -mno-android option.  Initialize based on
12883         ANDROID_DEFAULT.
12884         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12885         Move logic to corresponding LINUX_TARGET_* macros.
12886         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12887         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12888         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12889         Android definitions.
12890         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12891         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12892         Document.
12893
12894 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12895
12896         Add support for Bionic C library
12897
12898         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12899         macro.
12900         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12901         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12902
12903         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12904         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12905         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12906         to support multiple C libraries.  Handle Bionic.
12907         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12908         (BIONIC_DYNAMIC_LINKER64): Define.
12909         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12910         Update.
12911         (TARGET_HAS_SINCOS): Enable for Bionic.
12912
12913         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12914         the last option specified on command line take effect.
12915         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12916         (mbionic): New.
12917         (mglibc, muclibc): Update.
12918
12919         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12920         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12921         DEFAULT_LIBC.
12922
12923         * doc/invoke.texi (-mglibc, -muclibc): Update.
12924         (-mbionic): Document.
12925
12926 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12927
12928         * c-common.h (c_register_addr_space): Add prototype.
12929         (ADDR_SPACE_KEYWORD): Remove.
12930         * c-common.c (c_register_addr_space): New function.
12931         (c_addr_space_name): Reimplement.
12932         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12933
12934         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12935         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12936
12937         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12938         Remove TARGET_ADDR_SPACE_KEYWORDS.
12939
12940 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12941
12942         * input.c: New file.
12943         * input.h (main_input_filename): Move declaration to toplev.h.
12944         * toplev.c (input_location, line_table): Move to input.c
12945         * toplev.h (main_input_filename): Move declaration from input.h.
12946         * tree.c (expand_location): Move to input.c.
12947         * Makefile.in (OBJS-common): Add input.o.
12948         (input.o): Add dependencies.
12949
12950 2010-05-27  Richard Guenther  <rguenther@suse.de>
12951
12952         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12953         for non-existant files.
12954         (fork_execute): Mark args_name file as deleted.
12955
12956 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12957
12958         PR bootstrp/44287
12959         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12960         (narrow_signed_type): Likewise.
12961
12962 2010-05-26  Jan Hubicka  <jh@suse.cz>
12963
12964         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12965         edge only when checking is enabled; check using former_clone_of;
12966         check inline clones too.
12967         (cgraph_materialize_clone): Record former_clone_of pointer.
12968         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12969         combining redirections; dump args_to_skip bitmap
12970         (cgraph_materialize_all_clones): Do no redirection here.
12971         * ipa-inline.c (inline_transform): Do redirection here.
12972         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12973         cheking only).
12974
12975 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12976
12977         * config/avr/avr-c.c: Do not include regs.h.
12978         Include cpplib.h for cpp_define and tree.h for c-common.h.
12979         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12980         * config/avr/t-avr: Fix dependencies for avr-c.o.
12981
12982 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12983
12984         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12985         string instead of SYMBOL_REF rtx.
12986         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12987         * libfuncs.h: ...to here.  Adjust for explow.c change.
12988
12989 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12990
12991         * pretty-print.c: Don't include ggc.h.
12992         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12993         (identifier_to_locale): Use them for allocation.
12994         * pretty-print.h (identifier_to_locale_alloc,
12995         identifier_to_locale_free): Declare.
12996         * toplev.c (alloc_for_identifier_to_locale): New.
12997         (general_init): Set identifier_to_locale_alloc and
12998         identifier_to_locale_free.
12999         * Makefile.in (pretty-print.o): Update dependencies.
13000
13001 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13002
13003         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
13004         pointer types if they have different alignment or mode.
13005
13006 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
13007
13008         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13009         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13010         * config/sparc/sparc-protos.h (function_value): Remove declaration.
13011         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
13012         sparc_function_value_regno_p): New functions.
13013         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13014         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13015         (function_value): Rename to...
13016         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
13017         argument to 'outgoing'.
13018         (function_arg_record_value, function_arg_union_value,
13019         function_arg_vector_value): Update comment.
13020
13021 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13022
13023         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
13024         (fde_needed_for_eh_p): New predicate.
13025         (output_call_frame_info): Use it throughout to decide whether FDEs
13026         are needed for EH purpose.
13027         (dwarf2out_begin_prologue): Reorder assignments.
13028
13029 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13030
13031         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
13032         special case loop->header.
13033         (is_predicated): New.
13034         (if_convertible_loop_p): Call it.
13035
13036 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13037
13038         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
13039         iterator in parameter.  Do not generate code during the analysis.
13040         (tree_if_convert_cond_stmt): Removed.
13041         (tree_if_convert_stmt): Removed.
13042         (predicate_bbs): New.
13043         (if_convertible_loop_p): Call predicate_bbs.
13044         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
13045         now contains all the analysis part.
13046
13047 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13048
13049         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
13050         statements in the analysis part.
13051         (tree_if_convert_stmt): Update comment.
13052         (remove_conditions_and_labels): New.
13053         (combine_blocks): Call remove_conditions_and_labels.
13054         (tree_if_conversion): Update comment.
13055
13056 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13057
13058         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
13059         than 2 predecessors or more than 2 successors.
13060
13061 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13062
13063         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
13064         of loops in which the data dependence analysis fails.
13065
13066 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13067
13068         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
13069         CDI_POST_DOMINATORS.
13070         (tree_if_conversion): Same.
13071
13072 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13073
13074         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
13075
13076 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13077
13078         * tree-if-conv.c: Update copyright years.  Fix comments.
13079         Fix indentation.
13080
13081 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
13082
13083         * builtin-types.def (BT_INT128): New primitive type.
13084         (BT_UINT128): Likewise.
13085         * c-common.c (c_common_r): Add __int128 keyword.
13086         (c_common_type_for_size): Handle __int128.
13087         (c_common_type_for_mode): Likewise.
13088         (c_common_signed_or_unsigned_type): Likewise.
13089         (c_common_nodes_and_builtins): Add builtin type
13090         if target supports 128-bit integer scalar.
13091         * c-common.h (enum rid): Add RID_INT128.
13092         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
13093         if target supports 128-bit integer scalar.
13094         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
13095         (finish_declspecs): Likewise.
13096         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
13097         (c_token_starts_declspecs): Likewise.
13098         (c_parser_declspecs): Likewise.
13099         (c_parser_attributes): Likewise.
13100         (c_parser_objc_selector): Likewise.
13101         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
13102         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
13103         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
13104         * tree.c (make_or_reuse_type): Likewise.
13105         (make_unsigned_type): Likewise.
13106         (build_common_tree_nodes_2): Likewise.
13107         * tree.h (enum integer_type_kind): Add itk_int128 and
13108         itk_unsigned_int128.
13109         (int128_integer_type_node): New define.
13110         (int128_unsigned_type_node): New define.
13111         * doc/extend.texi: Add documentation about __int128 type.
13112
13113 2010-05-26  Richard Guenther  <rguenther@suse.de>
13114
13115         * tree-ssa-sccvn.c (copy_nary): Adjust.
13116         (copy_phis): Rename to ...
13117         (copy_phi): ... this.  Adjust.
13118         (copy_references): Rename to ...
13119         (copy_reference): ... this.  Adjust.
13120         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
13121         result into the valid table.
13122
13123 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13124
13125         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
13126         insn-config.h, insn-codes.h, recog.h, and optabs.h.
13127
13128 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13129
13130         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
13131
13132 2010-05-26  Richard Guenther  <rguenther@suse.de>
13133
13134         * opts.c (common_handle_option): Handle OPT_Ofast.
13135
13136 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13137
13138         * diagnostic.c: Don't include opts.h.
13139         (permissive_error_option): Define.
13140         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
13141         for classify_diagnostic.  Don't use memset for
13142         classify_diagnostic.  Initialize new and recently added fields.
13143         (diagnostic_classify_diagnostic): Use context->n_opts instead of
13144         N_OPTS.
13145         (diagnostic_report_diagnostic): Pass context parameter to
13146         diagnostic_report_warnings_p.  Use option_enabled and option_name
13147         hooks from context.
13148         (emit_diagnostic): Use permissive_error_option.
13149         (permerror): Likewise.
13150         * diagnostic.h: Don't include options.h.
13151         (struct diagnostic_context): Add n_opts, opt_permissive,
13152         inhibit_warnings, warn_system_headers, option_enabled and
13153         option_name fields.  Change classify_diagnostic to a pointer.
13154         * opts-diagnostic.h: New file.
13155         * opts.c: Include opts-diagnostic.h.
13156         (common_handle_option): Set global_dc fields for -Wfatal-errors,
13157         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
13158         (option_name): New function.
13159         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
13160         (c_common_handle_option): Set global_dc->permissive for
13161         -fpermissive.
13162         * c-common.c (c_cpp_error): Save and restore
13163         global_dc->warn_system_headers, not variable warn_system_headers.
13164         * toplev.c: Include opts-diagnostic.h.
13165         (general_init): Update call to diagnostic_initialize.  Set
13166         global_dc->show_column, global_dc->option_enabled and
13167         global_dc->option_name.
13168         (process_options): Don't set global_dc fields here.
13169         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
13170         (diagnostic.o, opts.o, toplev.o): Update dependencies.
13171
13172 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13173
13174         * config/picochip/picochip.md (movsi): Split a movsi from a
13175         const after reload.
13176
13177 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13178
13179         * ggc-zone.c: Update copyright year.
13180         (poison_region): Mark memory for Valgrind as undefined before
13181         memset () call and inaccessible afterwards.
13182         (ggc_pch_total_size): Change type of i to int.
13183
13184 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13185
13186         * ggc-common.c (ggc_free_overhead): Allow empty slot.
13187
13188 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13189
13190         * ggc-common.c: Update copyright year.
13191         (ggc_rlimit_bound): Remove prototype.  Compile only if
13192         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13193         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13194         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
13195         (ggc_min_heapsize_heuristic): Likewise.
13196
13197 2010-05-26  Richard Guenther  <rguenther@suse.de>
13198
13199         PR rtl-optimization/44164
13200         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13201         no-common access-path disambiguation.
13202         (indirect_ref_may_alias_decl_p): Adjust.
13203         (indirect_refs_may_alias_p): Likewise.
13204         (refs_may_alias_p_1): Likewise.
13205
13206 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13207
13208         * c-typeck.c: Do not include expr.h.
13209
13210 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13211
13212         * rtl.h (decl_default_tls_model): Move prototype from here...
13213         * output.h: ...to here.
13214         * c-decl.c: Do not include rtl.h.
13215         * c-pragma.c: Likewise.
13216         * c-parser.c: Likewise.
13217         * c-gimplify.c: Likewise.  And also not hard-reg-set.
13218         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
13219         FIXME note for it.  Add a FIXME note for expr.h.
13220         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13221         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13222         defined.
13223
13224 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
13225
13226         PR target/44199
13227         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13228         or total_size is larger than red zone size for non-V4 ABI, emit a
13229         stack_tie resp. frame_tie insn before stack pointer restore.
13230         * config/rs6000/rs6000.md (frame_tie): New insn.
13231
13232 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13233
13234         * function.h (struct function): Add can_throw_non_call_exceptions bit.
13235         * lto-streamer-in.c (input_function): Stream it in.
13236         * lto-streamer-out.c (output_function): Stream it out.
13237         * function.c (allocate_struct_function): Set it.
13238         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13239         for flag_non_call_exceptions.
13240         * cfgbuild.c (control_flow_insn_p): Likewise.
13241         (make_edges): Likewise.
13242         * cfgexpand.c (expand_stack_alignment): Likewise.
13243         * combine.c (distribute_notes): Likewise.
13244         * cse.c (cse_extended_basic_block): Likewise.
13245         * except.c (insn_could_throw_p): Likewise.
13246         * gcse.c (simple_mem): Likewise.
13247         * ipa-pure-const.c (check_call): Likewise.
13248         (check_stmt ): Likewise.
13249         * lower-subreg.c (lower-subreg.c): Likewise.
13250         * optabs.c (emit_libcall_block): Likewise.
13251         (prepare_cmp_insn): Likewise.
13252         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13253         * postreload.c (rest_of_handle_postreload): Likewise.
13254         * reload1.c (reload_as_needed): Likewise.
13255         (emit_input_reload_insns): Likewise.
13256         (emit_output_reload_insns): Likewise.
13257         (fixup_abnormal_edges): Likewise.
13258         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13259         * store-motion.c (find_moveable_store): Likewise.
13260         * tree-eh.c (stmt_could_throw_p): Likewise.
13261         (tree_could_throw_p): Likewise.
13262         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13263         * config/arm/arm.c (arm_expand_prologue): Likewise.
13264         (thumb1_expand_prologue): Likewise.
13265         * config/rx/rx.md (cbranchsf4): Likewise.
13266         (cmpsf): Likewise.
13267         * config/s390/s390.c (s390_emit_prologue): Likewise.
13268         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13269         (inline_forbidden_into_p): New predicate.
13270         (expand_call_inline): Use it to forbid inlining.
13271         (tree_can_inline_p): Likewise.
13272
13273 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13274
13275         * config/i386/i386-c.c: Do not include rtl.h.
13276         * config/i386/t-i386: Update dependencies.
13277
13278 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13279
13280         * attribs.c: Do not include rtl.h.
13281         * Makefile.in: Update dependencies.
13282
13283 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
13284
13285         * double-int.h (double_int_and): New.
13286         * combine.c (try_combine): Clean up, use double_int_* and
13287         immed_double_int_const functions.
13288
13289 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13290
13291         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13292         stderr to /dev/null instead of grep -q.
13293         * configure: Regenerate.
13294
13295 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13296
13297         * Makefile.in (EXCEPT_H): Fix typo.
13298
13299 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
13300
13301         * ira-build.c (update_conflict_hard_reg_costs): New.
13302         (ira_build): Call update_conflict_hard_reg_costs.
13303
13304 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13305
13306         PR debug/41371
13307         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13308         ENABLE_CHECKING.
13309         (intersect_loc_chains): Walk the s2var's loc_chain together
13310         with s1node chain as long as the locations are equal, don't
13311         call find_loc_in_1pdv in that case.
13312
13313         PR debug/42801
13314         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13315         (copy_bind_expr): ... instead of here.
13316         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13317         if the block hasn't been remapped.
13318         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13319         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13320
13321 2010-05-25  Richard Guenther  <rguenther@suse.de>
13322
13323         PR middle-end/44069
13324         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13325         out-of-bounds array accesses.
13326
13327 2010-05-25  Richard Guenther  <rguenther@suse.de>
13328
13329         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13330         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13331         (run_gcc): Re-organize to make cleanup easier.
13332
13333 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13334
13335         * config/s390/s390.c (optimization_options): Fix and move the
13336         flag_prefetch_loop_arrays override ...
13337         (override_options): ... here.
13338
13339 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
13340
13341         * diagnostic.c: Don't include plugin.h.
13342         (diagnostic_report_diagnostic): Don't handle plugins specially
13343         here.  Pass context to internal_error callback.
13344         * diagnostic.h (struct diagnostic_context): Add context parameter
13345         to internal_error callback.
13346         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13347         * plugin.h (struct diagnostic_context): Declare.
13348         (warn_if_plugins, plugins_internal_error_function): Declare.
13349         * toplev.c (general_init): Set global_dc->internal_error.
13350         * Makefile.in (diagnostic.o): Update dependencies.
13351
13352 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
13353
13354         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13355         * config/rs6000/t-darwin64: New.
13356         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13357         build crt2.
13358
13359 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
13360
13361         PR 44203
13362         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13363         match the original (and intended) behaviour before r159557.  This
13364         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13365         in two ways.
13366
13367 2010-05-25  Richard Guenther  <rguenther@suse.de>
13368
13369         * doc/invoke.texi: Document -Ofast.
13370         * target.h (struct gcc_target): Add handle_ofast.
13371         * target-def.h (TARGET_HANDLE_OFAST): Add.
13372         (TARGET_INITIALIZER): Adjust.
13373         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13374         * common.opt (Ofast): Add.
13375
13376 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13377
13378         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13379         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13380
13381 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13382
13383         PR target/43610
13384         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13385         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13386         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13387         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13388
13389 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13390
13391         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13392         DW_OP_minus with negated offset instead of DW_OP_plus.
13393         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13394
13395 2010-05-25  Wei Guozhi  <carrot@google.com>
13396
13397         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13398         tst instruction and a new alternative.
13399         * config/arm/constraints.md (Pu): New constraint.
13400
13401 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13402
13403         * function.c (assign_stack_local_1): Initialize variable
13404         to avoid warning when bootstrapping at -O3.
13405
13406 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13407
13408         * configure.ac (all_lang_makefiles): Remove everything related to it.
13409         * configure: Regenerate.
13410         * Makefile.in: Fix reference to ada Make-lang.in.
13411         Remove support for LANG_MAKEFILES.
13412
13413 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13414             Sandra Loosemore  <sandra@codesourcery.com>
13415
13416         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13417         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13418         description.  Add arm_neon_fp16_ok.
13419         (Add Options): Add arm_neon and arm_neon_fp16.
13420
13421 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * diagnostic.c: Don't include flags.h.
13424         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13425         context parameters.  Check flags in the context passed as a parameter.
13426         (diagnostic_build_prefix): Add context parameter.  Check
13427         show_column flag in context.
13428         (diagnostic_action_after_output): Check fatal_errors flag in context.
13429         (diagnostic_report_current_module): Check show_column flag in context.
13430         (default_diagnostic_starter): Update call to
13431         diagnostic_build_prefix.
13432         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13433         (emit_diagnostic): Pass context to permissive_error_kind.
13434         (permerror): Pass context to permissive_error_kind.
13435         * diagnostic.h (struct diagnostic_context): Add show_column,
13436         pedantic_errors, permissive and fatal_errors fields.
13437         (diagnostic_build_prefix): Update prototype.
13438         * langhooks.c
13439         * toplev.c (process_options): Set flags in global_dc from
13440         flag_show_column, flag_pedantic_errors, flag_permissive,
13441         flag_fatal_errors.
13442         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13443         to diagnostic_build_prefix.
13444         * Makefile.in (diagnostic.o): Update dependencies.
13445
13446 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13447
13448         * config/i386/ia32intrin.h (__crc32q): Define only if
13449         __SSE4_2__ is defined.
13450
13451 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13452
13453         PR target/44132
13454         PR middle-end/43602
13455         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13456         DECL_VISIBILITY_SPECIFIED.
13457         (emutls_decl): Set DECL_PRESERVE_P and copy
13458         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13459         (emutls_finalize_control_var): New callback.
13460         (emutls_finish): Finalize emutls control variables.
13461         * toplev.c (compile_file): Move the call to emutls_finish ()
13462         before varpool_assemble_pending_decls ().
13463
13464 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13465
13466         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13467         added to the preprocessor condition.
13468
13469 2010-05-24  Paul Brook  <paul@codesourcery.com>
13470
13471         * gengtype-lex.l: Add HARD_REG_SET.
13472         * expr.c (expand_expr_real_1): Record writes to hard registers.
13473         * function.c (rtl_data): Add asm_clobbers.
13474         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13475         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13476         Use crtl->asm_clobbers.
13477
13478 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13479
13480         * doc/makefile.texi (Makefile): Mention stages 'profile'
13481         and 'feedback' for profiledbootstrap.
13482
13483 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13484
13485         PR target/44245
13486         * config/i386/i386.c (def_builtin): Properly check
13487         OPTION_MASK_ISA_64BIT.
13488
13489 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13490
13491         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13492         typedefs with different but compatible types.  Allow duplicate
13493         typedefs with the same type except for pedantic non-C1X, but give
13494         warning for variably modified types.
13495         * c-typeck.c (tagged_types_tu_compatible_p,
13496         function_types_compatible_p, type_lists_compatible_p,
13497         comptypes_internal): Add parameter different_types_p; set
13498         *different_types_p for different but compatible types.  All
13499         callers changed.
13500         (comptypes_check_different_types): New.
13501         * c-tree.h (comptypes_check_different_types): Declare.
13502
13503 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13504
13505         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13506         * jump.c: Include basic-block.h.
13507         * profile.c: Likewise.
13508         * tree-profile.c: Likewise.
13509         * coverage.c: Likewise.
13510         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13511         (optimize_function_for_speed_p): Likewise.
13512         * function.h (optimize_function_for_size_p,
13513         optimize_function_for_speed_p): Moved here from basic-block.h.
13514         * Makefile.in: Update dependencies.
13515
13516 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13517
13518         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13519         before calling make; allow override through $MAKE.
13520         * doc/invoke.texi (Optimize Options): Document override.
13521
13522 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13523
13524         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13525         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13526         (rs6000_mode_dependent_address_ptr): Make static.
13527         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13528         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13529         Remove.
13530
13531 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13532
13533         PR target/43869
13534         * config/i386/i386.c: Make sure that the correct regparm is passed.
13535
13536 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13537
13538         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13539         * sbitmap.c: ...to here to internalize sbitmap element access.
13540         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13541         Explain why basic-block.h is included.
13542         * function.h: Include tm.h for CUMULATIVE_ARGS.
13543         * Makefile.in: Update dependencies.
13544
13545 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13546
13547         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13548         New core types.
13549         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13550         * sbitmap.c: Include sbitmap.h.
13551         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13552         hard-reg-set.h.  Split everything related to regsets out from here...
13553         * regset.h: ...to here.  New file.
13554         * df.h: Include regset.h and sbitmap.h.
13555         * tree-flow.h: Likewise.
13556         * cfgloop.h: Likewise.
13557         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13558         * cgraph.h: Include vec.h and function.h.
13559         * reload.h (struct insn_chain): Change types of live_throughout
13560         and dead_or_set from regset_head to bitmap_head.
13561         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13562         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13563         spilled_regs from regset_head to bitmap_head to avoid dependency
13564         in regset.h.
13565         * sel-sched-ir.h: Include regset.h.
13566         * reload.c: Include df.h before reload.h.
13567         * caller-save.c: Likewise.
13568         * reload1.c: Likewise.
13569         * ira.c: Likewise.
13570         (mark_elimination): Update type of r to bitmap, consistent with
13571         DF_LR_IN.
13572         * dominance.c: Include bitmap.h.
13573         * modulo-sched.c: Include df.h.
13574         * cfganal.c: Include bitmap.h and sbitmap.h.
13575         * cfgbuild.c: Include sbitmap.h.
13576         * lcm.c: Include sbitmap.h.
13577         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13578         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13579         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13580         * cselib.c: Include bitmap.h.
13581         * tree-optimize.c: Include regset.h.
13582         * stmt.c: Include bitmap.h.
13583         * Makefile.in: Update dependencies.
13584
13585 2010-05-22  Jan Hubicka  <jh@suse.cz>
13586
13587         * cgraph.h (struct varpool_node): Add same_comdat_group.
13588         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13589         pointer.
13590         (output_varpool): Update call of lto_output_varpool_node.
13591         (input_varpool): Read same_comdat_group pointer.
13592         (input_varpool_1): Fixup same_comdat_group pointer.
13593         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13594         group is needed, all are.
13595         * varpool.c (varpool_remove_node): Remove node from same comdat group
13596         linklist too.
13597         (varpool_analyze_pending_decls): Walk same comdat groups.
13598
13599 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13600
13601         * rtl.h (union rtunion_def): Remove rt_bit member.
13602         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13603         * print-rtl (print_rtx): Do not print the member.
13604         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13605         * gengenrtl.c (type_from_format): Likewise.
13606         (accessor_from_format): Likewise.
13607
13608 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13609
13610         * dbgcnt.c: Include toplev.h instead of errors.h.
13611         * ira-emit.c: Don't include errors.h.
13612         * ira.c: Include toplev.h instead of errors.h.
13613         * lto-compress.c: Include toplev.h instead of errors.h.
13614         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13615         ira.o, dbgcnt.o): Update dependencies.
13616
13617 2010-05-22  Richard Guenther  <rguenther@suse.de>
13618
13619         * gimple.c (gimple_types_compatible_p): Check type qualifications
13620         before merging pointer to complete and pointer to incomplete type.
13621         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13622         we use our own resolution algorithm.  The gold linker plugin
13623         doesn't do the job we want it to do here.
13624
13625 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13626
13627         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13628         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13629         (sparc_mode_dependent_address_p): New function.
13630
13631 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13632
13633         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13634
13635         * timevar.c: Do not include any core headers.
13636         (timevar_print): De-i18n-ize.
13637         (print_time): Likewise.
13638         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13639
13640 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13641
13642         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13643         langhooks-def.h.
13644         (diagnostic_initialize): Initialize x_data not last_function.
13645         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13646         (default_diagnostic_starter): Call
13647         diagnostic_report_current_module not
13648         diagnostic_report_current_function.
13649         (diagnostic_report_diagnostic): Initialize x_data not
13650         abstract_origin.
13651         (verbatim): Likewise.
13652         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13653         x_data.
13654         (struct diagnostic_context): Change last_function to x_data.
13655         (diagnostic_auxiliary_data): Replace with
13656         diagnostic_context_auxiliary_data and
13657         diagnostic_info_auxiliary_data.
13658         (diagnostic_last_function_changed, diagnostic_set_last_function,
13659         diagnostic_report_current_function): Move to tree-diagnostic.h.
13660         (print_declaration, dump_generic_node, print_generic_stmt,
13661         print_generic_stmt_indented, print_generic_expr,
13662         print_generic_decl, debug_c_tree, dump_omp_clauses,
13663         print_call_name, debug_generic_expr, debug_generic_stmt,
13664         debug_tree_chain, default_tree_printer): Move to
13665         tree-pretty-print.h.
13666         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13667         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13668         gimple-pretty-print.h.
13669         * pretty-print.c: Don't include tree.h
13670         (pp_base_format): Don't handle %K here.
13671         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13672         * pretty-print.h (text_info): Change abstract_origin to x_data.
13673         (pp_tree_identifier, pp_unsupported_tree,
13674         pp_base_tree_identifier): Move to tree-pretty-print.h.
13675         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13676         tree-pretty-print.h: New files.
13677         * tree-pretty-print.c: Include tree-pretty-print.h.
13678         (percent_K_format): New.  Moved from pretty-print.c.
13679         (pp_base_tree_identifier): Move from pretty-print.c.
13680         * c-objc-common.c: Include tree-pretty-print.h.
13681         (c_tree_printer): Handle %K here.
13682         * langhooks.c: Include tree-diagnostic.h.
13683         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13684         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13685         (default_tree_printer): Handle %K using percent_K_format.
13686         (general_init): Use default_tree_diagnostic_starter.
13687         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13688         (free_lang_data): Use default_tree_diagnostic_starter.
13689         * c-pretty-print.c: Include tree-pretty-print.h.
13690         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13691         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13692         * dwarf2out.c: Include tree-pretty-print.h.
13693         * except.c: Include tree-pretty-print.h.
13694         * gimple-pretty-print.c: Include tree-pretty-print.h and
13695         gimple-pretty-print.h.
13696         * gimplify.c: Include tree-pretty-print.h.
13697         * graphite-poly.c: Include tree-pretty-print.h and
13698         gimple-pretty-print.h.
13699         * ipa-cp.c: Include tree-pretty-print.h.
13700         * ipa-inline.c: Include gimple-pretty-print.h.
13701         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13702         * ipa-pure-const.c: Include gimple-pretty-print.h.
13703         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13704         gimple-pretty-print.h.
13705         * ipa-type-escape.c: Include tree-pretty-print.h.
13706         * print-rtl.c: Include tree-pretty-print.h.
13707         * print-tree.c: Include gimple-pretty-print.h.
13708         * sese.c: Include tree-pretty-print.h.
13709         * tree-affine.c: Include tree-pretty-print.h.
13710         * tree-browser.c: Include tree-pretty-print.h.
13711         * tree-call-cdce.c: Include gimple-pretty-print.h.
13712         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13713         * tree-chrec.c: Include tree-pretty-print.h.
13714         * tree-data-ref.c: Include tree-pretty-print.h and
13715         gimple-pretty-print.h.
13716         * tree-dfa.c: Include tree-pretty-print.h.
13717         * tree-if-conv.c: Include tree-pretty-print.h and
13718         gimple-pretty-print.h.
13719         * tree-inline.c: Include tree-pretty-print.h.
13720         * tree-into-ssa.c: Include tree-pretty-print.h and
13721         gimple-pretty-print.h.
13722         * tree-nrv.c: Include tree-pretty-print.h.
13723         * tree-object-size.c: Include tree-pretty-print.h and
13724         gimple-pretty-print.h.
13725         * tree-outof-ssa.c: Include tree-pretty-print.h and
13726         gimple-pretty-print.h.
13727         * tree-parloops.c: Include tree-pretty-print.h and
13728         gimple-pretty-print.h.
13729         * tree-predcom.c: Include tree-pretty-print.h and
13730         gimple-pretty-print.h.
13731         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13732         gimple-pretty-print.h.
13733         * tree-sra.c: Include tree-pretty-print.h.
13734         * tree-ssa-address.c: Include tree-pretty-print.h.
13735         * tree-ssa-alias.c: Include tree-pretty-print.h.
13736         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13737         gimple-pretty-print.h.
13738         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13739         * tree-ssa-copy.c: Include tree-pretty-print.h and
13740         gimple-pretty-print.h.
13741         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13742         * tree-ssa-dce.c: Include tree-pretty-print.h and
13743         gimple-pretty-print.h.
13744         * tree-ssa-dom.c: Include tree-pretty-print.h and
13745         gimple-pretty-print.h.
13746         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13747         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13748         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13749         * tree-ssa-live.c: Include tree-pretty-print.h and
13750         gimple-pretty-print.h.
13751         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13752         gimple-pretty-print.h.
13753         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13754         gimple-pretty-print.h.
13755         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13756         gimple-pretty-print.h.
13757         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13758         gimple-pretty-print.h.
13759         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13760         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13761         * tree-ssa-operands.c: Include tree-pretty-print.h and
13762         gimple-pretty-print.h.
13763         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13764         gimple-pretty-print.h.
13765         * tree-ssa-pre.c: Include tree-pretty-print.h and
13766         gimple-pretty-print.h.
13767         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13768         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13769         gimple-pretty-print.h.
13770         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13771         gimple-pretty-print.h.
13772         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13773         * tree-ssa-ter.c: Include tree-pretty-print.h and
13774         gimple-pretty-print.h.
13775         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13776         * tree-ssa.c: Include tree-pretty-print.h and
13777         gimple-pretty-print.h.
13778         * tree-stdarg.c: Include gimple-pretty-print.h.
13779         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13780         * tree-tailcall.c: Include tree-pretty-print.h and
13781         gimple-pretty-print.h.
13782         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13783         gimple-pretty-print.h.
13784         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13785         gimple-pretty-print.h.
13786         * tree-vect-loop.c: Include tree-pretty-print.h and
13787         gimple-pretty-print.h.
13788         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13789         * tree-vect-slp.c: Include tree-pretty-print.h and
13790         gimple-pretty-print.h.
13791         * tree-vect-stmts.c: Include tree-pretty-print.h and
13792         gimple-pretty-print.h.
13793         * tree-vectorizer.c: Include tree-pretty-print.h.
13794         * tree-vrp.c: Include tree-pretty-print.h and
13795         gimple-pretty-print.h.
13796         * value-prof.c: Include tree-pretty-print.h and
13797         gimple-pretty-print.h.
13798         * var-tracking.c: Include tree-pretty-print.h.
13799         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13800         (tree-diagnostic.o): New dependencies.
13801         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13802         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13803         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13804         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13805         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13806         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13807         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13808         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13809         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13810         tree-ssa-address.o, tree-ssa-loop-niter.o,
13811         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13812         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13813         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13814         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13815         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13816         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13817         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13818         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13819         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13820         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13821         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13822         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13823         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13824         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13825         cfgexpand.o, pretty-print.o): Update dependencies.
13826
13827 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13828
13829         * tree-ssa-structalias.c: Remove tm_p.h from include.
13830
13831 2010-05-21  Jeff Law  <law@redhat.com>
13832
13833         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13834
13835 2010-05-21  Jason Merrill  <jason@redhat.com>
13836
13837         * tree-eh.c (cleanup_is_dead_in): New.
13838         (lower_try_finally): Don't generate a dead cleanup region.
13839         (lower_cleanup): Likewise.
13840
13841 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13842
13843         PR debug/44223
13844         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13845         unchain each use from the cyclic next_regno_use chain first.
13846
13847 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13848
13849         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13850         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13851         (real_value_negate, real_value_abs): New prototypes.
13852         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13853         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13854         new include file for interface between MPFR and REAL_VALUE_TYPE.
13855         * real.c: Include realmpfr.h.
13856         (real_arithmetic2): Remove legacy function.
13857         (real_value_negate): New.
13858         (real_value_abs): New.
13859         (mfpr_from_real, real_from_mpfr): Move from here...
13860         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13861         * builtins.c: Include realmpfr.h.
13862         * fold-const.c: Include realmpfr.h.
13863         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13864         (fold_negate_const): Likewise.
13865         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13866         * toplev.c: Include realmpfr.h.
13867         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13868         and real_value_negate.
13869         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13870         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13871         (vfp3_const_double_index): Likewise.
13872         (arm_print_operand): Likewise.
13873         * Makefile.in: Update dependencies.
13874
13875 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13876
13877         * config/s390/s390.c (override_options): Increase the default
13878         of max-completely-peel-times.
13879
13880 2010-05-21  Julian Brown  <julian@codesourcery.com>
13881             Mark Mitchell  <mark@codesourcery.com>
13882
13883         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13884         sibling calls for Thumb-1.
13885         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13886         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13887         Thumb-2.
13888         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13889         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13890         for Thumb-2.
13891         (return): New expander.
13892         (*arm_return): New name for ARM return insn.
13893         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13894
13895 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13896
13897         * config.gcc (sparc64-*-rtems*): New target.
13898
13899 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13900
13901         * tree.c (build_function_decl_skip_args): Fix grammar.
13902         (build_function_type_list_1): Fix typos, adjust formatting.
13903
13904 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13905
13906         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13907         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13908         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13909         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13910         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13911         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13912         tree-pretty-print.c, tree-loop-distribution.c,
13913         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13914         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13915         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13916         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13917         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13918         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13919         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13920         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13921         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13922         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13923         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13924         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13925         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13926         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13927         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13928         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13929         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13930         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13931         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13932         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13933         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13934         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13935         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13936         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13937         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13938         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13939         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13940         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13941         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13942         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13943         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13944         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13945         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13946         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13947         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13948         config/bfin/bfin.c: Clean up redundant includes.
13949         * Makefile.in: Update accordingly.
13950
13951 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13952
13953         PR middle-end/44204
13954         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13955         statement has no arguments.
13956
13957 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13958
13959         PR/44139
13960         * varasm.c (emutls_decl): Merge attributes to new decl.
13961
13962 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13963
13964         PR middle-end/44101
13965         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13966         around the uniquized constructor if its type requires a conversion.
13967
13968 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13969
13970         PR debug/44205
13971         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13972         at -O0 goto_locus of any of the incoming edges differs from
13973         goto_locus of outgoing edge, or gimple_location of any of the
13974         labels differs.
13975
13976 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13977
13978         * ira.c (ira_non_ordered_class_hard_regs): Define.
13979         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13980         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13981         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13982         cost of unaligned hard regs when allocating multi-reg pseudos.
13983
13984 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13985
13986         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13987         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13988         for TARGET_NO_FLOAT.
13989         * config/mips/mips.c (mips_file_start): Expand conditional expression
13990         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13991         (mips_override_options): Move -mno-float override -msoft-float and
13992         -mhard-float.
13993         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13994         Condition(TARGET_SUPPORTS_NO_FLOAT).
13995         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13996         __mips_no_float here.
13997         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13998         (TARGET_SUPPORTS_NO_FLOAT): Define.
13999         * config/mips/sdemtk.opt: Delete.
14000
14001 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
14002
14003         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
14004
14005 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
14006
14007         PR target/43733
14008         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
14009         * configure: Regenerate.
14010         * config.in: Regenerate.
14011         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
14012         instead of sahf only for 64bit targets.
14013
14014 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14015
14016         PR debug/44178
14017         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
14018         setup_ref_regs for DEBUG_INSNs.
14019
14020 2010-05-20  Jan Hubicka  <jh@suse.cz>
14021
14022         PR middle-end/44197
14023         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
14024
14025 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14026
14027         PR bootstrap/43870
14028         * df-scan.c (df_ref_compare): Stabilize sort.
14029
14030 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14031
14032         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
14033         argument.  Don't use DW_OP_piece if offset is non-zero,
14034         put offset into second DW_OP_bit_piece argument.
14035         (dw_sra_loc_expr): Adjust callers.  For memory expressions
14036         compute offset.
14037
14038 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
14039
14040         PR target/44202
14041         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
14042         settings for 16-bit-constant "addo" alternative.
14043
14044 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
14045
14046         * config/mips/mips-dsp.md (add<DSPV:mode>3,
14047         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
14048
14049         PR target/43764
14050         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
14051         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
14052         Use it.
14053
14054 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
14055
14056         * diagnostic.c (FLOAT, FFS): Don't undefine.
14057         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
14058         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
14059         include ordering.
14060
14061 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
14062
14063         * combine.c (propagate_for_debug): Call make_compound_operation
14064         on the source value.
14065         (try_combine): When implementing a split chosen by find_split_point,
14066         either copy i2src or set it to null.  Assert that i2src is not null
14067         before substituting into CALL_INSN_FUNCTION_USAGE.
14068
14069 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
14070
14071         * double-int.h (double_int_ior): New function.
14072         * tree.h (build_int_cst_wide_type): Remove.
14073         * tree.c (build_int_cst_wide_type): Remove.
14074         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
14075         of build_int_cst_wide_type.
14076         * stor-layout.c (set_sizetype): (Ditto.).
14077         * dojump.c (do_jump): Use build_int_cstu instead of
14078         build_int_cst_wide_type.
14079
14080 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14081
14082         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
14083         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
14084         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
14085         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
14086         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
14087         propagate the 'data' argument to copy_tree_r.
14088         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
14089         Propagate 'data' argument to walk_tree.
14090         (copy_if_shared): New function.
14091         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
14092         (unmark_visited): New function.
14093         (unshare_body): Call copy_if_shared instead of doing it manually.
14094         (unvisit_body): Call unmark_visited instead of doing it manually.
14095
14096 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
14097
14098         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
14099         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
14100         * hooks.c: Likewise.
14101         * target-def.h (TARGET_FOLD_BUILTIN): Define to
14102         hook_tree_tree_int_treep_bool_null.
14103         * target.h (struct gcc_target): Update signature of fold_builtin
14104         field.
14105         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
14106         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
14107         instead of the call expression.
14108         (fold_builtin_call_array): Pass n and argarray directly.
14109         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
14110         consing a list.
14111         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
14112         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
14113         `i' and use it in place of `arity'.
14114         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
14115         Dereference `args' directly.
14116         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
14117
14118 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14119
14120         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14121         3dnow, sse3, sse2.
14122         (Directives): Document optional dg-require-effective-target
14123         selector.
14124
14125 2010-05-19  Richard Guenther  <rguenther@suse.de>
14126
14127         PR lto/44196
14128         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
14129
14130 2010-05-19  Richard Guenther  <rguenther@suse.de>
14131
14132         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
14133         * common.opt (fwhopr=): New.
14134         * opts.c (common_handle_option): Handle OPT_fwhopr.
14135         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
14136         * collect2.c (main): Match -fwhopr*.
14137         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
14138         Execute ltrans stage in parallel when jobs is bigger than 1.
14139
14140 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14141
14142         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14143         pentiumpro on Solaris 8/x86 with Sun as.
14144         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
14145         hidden alias bug.
14146         (gcc_cv_as_ix86_quad): Check for .quad directive.
14147         * configure: Regenerate.
14148         * config.in: Regenerate.
14149         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
14150
14151 2010-05-19  Martin Jambor  <mjambor@suse.cz>
14152
14153         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
14154         also for indirect edges.  Actual printing moved...
14155         (ipa_print_node_jump_functions_for_edge): ...here.
14156         (ipa_compute_jump_functions): Renamed to
14157         ipa_compute_jump_functions_for_edge and made static.
14158         (ipa_compute_jump_functions): New function.
14159         (make_edge_direct_to_target): Check if the number of arguments on
14160         the newly direct edge is the same as the number of parametrs of
14161         the callee.
14162         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
14163         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
14164         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14165         analysis functions unconditionally, call the new
14166         ipa_analyze_params_uses on the node instead of every edge.
14167
14168 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
14169
14170         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14171         to tree.
14172         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
14173         also checks for a constant int vs.  non-constant but
14174         loop-invariant steps.
14175         (find_or_create_group): Change the sort algorithm to only consider
14176         steps that are constant ints.
14177         (idx_analyze_ref): Adopt code to handle a tree instead of a
14178         HOST_WIDE_INT for step.
14179         (gather_memory_references_ref): Handle tree instead of int and be
14180         prepared to see a NULL_TREE.
14181         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14182         prefetches if the step cannot be calculated at compile time.
14183         (issue_prefetch_ref): Issue prefetches for non-constant but
14184         loop-invariant steps.
14185
14186 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14187
14188         Revert:
14189         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14190
14191         * tree.h (build_call_list): Remove.
14192         * tree.c (build_call_list): Remove.
14193
14194 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14195
14196         * tree.h (build_call_list): Remove.
14197         * tree.c (build_call_list): Remove.
14198
14199 2010-05-18  Jan Hubicka  <jh@suse.cz>
14200
14201         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14202
14203 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
14204
14205         PR rtl-optimization/43332
14206         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14207
14208 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
14209
14210         * tree.h (build_int_cstu): Implement as static inline.
14211         * tree.c (build_int_cstu): Remove function.
14212         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14213         sign extended.
14214
14215 2010-05-18  Richard Guenther  <rguenther@suse.de>
14216
14217         PR lto/44143
14218         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
14219         (debug): Initialize from -save-temps.
14220         (collect_execute): Print command-line when verbose.
14221         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
14222         for ltrans invocation.  Produce -dumpbase flag again.
14223         (process_args): Remove.
14224         (main): Simplify.
14225         * collect2.c (maybe_run_lto_and_relink): Only pass object
14226         files to lto-wrapper.
14227         * gcc.c (LINK_COMMAND_SPEC): Likewise.
14228
14229 2010-05-18  Jan Hubicka  <jh@suse.cz>
14230
14231         * opts.c (decode_options): Do not disable whopr at ipa_cp.
14232         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14233
14234 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14235
14236         PR lto/44184
14237         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14238         in a GIMPLE_ASM.
14239         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14240         in a GIMPLE_ASM.
14241
14242 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
14243
14244         PR debug/41371
14245         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14246         rtx_equal_p inline.
14247
14248 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14249
14250         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14251         lto-macho as lto_binary_reader.
14252
14253         * darwin.c (darwin_asm_named_section): Do not add assembler comment
14254         after .section directive; just print it before the directive instead.
14255
14256 2010-05-17  Jan Hubicka  <jh@suse.cz>
14257
14258         * cgraph.c (cgraph_create_virtual_clone): Only check
14259         versionable_function_p when not in wpa and checking is enabled.
14260         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14261         there are no more functions to materialize.
14262
14263 2010-05-17  Jan Hubicka  <jh@suse.cz>
14264
14265         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14266         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14267         New functions.
14268         (output_cgraph): Call output_cgraph_opt_summary.
14269         (input_cgrpah): Call input_cgraph_opt_summary.
14270         (output_cgraph_opt_summary_p, output_node_opt_summary,
14271         input_node_opt_summary, input_cgraph_opt_section): New functions.
14272         * lto-section-in.c (lto_section_name): Add cgraphopt.
14273         * tree-inline.c (tree_function_versioning): Handle parm_num.
14274         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14275         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14276
14277 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14278
14279         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14280         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14281         the insn to prefetch ratio heuristic to loops with known trip count.
14282
14283 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14284
14285         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14286         (schedule_prefetches): Do not generate a prefetch if the unroll factor
14287         is far from what is required by the prefetch.
14288
14289 2010-05-17  Jan Hubicka  <jh@suse.cz>
14290
14291         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14292         (ipcp_estimate_growth): Likewise.
14293         (ipcp_const_param_count): Likewise.
14294         (ipcp_insert_stage): Likewise.
14295         * ipa-prop.c (visit_load_for_mod_analysis): New function.
14296         (visit_store_addr_for_mod_analysis): Set used flag.
14297         (ipa_detect_param_modifications): Set used flag for SSE params;
14298         update use of walk_stmt_load_store_addr_ops.
14299         (ipa_print_node_params): Print used flag.
14300         (ipa_write_node_info): Stream used flag.
14301         (ipa_read_node_info): Likewise.
14302         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14303         (ipa_is_param_used): New function.
14304         (lto_ipa_fixup_call_notes): Remove unused declaration.
14305
14306 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14307
14308         PR target/44074
14309         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14310         * configure: Regenerate.
14311         * config.in: Regenerate.
14312         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14313         !HAVE_AS_IX86_REP_LOCK_PREFIX.
14314         Don't emit whitespace.
14315         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14316         (*rep_movsi): Likewise.
14317         (*rep_movsi_rex64): Likewise.
14318         (*rep_movqi): Likewise.
14319         (*rep_movqi_rex64): Likewise.
14320         (*rep_stosdi_rex64): Likewise.
14321         (*rep_stossi): Likewise.
14322         (*rep_stossi_rex64): Likewise.
14323         (*rep_stosqi): Likewise.
14324         (*rep_stosqi_rex64): Likewise.
14325         (*cmpstrnqi_nz_1): Use {%;} after repz.
14326         (*cmpstrnqi_nz_rex_1): Likewise.
14327         (*cmpstrnqi_1): Likewise.
14328         (*cmpstrnqi_rex_1): Likewise.
14329         (*strlenqi_1): Use {%;} after repnz.
14330         (*strlenqi_rex_1): Likewise.
14331         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14332         (*sync_compare_and_swap<mode>): Likewise.
14333         (sync_double_compare_and_swap<mode>): Likewise.
14334         (*sync_double_compare_and_swapdi_pic): Likewise.
14335         (sync_old_add<mode>): Likewise.
14336         (sync_add<mode>): Likewise.
14337         (sync_sub<mode>): Likewise.
14338         (sync_<code><mode>): Likewise.
14339
14340 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14341
14342         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14343         otr_token and polymorphic.
14344         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14345         (cgraph_clone_edge): Copy the above fields.
14346         * tree.c (get_binfo_at_offset): New function.
14347         * tree.h (get_binfo_at_offset): Declare.
14348         * ipa-prop.h (enum jump_func_type): Added known_type jump function
14349         type, reordered items, updated comments.
14350         (union jump_func_value): Added base_type field, reordered fields.
14351         (enum ipa_lattice_type): Moved down in the file.
14352         (struct ipa_param_descriptor): New field polymorphic.
14353         (ipa_is_param_polymorphic): New function.
14354         * ipa-prop.c: Include gimple.h and gimple-fold.h.
14355         (ipa_print_node_jump_functions): Print known type jump functions.
14356         (compute_complex_pass_through): Renamed to...
14357         (compute_complex_assign_jump_func): this.
14358         (compute_complex_ancestor_jump_func): New function.
14359         (compute_known_type_jump_func): Likewise.
14360         (compute_scalar_jump_functions): Create known type and complex ancestor
14361         jump functions.
14362         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14363         flag in the call note accordingly.
14364         (ipa_analyze_call_uses): Renamed to...
14365         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14366         variable var only in the block where it is used.
14367         (ipa_analyze_virtual_call_uses): New function.
14368         (ipa_analyze_call_uses): Likewise.
14369         (combine_known_type_and_ancestor_jfs): Likewise.
14370         (update_jump_functions_after_inlining): Implemented handling of a
14371         number of new jump function types combination.
14372         (print_edge_addition_message): Removed.
14373         (make_edge_direct_to_target): New function.
14374         (try_make_edge_direct_simple_call): Likewise.
14375         (try_make_edge_direct_virtual_call): Likewise.
14376         (update_call_notes_after_inlining): Renamed to...
14377         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14378         indirect calls to try_make_edge_direct_simple_call, also calls
14379         try_make_edge_direct_virtual_call for virtual calls.
14380         (ipa_print_node_params): Changed the header message.
14381         (ipa_write_jump_function): Stream also known type jump functions.
14382         (ipa_read_jump_function): Likewise.
14383         (ipa_write_indirect_edge_info): Stream new fields in
14384         cgraph_indirect_call_info.
14385         (ipa_read_indirect_edge_info): Likewise.
14386         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14387         GIMPLE_FOLD_H.
14388
14389 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14390
14391         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14392
14393 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14394
14395         * tree.h (CALL_EXPR_ARGS): Delete.
14396         (call_expr_arglist): Delete.
14397         * tree.c (call_expr_arglist): Delete.
14398         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14399         targetm.fold_builtin.
14400         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14401         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14402         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14403         arglist parameter.  Use CALL_EXPR_ARG.
14404         (picochip_expand_builtin_3op): Likewise.
14405         (picochip_expand_builtin_2opvoid): Likewise.
14406         (picochip_expand_array_get): Likewise.
14407         (picochip_expand_array_put): Likewise.
14408         (picochip_expand_array_testport): Likewise.
14409         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14410         rather than arglist.
14411         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14412         CALL_EXPR_ARGS.
14413         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14414         than TREE_VALUE and TREE_CHAIN.
14415         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14416         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14417         the arglist.
14418
14419 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14420
14421         PR bootstrap/42347
14422         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14423         to have no fallthru edge.
14424
14425         PR middle-end/44102
14426         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14427         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14428         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14429         add BARRIER after previous bb if needed.
14430
14431 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14432
14433         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14434
14435 2010-05-17  Alan Modra  <amodra@gmail.com>
14436
14437         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14438         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14439         with copy_reg rtx param.
14440         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14441         Correct cases where code for ABI_V4 did not initialise the reg
14442         used to access frame.  Also leave frame_reg_rtx as sp for large
14443         frames that save no regs.
14444
14445 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14446
14447         PR middle-end/44133
14448         * tree-sra.c (create_access_replacement): New parameter rename, mark
14449         the replaement for renaming only when it is true.
14450         (get_access_replacement): Pass true in the rename parameter of
14451         create_access_replacement.
14452         (get_unrenamed_access_replacement): New function.
14453         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14454         replacement declaration from it.
14455
14456 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14457
14458         * function.c (try_fit_stack_local, add_frame_space): New static
14459         functions.
14460         (assign_stack_local_1): Use them.  Look for opportunities to use
14461         space previously wasted on alignment.
14462         * function.h (struct frame_space): New.
14463         (struct rtl_data): Add FRAME_SPACE_LIST member.
14464         * reload1.c (something_was_spilled): New static variable.
14465         (alter_reg): Set it.
14466         (reload): Test it in addition to testing if the frame size changed.
14467
14468 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14469
14470         * config/s390/s390.c: Define sane prefetch settings and activate
14471         flag_prefetch_loop_arrays on -O3.
14472         * config/s390/s390.h: Declare that read can use write prefetch.
14473
14474 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14475
14476         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14477         build.
14478
14479 2010-05-16  Jan Hubicka  <jh@suse.cz>
14480
14481         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14482         function body; do not check stdarg field of struct function.
14483
14484 2010-05-16  Jan Hubicka  <jh@suse.cz>
14485
14486         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14487         * cgraph.h (cgraph_local_info): Add versionable flag.
14488         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14489         (ipcp_versionable_function_p): Use it.
14490         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14491         versionable flag.
14492
14493 2010-05-16  Jan Hubicka  <jh@suse.cz>
14494
14495         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14496         clone into hash when it is different from orig.
14497         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14498         * cgraph.h (cgraph_clone_node): Update prototype.
14499         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14500         (lto_cgraph_encoder_delete): Delete body map.
14501         (lto_cgraph_encoder_size): Move to header.
14502         (lto_cgraph_encoder_encode_body_p,
14503         lto_set_cgraph_encoder_encode_body): New.
14504         (lto_output_node): Do not take written_decls argument; output clone_of
14505         pointer.
14506         (add_node_to): Add include_body_argument; call
14507         lto_set_cgraph_encoder_encode_body on master of the clone.
14508         (add_references): Update use of add_node_to.
14509         (compute_ltrans_boundary): Likewise.
14510         (output_cgraph): Do not create written_decls bitmap.
14511         (input_node): Take nodes argument; stream in clone_of correctly.
14512         (input_cgraph_1): Update use of input_node.
14513         * lto-streamer-out.c (lto_output): Use encoder info to decide
14514         what bodies to output.
14515         * ipa-inline.c (cgraph_clone_inlined_nodes,
14516         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14517         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14518         (lto_cgraph_encoder_size): Define here.
14519         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14520         Declare.
14521
14522 2010-05-16  Richard Guenther  <rguenther@suse.de>
14523
14524         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14525         -fipa-type-escape.
14526         * ipa-type-escape.c (gate_type_escape_vars): Run when
14527         -fipa-struct-reorg runs.
14528         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14529         * common.opt (fipa-type-escape): Remove.
14530
14531 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14532
14533         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14534         (decode_options): Likewise.
14535         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14536
14537 2010-05-16  Jan Hubicka  <jh@suse.cz>
14538
14539         * ipa.c (function_and_variable_visibility): Also bring local all
14540         aliases.
14541
14542 2010-05-16  Richard Guenther  <rguenther@suse.de>
14543
14544         * alias.c (nonoverlapping_memrefs_p): Remove use of
14545         IPA type-escape information.
14546
14547 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14548
14549         * c-common.c (c_common_reswords): Add _Static_assert for C.
14550         * c-parser.c (c_token_starts_declaration,
14551         c_parser_next_token_starts_declaration,
14552         c_parser_static_assert_declaration_no_semi,
14553         c_parser_static_assert_declaration): New.
14554         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14555         Handle static assertions if static_assert_ok.
14556         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14557         c_parser_compound_statement_nostart, c_parser_label,
14558         c_parser_for_statement, c_parser_objc_methodprotolist,
14559         c_parser_omp_for_loop): All callers of
14560         c_parser_declaration_or_fndef changed.
14561         (c_parser_struct_declaration): Handle static assertions.
14562         (c_parser_compound_statement_nostart): Use
14563         c_parser_next_token_starts_declaration and
14564         c_token_starts_declaration to detect start of declarations.
14565         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14566         Likewise.
14567
14568 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14569
14570         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14571         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14572         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14573         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14574         (mmix_function_outgoing_value): Rename to...
14575         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14576         (mmix_function_value_regno_p): Make static.
14577         (mmix_libcall_value): New function.
14578         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14579         mmix_function_value_regno_p): Remove declaration.
14580
14581 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14582
14583         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14584         BUILT_IN_ALLOCA if stack checking is enabled.
14585
14586 2010-05-16  Richard Guenther  <rguenther@suse.de>
14587
14588         * var-tracking.c (vars_copy_1): Inline ...
14589         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14590         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14591         (variable_merge_over_cur): Adjust.  Merge asserts.
14592         (variable_merge_over_src): Likewise.
14593         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14594         (variable_post_merge_new_vals): Merge asserts.
14595         (variable_post_merge_perm_vals): Likewise.
14596         (find_mem_expr_in_1pdv): Likewise.
14597         (dataflow_set_different_value): Remove.
14598         (onepart_variable_different_p): Merge asserts.
14599         (variable_different_p): Likewise.
14600         (dataflow_set_different_1): Inline ...
14601         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14602         (emit_notes_for_differences_1): Merge asserts.
14603
14604 2010-05-16  Richard Guenther  <rguenther@suse.de>
14605
14606         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14607         * optabs.c (libfunc_decl_hash): Likewise.
14608         * varasm.c (emutls_decl): Likewise.
14609
14610 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14611
14612         * c-decl.c: Don't include gimple.h.
14613         (merge_decls): Do not copy gimple_body.
14614
14615 2010-05-15  Jason Merrill  <jason@redhat.com>
14616
14617         * c.opt: Add -fnothrow-opt.
14618
14619 2010-05-15  Jan Hubicka  <jh@suse.cz>
14620
14621         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14622         analyzed.
14623         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14624
14625 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14626
14627         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14628         * Makefile.in: Add it.
14629         Fix all other Makefile dependencies for changes below.
14630         * tree.h: Include it instead of defining VEC primitives here.
14631         * gimple.h: Likewise.
14632         * rtl.h: Likewise.
14633         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14634         * except.h: Include vecir.h, break dependence on tree.h.
14635
14636         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14637         Move from here...
14638         * tree-iterator.c: ...to here.
14639         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14640
14641         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14642         tm_p.h.
14643         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14644         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14645         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14646         tree-mudflap.h, and target.h.
14647         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14648         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14649         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14650         Add FIXME for why gimple.h is still included (should be unnecessary
14651         since GCC 4.5 gimplification unit-at-a-time).
14652         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14653         * c-pragma.c: Add FIXME for why function.h needs to be included just
14654         for cfun, at front-end level.
14655         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14656         Do not include ggc.h, but include vecprim.h for VEC(char).
14657         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14658         Explain why target.h is included.
14659         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14660         Explain why gimple.h is included.
14661         * c-ppoutput.c: Do not include tm.h.
14662         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14663         * c-parses.c: Explain why rtl.h is included, and that this (and only
14664         this) is also why tm.h must be included.
14665         Do not include except.h.
14666         * c-lang.c: Do not include ggc.h.
14667
14668 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14669
14670         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14671
14672 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14673
14674         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14675         unions by default if those structs and unions have no tags.  Do
14676         not condition anonymous struct and unions handling on flag_iso.
14677         Allow anonymous structs and unions for C1X.
14678         (finish_struct): Do not diagnose lack of named fields when
14679         anonymous structs and unions present for C1X.  Accept flexible
14680         array members in structure with anonymous structs or unions but no
14681         directly named fields.
14682         * doc/extend.texi (Unnamed Fields): Update.
14683
14684 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14685
14686         * gimple.h (compare_field_offset): Rename into...
14687         (gimple_compare_field_offset): ...this.
14688         * gimple.c (compare_field_offset): Rename into...
14689         (gimple_compare_field_offset): ...this.  Compare the full access if
14690         the offset is self-referential.
14691         (gimple_types_compatible_p): Adjust for above renaming.
14692         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14693         DECL_NONADDRESSABLE_P flag of fields before merging them.
14694
14695 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14696
14697         * tree.h (ctor_to_list): Delete.
14698         * tree.c (ctor_to_list): Delete.
14699
14700 2010-05-15  Jan Hubicka  <jh@suse.cz>
14701
14702         * ipa-reference.c: Include toplev.h
14703         (is_proper_for_analysis): Only add to all_module_statics
14704         if it is allocated.
14705         (write_node_summary_p, stream_out_bitmap,
14706         ipa_reference_write_optimization_summary,
14707         ipa_reference_read_optimization_summary): New.
14708         (struct ipa_opt_pass_d pass_ipa_reference): Add
14709         optimization summary streaming.
14710         * lto-cgraph.c (referenced_from_this_partition_p,
14711         reachable_from_this_partition_p): New functions.
14712         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14713         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14714         * opts.c (decode_options): Enable ipa_reference.
14715         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14716         * lto-streamer.h (referenced_from_this_partition_p,
14717         reachable_from_this_partition_p): Declare.
14718
14719 2010-05-15  Richard Guenther  <rguenther@suse.de>
14720
14721         PR tree-optimization/44038
14722         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14723         taking the address of a V_C_E of a constant.
14724
14725 2010-05-14  Jan Hubicka  <jh@suse.cz>
14726
14727         * tree.h (memory_identifier_string): Remove.
14728         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14729         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14730         statics_not_written.
14731         (ipa_reference_optimization_summary_d): New structure.
14732         (ipa_reference_optimization_summary_t): New type and vector.
14733         (ipa_reference_vars_info_d): Embedd structures instead of using
14734         pointers.
14735         (reference_vars_to_consider): Remove out of GGC space.
14736         (module_statics_escape): Remove.
14737         (global_info_obstack): Rename to ...
14738         (optimization_summary_obstack): ... this one.
14739         (initialization_status_t): Remove.
14740         (memory_identifier_string): Remove.
14741         (get_reference_vars_info): Fix indenting.
14742         (set_reference_vars_info): Likewise.
14743         (get_reference_optimization_summary): New.
14744         (set_reference_optimization_summary): New.
14745         (get_global_reference_vars_info): Remove.
14746         (ipa_reference_get_read_global): Remove.
14747         (ipa_reference_get_written_global): Remove.
14748         (ipa_reference_get_not_read_global): Update.
14749         (ipa_reference_get_not_written_global): Update.
14750         (is_proper_for_analysis): Outlaw addressable.
14751         (propagate_bits): Update for new datastructures.
14752         (analyze_variable): Remove.
14753         (init_function_info): Update for new datastructures.
14754         (clean_function_local_data): Remove.
14755         (clean_function): Remove.
14756         (copy_global_bitmap): Use optimizations_summary_obstack.
14757         (duplicate_node_data): Duplicate optimization summary only.
14758         (remove_node_data): Remove optimization summary only.
14759         (generate_summary): Do not analyze variables; do not compute
14760         module_statics_escape; do not prune solutions by it.
14761         (read_write_all_from_decl): Fix typos in comments.
14762         (propagate): Doscover readonly and nonaddressable first;
14763         update for new datastructures; share global bitmaps.
14764         * ipa-reference.h (ipa_reference_get_read_global,
14765         ipa_reference_get_written_global): Remove.
14766         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14767         * Makefile.in: Remove ipa-refereference from GT files.
14768
14769 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14770
14771         PR debug/44112
14772         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14773         for all SYMBOL_REF_DECLs.
14774
14775 2010-05-14  Jan Hubicka  <jh@suse.cz>
14776
14777         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14778         (varpool_all_refs_explicit_p): New inline function.
14779         * ipa-reference.c: Update comment.
14780         (module_statics_written): Remove.
14781         (get_static_decl): Remove.
14782         (ipa_init): Do not initialize module_statics_written.
14783         (analyze_function): Likewise.
14784         (generate_summary): Likewise; do not compute module_statics_readonly
14785         and do not update variable flags.
14786         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14787         * ipa.c: Inlucde flags.h
14788         (cgraph_local_node_p): New.
14789         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14790         promote functions to local.
14791         (ipa_discover_readonly_nonaddressable_vars): New function.
14792         (function_and_variable_visibility): Use cgraph_local_node_p.
14793         * varpool.c (varpool_finalize_decl): Set force_output for
14794         DECL_PRESERVE_P vars.
14795
14796 2010-05-14  Jan Hubicka  <jh@suse.cz>
14797
14798         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14799
14800 2010-05-14  Richard Guenther  <rguenther@suse.de>
14801
14802         PR tree-optimization/44119
14803         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14804         a PHI node necessary.
14805
14806 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14807
14808         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14809
14810 2010-05-14  Jason Merrill  <jason@redhat.com>
14811
14812         PR c++/44127
14813         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14814         (gimple_call_set_nothrow): New.
14815         * gimple.c (gimple_build_call_from_tree): Call it.
14816         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14817
14818         PR c++/44127
14819         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14820         * gimple.h: Declare it.
14821         * gimple.c (gimple_build_eh_filter): No ops.
14822
14823 2010-05-14  Jan Hubicka  <jh@suse.cz>
14824
14825         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14826         nodes already in queue.
14827         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14828         re-enqueueing node.
14829
14830 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14831
14832         PR debug/44136
14833         * cfgexpand.c (expand_debug_expr): If non-memory op0
14834         has BLKmode, return NULL.
14835
14836 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14837
14838         * config.gcc: Add support for --with-cpu option for bdver1.
14839         * config/i386/i386.h (TARGET_BDVER1): New macro.
14840         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14841         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14842         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14843         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14844         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14845         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14846         (processor_type): Add PROCESSOR_BDVER1.
14847         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14848         processor_type in config/i386/i386.h.
14849         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14850         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14851         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14852         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14853         to emit packed xor instead of packed double/packed integer
14854         xor for SSE and AVX when moving a zero value.
14855         * config/i386/sse.md: Add check for
14856         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14857         movapd/movdqa for SSE and AVX.
14858         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14859         single logical operations i.e and, or and xor instead of packed double
14860         logical operations for SSE and AVX.
14861         * config/i386/i386-c.c (ix86_target_macros_internal):
14862         Add PROCESSOR_BDVER1.
14863         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14864         (has_fma4, has_xop): New.
14865         * config/i386/i386.c (bdver1_cost): New variable.
14866         (m_BDVER1): New macro.
14867         (m_AMD_MULTIPLE): Add m_BDVER1.
14868         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14869         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14870         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14871         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14872         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14873         x86_tune_sse_partial_reg_dependency,
14874         x86_tune_sse_unaligned_load_optimal,
14875         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14876         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14877         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14878         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14879         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14880         Enable/disable for bdver1.
14881         (processor_target_table): Add bdver1_cost.
14882         (cpu_names): Add bdver1.
14883         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14884          processor_alias_table.
14885         (ix86_expand_vector_move_misalign): Change.
14886         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14887         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14888         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14889         of movupd/movdqu for SSE and AVX.
14890         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14891         (ix86_tune_adjust_cost): Add code for bdver1.
14892         (standard_sse_constant_opcode): Add check for
14893         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14894         of packed double xor for SSE and AVX.
14895
14896 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14897
14898         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14899         result to unsigned.
14900
14901 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14902
14903         * toplev.c (default_debug_hooks): Remove this variable.
14904         (process_options): Remove assignments to default_debug_hooks.
14905
14906 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14907
14908         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14909         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14910         * langhooks.h (struct lang_hooks_for_decls): Removed field
14911         fold_obj_type_ref.
14912         * tree.c (free_lang_data): Remove assignment to
14913         lang_hooks.fold_obj_type_ref.
14914         * tree.def (OBJ_TYPE_REF): Update comment.
14915
14916 2010-05-14  Richard Guenther  <rguenther@suse.de>
14917
14918         PR tree-optimization/44124
14919         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14920
14921 2010-05-14  Alan Modra  <amodra@gmail.com>
14922
14923         PR target/44075
14924         * config/rs6000/rs6000.c (struct machine_function): Reorder
14925         fields for better packing.  Add lr_save_state.
14926         (rs6000_ra_ever_killed): Return lr_save_state if set.
14927         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14928
14929 2010-05-13  Jan Hubicka  <jh@suse.cz>
14930
14931         * varpool.c (decide_is_variable_needed): Drop code checking
14932         TREE_SYMBOL_REFERENCED.
14933
14934 2010-05-13  Jan Hubicka  <jh@suse.cz>
14935
14936         * final.c (output_addr_const): Do not call mark_decl_referenced.
14937         * cgraphunit.c (process_function_and_variable_attributes): Use
14938         mark_needed_node dirrectly.
14939         (assemble_thunk): Do not call mark_decl_referenced.
14940
14941 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14942
14943         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14944
14945 2010-05-13  Jeff Law  <law@redhat.com>
14946
14947         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14948         from...
14949         (print_conflicts): Call print_allocno_conflicts.
14950
14951 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14952
14953         PR debug/44104
14954         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14955         if it is NULL.
14956
14957 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14958
14959         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14960         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14961         * config/i386/t-mingw-w32: New.
14962         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14963
14964 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14965
14966         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14967         gimple-fold.c).
14968         * gimple-fold.c (get_base_binfo_for_type): New function.
14969         (gimple_get_relevant_ref_binfo): Likewise.
14970         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14971         (gimple_fold_obj_type_ref): Likewise.
14972         (fold_gimple_call): Simplify condition for folding virtual calls
14973         and call gimple_fold_obj_type_ref.
14974         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14975         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14976
14977 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14978
14979         * config/rs6000/rs6000-protos.h
14980         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14981         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14982         (rs6000_debug_mode_dependent_address)
14983         (rs6000_mode_dependent_address_ptr): Likewise.
14984
14985 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14986
14987         PR debug/43983
14988         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14989         by SRA.
14990         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14991         * tree-sra.c (create_access_replacement): Call unshare_expr before
14992         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14993         * dwarf2out.c: Include tree-flow.h.
14994         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14995         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14996         Handle DW_OP_bit_piece.
14997         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14998         construct_piece_list, adjust_piece_list): New functions.
14999         (add_var_loc_to_decl): Handle SRA optimized variables.
15000         Adjust for var_loc_note to loc field renaming.
15001         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
15002         in VAR_LOCATION note.
15003         (new_loc_descr_op_bit_piece): New function.
15004         (dw_sra_loc_expr): New function.
15005         (dw_loc_list): Use it.  Don't handle the last range after the
15006         loop, handle it inside of the loop.  Adjust for var_loc_note
15007         to loc field renaming.
15008         (add_location_or_const_value_attribute): Only special case
15009         single entry loc lists if loc is NOTE_P.  Adjust for
15010         var_loc_note to loc field renaming.
15011         (dwarf2out_var_location): Don't set newloc->var_loc_note
15012         and newloc->next here.
15013
15014 2010-05-12  Jan Hubicka  <jh@suse.cz>
15015
15016         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
15017         flag.
15018         * cgraph.h (cgraph_only_called_directly_p,
15019         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
15020         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
15021         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
15022         (assemble
15023         * ipa.c (cgraph_remove_unreachable_nodes): Use
15024         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
15025         flags.
15026         * tree-inline.c (copy_bb): Check address_taken flag.
15027         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
15028         externally_visible flag.
15029
15030 2010-05-12  Jason Merrill  <jason@redhat.com>
15031
15032         PR bootstrap/44048
15033         PR target/44099
15034         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
15035         * sdbout.c (plain_type_1): Likewise.
15036         * dwarf2out.c (is_base_type): Likewise.
15037         (gen_type_die_with_usage): Likewise.  Generate
15038         DW_TAG_unspecified_type for any LANG_TYPE.
15039
15040 2010-05-12  Jan Hubicka  <jh@suse.cz>
15041
15042         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
15043         indrect edges too.
15044         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
15045         (cgraph_clone_edge): Update.
15046         (cgraph_node_remove_callees): Remove indirect calls too.
15047         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
15048         (cgraph_create_indirect_edge): Update prototype.
15049         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
15050         is_proper_for_analysis.
15051         (add_new_function, visited_nodes, function_insertion_hook_holder,
15052         get_local_reference_vars_info, mark_address_taken, mark_address,
15053         mark_load, mark_store, check_asm_memory_clobber, check_call,
15054         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
15055         (ipa_init): Do not initialize visited_nodes;
15056         function_insertion_hook_holder.
15057         (analyze_variable): Rewrite.
15058         (analyze_function): Rewrite.
15059         (copy_local_bitmap): Remove.
15060         (duplicate_node_dat): Do not duplicate local info.
15061         (generate_summary): Simplify to only walk cgraph.
15062         (write_node_summary_p, ipa_reference_write_summary,
15063         ipa_reference_read_summary): Remove.
15064         (propagate): Do not remove function insertion;
15065         generate summary.
15066         (pass_ipa_reference): NULLify summary handling fields.
15067         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
15068         (input_edge): Input ecf_flags.
15069         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
15070         (update_indirect_edges_after_inlining): Ignore edges with unknown
15071         param.
15072
15073 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
15074
15075         * implicit-zee.c: New file.
15076         * tree-pass.h (pass_implicit_zee): Declare.
15077         * passes.c (init_optimization_passes): Add zee pass.
15078         * common.opt (fzee): New flag.
15079         * timevar.def (TV_ZEE): Define.
15080         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
15081         and beyond.
15082         * Makefile.in (implicit-zee.o): Add new build file.
15083
15084 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15085             Nathan Froyd  <froydnj@codesourcery.com>
15086
15087         * c-common.c (sync_resolve_params): Remove write-only variable.
15088
15089 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
15090
15091         * target.h (struct gcc_target): Add mode_dependent_address_p field.
15092         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15093         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
15094         * targhooks.c (default_mode_dependent_address_p): New function.
15095         * targhooks.h (default_mode_dependent_address_p): Declare function.
15096         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15097         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
15098         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
15099         target hook. Change return type to bool.
15100         * recog.h (mode_dependent_address_p): Change return type to bool.
15101
15102 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15103             Nathan Froyd  <froydnj@codesourcery.com>
15104
15105         * tree-mudflap.c (build_function_type_0, build_function_type_1,
15106         build_function_type_2, build_function_type_3): Remove.
15107         (mudflap_init): Use build_function_type_list.
15108
15109 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15110             Nathan Froyd  <froydnj@codesourcery.com>
15111
15112         * coverage.c (build_fn_info_value): Call build_constructor instead of
15113         build_constructor_from_list.
15114         (build_ctr_info_value): Likewise.
15115         (build_gcov_info): Likewise.
15116
15117 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
15118
15119         * tree.c (build_constructor): Compute TREE_CONSTANT for the
15120         resultant constructor.
15121         (build_constructor_single): Don't set TREE_CONSTANT.
15122         (build_constructor_from_list): Don't compute TREE_CONSTANT.
15123
15124 2010-05-12  Jan Hubicka  <jh@suse.cz>
15125
15126         * cgraph.h (struct varpool_node): Add aux.
15127         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
15128         * varpool.c (varpool_remove_node): Do not remove initializer.
15129         (varpool_reset_queue): Export.
15130         (varpool_finalize_decl): Volatile vars are forced to be output.
15131         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
15132         replaced decl.
15133         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
15134         process_references, varpool_can_remove_if_no_refs): New functions.
15135         (cgraph_remove_unreachable_nodes): Handle variables too.
15136
15137 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15138
15139         PR target/44088
15140         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
15141
15142 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
15143
15144         PR middle-end/44085
15145         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
15146         change value of ORT_TASK.
15147         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
15148         (omp_notice_threadprivate_variable): New function.
15149         (omp_notice_variable): Call it for threadprivate variables.
15150         If enclosing ctx is a task, print enclosing task rather than
15151         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
15152         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
15153         if task has untied clause.
15154
15155         PR debug/42278
15156         * dwarf2out.c (base_type_die): Don't add name attribute here.
15157         (modified_type_die): Instead of sizetype use
15158         its underlying original type.  If a DW_TAG_base_type doesn't
15159         have name added, add __unknown__.
15160         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
15161         always call force_type_die instead.
15162
15163 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
15164
15165         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
15166         for __stack_chk_guard.
15167
15168 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15169
15170         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
15171         don't call start_source_file debug hook here...
15172         (finish_options): ... but here, after outputting predefined and
15173         command line defines and undefs.
15174
15175         PR middle-end/44071
15176         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15177         no fallthru edge.
15178         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15179         optimizing away empty bb with no successors, move over its
15180         footer chain to fallthru predecessor.
15181         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15182         (rtl_split_edge): For asm goto call patch_jump_insn even if
15183         splitting fallthru edge.
15184
15185         PR c++/44059
15186         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15187         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15188         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15189         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15190         on DW.ref.* decls.
15191
15192         PR c++/44062
15193         * c-parser.c (c_parser_expression): Mark LHS of a comma
15194         expression as read if it is a decl, handled component or
15195         COMPOUND_EXPR with that on the RHS.
15196         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15197         if it is a decl or handled component.
15198
15199 2010-05-11  Jan Hubicka  <jh@suse.cz>
15200
15201         * lto-symtab.c (lto_symtab_free): New function.
15202         * lto-streamer.h (lto_symtab_free): Declare.
15203
15204 2010-05-11  Jan Hubicka  <jh@suse.cz>
15205
15206         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15207         that if function is needed it is reachable.
15208         (lto_output_node): See if it the function is reachable or referenced.
15209         (output_cgraph): Update call of lto_output_node.
15210         * lto-streamer.h (reachable_from_other_partition_p): Declare.
15211
15212 2010-05-11  Jan Hubicka  <jh@suse.cz>
15213
15214         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15215         Mark as used.
15216
15217 2010-05-11  Jan Hubicka  <jh@suse.cz>
15218
15219         PR tree-optimize/44063
15220         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15221         queue.
15222         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15223         limits.
15224         (estimate_function_body_sizes): Compute sizes even when disregarding.
15225
15226 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
15227
15228         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15229
15230 2010-05-11  Jan Hubicka  <jh@suse.cz>
15231
15232         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15233         into every boundary.
15234
15235 2010-05-11  Jan Hubicka  <jh@suse.cz>
15236
15237         * matrix-reorg.c (matrix_reorg): Rebuild edges.
15238
15239 2010-05-11  Jan Hubicka  <jh@suse.cz>
15240
15241         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15242         lto_streamer_cache_delete): Put nodes into heap.
15243         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15244         heap.
15245
15246 2010-05-11  Jan Hubicka  <jh@suse.cz>
15247
15248         * cgraphbuild.c (cgraph_rebuild_references): New.
15249         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15250         out extern inlines.
15251         * cgraph.h (cgraph_rebuild_references): Declare.
15252         * tree-inline.c (tree_function_versioning): Use it.
15253         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15254
15255 2010-05-11  Jan Hubicka  <jh@suse.cz>
15256
15257         * cgraph.c: Include ipa-utils.h
15258         (cgraph_create_virtual_clone): Update references.
15259         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15260
15261 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15262
15263         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15264         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15265         cache size.
15266
15267 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15268
15269         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15270
15271 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15272
15273         * gcc.c (execute): For -### don't quote arguments that
15274         contain just alphanumerics and _/-. characters.
15275         * doc/invoke.texi: Document that change for -###.
15276
15277         PR debug/44023
15278         * df-problems.c (struct dead_debug): Add to_rescan field.
15279         (dead_debug_init): Clear to_rescan field.
15280         (dead_debug_finish): Rescan all debug insns in to_rescan
15281         bitmap and free the bitmap.
15282         (dead_debug_insert_before): Instead of rescanning debug insns
15283         immediately queue their rescanning until dead_debug_finish.
15284         (df_note_bb_compute): After dead_debug_add do continue instead
15285         of break.
15286
15287 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
15288
15289         PR debug/44028
15290         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15291         clear also INSN_REG_USE_LIST.
15292
15293 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15294
15295         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15296
15297 2010-05-10  Jan Hubicka  <jh@suse.cz>
15298
15299         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15300         commited change.
15301
15302 2010-05-10  Jan Hubicka  <jh@suse.cz>
15303
15304         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15305         Allocate encoders.
15306         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15307         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15308         (lto_streamer_cache_create): Init alloc pool.
15309         (lto_streamer_cache_delete): Free alloc pool.
15310         * lto-streamer.h: Include alloc pool.
15311         (lto_streamer_cache_d): Use alloc pool.
15312         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15313
15314 2010-05-10  Jan Hubicka  <jh@suse.cz>
15315
15316         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15317         * cgraphbuild.c: Include except.h
15318         (record_type_list, record_eh_tables): New function.
15319         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15320
15321 2010-05-10  Jan Hubicka  <jh@suse.cz>
15322
15323         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15324         __frame_dummy_init_array_entry, force_to_data): Attribute as used
15325         rather than unused.
15326
15327 2010-05-10  Michael Matz  <matz@suse.de>
15328
15329         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15330         (can_reassociate_p): Use FLOAT_TYPE_P.
15331         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15332         (vect_force_simple_reduction): ... this.
15333         * tree-parloops.c (gather_scalar_reductions): Use
15334         vect_force_simple_reduction.
15335         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15336         vect_is_simple_reduction, add modify argument, if true rewrite
15337         "a-b" into "a+(-b)".
15338         (vect_is_simple_reduction, vect_force_simple_reduction): New
15339         functions.
15340         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15341
15342 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15343             Vladimir Makarov  <vmakarov@redhat.com>
15344
15345         PR rtl-optimization/44012
15346         * ira-build.c (remove_unnecessary_allocnos): Nullify
15347         regno_allocno_map of the removed allocno.
15348
15349 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15350
15351         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15352         to /dev/null.
15353         * configure: Regenerate.
15354
15355 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15356
15357         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15358         unused.
15359         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15360         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15361         support in Sun ld.
15362         * configure: Regenerate.
15363
15364 2010-05-10  Richard Guenther  <rguenther@suse.de>
15365
15366         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15367         marked if the entry identifier is marked.
15368
15369 2010-05-10  Richard Guenther  <rguenther@suse.de>
15370
15371         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15372         (handle_fnspec_attribute): New function.
15373         * gimple.h (gimple_call_return_flags): Declare.
15374         (gimple_call_arg_flags): Likewise.
15375         * gimple.c (gimple_call_arg_flags): New function.
15376         (gimple_call_return_flags): Likewise.
15377         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15378         New argument flags.
15379         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15380         return value flags.
15381         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15382         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15383         main work to ...
15384         (make_heapvar_for): ... this new function.
15385         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15386         (handle_lhs_call): Likewise.
15387         (find_func_aliases): Adjust.
15388
15389 2010-05-10  Richard Guenther  <rguenther@suse.de>
15390
15391         PR tree-optimization/44050
15392         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15393
15394 2010-05-10  Wei Guozhi  <carrot@google.com>
15395
15396         PR target/42879
15397         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15398
15399 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15400
15401         PR c/10676
15402         * c-typeck.c (lookup_field): Take a type directly.  Update
15403         recursive calls.
15404         (build_component_ref): Update call to lookup_field.
15405         (set_init_label): Use lookup_field to find initialized field.
15406         Handle returned list of fields like a sequence of designators.
15407
15408 2010-05-09  Richard Guenther  <rguenther@suse.de>
15409
15410         PR middle-end/44024
15411         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15412         handle &FUNCTION_DECL.
15413
15414 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15415
15416         PR c/4784
15417         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15418         structures and unions recursively.
15419         (detect_field_duplicates): Move duplicate detection with a hash to
15420         detect_field_duplicates_hash.  Always use a hash if anonymous
15421         structures or unions are present.
15422         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15423         give errors.
15424
15425 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15426
15427         PR target/44046
15428         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15429         detect Atom, Core 2 and Core i7.
15430
15431 2010-05-09  Richard Guenther  <rguenther@suse.de>
15432
15433         * gcc.c (store_arg): Handle temporary file deletion for
15434         joined arguments.
15435
15436 2010-05-09  Richard Guenther  <rguenther@suse.de>
15437
15438         PR middle-end/44043
15439         * ipa-inline.c (estimate_function_body_sizes): Return after
15440         disregarding inline limits.
15441
15442 2010-05-09  Richard Guenther  <rguenther@suse.de>
15443
15444         * gcc.c (store_arg): Revert last change.
15445
15446 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15447
15448         PR middle-end/28685
15449         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15450         (optimize_ops_list): Call it.
15451
15452 2010-05-08  Richard Guenther  <rguenther@suse.de>
15453
15454         PR tree-optimization/44030
15455         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15456         NECESSARY flag if we propagate from a inserted expression.
15457
15458 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15459
15460         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15461         domain types as equal if they are both PLACEHOLDER_EXPRs.
15462
15463 2010-05-08  Richard Guenther  <rguenther@suse.de>
15464
15465         * lto-wrapper.c (run_gcc): Remove linker output from
15466         command line for LTRANS invocation.
15467
15468 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15469
15470         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15471         lto-macho as lto_binary_reader.
15472         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15473         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15474         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15475         in lto_start and lto_end calls.
15476         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15477         magic numbers.
15478         (scan_prog_file): Update is_elf_or_coff call.
15479         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15480
15481         * collect2.c (main): Fix enum comparison.
15482
15483         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15484         Add prototypes.
15485         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15486         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15487         and TARGET_ASM_LTO_END.
15488         * darwin.c: Include obstack.h and lto-streamer.h.
15489         (lto_section_names_offset, lto_section_names_obstack,
15490         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15491         global variables.
15492         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15493         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15494         to a temporary file.
15495         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15496         (darwin_asm_named_section): For LTO sections, replace the name with
15497         the offset of the section name in a string table, and build this
15498         table.
15499         (darwin_file_start): Initialize global vars for LTO support.
15500         (darwin_file_end): If output to asm_out_file was redirected, append it
15501         to the proper asm_out_file here.  Add the section names section.
15502
15503 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15504
15505         * c-pragma.c (pending_weak_d, pending_weak): New.
15506         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15507         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15508         handle_pragma_weak): Update the uses of pending_weaks.
15509
15510 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15511
15512         PR documentation/44016
15513         * doc/standards.texi (Standards): Link to unversioned
15514         cxx0x_status.html page.
15515
15516 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15517
15518         PR target/43708
15519         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15520         in addition to TREE_USED, to avoid "set but unused" warnings.
15521
15522 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15523
15524         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15525         (is_loop_prefetching_profitable): Do not insert prefetches
15526         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15527         times the prefetch ahead distance.
15528
15529 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15530
15531         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15532         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15533         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15534         the unroll_factor.
15535
15536 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15537
15538         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15539         a diagnostic info when the insn-to-mem ratio is too small.
15540
15541 2010-05-07  Richard Guenther  <rguenther@suse.de>
15542
15543         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15544         the linker plugin.
15545         (store_arg): Queue temp_filename for deletion instead of
15546         the whole argument.
15547
15548 2010-05-07  Richard Guenther  <rguenther@suse.de>
15549
15550         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15551         (run_gcc): Handle LTRANS phase invocation.
15552         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15553
15554 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15555
15556         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15557         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15558
15559 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15560
15561         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15562
15563 2010-05-07  Richard Guenther  <rguenther@suse.de>
15564
15565         PR tree-optimization/44020
15566         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15567         code when PRE is not yet initialized.
15568
15569 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15570
15571         * config/mips/dbxmdebug.h: Remove.
15572         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15573
15574 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15575
15576         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15577         with null pointer and also warn about ordered comparison of zero with
15578         pointer if -Wextra.
15579
15580 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15581
15582         * graphite-blocking.c
15583         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15584         * graphite-clast-to-gimple.c
15585         (clast_to_gcc_expression): Same.
15586         (precision_for_value): Same.
15587         (precision_for_interval): Same.
15588         (gcc_type_for_interval): Same.
15589         (graphite_create_new_guard): Same.
15590         (compute_bounds_for_level): Same.
15591         (graphite_create_new_loop_guard): Same.
15592         * graphite-interchange.c
15593         (build_linearized_memory_access): Same.
15594         (pdr_stride_in_loop): Same.
15595         (memory_strides_in_loop_1): Same.
15596         (memory_strides_in_loop): Same.
15597         (extend_scattering): Same.
15598         (psct_scattering_dim_for_loop_depth): Same.
15599         (pbb_number_of_iterations): Same.
15600         * graphite-poly.h
15601         (debug_iteration_domains): Same.
15602         * graphite-ppl.c
15603         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15604         (ppl_set_inhomogeneous_gmp): Same.
15605         (ppl_strip_loop): Same.
15606         (ppl_lexico_compare_linear_expressions): Same.
15607         (ppl_read_polyhedron_matrix): Same.
15608         (ppl_max_for_le_pointset): Same.
15609         * graphite-ppl.h
15610         (ppl_read_polyhedron_matrix): Same.
15611         (tree_int_to_gmp): Same.
15612         (gmp_cst_to_tree): Same.
15613         (ppl_set_inhomogeneous): Same.
15614         (ppl_set_inhomogeneous_tree): Same.
15615         (ppl_set_coef): Same.
15616         (ppl_set_coef_tree): Same.
15617         * graphite-sese-to-poly.c
15618         (build_pbb_scattering_polyhedrons): Same.
15619         (build_scop_scattering): Same.
15620         (scan_tree_for_params_right_scev): Same.
15621         (scan_tree_for_params): Same.
15622         (find_params_in_bb): Same.
15623         (find_scop_parameters): Same.
15624         (add_upper_bounds_from_estimated_nit): Same.
15625         (build_loop_iteration_domains): Same.
15626         (add_condition_to_domain): Same.
15627         (pdr_add_memory_accesses): Same.
15628
15629 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15630
15631         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15632         CLooG's value_* macros to their respective mpz_* counterparts.
15633         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15634         (graphite_create_new_loop_guard): Same.
15635         * graphite-interchange.c (build_linearized_memory_access): Same.
15636         (pdr_stride_in_loop): Same.
15637         (memory_strides_in_loop_1): Same.
15638         (1st_interchange_profitable_p): Same.
15639         * graphite-poly.c (extend_scattering): Same.
15640         (psct_scattering_dim_for_loop_depth): Same.
15641         (pbb_number_of_iterations): Same.
15642         (pbb_number_of_iterations_at_time): Same.
15643         * graphite-poly.h (new_1st_loop): Same.
15644         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15645         (oppose_constraint): Same.
15646         (insert_constraint_into_matrix): Same.
15647         (ppl_set_inhomogeneous_gmp): Same.
15648         (ppl_set_coef_gmp): Same.
15649         (ppl_strip_loop): Same.
15650         (ppl_lexico_compare_linear_expressions): Same.
15651         (ppl_max_for_le_pointset): Same.
15652         (ppl_min_for_le_pointset): Same.
15653         (ppl_build_realtion): Same.
15654         * graphite-ppl.h (gmp_cst_to_tree): Same.
15655         (ppl_set_inhomogeneous): Same.
15656         (ppl_set_inhomogeneous_tree): Same.
15657         (ppl_set_coef): Same.
15658         (ppl_set_coef_tree): Same.
15659         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15660         (build_scop_scattering): Same.
15661         (add_value_to_dim): Same.
15662         (scan_tree_for_params_right_scev): Same.
15663         (scan_tree_for_params_int): Same.
15664         (scan_tree_for_params): Same.
15665         (find_params_in_bb): Same.
15666         (find_scop_parameters): Same.
15667         (add_upper_bounds_from_estimated_nit): Same.
15668         (build_loop_iteration_domains): Same.
15669         (create_linear_expr_from_tree): Same.
15670         (add_condition_to_domain): Same.
15671         (pdr_add_memory_accesses): Same.
15672
15673 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15674             Jason Merrill  <jason@redhat.com>
15675
15676         * c-common.c (c_common_reswords): Add nullptr.
15677         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15678         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15679         (gen_type_die_with_usage): Likewise.
15680         * dbxout.c (dbxout_type): Likewise.
15681         * sdbout.c (plain_type_1): Likewise.
15682
15683 2010-05-06  Jason Merrill  <jason@redhat.com>
15684
15685         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15686         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15687         ret appropriately.
15688         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15689
15690         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15691         stripping WITH_SIZE_EXPR.
15692         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15693         change.
15694
15695 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15696
15697         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15698         list of obsolete configurations.
15699         Disabled check for obsolete configurations.
15700         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15701         Removed support for previous versions.
15702         * config/mips/iris.h: Removed.
15703         * config/mips/iris5.h: Removed.
15704         * config/mips/iris6.h: Merged old iris.h contents.
15705         (TARGET_IRIX): Removed.
15706         (DRIVER_SELF_SPECS): Removed mabi=32.
15707         (IDENT_ASM_OP): Removed undef.
15708         (STARTFILE_SPEC): Removed mabi=32.
15709         (ENDFILE_SPEC): Likewise.
15710         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15711         (MACHINE_TYPE): Update for IRIX 6.5.
15712         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15713         TARGET_IRIX by TARGET_IRIX6.
15714         (mips_file_start): Likewise.
15715         (mips_output_external): Remove IRIX 5/6 O32 support.
15716         (mips_output_function_prologue): Likewise.
15717         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15718         TARGET_IRIX6.
15719         (TARGET_CPU_CPP_BUILTINS): Likewise.
15720         (TARGET_IRIX): Removed.
15721         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15722         (MULTILIB_DIRNAMES): Removed 32.
15723         (MULTILIB_OSDIRNAMES): Removed ../lib.
15724         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15725         (Specific, mips-sgi-irix5): Document removal.
15726         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15727         Remove references to older IRIX 6 releases and the O32 ABI.
15728
15729 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15730
15731         PR bootstrap/43994
15732         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15733         instead of DF_REF_REAL_REG.
15734
15735 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15736
15737         PR target/43888
15738         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15739         handling to still return true for x64 targets.
15740
15741 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15742
15743         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15744
15745 2010-05-06  Jan Hubicka  <jh@suse.cz>
15746
15747         PR tree-optimization/43791
15748         * ipa-inline.c (update_caller_keys): Remove bogus
15749         disregard_inline_limits check.
15750
15751 2010-05-06  Michael Matz  <matz@suse.de>
15752
15753         PR tree-optimization/43984
15754         * tree-ssa-pre.c (inserted_phi_names): Remove.
15755         (inserted_exprs): Change to bitmap.
15756         (create_expression_by_pieces): Set bits, don't append to vector.
15757         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15758         (eliminate): Don't look at inserted_phi_names, remove deleted
15759         insns from inserted_exprs.
15760         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15761         (init_pre, fini_pre): Allocate and free bitmaps.
15762         (execute_pre): Insert insns on edges before elimination.
15763
15764 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15765
15766         * tree.c (initializer_zerop): Handle STRING_CST.
15767
15768 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15769
15770         PR 40989
15771         * doc/invoke.texi (Wimplicit): Document as C only.
15772         * opts.c (common_handle_option): Add argument kind.
15773         (handle_option): Rename as read_cmdline_option. Factor out code to...
15774         (handle_option): ... here. New.
15775         (handle_options): Rename as read_cmdline_options.
15776         (decode_options): Update call.
15777         (set_option): Use option index instead of option pointer. Classify
15778         diagnostics correctly.
15779         (enable_warning_as_error): Call handle_option.
15780         * opts.h (set_option): Update declaration.
15781         (handle_option): Declare.
15782         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15783         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15784         * c-opts.c (set_Wimplicit): Delete.
15785         (c_family_lang_mask): New static constant.
15786         (c_common_handle_option): Add argument kind. Use handle_option
15787         instead of set_Wimplicit.
15788         (c_common_post_options): warn_implicit and warn_implicit_int
15789         are disabled by default.
15790         * c-common.c (warn_implicit): Do not define here.
15791         * c-common.h (warn_implicit): Do not declare here.
15792         (c_common_handle_option): Update declaration.
15793         * lto-opts.c (lto_reissue_options): Update call to set_option.
15794
15795 2010-05-06  Richard Guenther  <rguenther@suse.de>
15796
15797         PR tree-optimization/43571
15798         * domwalk.c (walk_dominator_tree): Walk the dominator
15799         sons in more optimal order.
15800
15801 2010-05-06  Richard Guenther  <rguenther@suse.de>
15802
15803         PR tree-optimization/43934
15804         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15805         (stmt_cost): Likewise.
15806         (extract_true_false_args_from_phi): New helper.
15807         (determine_max_movement): For PHI nodes verify we can hoist them
15808         and compute their cost.
15809         (determine_invariantness_stmt): Handle PHI nodes.
15810         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15811         if-converted form using COND_EXPRs.
15812         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15813         (tree_ssa_lim): Likewise.
15814         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15815         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15816
15817 2010-05-06  Richard Guenther  <rguenther@suse.de>
15818
15819         PR tree-optimization/43987
15820         * tree-ssa-structalias.c (could_have_pointers): For possibly
15821         address-taken variables force pointers to be recorded.
15822         (create_variable_info_for_1): Likewise.
15823         (push_fields_onto_fieldstack): Pass in wheter all fields
15824         must have pointers.
15825         (find_func_aliases): Query types instead of vars whether
15826         they contain pointers where appropriate.
15827
15828 2010-05-06  Jan Hubicka  <jh@suse.cz>
15829
15830         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15831         (record_reference, mark_address, mark_load, mark_store): Record
15832         references.
15833         (record_references_in_initializer): Update call of record_references.
15834         (rebuild_cgraph_edges): Remove all references before rebuiding.
15835         * cgraph.c (cgraph_create_node): Clear ref list.
15836         (cgraph_remove_node): Remove references.
15837         (dump_cgraph_node): Dump references.
15838         (cgraph_clone_node): Clone references.
15839         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15840         (struct cgraph_node, varpool_node): Add ref_lst.
15841         * ipa-ref.c: New file.
15842         * ipa-ref.h: New file.
15843         * ipa-ref-inline.h: New file.
15844         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15845         (referenced_from_other_partition_p): New function.
15846         (lto_output_varpool_node): Take set arugment; call
15847         referenced_from_other_partition.
15848         (lto_output_ref): New.
15849         (add_references): New.
15850         (output_refs): New.
15851         (output_cgraph): Compute boundary based on references; output refs.
15852         (output_varpool): Accept cgraph_node_set argument.
15853         (input_ref): New.
15854         (input_refs): New.
15855         (input_cgraph): Call input_refs.
15856         * lto-section-in.c (lto_section_name): Add refs.
15857         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15858         (ipa-ref.o): New file.
15859         * varpool.c (varpool_node): Clear ipa ref list.
15860         (varpool_remove_node): Remove references.
15861         (dump_varpool_node): Dump references.
15862         (varpool_assemble_decl): Only compile finalized ones.
15863         (varpool_extra_name_alias): Initialize ref list.
15864         * lto-streamer.c (lto-get_section_name): Add .refs section.
15865         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15866         (referenced_from_other_partition_p): Declared.
15867
15868 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15869
15870         PR tree-optimization/43901
15871         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15872         type is not NULL if it's transformation phase, and return
15873         FALSE if it's analysis.
15874         (vectorizable_conversion, vectorizable_operation,
15875         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15876
15877 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15878
15879         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15880         Delete.
15881         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15882         New define.
15883         * config/mips/mips-protos.h
15884         (mips_small_register_classes_for_mode_p): Delete prototype.
15885
15886 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15887
15888         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15889         * config/arm/arm.c (multiple_operation_profitable_p,
15890         compute_offset_order): New static functions.
15891         (load_multiple_sequence, store_multiple_sequence): Use them.
15892         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15893         memory offsets, not register numbers.
15894         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15895
15896 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15897
15898         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15899         (get_pending_sizes, put_pending_size, put_pending_sizes):
15900         Update the uses of pending_sizes.
15901         * c-decl.c (store_parm_decls): Likewise.
15902         * c-tree.h (struct c_arg_info): Likewise.
15903         * tree.h: Update the prototype for get_pending_sizes and
15904         put_pending_sizes.
15905
15906 2010-05-05  Jason Merrill  <jason@redhat.com>
15907
15908         PR debug/43370
15909         * c-common.c (handle_aligned_attribute): Respect
15910         ATTR_FLAG_TYPE_IN_PLACE.
15911
15912         PR testsuite/43758
15913         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15914         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15915         (TARGET_INITIALIZER): Use it.
15916         * c-common.c (attribute_takes_identifier_p): Call it.
15917         * c-common.h: Update prototype.
15918         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15919         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15920
15921 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15922
15923         PR debug/43950
15924         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15925         DW_ID_down_case for Fortran compilation units.
15926
15927 2010-05-05  Jan Hubicka  <jh@suse.cz>
15928
15929         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15930         handle aliases.
15931
15932 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15933
15934         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15935         a variable-sized RESULT_DECL.
15936
15937 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15938
15939         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15940
15941 2010-05-05  Jason Merrill  <jason@redhat.com>
15942
15943         PR c++/43787
15944         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15945         returns GS_OK.
15946         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15947
15948 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15949             Jakub Jelinek  <jakub@redhat.com>
15950
15951         PR debug/43478
15952         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15953         (dead_debug_init, dead_debug_finish): New functions.
15954         (dead_debug_add, dead_debug_insert_before): Likewise.
15955         (df_note_bb_compute): Initialize a dead_debug object, add dead
15956         debug uses to it, insert debug bind insns before death insns,
15957         reset debug insns that refer to pending uses at the end.
15958         * rtl.h (make_debug_expr_from_rtl): New prototype.
15959         * varasm.c (make_debug_expr_from_rtl): New function.
15960
15961 2010-05-05  Jan Hubicka  <jh@suse.cz>
15962
15963         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15964         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15965         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15966         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15967         lto_varpool_encoder_encode_initializer_p,
15968         lto_set_varpool_encoder_encode_initializer): New functions.
15969         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15970         call output_varpool.
15971         (input_varpool_node): Do not always set analyzed.
15972         (input_cgraph_1): Return vector of cgraph nodes.
15973         (input_varpool_1): Return vector of varpools.
15974         (input_cgraph): Free the vectors.
15975         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15976         output only initializers needed.
15977         (lto_output): Only call output_cgraph.
15978         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15979         * lto-section-out.c (lto_new_out_decl_state): Initialize
15980         state->varpool_node_encoder.
15981         * lto-streamer.h (lto_varpool_encoder_d): New.
15982         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15983         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15984         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15985         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15986         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15987         Declare.
15988         (output_varpool, input_varpool): Remove declarations.
15989
15990 2010-05-05  Jan Hubicka  <jh@suse.cz>
15991
15992         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15993         with body can prevail.
15994
15995 2010-05-05  Jan Hubicka  <jh@suse.cz>
15996
15997         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15998         size.
15999
16000 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
16001
16002         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
16003
16004         * gengtype.h (erro_at_line): Constify pos argument.
16005
16006         * gengtype.c: Include hashtab.h.
16007         (enum gc_used): Document GC_MAYBE_POINTED_TO.
16008         (error_at_line): Constify pos argument.
16009         (do_typedef): Initialize p->opt field.
16010         (get_file_gtfilename): Fix comment typo.
16011         (struct walk_type_data): Constify line field.
16012         (get_output_file_for_structure): New function.
16013         (write_local_func_for_structure): Constify orig_s argument.
16014         Use get_output_file_for_structure.
16015         (write_func_for_structure): Use get_output_file_for_structure.
16016         (INDENT): New define.
16017         (dump_pair, dump_type, dump_type_list, dump_typekind)
16018         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
16019         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
16020         functions.
16021         (seen_types): New variable.
16022         (main): New variable do_dump.  Process "-d" command line option.
16023         Call dump_everything if dump requested.
16024
16025 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16026
16027         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
16028         in a temporary instead of invoking the macro multiple times.
16029         (track_expr_p): Likewise.
16030
16031 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
16032
16033         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
16034         per new semantics.
16035         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
16036         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
16037         conditions for printing notes.
16038         * common.opt (-Wcoverage-mismatch): Allow negative, default to
16039         true, update documentation.
16040         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
16041
16042 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
16043
16044         PR c/43981
16045         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
16046         on dimen.
16047
16048 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16049
16050         PR target/43799
16051         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
16052         (*sse_prologue_save_insn1): Likewise.
16053         (SSE prologue save splitter): Likewise.
16054
16055 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16056
16057         * tree.c (free_lang_data_in_one_sizepos): New inline function.
16058         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
16059         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
16060         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
16061         all decls.  Call it on DECL_FIELD_OFFSET of fields.
16062         (find_decls_types_r): Follow DECL_VALUE_EXPR.
16063         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
16064
16065 2010-05-04  Martin Jambor  <mjambor@suse.cz>
16066
16067         * tree-sra.c (build_access_from_expr_1): The first parameter type
16068         changed to simple tree.
16069         (build_access_from_expr): Likewise, gsi parameter was eliminated.
16070         (scan_assign_result): Renamed to assignment_mod_result, enum elements
16071         renamed as well.
16072         (build_accesses_from_assign): Removed all parameters except for a
16073         simple gimple statement.  Now returns a simple bool.
16074         (scan_function): All non-analysis parts moved to separate functions
16075         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
16076         parameters and updated both callers.
16077         (sra_modify_expr): Removed parameter data.
16078         (sra_modify_function_body): New function.
16079         (perform_intra_sra): Call sra_modify_function_body to modify the
16080         function body.
16081         (replace_removed_params_ssa_names): Parameter data changed into
16082         adjustments vector.
16083         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
16084         changed the parameter dont_convert to convert with the opposite
16085         meaning.
16086         (sra_ipa_modify_assign): Parameter data changed into adjustments
16087         vector, return value changed to bool.
16088         (ipa_sra_modify_function_body): New function.
16089         (sra_ipa_reset_debug_stmts): Updated a comment.
16090         (modify_function): Use ipa_sra_modify_function_body to modify function
16091         body.
16092
16093 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16094
16095         PR middle-end/43671
16096         * alias.c (true_dependence): Handle the same VALUE in x and mem.
16097         (canon_true_dependence): Likewise.
16098         (write_dependence_p): Likewise.
16099
16100 2010-05-04  Jan Hubicka  <jh@suse.cz>
16101
16102         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
16103         * cgraphbuild.c: Include ipa-utils.h
16104         (record_reference_ctx): New struct.
16105         (record_reference): Simplify to work on initializers; not statements.
16106         (mark_address, mark_load, mark_store): New.
16107         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16108         walk PHI nodes too.
16109         (record_references_in_initializer): Update use of record_reference.
16110         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16111         walk PHI nodes too.
16112
16113 2010-05-04  Jan Hubicka  <jh@suse.cz>
16114
16115         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
16116         node will be removed anyway.
16117         (lto_varpool_replace_node): Allow also unanalyzed nodes;
16118         relink aliases of node into prevailing node.
16119         * varpool.c (varpool_remove_node): Remove aliases properly;
16120         when removing node, remove all its aliases too; remove DECL_INITIAL
16121         of removed node; ggc_free the varpool node.
16122
16123 2010-05-04  Richard Guenther  <rguenther@suse.de>
16124
16125         PR tree-optimization/43879
16126         * tree-ssa-structalias.c (alias_get_name): Use
16127         DECL_ASSEMBLER_NAME if available.
16128         (create_function_info_for): Return the varinfo node.
16129         (ipa_pta_execute): Associate same-body aliases and extra names
16130         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
16131
16132 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16133
16134         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
16135
16136 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
16137
16138         PR bootstrap/43964
16139         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
16140         only if HONOR_REG_ALLOC_ORDER is not defined.
16141
16142 2010-05-04  Richard Guenther  <rguenther@suse.de>
16143
16144         PR tree-optimization/43949
16145         * tree-vrp.c (extract_range_from_binary_expr): Only handle
16146         TRUNC_MOD_EXPR.
16147
16148 2010-04-26  Jason Merrill  <jason@redhat.com>
16149
16150         * c.opt (-fstrict-enums): New.
16151         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
16152
16153 2010-05-03  David Ung  <davidu@mips.com>
16154             James E. Wilson  <wilson@codesourcery.com>
16155
16156         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
16157         emit the trap instruction before the divide for TUNE_74K.
16158
16159 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
16160
16161         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
16162         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
16163         based on the above, for new target hook.
16164
16165         * hooks.c (hook_bool_mode_true): New generic hook.
16166         * hooks.h (hook_bool_mode_true): Add prototype.
16167
16168         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
16169         target hook.
16170         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
16171         target hook, set to hook_bool_mode_false.
16172         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16173         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16174         with targetm.small_register_classes_for_mode_p.
16175         (find_reusable_reload): Likewise.
16176         (combine_reloads): Likewise.
16177         * reload1.c (reload_as_needed): Likewise.
16178         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16179         * ifcvt.c (noce_process_if_block, check_cond_move_block,
16180         dead_or_predicable): Likewise.
16181         * regmove.c (optimize_reg_copy_1): Likewise.
16182         * calls.c (prepare_call_address): Likewise.
16183         (precompute_register_parameters): Likewise.
16184
16185         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16186         hook definition.
16187         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16188         implementation of the hook that considers all register classes
16189         small except for SH64.
16190         (sh_override_options): Use the new hook.
16191         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16192         Add prototype.
16193
16194         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16195         hook definition.
16196         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16197         implementation of the hook that considers all register classes
16198         small for THUMB1.
16199         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16200         Add prototype.
16201
16202         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16203         hook definition.
16204         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16205         implementation of the hook that considers all register classes
16206         small for MIPS16.
16207         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16208         Add prototype.
16209
16210         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16211         hook definition.
16212         * config/m32c/m32c.h: Likewise.
16213         * config/pdp11/pdp11.h: Likewise.
16214         * config/avr/avr.h: Likewise.
16215         * config/xtensa/xtensa.h: Likewise.
16216         * config/m68hc11/m68hc11.h: Likewise.
16217         * config/mn10300/mn10300.h: Likewise.
16218         * config/mcore/mcore.h: Likewise.
16219         * config/h8300/h8300.h: Likewise.
16220         * config/bfin/bfin.h: Likewise.
16221
16222         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16223         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16224
16225 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
16226
16227         * double-int.h (tree_to_double_int): Remove macro.
16228         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16229         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16230         (tree_to_double_int): New function.
16231         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16232         Move ...
16233         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16234
16235 2010-05-03  Richard Guenther  <rguenther@suse.de>
16236
16237         PR tree-optimization/43971
16238         * tree-ssa-structalias.c (get_constraint_for_1): Fix
16239         constraints in the !flag_delete_null_pointer_checks case.
16240
16241 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
16242
16243         PR debug/43972
16244         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16245         result mode matches original rtl mode.
16246
16247 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
16248
16249         PR target/43888
16250         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16251
16252 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16253
16254         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16255         when processing flag options.
16256
16257 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16258
16259         * gcov-iov.c (main): Change format string placeholder
16260         from %#08x to 0x%08x.
16261         * genchecksum.c (dosum): Change format string placeholder
16262         from %#02x to 0x%02x.
16263
16264 2010-05-02  Richard Guenther  <rguenther@suse.de>
16265
16266         PR tree-optimization/43879
16267         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16268
16269 2010-05-02  Bruno Haible  <bruno@clisp.org>
16270
16271         * doc/extend.texi (Function Attributes): Fix a typo.
16272
16273 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16274
16275         Revert:
16276         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16277         placeholder from 0x%x to %#x.
16278         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16279         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16280         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16281         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16282         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16283         * config/i386/i386.c (ix86_target_string): Ditto.
16284         * config/i386/i386.c (output_pic_addr_const): Ditto.
16285         (print_operand): Ditto.
16286
16287 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16288
16289         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16290         placeholder from 0x%x to %#x.
16291         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16292         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16293         (ASM_OUTPUT_DEBUG_DATA): Ditto.
16294         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16295         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16296         * optc-gen.awk: Ditto.
16297         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16298         (HOST_WIDE_INT_PRINT_HEX): Ditto.
16299         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16300         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16301
16302 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16303
16304         * target.h (struct calls): Add function_value_regno_p field.
16305         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16306         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16307         * targhooks.c (default_function_value_regno_p): New function.
16308         * targhooks.h (default_function_value_regno_p): Declare function.
16309         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16310         * builtins.c. (apply_result_size): (Ditto.).
16311         * combine.c. (likely_spilled_retval_p): (Ditto.).
16312         * mode-switching.c. Include 'target.h'.
16313         (create_pre_exit): Use function_value_regno_p hook.
16314         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16315         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16316         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16317
16318         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16319         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16320         (ix86_function_value_regno_p): Declare as static, change argument
16321         type to const unsigned int.
16322         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16323
16324 2010-05-01  Richard Guenther  <rguenther@suse.de>
16325
16326         PR tree-optimization/43949
16327         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16328         types.
16329         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16330
16331 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16332
16333         * rtl.h (CONST_DOUBLE_P): Define.
16334         (rtx_to_double_int): Declare.
16335         * emit-rtl.c (rtx_to_double_int): New function.
16336         * dwarf2out.c (insert_double): New function.
16337         (loc_descriptor, add_const_value_attribute): Clean up, use
16338         rtx_to_double_int and insert_double functions.
16339
16340 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
16341
16342         * doc/extend.texi (Inline): Add missing return keyword to examples.
16343         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16344         "command-line".
16345
16346 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16347
16348         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16349         the variable part of the offset as well.  Use highest_pow2_factor for
16350         all alignment checks.
16351
16352 2010-04-30  Richard Guenther  <rguenther@suse.de>
16353
16354         PR tree-optimization/43879
16355         * tree-ssa-structalias.c (type_could_have_pointers): Functions
16356         can have pointers.
16357
16358 2010-04-30  Jan Hubicka  <jh@suse.cz>
16359
16360         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16361         varpool.
16362         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16363
16364 2010-04-30  Jan Hubicka  <jh@suse.cz>
16365
16366         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16367         New.
16368         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16369         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16370         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16371         cgraph_node_set_needs_ltrans_p): Remove.
16372
16373 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16374
16375         * sdbout.c: Include vec.h, do not include varray.h.
16376         (deferred_global_decls, sdbout_global_decl,
16377         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16378         * toplev.c: Do not include varray.h.
16379         (dump_memory_report): Do not dump VARRAY statistics.
16380         * gengtype.c (open_base_file): Ignore varray.h.
16381         * Makefile.in: Update for abovementioned changes.
16382         Remove all traces of varray.c and varray.h.
16383         * varray.c: Remove file.
16384         * varray.h: Remove file.
16385
16386 2010-04-30  Jan Hubicka  <jh@suse.cz>
16387
16388         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16389         references.
16390
16391 2010-04-30  Jan Hubicka  <jh@suse.cz>
16392
16393         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16394         needed.
16395
16396 2010-04-30  Richard Guenther  <rguenther@suse.de>
16397
16398         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16399         constraints for CONSTRUCTOR.
16400
16401 2010-04-30  Richard Guenther  <rguenther@suse.de>
16402
16403         PR lto/43946
16404         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16405         first after all lowering passes.
16406
16407 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16408
16409         * toplev.c: Include varray.h for statistics dumping.
16410         * tree.h: Do not declare varray_head_tag.
16411         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16412         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16413         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16414         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16415         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16416         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16417         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16418         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16419         include varray.h.
16420         * Makefile.in: Update for abovementioned changes.
16421
16422 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16423
16424         PR debug/43942
16425         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16426
16427 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16428
16429         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16430         Use this function to do machine-specific conversion.
16431         (picochip_legitimize_reload_address): Likewise.
16432         (picochip_legitimate_address_p): Check valid base register only if
16433         strict.
16434         (picochip_check_conditional_copy): Check for modw only if opnd is
16435         register.
16436         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16437         to call the function in c.
16438         * config/picochip/picochip-protos.h
16439         (picochip_legitimize_reload_address): Define.
16440         * config/picochip/picochip.md (supported_compare1): Define.
16441
16442 2010-04-30  Jan Hubicka  <jh@suse.cz>
16443
16444         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16445         (cgraph_global_info): Remove inlined.
16446         (LTO_cgraph_tag_names): Remove.
16447         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16448         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16449         simplify cgraph tags and document.
16450         (lto_output_node): Use only LTO_cgraph_unavail_node and
16451         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16452         for_functions_valid, global info, process and output flags.
16453         (input_overwrite_node): Initialize estimated stack size and
16454         estimated growth.  Do not read flags we no longer store.
16455         (input_node): Likewise do not read info no longer stored.
16456         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16457         flag.
16458
16459 2010-04-30  Richard Guenther  <rguenther@suse.de>
16460
16461         PR tree-optimization/43879
16462         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16463         handle non-zero initializers.
16464
16465 2010-04-30  Richard Guenther  <rguenther@suse.de>
16466
16467         * builtins.c (fold_builtin_1): Delete free (0).
16468
16469 2010-04-29  Jan Hubicka  <jh@suse.cz>
16470
16471         * gengtype.c (open_base_files): Add lto-streamer.h
16472         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16473         (pass_ipa_cp): GGC collect.
16474         * toplev. (compile_file): Do not output symbols.
16475         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16476         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16477         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16478         * lto-section-in.c: Include ggc.h
16479         (lto_new_in_decl_state): Alloc in GGC.
16480         (lto_delete_in_decl_state): Likewise.
16481         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16482         Collect.
16483
16484 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16485
16486         PR target/42895
16487         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16488         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16489         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16490         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16491         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16492         account only if HONOR_REG_ALLOC_ORDER is not defined.
16493         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16494         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16495
16496 2010-04-29  Jon Grant  <04@jguk.org>
16497
16498         * collect2.c (vflag): Change type from int to bool.
16499         (debug): Likewise.
16500         (helpflag): New global bool.
16501         (main): Set vflag and debug with boolean, not integer truth values.
16502         Accept new "--help" option and output usage text if found.
16503         * collect2.h (vflag): Update prototype.
16504         (debug): Likewise.
16505
16506 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16507
16508         PR bootstrap/43936
16509         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16510
16511 2010-04-29  Richard Guenther  <rguenther@suse.de>
16512
16513         PR bootstrap/43935
16514         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16515         with ATTRIBUTE_UNUSED.
16516
16517 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16518
16519         PR target/43921
16520         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16521         INSN_P with NONDEBUG_INSN_P.
16522         (distance_non_agu_define): Likewise.
16523         (distance_agu_use): Likewise.
16524
16525 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16526
16527         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16528         PR bootstrap/43858
16529         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16530         test_set.
16531
16532 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16533
16534         * plugin.h (invoke_plugin_callbacks): New inline function.
16535         * plugin.c (flag_plugin_added): New global flag.
16536         (add_new_plugin): Initialize above flag.
16537         (invoke_plugin_callbacks): Rename to ...
16538         (invoke_plugin_callbacks_full): ... this.
16539
16540 2010-04-28  Jan Hubicka  <jh@suse.cz>
16541
16542         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16543         (lto_varpool_replace_node): New.
16544         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16545         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16546         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16547         * cgraph.h (varpool_node_ptr): New type.
16548         (varpool_node_ptr): New vector.
16549         (varpool_node_set_def): New structure.
16550         (varpool_node_set): New type.
16551         (varpool_node_set): New vector.
16552         (varpool_node_set_element_def): New structure.
16553         (varpool_node_set_element, const_varpool_node_set_element): New types.
16554         (varpool_node_set_iterator): New type.
16555         (varpool_node): Add prev pointers, add used_from_other_partition,
16556         in_other_partition.
16557         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16558         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16559         varpool_get_node, varpool_remove_node): Declare.
16560         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16561         varpool_node_set_size): New inlines.
16562         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16563         * tree-pass.h (varpool_node_set_def): Forward declare.
16564         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16565         (ipa_write_optimization_summaries): Update prototype.
16566         * ipa-cp.c (ipcp_write_summary): Update.
16567         * ipa-reference.c (ipa_reference_write_summary): Update.
16568         * lto-cgraph.c (lto_output_varpool_node): New static function.
16569         (output_varpool): New function.
16570         (input_varpool_node): New static function.
16571         (input_varpool_1): New function.
16572         (input_cgraph): Input varpool.
16573         * ipa-pure-const.c (pure_const_write_summary): Update.
16574         * lto-streamer-out.c (lto_output): Update, output varpool too.
16575         (write_global_stream): Kill WPA hack.
16576         (produce_asm_for_decls): Update.
16577         (output_alias_pair_p): Handle variables.
16578         (output_unreferenced_globals): Output only needed partition of varpool.
16579         * ipa-inline.c (inline_write_summary): Update.
16580         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16581         cgraph.
16582         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16583         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16584         varpool_node_set_new, varpool_node_set_add,
16585         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16586         debug_varpool_node_set): New functions.
16587         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16588         (execute_one_pass): Process new decls too.
16589         (ipa_write_summaries_2): Pass around vsets.
16590         (ipa_write_summaries_1): Likewise.
16591         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16592         to add.
16593         (ipa_write_optimization_summaries_1): Pass around vsets.
16594         (ipa_write_optimization_summaries): Likewise.
16595         * varpool.c (varpool_get_node): New.
16596         (varpool_node): Update doubly linked lists.
16597         (varpool_remove_node): New.
16598         (dump_varpool_node): More dumping.
16599         (varpool_enqueue_needed_node): Update doubly linked lists.
16600         (decide_is_variable_needed): Kill ltrans hack.
16601         (varpool_finalize_decl): Kill lto hack.
16602         (varpool_assemble_decl): Skip decls in other partitions.
16603         (varpool_assemble_pending_decls): Update doubly linkes lists.
16604         (varpool_empty_needed_queue): Likewise.
16605         (varpool_extra_name_alias): Likewise.
16606         * lto-streamer.c (lto_get_section_name): Add vars section.
16607         * lto-streamer.h (lto_section_type): Update.
16608         (output_varpool, input_varpool): Declare.
16609
16610 2010-04-28  Mike Stump  <mikestump@comcast.net>
16611
16612         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16613
16614 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16615
16616         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16617         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16618         (lto_input_ts_type_tree_pointers): Likewise.
16619         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16620         (lto_output_ts_type_tree_pointers): Likewise.
16621
16622 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16623
16624         Uniquization of constants at the Tree level
16625         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16626         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16627         bit to the end.
16628         (tree_output_constant_def): Declare.
16629         * gimplify.c (gimplify_init_constructor): When using block copy, first
16630         uniquize the constant constructor on the RHS.
16631         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16632         DECL_IN_CONSTANT_POOL flag.
16633         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16634         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16635         constant pool.
16636         (assemble_variable): Deal with symbols belonging to the tree constant
16637         pool.
16638         (get_constant_section): Add ALIGN parameter and simplify.
16639         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16640         (assemble_constant_contents): Use the expression of the VAR_DECL.
16641         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16642         (tree_output_constant_def): New global function.
16643         (mark_constant): Use the expression of the VAR_DECL.
16644         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16645         its expression.
16646         (output_object_block): Likewise and assemble the expression.
16647
16648 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16649
16650         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16651         hash_tree, eq_tree): New tree hash table.
16652         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16653         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16654         lto_orig_address_remove): Reimplement.
16655
16656 2010-04-28  Xinliang David Li  <davidxl@google.com>
16657
16658         PR c/42643
16659         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16660         (compute_uninit_opnds_pos): New function.
16661         (is_non_loop_exit_postdominating): New function.
16662         (compute_control_dep_chain): New function.
16663         (find_pdom): New function.
16664         (convert_control_dep_chain_into_preds): New function.
16665         (find_predicates): New function.
16666         (find_control_equiv_block): New function.
16667         (collect_phi_def_edges): New function.
16668         (find_def_preds): New function.
16669         (find_dom): New function.
16670         (dump_predicates): New function.
16671         (get_cmp_code): New function.
16672         (is_value_included_in): New function.
16673         (find_matching_predicate_in_rest_chains): New function.
16674         (use_pred_not_overlap_with_undef_path_pred): New function.
16675         (is_use_properly_guarded): New function.
16676         (normalize_cond_1): New function.
16677         (is_and_or_or): New function.
16678         (normalize_cond): New function.
16679         (is_gcond_subset_of): New function.
16680         (is_subset_of_any): New function.
16681         (is_or_set_subset_of): New function.
16682         (is_and_set_subset_of): New function.
16683         (is_norm_cond_subset_of): New function.
16684         (is_pred_expr_subset_of): New function.
16685         (is_pred_chain_subset_of): New function.
16686         (is_included_in): New function.
16687         (is_superset_of): New function.
16688         (find_uninit_use): New function.
16689         (warn_uninitialized_phi): New function.
16690         (compute_possibly_undefined_names): New function.
16691         (ssa_undefined_value_p): New function.
16692         (execute_late_warn_uninitialized): New function.
16693         * tree-ssa.c (ssa_undefined_value_p): Removed.
16694         (warn_uninit): Changed to extern.
16695         (warn_uninitialized_phi): Removed.
16696         (warn_uninitialized_vars): Changed to extern.
16697         (execute_late_warn_uninitialized): Removed
16698         * tree-flow.h: Add new prototypes.
16699         * timevar.def: Add new time variable.
16700         * Makefile.in: Add new build file.
16701
16702 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16703
16704         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16705         type if available.
16706
16707 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16708
16709         PR target/22224
16710         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16711
16712 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16713
16714         * cgraph.h (struct cgraph_node): New field indirect_calls.
16715         (struct cgraph_indirect_call_info): New type.
16716         (struct cgraph_edge): Removed field indirect_call. New fields
16717         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16718         (cgraph_create_indirect_edge): Declare.
16719         (cgraph_make_edge_direct): Likewise.
16720         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16721         * ipa-prop.h (struct ipa_param_call_note): Removed.
16722         (struct ipa_node_params): Removed field param_calls.
16723         (ipa_create_all_structures_for_iinln): Declare.
16724         * cgraph.c: Described indirect edges and uids in initial comment.
16725         (cgraph_add_edge_to_call_site_hash): New function.
16726         (cgraph_edge): Search also among the indirect edges, use
16727         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16728         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16729         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16730         site hash.
16731         (initialize_inline_failed): Assign a reason to indirect edges.
16732         (cgraph_create_edge_1): New function.
16733         (cgraph_create_edge): Moved some functionality to
16734         cgraph_create_edge_1.
16735         (cgraph_create_indirect_edge): New function.
16736         (cgraph_edge_remove_callee): Add an assert checking for
16737         non-indirectness.
16738         (cgraph_edge_remove_caller): Special-case indirect edges.
16739         (cgraph_remove_edge): Likewise.
16740         (cgraph_set_edge_callee): New function.
16741         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16742         (cgraph_make_edge_direct): New function.
16743         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16744         the declaration of the call statement matches.
16745         (cgraph_node_remove_callees): Special-case indirect edges.
16746         (cgraph_clone_edge): Likewise.
16747         (cgraph_clone_node): Clone also the indirect edges.
16748         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16749         indirect_call, dump count of indirect_calls edges.
16750         * ipa-prop.c (iinlining_processed_edges): New variable.
16751         (ipa_note_param_call): Create indirect edges instead of
16752         creating notes.  New parameter node.
16753         (ipa_analyze_call_uses): New parameter node, pass it on to
16754         ipa_note_param_call.
16755         (ipa_analyze_stmt_uses): Likewise.
16756         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16757         (print_edge_addition_message): Work on edges rather than on notes.
16758         (update_call_notes_after_inlining): Likewise, renamed to
16759         update_indirect_edges_after_inlining.
16760         (ipa_create_all_structures_for_iinln): New function.
16761         (ipa_free_node_params_substructures): Do not free notes.
16762         (ipa_edge_duplication_hook): Propagate bits within
16763         iinlining_processed_edges bitmap.
16764         (ipa_node_duplication_hook): Do not duplicate notes.
16765         (free_all_ipa_structures_after_ipa_cp): Renamed to
16766         ipa_free_all_structures_after_ipa_cp.
16767         (free_all_ipa_structures_after_iinln): Renamed to
16768         ipa_free_all_structures_after_iinln.
16769         (ipa_write_param_call_note): Removed.
16770         (ipa_read_param_call_note): Removed.
16771         (ipa_write_indirect_edge_info): New function.
16772         (ipa_read_indirect_edge_info): Likewise.
16773         (ipa_write_node_info): Do not stream notes, do stream information
16774         in indirect edges.
16775         (ipa_read_node_info): Likewise.
16776         (lto_ipa_fixup_call_notes): Removed.
16777         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16778         * ipa-inline.c (pass_ipa_inline): Likewise.
16779         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16780         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16781         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16782         is_gimple_call.
16783         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16784         edges.
16785         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16786         (output_cgraph): Stream also indirect edges.
16787         (lto_output_edge): Added capability to stream indirect edges.
16788         (input_edge): Likewise.
16789         (input_cgraph_1): Likewise.
16790         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16791         of indirect edges.
16792
16793 2010-04-28  Richard Guenther  <rguenther@suse.de>
16794
16795         PR tree-optimization/43879
16796         PR tree-optimization/43909
16797         * tree-ssa-structalias.c (struct variable_info): Add
16798         only_restrict_pointers flag.
16799         (new_var_info): Initialize it.  Increment stats.total_vars here.
16800         (create_function_info_for): Do not increment stats.total_vars here.
16801         (get_function_part_constraint): Fix build with C++.
16802         (insert_into_field_list): Remove.
16803         (push_fields_onto_fieldstack): Properly merge fields.
16804         (create_variable_info_for): Split and simplify.
16805         (create_variable_info_for_1): New piece.
16806         (intra_create_variable_infos): Properly make restrict constraints
16807         from parameters.
16808
16809 2010-04-28  Richard Guenther  <rguenther@suse.de>
16810
16811         PR c++/43880
16812         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16813
16814 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16815             Jan Hubicka  <hubicka@ucw.cz>
16816
16817         * doc/invoke.texi (-Wsuggest-attribute=const,
16818         -Wsuggest-attribute=pure): Document.
16819         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16820         (function_always_visible_to_compiler_p,
16821         suggest_attribute, warn_function_pure, warn_function_const):
16822         New functions.
16823         (check_call): Improve debug info.
16824         (analyze_function): Do not check availability.
16825         (add_new_function): Check availability.
16826         (propagate): Output warnings.
16827         (skip_function_for_local_pure_const): New function.
16828         (local_pure_const): Use it; output warnings.
16829         * common.opt (Wsuggest-attribute=const,
16830         Wsuggest-attribute=pure): New.
16831
16832 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16833
16834         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16835         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16836         or DW_CFA_def_cfa_offset{,_sf}.
16837
16838 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16839
16840         * tree.h: Fix truncated long macros.
16841
16842 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16843
16844         * collect2.c (TARGET_64BIT): Redefine to target's default.
16845         * tlink.c: Likewise.
16846         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16847         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16848         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16849         for underscoring __USER_LABEL_PREFIX__.
16850         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16851         (SUB_LINK_ENTRY32): New.
16852         (SUB_LINK_ENTRY64): New.
16853         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16854         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16855         (SUB_LINK_ENTRY64): New.
16856         (SUB_LINK_ENTRY): New.
16857         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16858         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16859         x64 target is choosen.
16860         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16861         * configure: Regenerated.
16862         * configure.ac (leading-mingw64-underscores): Option added.
16863
16864 2010-04-27  Jan Hubicka  <jh@suse.cz>
16865
16866         * doc/invoke.texi (-fipa-profile): Document.
16867         * opts.c (decode_options): Enable ipa-profile at -O1.
16868         * timevar.def (TV_IPA_PROFILE): Define.
16869         * common.opt (fipa-profile): Add.
16870         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16871         flag for clones.
16872         (cgraph_propagate_frequency): Handle only local ones.
16873         * tree-pass.h (pass_ipa_profile): Declare.
16874         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16875         (pass_ipa_profile): Use TV_IPA_PROFILE.
16876         * ipa.c (ipa_profile): New function.
16877         (gate_ipa_profile): Likewise.
16878         (pass_ipa_profile): New global variable.
16879         * passes.c (pass_ipa_profile): New.
16880
16881 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16882
16883         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16884
16885 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16886
16887         PR middle-end/43812
16888         * ipa.c (dissolve_same_comdat_group_list): New function.
16889         (function_and_variable_visibility): Call
16890         dissolve_same_comdat_group_list when comdat group contains external or
16891         newly local nodes.
16892         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16893         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16894
16895 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16896
16897         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16898         (const_hash_1) <VECTOR_CST>: New case.
16899         (compare_constant) <VECTOR_CST>: Likewise.
16900         <ADDR_EXPR>: Deal with LABEL_REFs.
16901         (copy_constant) <VECTOR_CST>: New case.
16902
16903 2010-04-27  Jan Hubicka  <jh@suse.cz>
16904
16905         * cgraph.c (cgraph_propagate_frequency): New function.
16906         * cgraph.h (cgraph_propagate_frequency): Declare.
16907         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16908         cgraph_propagate_frequency.
16909
16910 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16911
16912         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16913
16914 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16915
16916         PR target/40657
16917         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16918         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16919         here to determine which regs to push and how much stack to reserve.
16920
16921 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16922
16923         * doc/gimple.texi (gimple_statement_with_ops): Remove
16924         addresses_taken field.
16925         (gimple_statement_with_memory_ops): Likewise.
16926
16927 2010-04-27  Jan Hubicka  <jh@suse.cz>
16928
16929         * tree-inline.c (eni_inlining_weights): Remove.
16930         (estimate_num_insns): Special case more builtins.
16931
16932 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16933
16934         PR c/32207
16935         * c-typeck.c (build_binary_op): Move forward check for comparison
16936         pointer with null pointer constant and adjust the diagnostic message.
16937
16938 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16939
16940         PR lto/42776
16941         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16942         binutils supports extended .section directive needed by LTO, or
16943         warn if older binutils found.
16944         (LTO_BINARY_READER): New AC_SUBST'd variable.
16945         (LTO_USE_LIBELF): Likewise.
16946         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16947         variable.
16948         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16949         (LTO_USE_LIBELF): Likewise.
16950         * configure: Regenerate.
16951
16952         * collect2.c (is_elf): Rename from this ...
16953         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16954          object files in addition to ELF-formatted ones.
16955         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16956         symbol to be prefixed or not by an extra underscore.
16957
16958         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16959         * config/i386/winnt.c: Also #include lto-streamer.h
16960         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16961         LTO named sections.
16962         (i386_pe_asm_output_aligned_decl_common): Add comment.
16963         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16964
16965 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16966
16967         PR target/43889
16968         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16969         Add missing earlyclobber for second alternative.
16970
16971 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16972
16973         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16974         bits for artificial defs at the top of the block.
16975         * fwprop.c (single_def_use_enter_block): Don't call it.
16976
16977 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16978
16979         PR 43715
16980         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16981         instead of "$gcc_cv_objdump -T".
16982         Use "-undefined dynamic_lookup" on darwin.
16983         * gcc/configure: Regenerate.
16984
16985 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16986
16987         PR c/43893
16988         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16989
16990 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16991
16992         * c-parser.c (struct c_token): Move location field up.
16993         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16994         (struct c_declspecs): Convert typespec_word, storage_class, and
16995         default_int_p into bitfields.
16996         (struct c_declarator): Move loc field up.
16997
16998 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16999
17000         * cfgloop.h (struct loop): Move can_be_parallel field up.
17001         * ipa-prop.h (struct ip_node_params): Move bitfields up.
17002         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
17003         down.
17004         (struct iv_cand): Convert pos field into a bitfield.
17005         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
17006         field up.
17007         (struct _stmt_vec_info): Shuffle fields for better packing.
17008
17009 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17010
17011         * varasm.c (IN_NAMED_SECTION): Remove guard.
17012         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
17013         (IN_NAMED_SECTION_P): ...this.
17014         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
17015         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17016
17017 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17018
17019         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
17020         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
17021         of shadowing it.  Fix comments.
17022
17023 2010-04-26  Jan Hubicka  <jh@suse.cz>
17024
17025         * cgraph.c (cgraph_create_node): Set node frequency to normal.
17026         (cgraph_clone_node): Copy function frequency.
17027         * cgraph.h (node_frequency): New enum
17028         (struct cgraph_node): Add.
17029         * final.c (rest_of_clean_state): Update.
17030         * lto-cgraph.c (lto_output_node): Output node frequency.
17031         (input_overwrite_node): Input node frequency.
17032         * tre-ssa-loop-ivopts (computation_cost): Update.
17033         * lto-streamer-out.c (output_function): Do not output function
17034         frequency.
17035         * predict.c (maybe_hot_frequency_p): Update and handle functions
17036         executed once.
17037         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
17038         attribute lookup.
17039         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
17040         (compute_function_frequency): Set noreturn functions to be executed
17041         once.
17042         (choose_function_section): Update.
17043         * lto-streamer-in.c (input_function): Do not input function frequency.
17044         * function.c (allocate_struct_function): Do not initialize function
17045         frequency.
17046         * function.h (function_frequency): Remove.
17047         (struct function): Remove function frequency.
17048         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
17049         (try_update): Update.
17050         * tree-inline.c (initialize_cfun): Do not update function frequency.
17051         * passes.c (pass_init_dump_file): Update.
17052         * i386.c (ix86_compute_frame_layout): Update.
17053         (ix86_pad_returns): Update.
17054
17055 2010-04-26  Jie Zhang  <jie@codesourcery.com>
17056
17057         PR tree-optimization/43833
17058         * tree-vrp.c (range_int_cst_p): New.
17059         (range_int_cst_singleton_p): New.
17060         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
17061         when both operands are constants.  Use range_int_cst_p in
17062         BIT_IOR_EXPR case.
17063
17064 2010-04-26  Jan Hubicka  <jh@suse.cz>
17065
17066         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
17067
17068 2010-04-26  Richard Guenther  <rguenther@suse.de>
17069
17070         PR lto/43080
17071         * gimple.c (gimple_decl_printable_name): Deal gracefully
17072         with a NULL DECL_NAME.
17073
17074 2010-04-26  Richard Guenther  <rguenther@suse.de>
17075
17076         PR lto/42425
17077         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
17078         if emitting debug information and it is either a function
17079         or a namespace decl.
17080
17081 2010-04-26  Ira Rosen  <irar@il.ibm.com>
17082
17083         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
17084         determine if the statement is vectorizable, and a macro to access it.
17085         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17086         Skip statements that can't be vectorized. If the analysis fails,
17087         mark the statement as unvectorizable if vectorizing basic block.
17088         (vect_compute_data_refs_alignment): Likewise.
17089         (vect_verify_datarefs_alignment): Skip statements marked as
17090         unvectorizable. Add print.
17091         (vect_analyze_group_access): Skip statements that can't be
17092         vectorized. If the analysis fails, mark the statement as
17093         unvectorizable if vectorizing basic block.
17094         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
17095         * tree-vect-stmts.c (vectorizable_store): Fix the number of
17096         generated stmts for SLP.
17097         (new_stmt_vec_info): Initialize the new field.
17098         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
17099         statements marked as unvectorizable.
17100
17101 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
17102
17103         * c-common.c (flag_isoc1x): New.
17104         (flag_isoc99): Update comment.
17105         * c-common.h (flag_isoc1x): New.
17106         (flag_isoc99): Update comment.
17107         * c-cppbuiltin.c (builtin_define_float_constants): Also define
17108         __<type>_DECIMAL_DIG__.
17109         * c-opts.c (set_std_c1x): New.
17110         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
17111         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
17112         * c.opt (-std=c1x, -std=gnu1x): New options.
17113         * doc/cpp.texi: Mention -std=c1x.
17114         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
17115         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
17116         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
17117         * doc/standards.texi: Mention C1X.
17118         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
17119         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
17120         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17121         Define for C1X.
17122
17123 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
17124
17125         * config/i386/gmon-sol2.c (_mcleanup): Change format string
17126         placeholder from 0x%x to %#x.
17127         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17128         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17129         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17130         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17131         * config/i386/i386.c (ix86_target_string): Ditto.
17132         (output_pic_addr_const): Ditto.
17133         (print_operand): Ditto.
17134
17135 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
17136
17137         * combine.c (find_split_point): Add third argument.  Use it
17138         to find nested multiply-accumulate instructions.  Adjust calls.
17139         (try_combine): Adjust call to find_split_point.
17140
17141 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17142
17143         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
17144
17145 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
17146
17147         PR tree-optimization/41442
17148         * fold-const.c (merge_truthop_with_opposite_arm): New function.
17149         (fold_binary_loc): Call it.
17150
17151 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17152
17153         * toplev.c (general_init): Set default for fdiagnostics-show-option.
17154         * opts.c (common_handle_option): Allow disabling it.
17155         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
17156
17157 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
17158
17159         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
17160         between modes if both types are integral.
17161
17162 2010-04-23  Richard Guenther  <rguenther@suse.de>
17163
17164         PR tree-optimization/43572
17165         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
17166
17167 2010-04-23  Richard Guenther  <rguenther@suse.de>
17168
17169         PR lto/43455
17170         * tree-inline.c (tree_can_inline_p): Also check compatibility
17171         of return types.
17172
17173 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17174
17175         PR tree-optimization/43846
17176         * tree-sra.c (struct access): New flag grp_assignment_read.
17177         (build_accesses_from_assign): Set grp_assignment_read.
17178         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17179         (enum mark_read_status): New type.
17180         (analyze_access_subtree): Propagate grp_assignment_read, create
17181         accesses also if both direct_read and root->grp_assignment_read.
17182
17183 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17184
17185         PR middle-end/43835
17186         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17187         function does not have type attributes.
17188
17189 2010-04-23  Richard Guenther  <rguenther@suse.de>
17190
17191         PR lto/42653
17192         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17193         of FUNCTION_DECLs.
17194
17195 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17196
17197         * sese.h (create_if_region_on_edge): Remove.
17198
17199         * sese.c (create_if_region_on_edge): Make static.
17200
17201         * tree-inline.c: Do not include ggc.h.
17202
17203         * expr.c: Do not include ggc.h.
17204
17205         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17206         dependencies.
17207
17208 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17209
17210         PR target/43744
17211         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17212         in the middle of insns for casesi_worker_2.
17213
17214 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
17215
17216         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17217
17218 2010-04-22  Ira Rosen  <irar@il.ibm.com>
17219
17220         PR tree-optimization/43842
17221         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17222         loop unrolling in update of exit phis. Fix comment.
17223         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17224         least two reduction statements in the loop before starting SLP
17225         analysis.
17226
17227 2010-04-22  Nick Clifton  <nickc@redhat.com>
17228
17229         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17230
17231 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
17232
17233         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17234         to simplify a + ~a.
17235
17236 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17237
17238         * tree-parloops.c (loop_parallel_p): New argument
17239         parloop_obstack.  Pass it down.
17240         (parallelize_loops): New variable parloop_obstack.  Initialize it,
17241         pass it down, free it.
17242
17243         * tree-loop-linear.c (linear_transform_loops): Pass down
17244         lambda_obstack.
17245
17246         * tree-data-ref.h (lambda_compute_access_matrices): New argument
17247         of type struct obstack *.
17248
17249         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17250         scratch_obstack.  Initialize it, pass down, free it.
17251
17252         * lambda.h (lambda_loop_new): Remove.
17253         (lambda_matrix_new, lambda_matrix_inverse)
17254         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17255         argument of type struct obstack *.
17256
17257         * lambda-trans.c (lambda_trans_matrix_new): New argument
17258         lambda_obstack.  Pass it down, use obstack allocation for ret.
17259         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
17260         it down.
17261
17262         * lambda-mat.c (lambda_matrix_get_column)
17263         (lambda_matrix_project_to_null): Remove.
17264         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
17265         allocation for mat.
17266         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17267         lambda_obstack.
17268
17269         * lambda-code.c (lambda_loop_new): New function.
17270         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17271         (lambda_compute_auxillary_space, lambda_compute_target_space)
17272         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17273         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17274         (build_access_matrix): New argument lambda_obstack.  Use obstack
17275         allocation for am.
17276         (lambda_compute_step_signs, lambda_compute_access_matrices): New
17277         argument lambda_obstack.  Pass it down.
17278
17279 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17280
17281         * optabs.h (expand_widening_mult): Declare.
17282
17283 2010-04-22  Richard Guenther  <rguenther@suse.de>
17284
17285         PR tree-optimization/43845
17286         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17287         lookup the CALL_EXPR function and arguments.
17288
17289 2010-04-22  Nick Clifton  <nickc@redhat.com>
17290
17291         * config/stormy16/stormy16.c
17292         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17293         * config/stormy16/stormy16.h: Tidy up formatting.
17294         (DONT_USE_BUILTIN_SETJMP): Remove definition.
17295         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17296         (ineqbranchsi): Delete pattern.
17297         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17298         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17299         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17300         stormy16-lib2-ucmpsi2.c.
17301
17302 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17303
17304         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17305         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
17306         extra set merge_set_noclobber, and use it to relax the final test
17307         slightly.
17308         * df.h (df_simulate_find_noclobber_defs): Declare.
17309         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17310         conditional defs.
17311         (df_simulate_find_noclobber_defs): New function.
17312
17313 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
17314
17315         * config/i386/i386.md: Use {} around multi-line preparation statements.
17316
17317 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17318
17319         * c-tree.h (push_init_level, pop_init_level, set_init_index)
17320         (process_init_element): New argument of type struct obstack *.
17321
17322         * c-typeck.c (push_init_level, pop_init_level, set_designator)
17323         (set_init_index, set_init_label, set_nonincremental_init)
17324         (set_nonincremental_init_from_string, find_init_member)
17325         (output_init_element, output_pending_init_elements)
17326         (process_init_element): New argument braced_init_obstack.  Pass it
17327         down.
17328         (push_range_stack, add_pending_init): New argument
17329         braced_init_obstack.  Use obstack allocation.
17330
17331         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17332         braced_init_obstack.  Pass it down.
17333         (c_parser_braced_init): New variables ret, braced_init_obstack.
17334         Initialize obstack, pass it down and finally free it.
17335
17336 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17337
17338         PR middle-end/29274
17339         * tree-pass.h (pass_optimize_widening_mul): Declare.
17340         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17341         gate_optimize_widening_mul): New static functions.
17342         (pass_optimize_widening_mul): New.
17343         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17344         <case MULT_EXPR>: Remove support for widening multiplies.
17345         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17346         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17347         simplify_gen_unary rather than directly building extensions.
17348         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17349         WIDEN_MULT_EXPR.
17350         * expmed.c (expand_widening_mult): New function.
17351         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17352
17353 2010-04-21  Jan Hubicka  <jh@suse.cz>
17354
17355         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17356         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17357         * lto-wpa-fixup.c: Remove.
17358         * Makefile.in (lto-wpa-fixup.o): Remove.
17359         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17360         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17361         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17362
17363 2010-04-21  Jan Hubicka  <jh@suse.cz>
17364
17365         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17366         add write_optimization_summary, read_optimization_summary.
17367         (ipa_write_summaries_of_cgraph_node_set): Remove.
17368         (ipa_write_optimization_summaries): Declare.
17369         (ipa_read_optimization_summaries): Declare.
17370         * ipa-cp.c (pass_ipa_cp): Update.
17371         * ipa-reference.c (pass_ipa_reference): Update.
17372         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17373         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17374         Update.
17375         * ipa-inline.c (pass_ipa_inline): Update.
17376         * ipa.c (pass_ipa_whole_program): Update.
17377         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17378         * passes.c (ipa_write_summaries_1): Do not test wpa.
17379         (ipa_write_optimization_summaries_1): New.
17380         (ipa_write_optimization_summaries): New.
17381         (ipa_read_summaries): Do not test ltrans.
17382         (ipa_read_optimization_summaries_1): New.
17383         (ipa_read_optimization_summaries): New.
17384
17385 2010-04-21  Jan Hubicka  <jh@suse.cz>
17386
17387         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17388         for boundary nodes.
17389         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17390
17391 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17392
17393         PR debug/40040
17394         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17395         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17396
17397 2010-04-21  Jan Hubicka  <jh@suse.cz>
17398
17399         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17400
17401 2010-04-21  Jan Hubicka  <jh@suse.cz>
17402
17403         * varpool.c (decide_is_variable_needed): Variable is always needed
17404         during ltrans.
17405
17406 2010-04-21  Jan Hubicka  <jh@suse.cz>
17407
17408         * opts.c (decode_options): Enable pure-const pass for whopr.
17409
17410 2010-04-21  Jan Hubicka  <jh@suse.cz>
17411
17412         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17413         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17414         at WPA dumping.
17415         (cgraph_decide_inlining): Do not expect callee to be removed in all
17416         cases.
17417
17418 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17419
17420         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17421
17422 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17423
17424         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17425         amdfam10_decode attributes.
17426
17427 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17428
17429         PR middle-end/43570
17430         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17431         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17432         (lower_copyprivate_clauses): Use private var in outer
17433         context instead of original var.  Make sure the types
17434         are correct for VLAs.
17435
17436 2010-04-21  Richard Guenther  <rguenther@suse.de>
17437
17438         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17439         to non-pointer objects.
17440
17441 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17442
17443         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17444         last chain entry if it starts with the still current label.
17445         (add_location_or_const_value_attribute): Check that
17446         loc_list->first->next is NULL instead of comparing ->first with ->last.
17447         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17448         to add_var_loc_to_decl.
17449
17450         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17451         >= 4 add also address size and segment size fields into CIE header.
17452
17453         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17454         long as address size is the same as sizeof (void *) and
17455         segment size is 0.
17456         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17457         address size or segment size is unexpected, return DW_EH_PE_omit.
17458         (classify_object_over_fdes): If get_cie_encoding returned
17459         DW_EH_PE_omit, return -1.
17460         (init_object): If classify_object_over_fdes returned -1,
17461         pretend there were no FDEs at all.
17462
17463 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17464
17465         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17466         bswap{si,di}2 using SWI48 mode iterator.
17467         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17468         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17469         set modrm attribute of bswap insn to 0 and remove length attribute.
17470         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17471         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17472         set mode attribute to <MODE> and remove length attribute.
17473
17474 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17475
17476         PR rtl-optimization/43520
17477         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17478         zero available registers.
17479
17480 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17481
17482         * builtins.c (fold_builtin_cproj): Fold more cases.
17483
17484 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17485
17486         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17487         (fold_builtin_1): Fold builtin cproj.
17488         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17489         Use ATTR_CONST_NOTHROW_LIST.
17490
17491 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17492
17493         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17494         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17495         ffsi2_no_cmove for !TARGET_CMOVE.
17496         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17497         (ffssi2): Remove expander.
17498         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17499         mode iterator.
17500         (ctz<mode>2): Ditto from ctz{si,di}2.
17501         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17502         mode iterator.
17503         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17504         mode iterator.
17505
17506 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17507
17508         * dwarf2out.c (AT_linkage_name): Define.
17509         (clone_as_declaration): Handle DW_AT_linkage_name.
17510         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17511         of DW_AT_MIPS_linkage_name.
17512         (move_linkage_attr): Likewise.
17513         (dwarf2out_finish): Likewise.
17514
17515 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17516
17517         PR middle-end/41952
17518         * fold-const.c (fold_comparison): New folding rule.
17519
17520 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17521
17522         * double-int.h (double_int_setbit): Declare.
17523         * double-int.c (double_int_setbit): New function.
17524         * rtl.h (immed_double_int_const): Declare.
17525         * emit-rtl.c (immed_double_int_const): New function.
17526         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17527         and immed_double_int_const functions.
17528         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17529         expand_copysign_bit): (Ditto.).
17530         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17531         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17532         * dojump.c (prefer_and_bit_test): (Ditto.).
17533         * expr.c (convert_modes, reduce_to_bit_field_precision,
17534         const_vector_from_tree): (Ditto.).
17535         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17536
17537 2010-04-20  Jan Hubicka  <jh@suse.cz>
17538
17539         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17540         (dump_cgraph_node): Dump new flags.
17541         * cgraph.h (struct cgraph_node): Add flags
17542         reachable_from_other_partition and in_other_partition.
17543         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17544         other partition can not be removed.
17545         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17546         the other partition must be output; silence sanity checking on
17547         leaking functions bodies from other paritition.
17548         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17549         (lto_output_node): Output new flags; do not sanity check that inline
17550         clones are output; drop lto_forced_extern_inline_p code; do not mock
17551         visibility flags at partition boundaries.
17552         (add_node_to): New function.
17553         (output_cgraph): Use it to sort functions so masters appear before
17554         clones.
17555         (input_overwrite_node): Input new flags.
17556         * passes.c (ipa_write_summaries): Do not call
17557         lto_new_extern_inline_states.
17558         * lto-section-out.c (forced_extern_inline,
17559         lto_new_extern_inline_states lto_delete_extern_inline_states,
17560         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17561         * lto-streamer.h (lto_new_extern_inline_states,
17562         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17563         lto_forced_extern_inline_p): Kill.
17564
17565 2010-04-20  Richard Guenther  <rguenther@suse.de>
17566
17567         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17568         from vars that can have pointers.
17569         (process_constraint): Dump useless constraints.
17570
17571 2010-04-20  Richard Guenther  <rguenther@suse.de>
17572
17573         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17574         (dump_sa_points_to_info): Remove asserts.
17575         (init_base_vars): nothing_id isn't an escape point nor does it
17576         have pointers.
17577
17578 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17579
17580         * tree.h (TYPE_REF_IS_RVALUE): Define.
17581         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17582         should_move_die_to_comdat, prune_unused_types_walk): Handle
17583         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17584         (modified_type_die, gen_reference_type_die): Emit
17585         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17586         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17587
17588 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17589
17590         PR target/43635
17591         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17592         calls for -fpic -m31 if they have been sibcall optimized.
17593
17594 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17595
17596         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17597         ar.lc fixed and call-used.
17598
17599         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17600
17601 2010-04-19  Jan Hubicka  <jh@suse.cz>
17602
17603         * opts.c (decode_options): Disable whpr incompatible passes.
17604         * lto/lto.c (lto_1_to_1_map): Skip clones.
17605         (read_cgraph_and_symbols): Do not mark everything as needed.
17606         (do_whole_program_analysis): Do map only after optimizing;
17607         set proper cgraph_state; use passmanager.
17608
17609 2010-04-19  DJ Delorie  <dj@redhat.com>
17610
17611         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17612         POINTER_PLUS_EXPR and fix them.
17613
17614 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17615
17616         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17617         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17618         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17619         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17620         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17621         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17622         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17623         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17624         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17625         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17626         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17627
17628 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17629
17630         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17631         (check_cond_move_block): Likewise.
17632         (cond_move_process_if_block): Likewise.
17633         (noce_find_if_block): Improve formatting.
17634         (find_if_header): Pass 0 to memset and tweak conditions.
17635         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17636
17637 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17638
17639         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17640         for -gdwarf-4.
17641
17642         PR middle-end/43337
17643         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17644         with non-local decl doesn't need chain.
17645
17646 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17647
17648         * ira-color.c (allocno_reload_assign): Avoid accumulating
17649         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17650
17651 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17652
17653         * gimple.h (create_tmp_reg): Declare.
17654         * gimplify.c (create_tmp_reg): New function.
17655         (gimplify_return_expr): Use create_tmp_reg.
17656         (gimplify_omp_atomic): Likewise.
17657         (gimple_regimplify_operands): Likewise.
17658         * tree-dfa.c (make_rename_temp): Likewise.
17659         * tree-predcom.c (predcom_tmp_var): Likewise.
17660         (reassociate_to_the_same_stmt): Likewise.
17661         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17662         (get_replaced_param_substitute): Likewise.
17663         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17664         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17665         * tree-ssa-pre.c (get_representative_for): Likewise.
17666         (create_expression_by_pieces): Likewise.
17667         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17668         (create_tailcall_accumulator): Likewise.
17669
17670 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17671
17672         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17673         new_stmt.
17674         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17675
17676 2010-04-19  Richard Guenther  <rguenther@suse.de>
17677
17678         PR tree-optimization/43796
17679         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17680         from SCEV in the lattice.
17681         (vrp_visit_phi_node): Dump change.
17682
17683 2010-04-19  Richard Guenther  <rguenther@suse.de>
17684
17685         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17686         * configure: Re-generated.
17687
17688 2010-04-19  Richard Guenther  <rguenther@suse.de>
17689
17690         PR tree-optimization/43783
17691         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17692         constant ARRAY_REF operands two and three if possible.
17693
17694 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17695
17696         PR target/43766
17697         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17698
17699 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17700
17701         PR target/43662
17702         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17703
17704 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17705
17706         PR tree-optimization/37027
17707         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17708         and macro to access it.
17709         (vectorizable_reduction): Add argument.
17710         (vect_get_slp_defs): Likewise.
17711         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17712         statements for possible use in SLP.
17713         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17714         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17715         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17716         add new argument.
17717         (vectorizable_reduction): Likewise.
17718         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17719         vect_get_slp_defs.
17720         (vectorizable_type_demotion, vectorizable_type_promotion,
17721         vectorizable_store): Likewise.
17722         (vect_analyze_stmt): Update call to vectorizable_reduction.
17723         (vect_transform_stmt): Likewise.
17724         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17725         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17726         from different interleaving chains in same node.
17727         (vect_slp_rearrange_stmts): New function.
17728         (vect_supported_load_permutation_p): Allow load permutations for
17729         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17730         inside SLP nodes if necessary.
17731         (vect_analyze_slp_instance): Handle reductions.
17732         (vect_analyze_slp): Try to build SLP instances originating from groups
17733         of reductions.
17734         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17735         (vect_get_constant_vectors): Create initial vectors for reductions
17736         according to reduction code. Add new argument.
17737         (vect_get_slp_defs): Add new argument, pass it to
17738         vect_get_constant_vectors.
17739         (vect_schedule_slp_instance): Remove SLP tree root statements.
17740
17741 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17742
17743         * tree.h (ENUM_IS_SCOPED): Define.
17744         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17745         for ENUM_IS_SCOPED enums.
17746
17747 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17748
17749         * fold-const.c (fold_comparison): Use ssizetype.
17750         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17751         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17752         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17753         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17754
17755         * tree.h (initialize_sizetypes): Remove parameter.
17756         (build_common_tree_nodes): Remove second parameter.
17757         * stor-layout.c (initialize_sizetypes): Remove parameter.
17758         Always create an unsigned type.
17759         (set_sizetype): Assert that the passed type is unsigned and simplify.
17760         * tree.c (build_common_tree_nodes): Remove second parameter.
17761         Adjust call to initialize_sizetypes.
17762         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17763         build_common_tree_nodes.
17764
17765 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17766
17767         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17768
17769 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17770
17771         PR tree-optimization/43771
17772         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17773         load permutation doesn't have gaps.
17774
17775 2010-04-18  Jan Hubicka  <jh@suse.cz>
17776
17777         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17778         (sse_prologue_save_insn expander): Use new pattern.
17779         (sse_prologue_save_insn1): New pattern and splitter.
17780         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17781         blocks.
17782         * i386.c (setup_incoming_varargs_64): Do not compute jump
17783         destination here.
17784         (ix86_gimplify_va_arg): Update alignment needed.
17785         (ix86_local_alignment): Do not align all local arrays to 128bit.
17786
17787 2010-04-17  Jan Hubicka  <jh@suse.cz>
17788
17789         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17790
17791 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17792
17793         * arm.md (negdi2): Remove redundant code to force values into a
17794         register.
17795
17796 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17797
17798         * arm/bpabi.S: Add EABI alignment attributes to objects.
17799         * arm/bpabi-v6m.S: Likewise.
17800         * arm/crti.asm: Likewise.
17801         * arm/crtn.asm: Likewise.
17802         * arm/lib1funcs.asm: Likewise.
17803         * arm/libunwind.S: Likewise.
17804
17805 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17806
17807         * arm-protos.h (tune_params): New structure.
17808         * arm.c (current_tune): New variable.
17809         (arm_constant_limit): Delete.
17810         (struct processors): Add pointer to the tune parameters.
17811         (arm_slowmul_tune): New tuning option.
17812         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17813         (all_cores): Adjust to pick up the tuning model.
17814         (arm_constant_limit): New function.
17815         (arm_override_options): Select the appropriate tuning model.  Delete
17816         initialization of arm_const_limit.
17817         (arm_split_constant): Use the new constant-limit model.
17818         (arm_rtx_costs): Pick up the current tuning model.
17819         * arm.md (is_strongarm, is_xscale): Delete.
17820         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17821         for Xscale variant architectures.
17822         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17823
17824 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17825
17826         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17827         can_shift.
17828         (arm_rtx_costs_1): Remove unused variable extra_cost.
17829         (arm_unwind_emit_set): Use variable offset.
17830         (thumb1_output_casesi): Remove unused variable flags.
17831
17832 2010-04-16  Jeff Law  <law@redhat.com>
17833
17834         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17835         needing assignment rather than doing a two-phase assignment.  Remove
17836         unused variable 'm'.
17837
17838 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17839
17840         PR bootstrap/43767
17841         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17842
17843 2010-04-16  Doug Kwan  <dougkwan@google.com>
17844
17845         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17846         (next_operand_entry_id): New static variable.
17847         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17848         (add_to_ops_vec): Assigned unique ID to operand entry.
17849         (struct oecount_s): New field ID.
17850         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17851         (undistribute_ops_list): Assign unique IDs to oecounts.
17852         (init_reassoc): reset next_operand_entry_id.
17853
17854 2010-04-16  Doug Kwan  <dougkwan@google.com>
17855
17856         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17857         missing left parenthesis.
17858
17859 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17860
17861         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17862         *btdi_rex64 using SWI48 mode iterator.
17863         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17864         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17865         *jcc_btdi_mask_rex64.
17866
17867 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17868
17869         * double-int.h (tree_to_double_int): Convert to macro.
17870         * double-int.c (tree_to_double_int): Remove.
17871
17872 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17873
17874         PR debug/43762
17875         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17876         with want_address 2 and in case a single element list might be
17877         possible, call it again with want_address 0.
17878
17879 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17880
17881         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17882         case 'W' print operands for HI mode.
17883         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17884         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17885         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17886         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17887
17888         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17889
17890         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17891         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17892         #xx:3 and #xx:4 mode.
17893
17894         * config/h8300/h8300.md (inverted load with HImode dest): Add
17895         support for H8300SX.
17896
17897         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17898         satisfy 'U' constraint.
17899
17900 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17901
17902         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17903         * configure: Regenerate.
17904         * config.in: Regenerate.
17905         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17906         works.
17907
17908 2010-04-16  Richard Guenther  <rguenther@suse.de>
17909
17910         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17911         (struct tree_decl_common): ... here.
17912         (DECL_PT_UID): Adjust.
17913         (SET_DECL_PT_UID): Likewise.
17914         (DECL_PT_UID_SET_P): Likewise.
17915
17916 2010-04-16  Richard Guenther  <rguenther@suse.de>
17917
17918         PR tree-optimization/43572
17919         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17920         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17921         * tree-flow.h (is_call_clobbered): Remove.
17922         * tree-flow-inline.h (is_call_clobbered): Likewise.
17923         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17924         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17925         (execute_return_slot_opt): Adjust.
17926         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17927         check for call clobbered vars here.
17928         (find_tail_calls): Move tailcall verification to the
17929         proper place.
17930
17931 2010-04-16  Diego Novillo  <dnovillo@google.com>
17932
17933         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17934
17935 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17936
17937         PR target/40603
17938         * config/arm/arm.md (cbranchqi4): New pattern.
17939         * config/arm/predicates.md (const0_operand,
17940         cbranchqi4_comparison_operator): New predicates.
17941
17942 2010-04-16  Richard Guenther  <rguenther@suse.de>
17943
17944         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17945         (dump_gimple_stmt): Likewise.
17946
17947 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17948
17949         * recog.h (struct recog_data): New field is_operator.
17950         (struct insn_operand_data): New field is_operator.
17951         * recog.c (extract_insn): Set recog_data.is_operator.
17952         * genoutput.c (output_operand_data): Emit code to set the
17953         is_operator field.
17954         * reload.c (find_reloads): Use it rather than testing for an
17955         empty constraint string.
17956
17957         PR target/41514
17958         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17959         If the previous insn is a cbranchsi4_insn with the same arguments,
17960         omit the compare instruction.
17961
17962         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17963         register, inputs must be low registers and we need a low register
17964         scratch.  Handle alternative 2 like alternative 3.
17965
17966 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17967
17968         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17969         don't call get_addr on both.  If one expression is a VALUE and
17970         the other a REG, check VALUE's locs if the REG isn't among them.
17971
17972 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17973
17974         * config/sh/sh.h (sh_frame_pointer_required): New function.
17975         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17976         (flag_omit_frame_pointer) Set.
17977         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17978         (rounded_frame_size): Adjust size with outgoing_args_size.
17979         (sh_set_return_address): Must return from stack pointer.
17980         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17981         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17982         (ACCUMULATE_OUTGOING_ARGS): Define.
17983         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17984         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17985
17986 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17987
17988         PR target/43471
17989         * config/sh/sh.c (sh_legitimize_reload_address): Use
17990         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17991         Remove a unneeded check for offset_base.
17992
17993 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17994
17995         * configure: Regenerated.
17996
17997 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17998
17999         * config/s390/s390.c (s390_call_save_register_used): Switch back
18000         to HARD_REGNO_NREGS.
18001
18002 2010-04-15  Richard Guenther  <rguenther@suse.de>
18003
18004         * alias.c (alias_set_subset_of): Handle alias-set zero
18005         child properly.
18006
18007 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
18008             Julian Brown  <julian@codesourcery.com>
18009
18010         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
18011         alternatives according to use of high and low regs.
18012         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18013         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
18014         optimizing for size on Thumb-2.
18015
18016 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
18017
18018         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
18019
18020 2010-04-15  Richard Guenther  <rguenther@suse.de>
18021
18022         * tree-ssa-structalias.c (struct variable_info): Add
18023         is_fn_info flag.
18024         (new_var_info): Initialize it.
18025         (dump_constraints): Support printing last added constraints.
18026         (debug_constraints): Adjust.
18027         (dump_constraint_graph): Likewise.
18028         (make_heapvar_for): Check for NULL cfun.
18029         (get_function_part_constraint): New function.
18030         (get_fi_for_callee): Likewise.
18031         (find_func_aliases): Properly implement IPA PTA constraints.
18032         (process_ipa_clobber): New function.
18033         (find_func_clobbers): Likewise.
18034         (insert_into_field_list_sorted): Remove.
18035         (create_function_info_for): Properly allocate vars for IPA mode.
18036         Do not use insert_into_field_list_sorted.
18037         (create_variable_info_for): Properly generate constraints for
18038         global vars in IPA mode.
18039         (dump_solution_for_var): Always dump the solution.
18040         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
18041         (find_what_var_points_to): Adjust.
18042         (pt_solution_set): Change.
18043         (pt_solution_ior_into): New function.
18044         (pt_solution_empty_p): Export.
18045         (pt_solution_includes_global): Adjust.
18046         (pt_solution_includes_1): Likewise.
18047         (pt_solutions_intersect_1): Likewise.
18048         (dump_sa_points_to_info): Check some invariants.
18049         (solve_constraints): Move constraint dumping ...
18050         (compute_points_to_sets): ... here.
18051         (ipa_pta_execute): ... and here.
18052         (compute_may_aliases): Do not re-compute points-to info
18053         locally if IPA info is available.
18054         (ipa_escaped_pt): New global var.
18055         (ipa_pta_execute): Properly implement IPA PTA.
18056         * tree-into-ssa.c (dump_decl_set): Support dumping
18057         decls not in referenced-vars.
18058         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
18059         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
18060         (dump_points_to_solution): Likewise.
18061         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
18062         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
18063         (remap_gimple_stmt): Reset call clobber/use information if necessary.
18064         (copy_decl_to_var): Copy DECL_PT_UID.
18065         (copy_result_decl_to_var): Likewise.
18066         * tree.c (make_node_stat): Initialize DECL_PT_UID.
18067         (copy_node_stat): Copy it.
18068         * tree.h (DECL_PT_UID): New macro.
18069         (SET_DECL_PT_UID): Likewise.
18070         (DECL_PT_UID_SET_P): Likewise.
18071         (struct tree_decl_minimal): Add pt_uid member.
18072         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
18073         (pt_solution_empty_p): Declare.
18074         (pt_solution_set): Adjust.
18075         (ipa_escaped_pt): Declare.
18076         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
18077         * gimple-pretty-print.c (pp_points_to_solution): New function.
18078         (dump_gimple_call): Dump call clobber/use information.
18079         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
18080         * tree-pass.h (TDF_ALIAS): New dump option.
18081         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
18082         * doc/invoke.texi (-fipa-pta): Update documentation.
18083
18084 2010-04-15  Richard Guenther  <rguenther@suse.de>
18085
18086         * Makefile.in (OBJS-common): Add gimple-fold.o.
18087         (gimple-fold.o): New rule.
18088         * tree.h (maybe_fold_offset_to_reference,
18089         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
18090         prototypes ...
18091         * gimple.h: ... here.
18092         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
18093         may_propagate_address_into_dereference): Move prototypes ...
18094         * gimple.h: ... here.
18095         * tree-ssa-ccp.c (get_symbol_constant_value,
18096         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
18097         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
18098         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
18099         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
18100         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
18101         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
18102         gimplify_and_update_call_from_tree): Move ...
18103         * gimple-fold.c: ... here.  New file.
18104         (ccp_fold_builtin): Rename to ...
18105         (gimple_fold_builtin): ... this.
18106         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
18107
18108 2010-04-15  Richard Guenther  <rguenther@suse.de>
18109
18110         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
18111         fit_double_type, force_fit_type_double, add_double_with_sign,
18112         neg_double, mul_double_with_sign, lshift_double, rshift_double,
18113         lrotate_double, rrotate_double, div_and_round_double): Move ...
18114         * double-int.c: ... here.
18115         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
18116         add_double, neg_double, mul_double_with_sign, mul_double,
18117         lshift_double, rshift_double, lrotate_double, rrotate_double,
18118         div_and_round_double): Move prototypes ...
18119         * double-int.h: ... here.
18120
18121 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
18122
18123         PR target/43742
18124         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
18125         matching constraints to ensure inputs match the output.
18126
18127 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18128
18129         PR target/43742
18130         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
18131         in an input-only operand.
18132
18133 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
18134
18135         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
18136         (double_int_not, double_int_lshift, double_int_rshift): Declare.
18137         (double_int_negative_p): Convert to static inline function.
18138         * double-int.c (double_int_lshift, double_int_lshift): New functions.
18139         (double_int_negative_p): Remove.
18140         * tree.h (lshift_double, rshift_double):
18141         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
18142         * fold-const.c (fold_convert_const_int_from_real,
18143         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
18144         (lshift_double): Change type of arith argument to bool.
18145         (rshift_double): Change type of arith argument to bool. Correct
18146         comment.
18147         * expmed.c (mask_rtx, lshift_value): (Ditto.).
18148
18149 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
18150
18151         PR target/21803
18152         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
18153         at the start and end of the then/else blocks, and omit them from the
18154         conversion.
18155         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
18156         argument; all callers changed.  Pass zero to old_insns_match_p instead.
18157         (flow_find_head_matching_sequence): New function.
18158         (old_insns_match_p): Check REG_EH_REGION notes for calls.
18159         * basic-block.h (flow_find_cross_jump,
18160         flow_find_head_matching_sequence): Declare functions.
18161
18162 2010-04-14  Jason Merrill  <jason@redhat.com>
18163
18164         PR c++/36625
18165         * c-common.c (attribute_takes_identifier_p): New fn.
18166         * c-common.h: Declare it.
18167
18168 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18169
18170         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
18171         splitter condition.
18172         (*udivmod<mode>4): Ditto.
18173
18174 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18175
18176         * config/i386/i386.md (maxmin_int): Rename code attribute from
18177         maxminiprefix and update all users.
18178         (maxmin_float): Ditto from maxminfprefix.
18179         (logic): Ditto from logicprefix.
18180         (absneg_mnemonic): Ditto from absnegprefix.
18181         * config/i386/mmx.md: Update all users of maxminiprefix,
18182         maxminfprefix and logicprefix for rename.
18183         * config/i386/sse.md: Ditto.
18184         * config/i386/sync.md (sync_<code><mode>): Update for
18185         logicprefix rename.
18186
18187 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18188
18189         PR 42966
18190         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18191         warnings converted to errors.
18192
18193 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18194
18195         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18196         used insn_type variable.
18197         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18198         to avoid set-but-not-used warning.
18199
18200 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18201
18202         * df-core.c (df_ref_debug): Change format string placeholder
18203         from 0x%x to %#x.
18204         * dwarf2asm.c (dw2_asm_output_data_raw,
18205         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18206         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18207         * dwarf2out.c (output_cfi, output_cfi_directive,
18208         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18209         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18210         Ditto.
18211         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18212         * print-rtl.c (print_rtx): Ditto.
18213
18214 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18215
18216         PR middle-end/42694
18217         * builtins.c (expand_builtin_pow_root): New function to expand pow
18218         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18219         series of sqrt and cbrt calls under -ffast-math.
18220         (expand_builtin_pow): Call it.
18221
18222 2010-04-14  Michael Matz  <matz@suse.de>
18223
18224         PR tree-optimization/42963
18225         * tree-cfg.c (touched_switch_bbs): New static variable.
18226         (group_case_labels_stmt): New function broken out from ...
18227         (group_case_labels): ... here, use the above.
18228         (start_recording_case_labels): Allocate touched_switch_bbs.
18229         (end_recording_case_labels): Deallocate it, call
18230         group_case_labels_stmt.
18231         (gimple_redirect_edge_and_branch): Remember index of affected BB.
18232
18233 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18234
18235         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18236         from insn template.
18237
18238 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18239
18240         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18241
18242 2010-04-13  Jan Hubicka  <jh@suse.cz>
18243
18244         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18245         of optimized out static functions.
18246         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18247         cost computation.  Also sanity check for overflows.
18248         (update_caller_keys): Update cgraph_edge_badness call; properly
18249         update fibheap and sanity check that it is up to date.
18250         (add_new_edges_to_heap): Update cgraph_edge_badness.
18251         (cgraph_decide_inlining_of_small_function): Likewise;
18252         add sanity checking that badness in heap is up to date;
18253         improve dumping of reason; Update badness of calls to the
18254         offline copy of function currently inlined; dump badness
18255         of functions not inlined because of unit growth limits.
18256
18257 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18258
18259         PR middle-end/32628
18260         * c-common.c (pointer_int_sum): Disregard overflow that occured only
18261         because of sign-extension change when converting to sizetype here...
18262         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18263
18264         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18265         the folding to constants.  Remove redundant final conversion.
18266         (fold_binary) <associate>: Do not associate if the re-association of
18267         constants alone overflows.
18268         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18269         to the end of the list.
18270         (multiple_of_p) <COND_EXPR>: New case.
18271
18272 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18273
18274         * opt-functions.awk (opt_sanitized_name): New.
18275         (opt_enum): New.
18276         * optc-gen.awk: Use it
18277         * opth-gen.awk: Use it.
18278
18279 2010-04-13  Martin Jambor  <mjambor@suse.cz>
18280
18281         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18282         (sra_modify_assign): Delete stmts loading dead data even if racc has no
18283         children.  Call replace_uses_with_default_def_ssa_name to handle
18284         SSA_NAES on lhs.
18285
18286 2010-04-13  Michael Matz  <matz@suse.de>
18287
18288         PR middle-end/43730
18289         * builtins.c (expand_builtin_interclass_mathfn): Also create
18290         a register if the predicate doesn't match.
18291
18292 2010-04-13  Diego Novillo  <dnovillo@google.com>
18293
18294         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18295         * c-pch.c: Include timevar.h.
18296         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18297         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18298         * ggc-common.c: Include timevar.h.
18299         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18300         * timevar.def (TV_PCH_SAVE): Define.
18301         (TV_PCH_CPP_SAVE): Define.
18302         (TV_PCH_PTR_REALLOC): Define.
18303         (TV_PCH_PTR_SORT): Define.
18304         (TV_PCH_RESTORE): Define.
18305         (TV_PCH_CPP_RESTORE): Define.
18306
18307 2010-04-13  Michael Matz  <matz@suse.de>
18308
18309         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18310         into MINUS_EXPRs.
18311         (can_reassociate_p): New function.
18312         (break_up_subtract_bb, reassociate_bb): Use it.
18313
18314 2010-04-13  Richard Guenther  <rguenther@suse.de>
18315
18316         PR bootstrap/43737
18317         * builtins.c (c_readstr): Fix assert.
18318
18319 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
18320
18321         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18322         when generating cltd insn.
18323
18324         (*ashl<mode>3_1): Remove special handling for register operand 2.
18325         (*ashlsi3_1_zext): Ditto.
18326         (*ashlhi3_1): Ditto.
18327         (*ashlhi3_1_lea): Ditto.
18328         (*ashlqi3_1): Ditto.
18329         (*ashlqi3_1_lea): Ditto.
18330         (*<shiftrt_insn><mode>3_1): Ditto.
18331         (*<shiftrt_insn>si3_1_zext): Ditto.
18332         (*<shiftrt_insn>qi3_1_slp): Ditto.
18333         (*<rotate_insn><mode>3_1): Ditto.
18334         (*<rotate_insn>si3_1_zext): Ditto.
18335         (*<rotate_insn>qi3_1_slp): Ditto.
18336
18337 2010-04-13  Richard Guenther  <rguenther@suse.de>
18338
18339         * tree-ssa-structalias.c (callused_id): Remove.
18340         (call_stmt_vars): New.
18341         (get_call_vi): Likewise.
18342         (lookup_call_use_vi): Likewise.
18343         (lookup_call_clobber_vi): Likewise.
18344         (get_call_use_vi): Likewise.
18345         (get_call_clobber_vi): Likewise.
18346         (make_transitive_closure_constraints): Likewise.
18347         (handle_const_call): Adjust to do per-call call-used handling.
18348         (handle_pure_call): Likewise.
18349         (find_what_var_points_to): Remove general callused handling.
18350         (init_base_vars): Likewise.
18351         (init_alias_vars): Initialize call_stmt_vars.
18352         (compute_points_to_sets): Process call-used and call-clobbered
18353         vars for call statements.
18354         (delete_points_to_sets): Free call_stmt_vars.
18355
18356 2010-04-13  Richard Guenther  <rguenther@suse.de>
18357
18358         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18359         Only add RW dependence for dependence distance zero.
18360         Adjust maximal vectorization factor according to dependences.
18361         Move alignment handling ...
18362         (vect_find_same_alignment_drs): ... here.  New function.
18363         (vect_analyze_data_ref_dependences): Adjust.
18364         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18365         (vect_analyze_data_refs): Adjust minimal vectorization factor
18366         according to data references.
18367         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18368         dependences before determining the vectorization factor.
18369         Analyze alignment after determining the vectorization factor.
18370         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18371         dependences before alignment.
18372         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18373         Adjust prototype.
18374         (vect_analyze_data_refs): Likewise.
18375         (MAX_VECTORIZATION_FACTOR): New define.
18376
18377 2010-04-13  Duncan Sands  <baldrick@free.fr>
18378
18379         * except.h (lang_eh_type_covers): Remove.
18380         * except.c (lang_eh_type_covers): Likewise.
18381
18382 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18383             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18384
18385         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18386         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18387         UNITS_PER_LONG where it is ABI relevant.
18388         (s390_return_addr_rtx): Likewise.
18389         (s390_back_chain_rtx): Likewise.
18390         (s390_frame_area): Likewise.
18391         (s390_frame_info): Likewise.
18392         (s390_initial_elimination_offset): Likewise.
18393         (save_gprs): Likewise.
18394         (s390_emit_prologue): Likewise.
18395         (s390_emit_epilogue): Likewise.
18396         (s390_function_arg_advance): Likewise.
18397         (s390_function_arg): Likewise.
18398         (s390_va_start): Likewise.
18399         (s390_gimplify_va_arg): Likewise.
18400         (s390_function_profiler): Likewise.
18401         (s390_optimize_prologue): Likewise.
18402         (s390_rtx_costs): Likewise.
18403         (s390_secondary_reload): Likewise.
18404         (s390_promote_function_mode): Likewise.
18405         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18406         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18407         registers available.
18408         (s390_unwind_word_mode): New function.
18409         (s390_function_value): Split 64 bit values into register pair if
18410         used as return value.
18411         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18412         function call parameters.  Handle parallels.
18413         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18414         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18415         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18416         (s390_expand_setmem): Remove unused variable src_addr.
18417         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18418         deal with 64 bit registers.
18419         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18420         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18421         (UNITS_PER_LONG): New macro.
18422         * libjava/include/s390-signal.h: Define extended ucontext
18423         structure containing the upper halfs of the 64 bit registers.
18424
18425 2010-04-13  Simon Baldwin  <simonb@google.com>
18426
18427         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18428
18429 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18430
18431         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18432         rvalue on the RHS if the LHS is of a non-renamable type.
18433         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18434
18435 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18436
18437         * gcc.c (cc1_options): Handle -iplugindir before processing
18438         the cc1 spec. Only add -iplugindir once.
18439         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18440         found.
18441         * common.opt (iplugindir): Remove `Separate' property, initialize.
18442         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18443         option.
18444         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18445         (distclean): Remove plugin dir.
18446         * doc/invoke.texi: Document -iplugindir.
18447
18448 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18449
18450         * doc/plugins.texi (Loading Plugins): Document short
18451         -fplugin=foo option.
18452         (Plugin API): Mention default_plugin_dir_name function.
18453
18454         * gcc.c (find_file_spec_function): Add new declaration.
18455         (static_spec_func): Use it for "find-file".
18456         (find_file_spec_function): Add new function.
18457         (cc1_options): Add -iplugindir option if -fplugin* options found.
18458
18459         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18460
18461         * plugin.c (add_new_plugin): Updated comment, and handle short
18462         plugin name.
18463         (default_plugin_dir_name): Added new function.
18464
18465         * common.opt (iplugindir): New option to set the plugin directory.
18466
18467 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18468
18469         * config/i386/i386.md (any_rotate): New code iterator.
18470         (rotate_insn): New code attribute.
18471         (rotate): Ditto.
18472         (SWIM124): New mode iterator.
18473         (<rotate_insn>ti3): New expander.
18474         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18475         any_rotate code iterator.
18476         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18477         using any_rotate code iterator and SWIM124 mode iterator.
18478         (ix86_rotlti3): New insn_and_split pattern.
18479         (ix86_rotrti3): Ditto.
18480         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18481         ix86_rotl{di,ti}3 patterns.
18482         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18483         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18484         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18485         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18486         code iterator and SWI mode iterator.
18487         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18488         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18489         code iterator.
18490         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18491         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18492         (bswap rotatert splitter): Add splitter.
18493         (bswap splitter): Macroize splitter using any_rotate code iterator.
18494         Add insn predicate to split only for TARGET_USE_XCHGB or when
18495         optimizing function for size.
18496
18497 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18498
18499         * config/pa/pa.c (emit_move_sequence): Remove use of
18500         deleted variable flag_argument_noalias.
18501
18502 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18503
18504         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18505         configurations.
18506         Add to unsupported targets list.
18507         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18508         sparc*-sun-solaris2.[567]* from target lists.
18509         * configure: Regenerate.
18510         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18511         removal.
18512         Remove Solaris 7 patch references.
18513         (Specific, sparc-sun-solaris2.7): Removed.
18514         (sparc-sun-solaris2*): Update Solaris 7 example.
18515         (sparc64-*-solaris2*): Likewise.
18516
18517 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18518
18519         * config.build (alpha*-dec-osf4*): Remove.
18520         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18521         of obsolete configurations.
18522         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18523         support.
18524         * config/alpha/t-osf4: Renamed to ...
18525         * config/alpha/t-osf5: ... this.
18526         * config/alpha/osf.h: Renamed to ...
18527         * config/alpha/osf5.h: ... this.
18528         Merged old osf5.h contents.
18529         Update comments.
18530         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18531         (EXTRA_SPECS): Removed.
18532         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18533         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18534         Document that.
18535
18536 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18537
18538         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18539
18540 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18541
18542         PR/43702
18543         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18544         __thiscall convention.
18545
18546 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18547
18548         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18549         orig_base.
18550         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18551
18552 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18553
18554         * function.c (assign_parms_initialize_all): Add unused attribute
18555         to fntype.
18556
18557 2010-04-12  Richard Guenther  <rguenther@suse.de>
18558
18559         * gsstruct.def (GSS_CALL): New.
18560         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18561         * gimple.h: Include tree-ssa-alias.h.
18562         (struct gimple_statement_call): New.
18563         (union gimple_statement_struct_d): Add gimple_call member.
18564         (gimple_call_reset_alias_info): Declare.
18565         (gimple_call_use_set): New function.
18566         (gimple_call_clobber_set): Likewise.
18567         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18568         * gimple.c (gimple_call_reset_alias_info): New function.
18569         (gimple_build_call_1): Call it.
18570         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18571         * tree-inline.c (remap_gimple_stmt): Likewise.
18572         (expand_call_inline): Remove callused handling.
18573         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18574         * tree-dfa.c (dump_variable): Likewise.
18575         * tree-parloops.c (parallelize_loops): Likewise.
18576         * tree-ssa.c (init_tree_ssa): Likewise.
18577         (delete_tree_ssa): Likewise.
18578         * tree-flow-inline.h (is_call_used): Remove.
18579         * tree-flow.h (struct gimple_df): Remove callused member.
18580         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18581         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18582         (ref_maybe_used_by_call_p_1): Simplify.
18583         (call_may_clobber_ref_p_1): Likewise.
18584         * tree-ssa-structalias.c (compute_points_to_sets): Set
18585         the call stmt used and clobbered sets.
18586         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18587         (find_tail_calls): Verify the tail call.
18588
18589 2010-04-12  Richard Guenther  <rguenther@suse.de>
18590
18591         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18592         single-iteration always-inline inlining.
18593         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18594         (cgraph_decide_inlining): Do not handle always-inline specially.
18595         (try_inline): Remove always-inline cycle detection special case.
18596         Do not recurse on always-inlines.
18597         (cgraph_early_inlining): Do not iterate if not optimizing.
18598         (cgraph_gate_early_inlining): remove.
18599         (pass_early_inline): Run unconditionally.
18600         (gate_cgraph_decide_inlining): New function.
18601         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18602         not inlining or optimizing.
18603         (cgraph_decide_inlining_of_small_functions): Also consider
18604         always-inline functions.
18605         (cgraph_default_inline_p): Return true for nodes which should
18606         disregard inline limits.
18607         (estimate_function_body_sizes): Assume zero size and time for
18608         nodes which are marked as disregarding inline limits.
18609         (cgraph_decide_recursive_inlining): Do not perform recursive
18610         inlining on always-inline nodes.
18611
18612 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18613
18614         PR bootstrap/43699
18615         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18616         for exprs satisfying handled_component_p.
18617
18618 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18619
18620         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18621         non-constant aggregate elements.
18622
18623         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18624         is a real initialization.
18625
18626 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18627
18628         PR c/36774
18629         * c-decl.c (start_function): Move forward check for nested function.
18630
18631 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18632
18633         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18634         * config/sh/sh.c: Include reload.h.
18635         (sh_legitimize_reload_address): New.
18636         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18637         sh_legitimize_reload_address.
18638
18639 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18640
18641         * config/sh/sh.md (*movqi_pop): New insn pattern.
18642         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18643
18644 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18645
18646         * config/i386/i386.md (any_shiftrt): New code iterator.
18647         (shiftrt_insn): New code attribute.
18648         (shiftrt): Ditto.
18649         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18650         using any_shiftrt code iterator.
18651         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18652         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18653         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18654         pattern from corresponding peephole2 patterns.
18655         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18656         using any_shiftrt code iterator.
18657         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18658         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18659         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18660         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18661         *{ashr,lshr}<mode>3_cmp_zext.
18662         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18663
18664 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18665
18666         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18667         scratch register.
18668         (*lshr<mode>3_cconly): Ditto.
18669
18670 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18671
18672         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18673         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18674         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18675         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18676         DWI mode iterator.
18677         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18678         from corresponding peephole2 patterns.
18679         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18680         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18681         and *lshrdi3_1_rex64 using SWI mode iterator.
18682         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18683         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18684         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18685         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18686         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18687         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18688         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18689         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18690         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18691         SWI mode iterator.
18692
18693 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18694
18695         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18696         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18697         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18698         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18699         DWI mode iterator.
18700         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18701         from corresponding peephole2 patterns.
18702         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18703         (ashrsi3_cvt): Rename from ashrsi3_31.
18704         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18705         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18706         and x86_64_shift_adj_3 using SWI48 mode iterator.
18707         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18708         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18709         and *ashrdi3_1_rex64 using SWI mode iterator.
18710         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18711         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18712         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18713         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18714         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18715         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18716         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18717         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18718         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18719         SWI mode iterator.
18720         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18721         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18722         x86_shift<mode>_adj_3 expanders.
18723
18724 2010-04-10  Wei Guozhi  <carrot@google.com>
18725
18726         PR target/42601
18727         * config/arm/arm.c (arm_pic_static_addr): New function.
18728         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18729         a static symbol.
18730         (arm_output_addr_const_extra): Output expression for new pattern.
18731         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18732
18733 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18734
18735         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18736         not enabled.
18737
18738         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18739         * web.c: Include "insn-config.h" and "recog.h".
18740         (union_match_dups): New function.
18741         (web_main): Call it.
18742         (union_defs): Don't try to recognize match_dups.
18743
18744         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18745         if doing so would replace the entire pattern.
18746
18747 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18748
18749         PR target/43707
18750         PR target/43709
18751         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18752         and splitter pattern.  Change splitter operand 1 predicate to
18753         nonmemory_operand.
18754
18755 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18756
18757         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18758         lattices are addresses of CONST_DECLs with the same initial value.
18759         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18760         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18761
18762 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18763             Bernd Schmidt  <bernds@codesourcery.com>
18764
18765         * loop-invariant.c (replace_uses): New static function.
18766         (move_invariant_reg): Use it to ensure we can replace the uses.
18767
18768 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18769
18770         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18771         function template.
18772         (picochip_override_options): Enable section anchors only above -O1.
18773         (picochip_reorg): Fixed a couple of build warnings.
18774
18775 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18776
18777         * configure.ac (plugin -rdynamic test): Log result.
18778         * configure: Regenerate.
18779         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18780         (RDYNAMIC_SPEC): Define.
18781         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18782
18783 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18784
18785         * configure.ac: Determine Sun ld version numbers.
18786         (comdat_group): Restrict GNU ld version checks to gld.
18787         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18788         (enable_comdat): Support --enable-comdat.
18789         * configure: Regenerate.
18790         * doc/install.texi (Configuration): Document --enable-comdat.
18791
18792 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18793
18794         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18795         * config/sol2-gld.h: ... here.
18796         * config.gcc (sparc*-*-solaris2*): Reflect this.
18797         (i[34567]86-*-solaris2*): Use it.
18798
18799 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18800
18801         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18802         setup_clocks_p.
18803         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18804
18805 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18806
18807         PR 42965
18808         * diagnostic.c (diagnostic_initialize): Initialize
18809         some_warnings_are_errors.
18810         (diagnostic_finish): New.
18811         (diagnostic_action_after_output): Call it before exiting.
18812         (diagnostic_report_diagnostic): Do not print message here. Set
18813         some_warnings_are_errors.
18814         * diagnostic.h (diagnostic_context): Delete
18815         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18816         (diagnostic_finish): Declare.
18817         * toplev.c (toplev_main): Call it before exit.
18818
18819 2010-04-09  Jason Merrill  <jason@redhat.com>
18820
18821         PR c++/42623
18822         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18823         for incomplete type.
18824
18825         PR c++/41788
18826         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18827         based on a warning flag.
18828
18829 2010-04-09  Richard Guenther  <rguenther@suse.de>
18830
18831         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18832
18833 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18834
18835         PR bootstrap/43684
18836         * varasm.c (default_assemble_visibility): Wrap vars that are
18837         set, but unused, by targets without GAS.
18838         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18839         Remove set, but unused, vars.
18840         (rs6000_legitimize_tls_address): Likewise.
18841         (altivec_expand_dst_builtin): Likewise.
18842         * config/darwin.c (machopic_classify_symbol): Likewise.
18843         (machopic_indirection_name): Likewise.
18844
18845 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18846
18847         * config/i386/i386.md (DWI): New mode iterator.
18848         (S): New mode attribute.
18849         (shift_operand): Ditto.
18850         (shift_immediate_operand): Ditto.
18851         (ashl_input_operand): Ditto.
18852         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18853         using SDWIM mode iterator.
18854         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18855         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18856         DWI mode iterator.
18857         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18858         from corresponding peephole2 patterns.
18859         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18860         and x86_64_shift_adj_1 using SWI48 mode iterator.
18861         (x86_shift<mode>_adj_2): Ditto.
18862         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18863         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18864         using SWI48 mode iterator.
18865         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18866         *ashldi3_cmp_rex64 using SWI mode iterator.
18867         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18868         *ashldi3_cconly_rex64 using SWI mode iterator.
18869         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18870         x86_shift<mode>_adj_{1,2}.
18871         (ix86_split_ashr): Ditto.
18872         (ix86_split_lshr): Ditto.
18873
18874 2010-04-09  Richard Guenther  <rguenther@suse.de>
18875
18876         * target.h (builtin_conversion): Pass in input and output types.
18877         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18878         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18879         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18880         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18881
18882         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18883         Handle AVX modes.
18884         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18885
18886 2010-04-09  Richard Guenther  <rguenther@suse.de>
18887
18888         PR target/43152
18889         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18890
18891 2010-04-09  Richard Guenther  <rguenther@suse.de>
18892
18893         * tree-vectorizer.h (struct _stmt_vec_info): Document
18894         that vectype is the type of the LHS.
18895         (supportable_widening_operation, supportable_narrowing_operation):
18896         Get both input and output vector types as arguments.
18897         (vect_is_simple_use_1): Declare.
18898         (get_same_sized_vectype): Likewise.
18899         * tree-vect-loop.c (vect_determine_vectorization_factor):
18900         Set STMT_VINFO_VECTYPE to the vector type of the def.
18901         (vectorizable_reduction): Adjust.
18902         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18903         Adjust.  Specify the output vector type.
18904         (vect_pattern_recog_1): Adjust.
18905         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18906         (vectorizable_call): Adjust.
18907         (vectorizable_conversion): Likewise.
18908         (vectorizable_operation): Likewise.
18909         (vectorizable_type_demotion): Likewise.
18910         (vectorizable_type_promotion): Likewise.
18911         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18912         the def.
18913         (vect_is_simple_use_1): New function.
18914         (supportable_widening_operation): Get both input and output
18915         vector types.
18916         (supportable_narrowing_operation): Likewise.
18917         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18918
18919 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18920
18921         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18922         __thiscall and _thiscall as predefined macros.
18923         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18924         thiscall attribute handling.
18925         (ix86_comp_type_attributes): Likewise.
18926         (ix86_function_regparm): Likewise.
18927         (ix86_return_pops_args): Likewise.
18928         (init_cumulative_args): Likewise.
18929         (find_drap_reg): Likewise.
18930         (ix86_static_chain): Likewise.
18931         (x86_this_parameter): Likewise.
18932         (x86_output_mi_thunk): Likewise.
18933         (ix86_attribute_table): Add description for thiscall attribute.
18934         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18935         * doc/extend.texi: Add documentation for thiscall.
18936
18937 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18938
18939         PR c++/28584
18940         * c.opt (Wint-to-pointer-cast): Available in C++.
18941         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18942
18943 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18944
18945         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18946         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18947         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18948         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18949         function type instead.  Reorder and simplify checks.
18950
18951         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18952
18953 2010-04-08  Jing Yu  <jingyu@google.com>
18954             Zdenek Dvorak  <ook@ucw.cz>
18955
18956         PR tree-optimization/42720
18957         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18958         loop unswitch conditions here from ...
18959         (tree_unswitch_single_loop): ... here.
18960
18961 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18962
18963         * tree-if-conv.c: Fix comments and simplify logic.
18964
18965 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18966
18967         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18968         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18969         (main_tree_if_conversion): Update call to tree_if_conversion.
18970
18971 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18972
18973         PR 42485
18974         * doc/invoke.texi (-b,-V): Delete.
18975         * doc/tm.texi: Do not mention -b.
18976         * gcc.c (display_help): Delete -b and -V.
18977         (process_command): Delete -b and -V.
18978         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18979
18980 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18981             Wolfgang Gellerich  <gellerich@de.ibm.com>
18982
18983         Implement target hook for loop unrolling
18984         * target.h (loop_unroll_adjust): Add a new target hook function.
18985         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18986         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18987         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18988         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18989         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18990         target hook.
18991         (decide_unroll_stupid): Likewise.
18992
18993 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18994
18995         PR target/43643
18996         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18997
18998 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18999
19000         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
19001         (Specific, *-*-solaris2*): Likewise.
19002         Don't prefer Sun as over GNU as.
19003
19004 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
19005
19006         * config/s390/s390.c (override_options): Adjust the z10 defaults
19007         for max-unroll-times, max-completely-peeled-insns
19008         and max-completely-peel-times.
19009
19010 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19011
19012         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
19013         instructions for z10.
19014         (s390_expand_setmem): Likewise.
19015         (s390_expand_cmpmem): Likewise.
19016
19017 2010-04-08  Richard Guenther  <rguenther@suse.de>
19018
19019         PR tree-optimization/43679
19020         * tree-ssa-pre.c (eliminate): Only propagate copies.
19021
19022 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19023
19024         PR bootstrap/43681
19025         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
19026         set but not used variable warning.
19027
19028 2010-04-08  Wei Guozhi  <carrot@google.com>
19029
19030         PR target/41653
19031         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
19032         (arm_size_rtx_costs): Call the new function when optimized for size.
19033
19034 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19035
19036         PR debug/43670
19037         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
19038         op0 is not a MEM, just return NULL instead of assertion
19039         failure.
19040         (discover_nonconstant_array_refs): Don't walk debug stmts.
19041
19042 2010-04-08  Doug Kwan  <dougkwan@google.com>
19043
19044         * configure.ac: Recognize gold and do not use its version number
19045         to test ld features.
19046         * configure: Regenerate.
19047
19048 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
19049
19050         PR middle-end/40815
19051         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
19052         (negate_value): Move code to push elements to broken_up_substracts ...
19053         (eliminate_plus_minus_pair): ... here.  Push operands that have no
19054         negative pair to plus_negates.
19055         (repropagate_negates, init_reassoc, fini_reassoc): Update.
19056
19057 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19058
19059         * doc/install.texi (Configuration): Move description of
19060         --enable-lto, --with-libelf*, --enable-gold from Java section to
19061         general section.
19062
19063         * doc/generic.texi (Working with declarations)
19064         (Function Properties, C and C++ Trees): Fix typos.
19065         * doc/sourcebuild.texi (Top Level): Likewise.
19066
19067 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19068
19069         PR c/18624
19070         * tree.h (DECL_READ_P): Define.
19071         (struct tree_decl_common): Add decl_read_flag.
19072         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
19073         a set but not used warning.
19074         (merge_decls): Merge DECL_READ_P flag.
19075         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
19076         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
19077         * c-common.c (handle_used_attribute, handle_unused_attribute):
19078         Likewise.
19079         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
19080         New prototypes.
19081         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
19082         New functions.
19083         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
19084         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
19085         c_parser_binary_expression, c_parser_cast_expression,
19086         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
19087         Call default_function_array_read_conversion instead of
19088         default_function_array_conversion where needed.
19089         (c_parser_unary_expression, c_parser_conditional_expression,
19090         c_parser_postfix_expression_after_primary, c_parser_initelt):
19091         Likewise.  Call mark_exp_read where needed.
19092         (c_parser_statement_after_labels, c_parser_asm_operands,
19093         c_parser_typeof_specifier, c_parser_sizeof_expression,
19094         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
19095         where needed.
19096         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
19097         New.
19098         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
19099         (warn_unused_but_set_parameter): Default to warn_unused
19100         && extra_warnings.
19101         * doc/invoke.texi: Document -Wunused-but-set-variable and
19102         -Wunused-but-set-parameter.
19103
19104         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
19105         used count variable.
19106         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
19107         when operandN variables aren't used in the body of the expander
19108         or splitter.
19109         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
19110         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
19111         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
19112         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
19113         FOR_EACH_IMM_USE_ON_STMT): Likewise.
19114         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
19115         * tree.c (PROCESS_ARG): Likewise.
19116
19117 2010-04-07  Simon Baldwin  <simonb@google.com>
19118
19119         * diagnostic.h (diagnostic_override_option_index): New macro to
19120         set a diagnostic's option_index.
19121         * c-tree.h (c_cpp_error): Add warning reason argument.
19122         * opts.c (_warning_as_error_callback): New.
19123         (register_warning_as_error_callback): Store callback for
19124         warnings enabled via enable_warning_as_error.
19125         (enable_warning_as_error): Call callback, minor code tidy.
19126         * opts.h (register_warning_as_error_callback): Declare.
19127         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
19128         response to -Werror=.
19129         (c_common_init_options): Register warning_as_error_callback in opts.c.
19130         * common.opt: Add -Wno-cpp option.
19131         * c-common.c (struct reason_option_codes_t): Map cpp warning
19132         reason codes to gcc option indexes.
19133         * (c_option_controlling_cpp_error): New function, lookup the gcc
19134         option index for a cpp warning reason code.
19135         * (c_cpp_error): Add warning reason argument, call
19136         c_option_controlling_cpp_error for diagnostic_override_option_index.
19137         * doc/invoke.texi: Document -Wno-cpp.
19138
19139 2010-04-07  Richard Guenther  <rguenther@suse.de>
19140
19141         * ipa-reference.c (mark_load): Use get_base_address.
19142         (mark_store): Likewise.
19143
19144         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
19145         inserting GIMPLE_NOPs into the IL.
19146         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19147         Explicitly strip handled components and indirect references.
19148
19149         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
19150         folding address expressions.
19151         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
19152         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
19153         operand_equal_p to compare decls.
19154         (ptr_deref_may_alias_decl_p): Likewise.
19155         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
19156         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
19157         Handle reversed comparison ops.
19158         * tree-sra.c (asm_visit_addr): Use get_base_address.
19159         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
19160         * ipa-reference.c (mark_address): Use get_base_address.
19161
19162 2010-04-07  Richard Guenther  <rguenther@suse.de>
19163
19164         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
19165         Propagate constants everywhere.
19166
19167 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19168
19169         PR debug/43516
19170         * tree.c (MAX_INT_CACHED_PREC): Define.
19171         (nonstandard_integer_type_cache): New array.
19172         (build_nonstandard_integer_type): Cache results for precision
19173         <= MAX_INT_CACHED_PREC.
19174
19175 2010-04-07  Richard Guenther  <rguenther@suse.de>
19176
19177         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19178         -fargument-noalias-global, -fargument-noalias-anything): Remove.
19179         * common.opt: Likewise.
19180         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19181         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19182         (nonoverlapping_memrefs_p): Likewise.
19183         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19184         * opts.c (common_handle_option): Handle OPT_fargument_alias,
19185         OPT_fargument_noalias, OPT_fargument_noalias_anything and
19186         OPT_fargument_noalias_global for backward compatibility.
19187
19188 2010-04-07  Richard Guenther  <rguenther@suse.de>
19189
19190         PR tree-optimization/43270
19191         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19192         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19193         * tree-ssa-pre.c (phi_translate_1): Adjust.
19194         (fully_constant_expression): Split out vn_reference handling to ...
19195         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19196         Fold reads from constant strings.
19197         (vn_reference_lookup): Handle fully constant references.
19198         (vn_reference_lookup_pieces): Likewise.
19199         * Makefile.in (expmed.o-warn): Add -Wno-error.
19200
19201 2010-04-07  Martin Jambor  <mjambor@suse.cz>
19202
19203         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19204
19205 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
19206
19207         PR driver/41594
19208         * gcc.c: Add -static-libstdc++ to list of recognized options.
19209
19210 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19211
19212         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19213
19214 2010-04-07  Richard Guenther  <rguenther@suse.de>
19215
19216         PR middle-end/42617
19217         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19218         bases build simple mem attributes to retain points-to information.
19219
19220 2010-04-07  Richard Guenther  <rguenther@suse.de>
19221
19222         PR middle-end/42617
19223         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19224         preserve points-to related information.
19225
19226 2010-04-07  Richard Guenther  <rguenther@suse.de>
19227
19228         PR middle-end/42617
19229         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19230         discard plain indirect references.
19231         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19232         * tree.c (tree_nop_conversion): Likewise.
19233
19234 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
19235
19236         PR debug/43628
19237         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19238
19239 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
19240
19241         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19242         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19243
19244 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19245
19246         * tree-if-conv.c: Fix indentation and comments.
19247
19248 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19249
19250         * tree-if-conv.c: Sort static functions in topological order.
19251
19252 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19253
19254         * tree-if-conv.c: Fix indentation and comments.
19255
19256 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19257
19258         PR middle-end/43519
19259         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19260         lang_hooks.types.type_for_size instead of
19261         build_nonstandard_integer_type.
19262         When converting an unsigned type to signed, double its precision.
19263         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19264         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19265         (graphite_create_new_loop_guard): When ub + 1 wraps around,
19266         use lb <= ub.
19267
19268 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19269
19270         PR middle-end/43519
19271         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19272         POINTER_PLUS_EXPR for pointer types.
19273
19274 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19275
19276         PR middle-end/43519
19277         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19278         * graphite-clast-to-gimple.c: Include langhooks.h.
19279         (max_signed_precision_type): New.
19280         (max_precision_type): Takes two types as arguments.
19281         (precision_for_value): New.
19282         (precision_for_interval): New.
19283         (gcc_type_for_interval): New.
19284         (gcc_type_for_value): New.
19285         (gcc_type_for_clast_term): New.
19286         (gcc_type_for_clast_red): New.
19287         (gcc_type_for_clast_bin): New.
19288         (gcc_type_for_clast_expr): Split up into several functions.
19289         (gcc_type_for_clast_eq): Rewritten.
19290         (compute_bounds_for_level): New.
19291         (compute_type_for_level_1): New.
19292         (compute_type_for_level): New.
19293         (gcc_type_for_cloog_iv): Removed.
19294         (gcc_type_for_iv_of_clast_loop): Rewritten.
19295         (graphite_create_new_loop): Compute the lower and upper bound types
19296         with gcc_type_for_clast_expr.
19297         (graphite_create_new_loop_guard): Same.
19298         (find_cloog_iv_in_expr): Removed.
19299         (compute_cloog_iv_types_1): Removed.
19300         (compute_cloog_iv_types): Removed.
19301         (gloog): Do not call compute_cloog_iv_types.
19302         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19303         GBB_CLOOG_IV_TYPES.
19304         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19305         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19306         (GBB_CLOOG_IV_TYPES): Removed.
19307
19308 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19309
19310         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19311         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19312         (detect_commutative_reduction): Same.
19313
19314 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19315
19316         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19317         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
19318         argument.
19319         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19320         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19321         (rewrite_commutative_reductions_out_of_ssa): Same.
19322         * passes.c (execute_function_todo): Call verify_ssa for every pass
19323         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
19324         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19325         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19326         with an extra argument.
19327         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
19328         verify_ssa only when the extra argument is true.
19329         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19330         with an extra argument.
19331         (tree_transform_and_unroll_loop): Same.
19332
19333 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19334
19335         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19336         for all the passes of the LNO having LOOP_CLOSED_SSA.
19337         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19338         * tree-loop-distribution.c (pass_loop_distribution): Same.
19339         * tree-pass.h (TODO_verify_loops): Removed.
19340         * tree-ssa-loop.c (pass_tree_loop_init): Same.
19341         (pass_lim): Same.
19342         (pass_tree_unswitch): Same.
19343         (pass_predcom): Same.
19344         (pass_vectorize): Same.
19345         (pass_linear_transform): Same.
19346         (pass_graphite_transforms): Same.
19347         (pass_iv_canon): Same.
19348         (pass_complete_unroll): Same.
19349         (pass_complete_unrolli): Same.
19350         (pass_parallelize_loops): Same.
19351         (pass_loop_prefetch): Same.
19352         (pass_iv_optimize): Same.
19353
19354 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
19355
19356         PR middle-end/32824
19357         * passes.c (init_optimization_passes): Move pass_lim before
19358         pass_copy_prop and pass_dce_loop.
19359
19360 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19361
19362         PR target/43667
19363         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19364         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19365         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19366         MULTI_* defines for 4 argument vpermil2p* builtins.
19367
19368 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19369
19370         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19371         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19372         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19373         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19374         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19375         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19376         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19377         Use x86_maybe_negate_const_int to output insn mnemonic.
19378         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19379         check from instruction predicate.  Update comments.
19380         * config/i386/sync.md (sync_add<mode>): Use
19381         x86_maybe_negate_const_int to output insn mnemonic.
19382
19383 2010-04-06  Jan Hubicka  <jh@suse.cz>
19384
19385         PR tree-optimization/42906
19386         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19387         IGNORE_SELF argument.  Set visited_control_parents for fully
19388         processed BBs.
19389         (find_obviously_necessary_stmts): Update call of
19390         mark_control_dependent_edges_necessary.
19391         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19392
19393 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19394
19395         * config/i386/i386.md: Remove comment about 'e' and 'E'
19396         operand modifier.
19397
19398 2010-04-06  Richard Guenther  <rguenther@suse.de>
19399
19400         PR tree-optimization/43627
19401         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19402         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19403         not varying.
19404
19405 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19406
19407         * BASE-VER: Change to 4.6.0.
19408
19409         PR target/43638
19410         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19411         handling.
19412
19413 2010-04-06  Richard Guenther  <rguenther@suse.de>
19414
19415         PR middle-end/43661
19416         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19417
19418 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19419
19420         * doc/invoke.texi (Optimize Options): Document that LTO
19421         won't remove object access purely due to incompatible
19422         declarations.
19423
19424 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19425
19426         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19427         Initialize variable.
19428
19429 2010-04-03  Richard Guenther  <rguenther@suse.de>
19430
19431         PR middle-end/42509
19432         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19433         require a non-NULL MEM_OFFSET.
19434
19435 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19436
19437         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19438         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19439         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19440         config/alpha/predicates.md, config/arm/arm.md,
19441         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19442         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19443         config/darwin9.h, config/darwin.c, config/darwin.h,
19444         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19445         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19446         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19447         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19448         config/mips/mips.md, config/mn10300/mn10300.c,
19449         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19450         config/rs6000/aix.h, config/rs6000/dfp.md,
19451         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19452         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19453         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19454         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19455         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19456         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19457         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19458         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19459         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19460         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19461         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19462         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19463         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19464         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19465         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19466         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19467         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19468         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19469         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19470         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19471         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19472         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19473         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19474         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19475         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19476         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19477         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19478         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19479         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19480         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19481         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19482         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19483         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19484         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19485         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19486         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19487
19488 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19489
19490         PR other/43620
19491         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19492         * aclocal.m4: Regenerate.
19493
19494 2010-04-02  Richard Guenther  <rguenther@suse.de>
19495
19496         PR tree-optimization/43629
19497         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19498         if we have seen a constant value.
19499
19500 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19501
19502         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19503
19504 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19505
19506         PR target/43469
19507         * arm.c (legitimize_tls_address): Adjust call to
19508         gen_tls_load_dot_plus_four.
19509         (arm_note_pic_base): New function.
19510         (arm_cannot_copy_insn_p): Use it.
19511         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19512         constraint.
19513
19514 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19515
19516         PR bootstrap/43531
19517
19518         Revert:
19519         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19520
19521         * Makefile.in ($(out_object_file)): Depend on
19522         gt-$(basename $(notdir $(out_file))).h.
19523
19524 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19525
19526         * config.gcc (lm32-*-rtems*): Add t-lm32.
19527
19528 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19529
19530         * config.gcc: Add lm32-*-rtems*.
19531         * config/lm32/rtems.h: New file.
19532
19533 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19534
19535         PR target/42609
19536         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19537
19538 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19539
19540         * dwarf2out.c (output_compilation_unit_header): For
19541         -gdwarf-4 use version 4 instead of version 3.
19542         (output_line_info): For version 4 and above emit additional
19543         maximum ops per insn header field.
19544         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19545
19546         * dwarf2out.c (is_c_family, is_java): Remove.
19547         (lower_bound_default): New function.
19548         (add_bound_info, gen_descr_array_type_die): Use it.
19549
19550 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19551
19552         PR debug/43325
19553         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19554         re-declaration when it happens in a function.
19555
19556 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19557
19558         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19559         (cgraph_remove_function_insertion_hook): Same.
19560         (cgraph_call_function_insertion_hooks): Same.
19561
19562 2010-04-01  Richard Guenther  <rguenther@suse.de>
19563
19564         PR middle-end/43614
19565         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19566         and TREE_THIS_VOLATILE.
19567         (copy_ref_info): Likewise.
19568         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19569         * tree.c (build6_stat): Ignore side-effects of all but arg5
19570         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19571         TARGET_MEM_REF.
19572
19573 2010-04-01  Richard Guenther  <rguenther@suse.de>
19574
19575         PR tree-optimization/43607
19576         * ipa-type-escape.c (check_call): Do not access non-existing
19577         arguments.
19578
19579 2010-04-01  Richard Guenther  <rguenther@suse.de>
19580
19581         PR middle-end/43602
19582         Revert
19583         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19584                     Jack Howarth  <howarth@bromo.med.uc.edu>
19585
19586         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19587         variables TLS.
19588
19589 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19590
19591         * doc/install.texi (Prerequisites): Document libelf usability on
19592         IRIX 5/6 and Solaris 2.
19593         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19594         Update GNU as, GNU ld requirements.
19595         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19596         Document Sun Studio compiler download.
19597         Update and simplify as, ld recommendations.
19598         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19599
19600 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19601
19602         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19603         with_tune_32 to pentium4.
19604
19605 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19606
19607         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19608
19609 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19610
19611         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19612         obsoletion, removal.
19613         Update IDO URL.
19614         Document GNU as requirement.
19615         Update configure requirements.
19616         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19617         Recomment IRIX 6.5.18+.
19618         Document IDF/IDL requirement.
19619         Document GNU as requirement.
19620         Document GNU ld bootstrap failure.
19621         Remove freeware.sgi.com reference.
19622
19623 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19624
19625         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19626         UNIX V4.0, V5.0 obsoletion, removal.
19627         Remove --with-gc=simple reference.
19628         Update VM requirements during bootstrap.
19629         Remove -oldas bootstrap description.
19630         Update binutils reference.
19631         Remove comparison failure note.
19632
19633 2010-03-31  Richard Guenther  <rguenther@suse.de>
19634             Zdenek Dvorak  <ook@ucw.cz>
19635             Sebastian Pop  <sebastian.pop@amd.com>
19636
19637         PR middle-end/43464
19638         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19639         with multiple arguments.
19640         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19641
19642 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19643
19644         * graphite-dependences.c (print_pddr): Call print_pdr with an
19645         extra argument.
19646         * graphite-poly.c (debug_pdr): Add an extra argument for the
19647         verbosity level.
19648         (print_pdr): Same.
19649         (print_pbb_domain): Same.
19650         (print_pbb): Same.
19651         (print_scop_context): Same.
19652         (print_scop): Same.
19653         (print_cloog): Same.
19654         (debug_pbb_domain): Same.
19655         (debug_pbb): Same.
19656         (print_pdrs): Same.
19657         (debug_pdrs): Same.
19658         (debug_scop_context): Same.
19659         (debug_scop): Same.
19660         (debug_cloog): Same.
19661         (print_scop_params): Same.
19662         (debug_scop_params): Same.
19663         (print_iteration_domain): Same.
19664         (print_iteration_domains): Same.
19665         (debug_iteration_domain): Same.
19666         (debug_iteration_domains): Same.
19667         (print_scattering_function): Same.
19668         (print_scattering_functions): Same.
19669         (debug_scattering_function): Same.
19670         (debug_scattering_functions): Same.
19671         * graphite-poly.h (debug_pdr): Update declaration.
19672         (print_pdr): Same.
19673         (print_pbb_domain): Same.
19674         (print_pbb): Same.
19675         (print_scop_context): Same.
19676         (print_scop): Same.
19677         (print_cloog): Same.
19678         (debug_pbb_domain): Same.
19679         (debug_pbb): Same.
19680         (print_pdrs): Same.
19681         (debug_pdrs): Same.
19682         (debug_scop_context): Same.
19683         (debug_scop): Same.
19684         (debug_cloog): Same.
19685         (print_scop_params): Same.
19686         (debug_scop_params): Same.
19687         (print_iteration_domain): Same.
19688         (print_iteration_domains): Same.
19689         (debug_iteration_domain): Same.
19690         (debug_iteration_domains): Same.
19691         (print_scattering_function): Same.
19692         (print_scattering_functions): Same.
19693         (debug_scattering_function): Same.
19694         (debug_scattering_functions): Same.
19695
19696 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19697
19698         * graphite-poly.c (print_scattering_function_1): New.
19699         (print_scattering_function): Call it.
19700         (print_scop_params): Remove spaces at the end of lines.
19701         (print_cloog): New.
19702         (debug_cloog): New.
19703         * graphite-poly.h (print_cloog): Declared.
19704         (debug_cloog): Declared.
19705
19706 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19707
19708         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19709         in loop->header.
19710         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19711         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19712         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19713         to switch between adding the IV bump in loop->latch or in loop->header.
19714
19715 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19716
19717         * graphite-poly.c (print_scattering_function): Pretty print following
19718         the scoplib format.
19719         (print_pdr): Same.
19720         (print_pbb_domain): Same.
19721         (dump_gbb_cases): Same.
19722         (dump_gbb_conditions): Same.
19723         (print_pdrs): Same.
19724         (print_pbb): Same.
19725         (print_scop_params): Same.
19726         (print_scop_context): Same.
19727         (print_scop): Same.
19728         (print_pbb_body): New.
19729         (lst_indent_to): New.
19730         (print_lst): Start new lines with a #.
19731         * graphite-poly.h (pbb_bb): New.
19732         (pbb_index): Use pbb_bb.
19733         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19734         disjuncts.
19735         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19736
19737 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19738
19739         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19740         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19741         and 0 instead of 1 for dw_val_class_flag.
19742         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19743         dw_val_class_range_list, dw_val_class_loc_list,
19744         dw_val_class_lineptr and dw_val_class_macptr, use
19745         DW_FORM_flag_present for dw_val_class_flag and
19746         DW_FORM_exprloc for dw_val_class_loc.
19747         (output_die): For -gdwarf-4 print dw_val_class_loc
19748         size as uleb128 instead of 1 or 2 bytes and don't print
19749         anything for dw_val_class_flag.
19750
19751         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19752         instead of cselib_lookup following by tweaking locs->setting_insn.
19753
19754         PR bootstrap/43596
19755         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19756         even before returning from label, setjmp call or volatile asm
19757         handling.
19758
19759 2010-03-31  Richard Guenther  <rguenther@suse.de>
19760
19761         PR middle-end/43600
19762         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19763         temporary data on stack.
19764
19765 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19766
19767         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19768         (PUSHSECTION_ASM_OP): Remove.
19769         (POPSECTION_ASM_OP): Remove.
19770         (PUSHSECTION_FORMAT): Remove.
19771         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19772         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19773         * config/sol2.c (solaris_output_init_fini): Use it.
19774
19775 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19776
19777         PR 43574
19778         * opt-functions.awk (var_type_struct): Use signed char type
19779         for simple variables.
19780
19781 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19782
19783         * config/sol2.c: Include output.h.
19784         (solaris_assemble_visibility): New function.
19785         * config/t-sol2 (sol2.o): Add output.h dependency.
19786         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19787         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19788         Redefine.
19789
19790 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19791
19792         PR target/43580
19793         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19794         V2SImode or XFmode on PRE_DEC.
19795
19796         PR debug/43557
19797         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19798         BLKmode.
19799
19800 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19801
19802         PR 43562
19803         * reload.h (caller_save_initialized_p): Declare.
19804         * toplev.c (backend_init_target): Don't call
19805         init_caller_save but set caller_save_initialized_p to false.
19806         * caller-save.c (caller_save_initialized_p): Define.
19807         (init_caller_save): Check caller_save_initialized_p.
19808         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19809
19810 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19811
19812         PR target/39048
19813         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19814         and soft-fp/t-softfp to tmake_file.
19815         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19816         (LIBGCC2_TF_CEXT): Define.
19817         (TF_SIZE): Define.
19818
19819 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19820
19821         PR debug/42977
19822         * cselib.c (n_useless_values): Document handling of debug locs.
19823         (n_useless_debug_values, n_debug_values): New variables.
19824         (new_elt_loc_list): Don't add to debug values, keep count.
19825         (promote_debug_loc): New.
19826         (cselib_reset_table): Zero new variables.
19827         (entry_and_rtx_equal_p): Promote debug locs.
19828         (discard_useless_locs): Increment n_useless_debug_values for
19829         debug values.
19830         (remove_useless_values): Adjust n_useless_values and n_debug_values
19831         with n_useless_debug_values.
19832         (add_mem_for_addr): Promote debug locs.
19833         (cselib_lookup_mem): Likewise.
19834         (cselib_lookup_addr): Renamed to...
19835         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19836         (cselib_log_lookup): ... this.  Turn into...
19837         (cselib_lookup_addr): ... new wrapper.
19838         (cselib_lookup_from_insn): New.
19839         (cselib_invalidate_regno): Increment n_useless_debug_values for
19840         debug values.
19841         (cselib_invalidate_mem): Likewise.
19842         (cselib_process_insn): Take n_deleted and n_debug_values into
19843         account to guard remove_useless_value call.
19844         (cselib_finish): Zero n_useless_debug_values.
19845         * cselib.h (cselib_lookup_from_insn): Declare.
19846         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19847         (sched_analyze_2): Likewise.
19848
19849 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19850
19851         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19852         functions.
19853         (adjust_mems): Replace narrowing SUBREG of expression containing
19854         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19855         with operations in the narrower mode.
19856
19857         PR debug/43593
19858         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19859         regs_invalidated_by_call instead all call_used_reg_set registers.
19860
19861 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19862
19863         PR middle-end/43430
19864         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19865         pointer comparisons with types_compatible_p.
19866         * tree-vect-stmts.c (vectorizable_call): Same.
19867         (vectorizable_condition): Same.
19868
19869 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19870
19871         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19872         stack check if the mask would be zero.
19873
19874 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19875             Jack Howarth  <howarth@bromo.med.uc.edu>
19876
19877         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19878         variables TLS.
19879
19880 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19881
19882         PR other/25232
19883         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19884         and __unordtf2.
19885         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19886         Include ___unordxf2 and ___unordtf2.
19887         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19888         GCC_4.4.0 here.
19889
19890 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19891
19892         * config/lm32/t-lm32: New file.
19893         * config.gcc: Use the above file when targetting lm32.
19894
19895 2010-03-28  Duncan Sands  <baldrick@free.fr>
19896
19897         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19898
19899 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19900
19901         PR middle-end/43431
19902         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19903         Improve vectorization cost model diagnostic.
19904
19905 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19906
19907         PR middle-end/43436
19908         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19909         compute_data_dependences_for_loop returns false, early exit
19910         and output an extra diagnostic for the failed data reference
19911         analysis.
19912
19913 2010-03-29  Richard Guenther  <rguenther@suse.de>
19914
19915         PR tree-optimization/43560
19916         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19917         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19918
19919 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19920
19921         PR 43564
19922         * toplev.c (process_options): Set optimization_default_node
19923         and optimization_current_node.
19924         * opts.c (decode_options): Don't set optimization_default_node
19925         and optimization_current_node.
19926
19927 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19928
19929         * config/rtems.h: Abandon -qrtems_debug.
19930
19931 2010-03-28  Jan Hubicka  <jh@suse.cz>
19932
19933         PR tree-optimization/43505
19934         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19935         map should not be copied.
19936
19937 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19938
19939         PR middle-end/41674
19940         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19941         cdtors, set DECL_PRESERVE_P.
19942         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19943         should be preseved.
19944
19945 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19946
19947         PR tree-optimization/43528
19948         * stor-layout.c (place_field): Check that constant fits into
19949         unsigned HWI when skipping calculation of MS bitfield layout.
19950
19951 2010-03-27  Jan Hubicka  <jh@suse.cz>
19952
19953         PR middle-end/43391
19954         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19955         notice_global_symbol work.
19956
19957 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19958
19959         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19960         instead of dwarf2out_decl.
19961         (struct var_loc_node): Remove section_label field.
19962         (dwarf2out_function_decl): New function.
19963         (dwarf2out_var_location): Don't set section_label field.
19964         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19965
19966 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19967
19968         PR tree-optimization/43544
19969         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19970         First argument for builtin vectorized function hook is now a
19971         tree to be able to distinguish between machine specific and
19972         standard builtins.
19973         * targhooks.c (default_builtin_vectorized_function): Ditto.
19974         * targhooks.h (default_builtin_vectorized_function): Ditto.
19975         * target.h (struct gcc_target): Ditto.
19976         * tree-vect-stmts.c (vectorizable_function): Ditto.
19977         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19978         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19979         Ditto.
19980
19981 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19982
19983         PR c/43381
19984         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19985         nested binding iff it is a FUNCTION_DECL.
19986         (store_parm_decls_newstyle): Pass nested=true to bind for
19987         FUNCTION_DECLs amongst parameters.
19988
19989 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19990
19991         * var-tracking.c (vt_expand_loc_callback): Don't run
19992         cselib_expand_value_rtx_cb in dummy mode if
19993         cselib_dummy_expand_value_rtx_cb returned false.
19994
19995         * var-tracking.c (emit_note_insn_var_location): For one part
19996         notes with offset 0, don't add EXPR_LIST around the location.
19997         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19998         add_location_or_const_value_attribute): Adjust for that change.
19999
20000         PR debug/43540
20001         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
20002         into first operand and location into second.
20003         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
20004         dw_cfi_oprnd_loc for DW_CFA_expression.
20005         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
20006         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
20007         assume first argument is regnum and second argument is location.
20008
20009 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20010
20011         PR target/42113
20012         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
20013         of scratch register to DImode.  Split to DImode comparison operator.
20014         Use SImode subreg of scratch register in the multiplication.
20015         (*cmp_sadd_sidi): Ditto.
20016         (*cmp_ssub_si): Ditto.
20017         (*cmp_ssub_sidi): Ditto.
20018
20019 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20020
20021         PR target/43524
20022         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
20023         Remove invalid assert and wrong comment.
20024
20025 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20026
20027         PR debug/43516
20028         * flags.h (final_insns_dump_p): New extern.
20029         * final.c (final_insns_dump_p): New variable.
20030         (rest_of_clean_state): Set it before -fdump-final-insns=
20031         dumping, clear afterwards.
20032         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
20033         MEM_ALIAS_SET on MEMs.
20034
20035 2010-03-26  David S. Miller  <davem@davemloft.net>
20036
20037         * configure.ac: Fix sparc GOTDATA_OP bug check.
20038         * configure: Rebuild.
20039
20040 2010-03-26  Alan Modra  <amodra@gmail.com>
20041
20042         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
20043
20044 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20045
20046         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
20047         TLS_SECTION_ASM_FLAG.
20048
20049 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
20050
20051         PR bootstrap/43511
20052         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
20053         Clear first_function_block_is_cold.
20054
20055         PR c/43385
20056         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
20057         argument if the argument is truth_value_p.
20058
20059 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20060
20061         * config/rs6000/constraints.md: Update copyright year for my changes.
20062
20063         PR target/43484
20064         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
20065         used in reg+reg addressing, swap registers.
20066
20067 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20068
20069         PR debug/43293
20070         * target.h (struct gcc_target): Add code_end hook.
20071         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
20072         if not yet defined.
20073         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
20074         * toplev.c (compile_file): Call targetm.asm_out.code_end
20075         hook before unwind info/debug info output.
20076         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
20077         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
20078         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20079         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
20080         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20081         * config/i386/i386.c (ix86_file_end): Renamed to...
20082         (ix86_code_end): ... this.  Make static.  Don't call
20083         file_end_indicate_exec_stack.  Emit unwind info using
20084         final_start_function/final_end_function.
20085         (darwin_x86_file_end): Remove.
20086         (TARGET_ASM_CODE_END): Define.
20087         * config/i386/i386.h (TARGET_ASM_FILE_END,
20088         NEED_INDICATE_EXEC_STACK): Don't define.
20089         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
20090         (TARGET_ASM_FILE_END): Define to darwin_file_end.
20091         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
20092         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
20093
20094         PR target/43498
20095         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
20096         at the beginning and final_end_function at the end.
20097         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20098
20099 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20100
20101         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
20102         and Sun as TLS syntax.
20103         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
20104         * configure: Regenerate.
20105         * config.in: Regenerate.
20106         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
20107         (default_elf_asm_named_section): Use it.
20108         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
20109         (i386_output_dwarf_dtprel): Likewise.
20110         (output_addr_const_extra): Likewise.
20111         (output_pic_addr_const): Lowercase @GOTTPOFF.
20112         (output_addr_const_extra): Likewise.
20113         (output_pic_addr_const): Lowercase @GOTNTPOFF.
20114         (output_addr_const_extra): Likewise.
20115         (output_pic_addr_const): Lowercase @INDNTPOFF.
20116         (output_addr_const_extra): Likewise.
20117         (output_pic_addr_const): Lowercase @NTPOFF.
20118         (output_addr_const_extra): Likewise.
20119         (output_pic_addr_const): Lowercase @TPOFF.
20120         (output_addr_const_extra): Likewise.
20121         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
20122         (*tls_global_dynamic_64): Likewise.
20123         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
20124         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
20125
20126         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
20127         (ASM_OUTPUT_TLS_COMMON): Use it.
20128         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
20129
20130         PR target/38118
20131         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
20132         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20133         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
20134         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
20135         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20136         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
20137
20138 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20139
20140         * config/i386/i386.c (override_options): Don't accept
20141         -mtls-dialect=sun any longer.
20142         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
20143         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
20144         (*tls_local_dynamic_base_32_sun): Likewise.
20145         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20146
20147 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20148
20149         PR debug/43508
20150         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20151         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
20152
20153         PR debug/43479
20154         * ira.c (adjust_cleared_regs): New function.
20155         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
20156
20157         PR debug/19192
20158         PR debug/43479
20159         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
20160         from gimple_block.
20161         * expr.c (expand_expr_real): Restore previous
20162         curr_insn_source_location and curr_insn_block after
20163         expand_expr_real_1 call.
20164         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
20165         instead of expand_expr_real_1.
20166
20167 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
20168
20169         PR rtl-optimization/43413
20170         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20171         hard regs too.
20172
20173 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
20174
20175         PR target/43348
20176         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20177         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20178
20179 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
20180
20181         * config/i386/i386.c (ix86_target_string): Add -mfma.
20182         Fix a typo in comment.
20183
20184 2010-03-22  Mike Stump  <mikestump@comcast.net>
20185
20186         PR target/23071
20187         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20188         Don't overly align based upon packed packed fields.
20189
20190 2010-03-22  Jason Merrill  <jason@redhat.com>
20191
20192         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20193         Use () rather than [], and move before the element type.
20194
20195 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20196
20197         * doc/configfiles.texi (Configuration Files): Removed
20198         fixinc/Makefile*, intl/Makefile.*.
20199         * doc/makefile.texi: Fixed markup. Abstract from version
20200         control system used.
20201         (Makefile): Removed obsolete gcc/java/parse.y example.
20202         * doc/sourcebuild.texi: Likewise.
20203         (Top Level): Added config, gnattools, libdecnumber, libgcc,
20204         libgomp, libssp.  Removed fastjar.
20205         (Miscellaneous Docs): Clarify location.
20206         Added COPYING3, COPYING3.LIB.
20207         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20208
20209 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20210
20211         PR target/38085
20212         * config/i386/i386.c (x86_function_profiler)
20213         [!NO_PROFILE_COUNTERS]: Fix typo.
20214         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20215         instead of callq.
20216
20217 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
20218             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20219
20220         * doc/sourcebuild.texi (Test Directives): Split into six
20221         subsections, with most of the current text in new subsections
20222         Directives, Selectors, and Final Actions.
20223         (Directives): Split list of test directives into multiple
20224         subsubsections.
20225         (Selectors): Describe use and syntax of selectors.
20226         (Effective-Target Keywords): Describe all existing keywords.
20227         (Add Options): Describe features for dg-add-options.
20228         (Require Support): Describe variants of dg-require-support.
20229         (Final Actions): Describe commands to use in dg-final.
20230
20231 2010-03-22  Michael Matz  <matz@suse.de>
20232
20233         PR middle-end/43475
20234         * recog.c (validate_replace_rtx_group): Replace also in
20235         REG_EQUAL and REG_EQUIV notes.
20236
20237 2010-03-22  Richard Guenther  <rguenther@suse.de>
20238
20239         PR tree-optimization/43390
20240         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20241         sure vector extracts are type correct.
20242
20243 2010-03-22  Richard Guenther  <rguenther@suse.de>
20244
20245         PR middle-end/40106
20246         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20247         x * sqrt (x) even when optimizing for size if the target
20248         has native support for sqrt.
20249
20250 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
20251
20252         * varasm.c (make_decl_rtl_for_debug): Also clear
20253         flag_mudflap for the duration of make_decl_rtl call.
20254
20255         PR debug/43443
20256         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20257         locs from preserved VALUEs.
20258
20259 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20260
20261         PR middle-end/42718
20262         * pa.md (movmemsi): Set align to one if zero.
20263         (movmemdi): Likewise.
20264
20265 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
20266
20267         PR target/42321
20268         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20269         with their corresponding prologue pushes.
20270
20271 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
20272
20273         PR target/43156
20274         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20275         at the begining or end.
20276         (spu_expand_epilogue): Likewise.
20277
20278 2010-03-20  Richard Guenther  <rguenther@suse.de>
20279
20280         PR rtl-optimization/43438
20281         * combine.c (make_extraction): Properly zero-/sign-extend an
20282         extraction of the low part of a CONST_INT.  Also handle
20283         CONST_DOUBLE.
20284
20285 2010-03-19  Mike Stump  <mikestump@comcast.net>
20286
20287         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20288         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20289         (override_options): Use SUBTARGET32_DEFAULT_CPU.
20290
20291 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20292
20293         PR c/43211
20294         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20295         an error.
20296
20297 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
20298
20299         PR rtl-optimization/42258
20300         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20301         use that may match DEF.
20302
20303         PR target/40697
20304         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20305         the cost of loading the constant rather than assuming
20306         COSTS_N_INSNS (1).
20307         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20308         outer code is AND, do the same tests as the andsi3 expander and
20309         return COSTS_N_INSNS (1) if and is cheap.
20310
20311         * optabs.c (avoid_expensive_constant): Fix formatting.
20312
20313 2010-03-19  Michael Matz  <matz@suse.de>
20314
20315         PR c++/43116
20316         * attribs.c (decl_attributes): When rebuilding a function pointer
20317         type use the same qualifiers as the original pointer type.
20318
20319 2010-03-19  Martin Jambor  <mjambor@suse.cz>
20320
20321         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20322         and is_gimple_ip_invariant_address.
20323
20324 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20325
20326         Revert
20327         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20328
20329         * config/arm/arm.c (arm_override_options): Turn off
20330         flag_dwarf2_cfi_asm for AAPCS variants.
20331
20332 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20333
20334         PR target/43399
20335         * config/arm/arm.c (emit_multi_reg_push): Update comments.
20336         Use PRE_MODIFY instead of PRE_DEC.
20337         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20338         (vfp_emit_fstmd): Likewise.
20339
20340 2010-03-19  Michael Matz  <matz@suse.de>
20341
20342         PR target/43305
20343         * builtins.c (expand_builtin_interclass_mathfn,
20344         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20345         if that fails.
20346
20347 2010-03-19  Richard Guenther  <rguenther@suse.de>
20348
20349         PR tree-optimization/43415
20350         * tree-ssa-pre.c (phi_translate): Split out worker to ...
20351         (phi_translate_1): ... this.
20352         (phi_translate): Move all caching here.  Cache all NARY
20353         and REFERENCE translations.
20354
20355 2010-03-19  David S. Miller  <davem@davemloft.net>
20356
20357         With help from Eric Botcazou.
20358         * config/sparc/sparc.c: Include dwarf2out.h.
20359         (emit_pic_helper): Delete.
20360         (pic_helper_symbol_name): Delete.
20361         (pic_helper_emitted_p): Delete.
20362         (pic_helper_needed): New.
20363         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20364         (get_pc_thunk_name): New.
20365         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20366         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20367         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20368         (sparc_expand_prologue): Update load_pic_register call.
20369         (sparc_output_mi_thunk): Likewise.
20370         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20371         thunk if possible.  Output CFI information as needed.
20372
20373 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20374             Jack Howarth  <howarth@bromo.med.uc.edu>
20375
20376         PR target/36399
20377         * config/i386/i386.h: Fix ABI on darwin x86-32.
20378
20379 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20380
20381         * tree.h: Declare make_decl_rtl_for_debug.
20382         * varasm.c (make_decl_rtl_for_debug): New.
20383         * dwarf2out.c (rtl_for_decl_location): Call it.
20384         * cfgexpand.c (expand_debug_expr): Call it.
20385
20386 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20387
20388         PR bootstrap/43399
20389         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20390         mem_mode.
20391
20392         PR bootstrap/43403
20393         * var-tracking.c (vt_init_cfa_base): Do nothing if
20394         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20395
20396 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20397
20398         PR debug/42873
20399         * var-tracking.c (canonicalize_vars_star): New.
20400         (dataflow_post_merge_adjust): Use it.
20401
20402 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20403
20404         PR debug/43058
20405         * var-tracking.c (non_suitable_const): New function.
20406         (add_uses): For DEBUG_INSNs with constants, don't record any
20407         value, instead just the constant value itself.
20408         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20409         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20410         (emit_notes_in_bb): Likewise.
20411         (emit_note_insn_var_location): For onepart variables if
20412         cur_loc is a VOIDmode constant, use DECL_MODE.
20413
20414 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20415
20416         PR middle-end/42450
20417         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20418         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20419         all non-clones.  Moved call redirection...
20420         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20421         (cgraph_materialize_all_clones): Dispose of all
20422         combined_args_to_skip bitmaps.
20423         (verify_cgraph_node): Do not check for edges pointing to wrong
20424         nodes in inline clones.
20425         * tree-inline.c (copy_bb): Call
20426         cgraph_redirect_edge_call_stmt_to_callee.
20427         * ipa.c (cgraph_remove_unreachable_nodes): Call
20428         cgraph_node_remove_callees even when there are used clones.
20429
20430 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20431
20432         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20433
20434 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20435
20436         PR target/43383
20437         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20438         for 32bit.
20439
20440 2010-03-18  Michael Matz  <matz@suse.de>
20441
20442         PR middle-end/43419
20443         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20444         into sqrt(x) if we need to preserve signed zeros.
20445
20446 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20447             Eric Botcazou  <ebotcazou@adacore.com>
20448
20449         PR rtl-optimization/43360
20450         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20451         note if we don't know its invariant status.
20452
20453 2010-03-18  Michael Matz  <matz@suse.de>
20454
20455         PR tree-optimization/43402
20456         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20457         PHI chains of ssa names registered for update.
20458
20459 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20460
20461         PR target/42427
20462         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20463         non-offsettable and pre_modify update addressing.
20464         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20465         and "2" alternatives "#".
20466         (*movdd_softfloat32): Make all alternatives "#";
20467         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20468         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20469         (*movdf_softfloat32): Make all alternatives "#";
20470         (movdi): Use the new DIFD mode iterator to create a common splitter
20471         for movdi, movdf and movdd patterns.
20472
20473 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20474
20475         * common.opt (dumpdir): Remove redundant tab.
20476
20477 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20478
20479         PR tree-optimization/43347
20480         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20481         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20482
20483 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20484
20485         PR rtl-optimization/42216
20486         * regrename.c (create_new_chain): New function, broken out from...
20487         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20488         appending a use to an empty chain.
20489         (build_def_use): Remove previous changes that convert OP_INOUT to
20490         OP_OUT operands; instead detect the case where an OP_INOUT operand
20491         uses a previously untracked register and create an empty chain for it.
20492
20493 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20494
20495         * doc/extend.texi (Function Attributes): Rewrite unfinished
20496         sentence in ms_abi documentation.
20497
20498 2010-03-17  Alan Modra  <amodra@gmail.com>
20499
20500         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20501         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20502         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20503         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20504
20505 2010-03-16  Richard Henderson  <rth@redhat.com>
20506
20507         PR middle-end/43365
20508         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20509         (lower_try_finally): Save and restore eh_seq around the expansion
20510         of the try-finally.
20511
20512 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20513
20514         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20515         statements before splitting block.
20516
20517 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20518
20519         * doc/sourcebuild.texi (Testsuites): Fix markup.
20520         Use pathnames relative to gcc/testsuite.
20521         (Test Directives): Move description of how timeout is determined.
20522         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20523         (C Tests): Correct gcc.misc-tests directory.
20524         Framework tests now live in gcc.test-framework.
20525
20526 2010-03-16  Richard Guenther  <rguenther@suse.de>
20527
20528         PR middle-end/43379
20529         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20530         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20531
20532 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20533             Alexandre Oliva  <aoliva@redhat.com>
20534
20535         PR tree-optimization/42917
20536         * lambda-code.c (remove_iv): Skip debug statements.
20537         (lambda_loopnest_to_gcc_loopnest): Likewise.
20538         (not_interesting_stmt): Debug statements are not interesting.
20539
20540 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20541
20542         PR debug/43051
20543         PR debug/43092
20544         * cselib.c (cselib_preserve_constants,
20545         cfa_base_preserved_val): New static variables.
20546         (preserve_only_constants): New function.
20547         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20548         clear its REG_VALUES.  If cselib_preserve_constants, don't
20549         empty the whole hash table, but preserve there VALUEs with constants,
20550         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20551         (cselib_preserve_cfa_base_value): New function.
20552         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20553         (cselib_init): Change argument to int bitfield.  Set
20554         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20555         is in it.
20556         (cselib_finish): Clear cselib_preserve_constants and
20557         cfa_base_preserved_val.
20558         * cselib.h (enum cselib_record_what): New enum.
20559         (cselib_init): Change argument to int.
20560         (cselib_preserve_cfa_base_value): New prototype.
20561         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20562         * dse.c (dse_step1): Likewise.
20563         * cfgcleanup.c (thread_jump): Likewise.
20564         * sched-deps.c (sched_analyze): Likewise.
20565         * gcse.c (local_cprop_pass): Likewise.
20566         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20567         If FN is non-NULL, call the callback always and whenever it returns
20568         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20569         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20570         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20571         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20572         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20573         * var-tracking.c: Include recog.h.
20574         (bb_stack_adjust_offset): Remove.
20575         (vt_stack_adjustments): Don't call it, instead just gather the
20576         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20577         (adjust_stack_reference): Remove.
20578         (compute_cfa_pointer): New function.
20579         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20580         (struct adjust_mem_data): New type.
20581         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20582         functions.
20583         (get_address_mode): New function.
20584         (replace_expr_with_values): Use it.
20585         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20586         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20587         (adjust_sets): Remove.
20588         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20589         Use get_address_mode.
20590         (get_adjusted_src): Remove.
20591         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20592         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20593         (add_with_sets): Don't call adjust_sets.
20594         (fp_setter, vt_init_cfa_base): New functions.
20595         (vt_initialize): Change return type to bool.  Move most of pool etc.
20596         initialization to the beginning of the function from end.  Pass
20597         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20598         If !frame_pointer_needed, call vt_stack_adjustment before mos
20599         vector is filled, call vt_init_cfa_base if argp/framep has been
20600         eliminated to sp.  If frame_pointer_needed and argp/framep has
20601         been eliminated to hard frame pointer, set
20602         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20603         encountering fp setter in the prologue.  For MO_ADJUST, call
20604         log_op_type before pusing the op into mos vector, not afterwards.
20605         Call adjust_insn before cselib_process_insn/add_with_sets,
20606         call cancel_changes (0) afterwards.
20607         (variable_tracking_main_1): Adjust for vt_initialize calling
20608         vt_stack_adjustments and returning whether it succeeded or not.
20609
20610 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20611
20612         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20613         debug statements.
20614
20615 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20616
20617         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20618         has been set.
20619         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20620         drap_reg has not been set.
20621
20622 2010-03-15  Michael Matz  <matz@suse.de>
20623
20624         PR middle-end/43300
20625         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20626         use it to expand block copies.
20627         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20628         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20629         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20630
20631 2010-03-15  Richard Guenther  <rguenther@suse.de>
20632
20633         PR tree-optimization/43367
20634         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20635         elimination check.
20636
20637 2010-03-15  Richard Guenther  <rguenther@suse.de>
20638
20639         PR tree-optimization/43317
20640         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20641
20642 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20643
20644         PR tree-optimization/43141
20645         * tree-sra.c (create_abstract_origin): New function.
20646         (modify_function): Call create_abstract_origin.
20647
20648 2010-03-15  Chris Demetriou  <cgd@google.com>
20649
20650         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20651         wasn't copied.
20652
20653 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20654
20655         PR middle-end/43354
20656         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20657         call insert_out_of_ssa_copy for default definitions.
20658
20659 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20660
20661         * graphite-clast-to-gimple.c (my_long_long): Defined.
20662         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20663         * graphite-sese-to-poly.c (my_long_long): Defined.
20664         (scop_ivs_can_be_represented): Use it.
20665
20666 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20667
20668         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20669         graphite-max-bbs-per-function, and loop-block-tile-size.
20670         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20671         with "maximum".
20672         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20673
20674 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20675
20676         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20677         forward declaration.
20678         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20679         (add_upper_bounds_from_estimated_nit): New.
20680         (build_loop_iteration_domains): Use it.
20681
20682 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20683
20684         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20685
20686 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20687
20688         PR middle-end/43306
20689         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20690         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20691
20692 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20693
20694         * graphite.c (graphite_initialize): To bound the number of bbs per
20695         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20696         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20697         * doc/invoke.texi: Document it.
20698
20699 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20700
20701         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20702         * graphite-sese-to-poly.h (build_poly_scop): Same.
20703
20704 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20705
20706         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20707         the number of parameters in the scop.  Use as an upper bound
20708         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20709         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20710         * doc/invoke.texi: Document it.
20711
20712 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20713
20714         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20715         * doc/c-tree.texi: Remove.
20716         * doc/generic.texi: Merge c-tree.texi here.
20717         * doc/gccint.texi (Trees): Remove menu entry.
20718         (c-tree.texi): Remove @include.
20719         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20720         * doc/languages.texi (Reading RTL): Ditto.
20721
20722 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20723
20724         PR target/42869
20725         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20726
20727 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20728
20729         PR middle-end/42431
20730         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20731         code added to work around reload clobbering CONST insns.
20732
20733 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20734
20735         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20736         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20737         (cselib_preserve_only_values): Remove retain argument, don't
20738         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20739         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20740         * var-tracking.c (micro_operation): Move insn field before union.
20741         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20742         (struct variable_tracking_info_def): Remove n_mos field, change
20743         mos into a vector of micro_operations.
20744         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20745         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20746         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20747         changing into a vector.
20748         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20749         come before all other uops generated by add_stores.
20750         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20751         argument removal.
20752         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20753         a vector.  Run just one pass over the bbs instead of separate counting
20754         and computation phase.
20755         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20756
20757         PR debug/43329
20758         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20759         into *nonlocalized_list vector.
20760         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20761         even if origin is non-NULL.
20762         (gen_variable_die): Likewise.
20763         (process_scope_var): Don't change origin.
20764         (gen_decl_die): Likewise.
20765         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20766         before adding new edges instead of after it, fix moving over
20767         debug stmts.
20768
20769 2010-03-11  David S. Miller  <davem@davemloft.net>
20770
20771         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20772         of four.
20773         * configure: Rebuild.
20774
20775 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20776
20777         PR tree-optimization/43257
20778         * tree.c (assign_assembler_name_if_neeeded): New function.
20779         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20780         above new function.
20781         * tree.h (assign_assembler_name_if_neeeded): Declare.
20782         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20783         the function if needed.
20784
20785 2010-03-11  Chris Demetriou  <cgd@google.com>
20786
20787         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20788         include/stdint-gcc.h, and include/stdint.h world-readable.
20789
20790 2010-03-11  Richard Guenther  <rguenther@suse.de>
20791
20792         PR tree-optimization/43255
20793         * tree-vrp.c (process_assert_insertions_for): Do not insert
20794         asserts for trivial conditions.
20795
20796 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20797
20798         PR tree-optimization/43280
20799         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20800         generation.  Move calculation of size out of the if branch.
20801         (find_bswap): Modify compare number generation.
20802
20803 2010-03-11  Richard Guenther  <rguenther@suse.de>
20804
20805         PR lto/43200
20806         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20807         (input_gimple_stmt): Fixup handled component types during
20808         operand read.  Also fix up decls in ADDR_EXPRs.
20809
20810 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20811
20812         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20813         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20814
20815 2010-03-10  Jan Hubicka  <jh@suse.cz>
20816
20817         PR c/43288
20818         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20819         * varasm.c (get_variable_section): Don't do that here...
20820         (make_decl_rtl): ... and here.
20821         (do_assemble_alias): Produce decl RTL.
20822         (assemble_alias): Likewise.
20823
20824 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20825
20826         PR debug/43290
20827         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20828         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20829         of fde->vdrap_reg.
20830         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20831         (based_loc_descr): Only express drap or vdrap regno based expressions
20832         using DW_OP_fbreg when not optimizing.
20833         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20834         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20835         REG_CFA_SET_VDRAP note.
20836
20837 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20838
20839         PR tree-optimization/43236
20840         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20841         error in calculation of base address in reverse iteration case.
20842         (generate_builtin): Take number of latch executions if the statement
20843         is in the latch.
20844
20845 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20846
20847         PR middle-end/42859
20848         * tree-eh.c: Include pointer-set.h.
20849         (lower_eh_dispatch): Filter out duplicate case labels and
20850         remove the unneeded edge when the label is unused.  Return
20851         true when some edges are removed.
20852         (execute_lower_eh_dispatch): When any lowering resulted in
20853         removing an edge, also delete unreachable blocks.
20854
20855 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20856
20857         PR bootstrap/43287
20858         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20859         UNSPEC_MACHOPIC_OFFSET.
20860
20861 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20862
20863         PR target/43294
20864         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20865         (m68k_delegitimize_address): New function.
20866
20867 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20868
20869         PR debug/43299
20870         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20871
20872         PR debug/43299
20873         * var-tracking.c (adjust_sets): New function.
20874         (count_with_sets, add_with_sets): Use it.
20875         (get_adjusted_src): New inline function.
20876         (add_stores): Use it.
20877
20878         PR debug/43304
20879         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20880         call cselib_dummy_expand_value_rtx_cb instead of
20881         cselib_expand_value_rtx_cb.
20882
20883         PR debug/43293
20884         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20885         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20886         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20887         and .cfi_endproc around the pic thunks.
20888         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20889         all queued unwind info register saves are saved before the call.
20890         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20891         considered as sp-=4 for unwind info and the pop as sp+=4 which
20892         also clobbers dest, but doesn't actually restore it.
20893
20894         PR debug/43290
20895         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20896         RTX_FRAME_RELATED_P.
20897
20898 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20899
20900         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20901         whitespaces in output template.
20902
20903 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20904
20905         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20906         out array boundary.
20907
20908 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20909
20910         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20911         builtins.exp in a separate job.
20912
20913 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20914
20915         * graphite-sese-to-poly.c (add_param_constraints): Use
20916         lower_bound_in_type and upper_bound_in_type.
20917
20918 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20919
20920         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20921         instead of unsigned_type_node.
20922
20923 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20924             Reza Yazdani  <reza.yazdani@amd.com>
20925
20926         PR middle-end/43065
20927         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20928         on pointer type parameters.
20929
20930 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20931
20932         PR middle-end/42644
20933         PR middle-end/42130
20934         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20935         handle conversions from pointer to integers.
20936         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20937         induction variable, to be able to work with code generated by CLooG.
20938         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20939         (build_poly_scop): Bail out if we cannot codegen a loop.
20940
20941 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20942
20943         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20944         code generation with gloog_error.
20945
20946 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20947
20948         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20949         Call fold_convert on all the returned values.
20950         (expand_scalar_variables_expr): Pass to
20951         expand_scalar_variables_ssa_name the type of the resulting expression.
20952
20953 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20954
20955         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20956         ppl_min_for_le_pointset.
20957         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20958         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20959
20960 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20961
20962         * graphite-dependences.c (map_into_dep_poly): Removed.
20963         (dependence_polyhedron_1): Use combine_context_id_scat.
20964
20965 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20966
20967         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20968         (struct poly_bb): Same.
20969         (combine_context_id_scat): New.
20970
20971 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20972
20973         PR middle-end/42326
20974         * sese.c (name_defined_in_loop_p): Return false for default
20975         definitions.
20976
20977 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20978
20979         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20980         and clean up the logic.
20981
20982 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20983
20984         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20985         early return.
20986
20987 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20988
20989         * var-tracking.c (remove_cselib_value_chains): Define only for
20990         ENABLE_CHECKING.
20991         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20992         delete_slot_part, emit_notes_for_differences_1): Don't call
20993         remove_cselib_value_chains here.
20994         (set_slot_part, emit_notes_for_differences_2): Don't call
20995         add_cselib_value_chains here.
20996         (preserved_values): New vector.
20997         (preserve_value): New function.
20998         (add_uses, add_stores, vt_add_function_parameters): Use it
20999         instead of cselib_preserve_value.
21000         (changed_values_stack): New vector.
21001         (check_changed_vars_0): New function.
21002         (check_changed_vars_1, check_changed_vars_2): Use it.
21003         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
21004         changed_values_stack VALUEs.
21005         (vt_emit_notes): For all preserved_values call
21006         add_cselib_value_chains.  If ENABLE_CHECKING call
21007         remove_cselib_value_chains before verifying value_chains is empty.
21008         Initialize and free changed_values_stack.
21009         (vt_initialize): Initialize preserved_values.
21010         (vt_finalize): Free preserved_values.
21011
21012 2010-03-08  Richard Guenther  <rguenther@suse.de>
21013
21014         PR tree-optimization/43269
21015         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
21016         region detection.
21017
21018 2010-03-08  Martin Jambor  <mjambor@suse.cz>
21019
21020         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
21021         (ipa_is_param_called): Removed.
21022         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
21023         (ipa_print_node_params): Do not print the called flag.
21024         (ipa_write_node_info): Do not stream the called flag.
21025         (ipa_read_node_info): Likewise.
21026
21027 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
21028
21029         PR debug/43176
21030         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
21031         * cselib.c (struct expand_value_data): Add dummy field.
21032         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
21033         dummy to false.
21034         (cselib_dummy_expand_value_rtx_cb): New function.
21035         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
21036         any rtl.
21037         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
21038         * var-tracking.c: Include pointer-set.h.
21039         (variable): Change n_var_parts to char from int.  Add
21040         cur_loc_changed and in_changed_variables fields.
21041         (variable_canonicalize): Remove.
21042         (shared_var_p): New inline function.
21043         (unshare_variable): Maintain cur_loc_changed and
21044         in_changed_variables fields.  If var was in changed_variables,
21045         replace it there with new_var.  Just copy cur_loc instead of
21046         resetting it to something else.
21047         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
21048         (dataflow_set_union): Don't call variable_canonicalize.
21049         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
21050         of their DEBUG_EXPR_TREE_DECLs.
21051         (canonicalize_loc_order_check): Verify that cur_loc is NULL
21052         and in_changed_variables and cur_loc_changed is false.
21053         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
21054         and cur_loc_changed.  Don't update cur_loc here.
21055         (variable_merge_over_src): Don't call variable_canonicalize.
21056         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
21057         removing loc that is equal to cur_loc, clear cur_loc,
21058         set cur_loc_changed and ensure variable_was_changed is called.
21059         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
21060         compare pointers in cur_loc check, if it is equal to loc,
21061         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
21062         (variable_different_p): Remove compare_current_location argument,
21063         don't compare cur_loc.
21064         (dataflow_set_different_1): Adjust variable_different_p caller.
21065         (variable_was_changed): If dv had some var in changed_variables
21066         already, reset in_changed_variables flag for it and propagate
21067         cur_loc_changed over to the new variable.  On empty var
21068         always set cur_loc_changed.  Set in_changed_variables on whatever
21069         var is added to changed_variables.
21070         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
21071         Use shared_var_p.  When removing loc that is equal to cur_loc,
21072         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
21073         end, don't set it to something else, just call variable_was_changed.
21074         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
21075         loc being removed, clear cur_loc and set cur_loc_changed.
21076         Set cur_loc_changed if all locations have been removed.
21077         (struct expand_loc_callback_data): New type.
21078         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
21079         allocated.  Always create SUBREGs if simplify_subreg failed.
21080         Prefer to use cur_loc, when that fails and still in
21081         changed_variables (and seen first time) recompute it.  Set
21082         cur_loc_changed of variables which had to change cur_loc and
21083         compute elcd->cur_loc_changed if any of the subexpressions used
21084         had to change cur_loc.
21085         (vt_expand_loc): Adjust to pass arguments in
21086         expand_loc_callback_data structure.
21087         (vt_expand_loc_dummy): New function.
21088         (emitted_notes): New variable.
21089         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
21090         that weren't used for any other decl in current
21091         emit_notes_for_changes call call vt_expand_loc_dummy to update
21092         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
21093         first loc_chain location if NULL before.  Always use just
21094         cur_loc instead of first loc_chain location.  When cur_loc_changed
21095         is false, when not --enable-checking=rtl just don't emit any note.
21096         When rtl checking, compute the note and assert it is the same
21097         as previous note.  Clear cur_loc_changed and in_changed_variables
21098         at the end before removing from changed_variables.
21099         (check_changed_vars_3): New function.
21100         (emit_notes_for_changes): Traverse changed_vars to call
21101         check_changed_vars_3 on each changed var.
21102         (emit_notes_for_differences_1): Clear cur_loc_changed and
21103         in_changed_variables.  Recompute cur_loc of new_var.
21104         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
21105         (vt_emit_notes): Initialize and destroy emitted_notes.
21106
21107 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
21108
21109         PR rtl-optimization/42220
21110         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
21111         Use verify_reg_tracked to determine if we should use OP_OUT rather
21112         than OP_INOUT.
21113         (build_def_use): If we see an in-out operand for a register that we
21114         know nothing about, treat is an output if possible, fail the block if
21115         not.
21116
21117 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21118
21119         PR debug/42897
21120         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
21121         permanently.
21122
21123 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21124
21125         PR debug/42897
21126         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
21127         uses of relevant DEFs that are dead outside the loop too.
21128
21129 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21130
21131         * var-tracking.c (dataflow_set_merge): Swap src and src2.
21132         Reverted:
21133         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21134         PR debug/41371
21135         * var-tracking.c (values_to_unmark): New variable.
21136         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21137         values_to_unmark vector.  Moved body to...
21138         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21139         instead queue it into values_to_unmark vector.
21140         (vt_find_locations): Free values_to_unmark vector.
21141
21142 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
21143
21144         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
21145         (site.exp): Export them when plugins are enabled.
21146
21147 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
21148
21149         PR middle-end/42326
21150         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
21151         that contain scevs.
21152         (chrec_fold_multiply): Same.
21153
21154 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21155
21156         PR c/43248
21157         * c-decl.c (build_compound_literal): Return early if init is
21158         an error_mark_node.
21159
21160 2010-03-04  Martin Jambor  <mjambor@suse.cz>
21161
21162         PR tree-optimization/43164
21163         PR tree-optimization/43191
21164         * tree-sra.c (type_consists_of_records_p): Reject records with
21165         zero-size bit-fields at the end.
21166
21167 2010-03-04  Mike Stump  <mikestump@comcast.net>
21168
21169         * Makefile.in (TAGS): Remove *.y.
21170
21171 2010-03-04  Richard Guenther  <rguenther@suse.de>
21172
21173         PR tree-optimization/40761
21174         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21175         in reverse order.
21176         (my_rev_post_order_compute): New function.
21177         (init_pre): Call it.
21178
21179 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21180
21181         PR middle-end/43209
21182         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21183         decrease the cost of an IV candidate when the cost is infinite.
21184
21185 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21186
21187         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21188         Use '3DNow!' for the extension of that name, ensure normal space
21189         after the string.
21190         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21191
21192 2010-03-03  Jeff Law  <law@redhat.com>
21193
21194         * PR middle-end/32693
21195         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21196         than gen_rtx_SUBREG.
21197         (extract_bit_field_1): Likewise.
21198
21199 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
21200
21201         * doc/sourcebuild.texi (Test directives): Document that arguments
21202         include-opts and exclude-opts are now optional for dg-skip-if,
21203         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21204
21205 2010-03-03  Jason Merrill  <jason@redhat.com>
21206
21207         PR c++/12909
21208         * cgraph.h (varpool_node): Add extra_name field.
21209         * varpool.c (varpool_extra_name_alias): New.
21210         (varpool_assemble_decl): Emit extra name aliases.
21211         (varpool_mark_needed_node): Look past an extra name alias.
21212         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21213         * lto-streamer-in.c (lto_input_tree): Read it.
21214         * lto-streamer-out.c (output_unreferenced_globals): Write it.
21215
21216 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21217
21218         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21219         (sparc*-*-solaris2*): ...this.
21220
21221 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
21222
21223         PR debug/43229
21224         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21225         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
21226         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21227         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21228
21229         PR debug/43237
21230         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21231         fallthrough to default handling, just with want_address 0 instead of 2.
21232         For single element lists, add_AT_loc directly, otherwise create an
21233         artificial variable DIE and stick location list to it.
21234
21235         PR debug/43177
21236         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21237         (VAL_EXPR_HAS_REVERSE): Define.
21238         (reverse_op): New function.
21239         (add_stores): For reversible operations add an extra MO_VAL_USE.
21240
21241 2010-03-02  Jason Merrill  <jason@redhat.com>
21242
21243         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21244
21245 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
21246
21247         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21248         (sparc64-*-linux*): Likewise.
21249         (sparc64-*-solaris2*): Include assembler files before linker ones.
21250         (sparc-*-solaris2*): Simplify and reorder to match previous case.
21251         * config/sparc/gas.h: Delete.
21252         * config/sparc/sol2-64.h: Add copyright notice.
21253         * config/sparc/sol2-gas-bi.h: Likewise.
21254         * config/sparc/sol2-gld.h: Likewise.
21255         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21256         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21257         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21258         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21259         (sparc_elf_asm_named_section): Rename into...
21260         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
21261
21262 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
21263
21264         * config/alpha/alpha.c (override_options): Fix -mtune error message.
21265
21266 2010-03-02  Jeff Law  <law@redhat.com>
21267
21268         PR middle-end/42431
21269         * reload1.c (rtx_p, substitute_stack): Declare.
21270         (substitute): Record addresses of changed rtxs.
21271         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21272         Restore the original rtx when complete.
21273         (reload): Free subsitute_stack when complete.
21274
21275 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
21276
21277         * doc/gccint.texi (menu): Add Testsuites as a chapter.
21278         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21279         new chapter.
21280         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21281         LTO Testing, gcov Testing, profopt Testing, compat Testing,
21282         Torture Tests): Change from subsection to section.
21283
21284 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
21285             Steven Bosscher  <steven@gcc.gnu.org>
21286
21287         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21288         instead of bb.
21289
21290 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
21291
21292         PR middle-end/42640
21293         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21294         the assignment from the new induction variable to the assignment
21295         of the value from the original loop PHI function.
21296
21297 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
21298             Daniel Jacobowitz  <dan@codesourcery.com>
21299
21300         * doc/sourcebuild.texi (Test directives): Clarify options to
21301         dg-skip-if.
21302
21303 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21304
21305         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21306         Disable cfi directives unless GCC and gas agree on using read-only
21307         .eh_frame sections for 64-bit.
21308         * configure: Regenerate.
21309
21310 2010-03-01  Richard Guenther  <rguenther@suse.de>
21311
21312         PR tree-optimization/43220
21313         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21314         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21315
21316 2010-03-01  Richard Guenther  <rguenther@suse.de>
21317             Martin Jambor  <mjambor@suse.cz>
21318
21319         PR middle-end/41250
21320         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21321         gimplified parameters.
21322
21323 2010-03-01  Christian Bruel  <christian.bruel@st.com>
21324
21325         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21326
21327 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21328
21329         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21330
21331 2010-03-01  Richard Guenther  <rguenther@suse.de>
21332
21333         PR middle-end/43213
21334         * expr.c (expand_assignment): Use the alias-oracle to tell
21335         if the rhs aliases the result decl.
21336
21337 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21338
21339         PR pch/14940
21340         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21341         to sol_gt_pch_get_address.
21342         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21343         64-bit, SPARC and x86.
21344         (sol_gt_pch_get_address): New function.
21345
21346 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
21347
21348         * toplev.h (inform_n, error_n): Declare.
21349         * diagnostic.c (inform_n, error_n): New function.
21350
21351 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
21352
21353         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21354         has no rtl yet when processing local_decls, queue it and recheck
21355         if deferred stack allocation hasn't assigned it rtl.
21356
21357 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21358
21359         * config/sh/sh.c (unspec_bbr_uid): New.
21360         (gen_block_redirect): Use it instead of INSN_UID.
21361         (gen_far_branch): Likewise.
21362
21363 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21364
21365         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21366         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21367
21368 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21369
21370         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21371         (Warning Options): -Wno-conversion-null is valid for
21372         Objective-C++ as well.
21373         * doc/tm.texi (Named Address Spaces): Likewise.
21374         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21375         * doc/tree-ssa.texi (Tree SSA): Likewise.
21376
21377 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21378
21379         PR bootstrap/43202
21380         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21381         by default.  Don't set the default arch for
21382         i[34567]86-*-darwin*|x86_64-*-darwin*.
21383
21384 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21385
21386         PR bootstrap/43202
21387         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21388         default.  Set the default 32bit/64bit archs with $with_arch
21389         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21390
21391 2010-02-27  Richard Guenther  <rguenther@suse.de>
21392
21393         PR tree-optimization/43186
21394         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21395         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21396         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21397         unroller iterations.
21398
21399 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21400
21401         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21402         required and i[34567]86-*-* targets don't support 64bit ISA.
21403
21404 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21405
21406         PR ada/43096
21407         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21408         the same alias set.
21409
21410 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21411
21412         * config.gcc: Set the default arch at least to Prescott for
21413         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21414         if SSE math is enabled.
21415
21416 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21417
21418         * diagnostic.c (diagnostic_initialize): Update.
21419         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21420         informative notes.
21421         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21422         (diagnostic_inhibit_notes): New.
21423         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21424
21425 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21426
21427         PR c/20631
21428         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21429         * doc/standards.texi: Likewise.
21430         * doc/extend.texi: Likewise.
21431         * doc/trouble.texi: Likewise.
21432         * doc/cppopts.texi: Likewise.
21433         * doc/install.texi: Likewise.
21434         * c.opt (std=c90,std=gnu90): New options.
21435         * c-opts.c (c_common_handle_option): Handle them.
21436
21437 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21438
21439         PR c/24577
21440         * c-decl.c (undeclared_variable): Use an informative note.
21441
21442 2010-02-26  Richard Guenther  <rguenther@suse.de>
21443
21444         PR tree-optimization/43186
21445         * gimple.h (gimple_fold): Remove.
21446         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21447         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21448         Try harder for conditions.
21449
21450 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21451
21452         PR debug/43190
21453         * function.c (used_types_insert): Don't skip through named pointer
21454         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21455         and it is different from the main variant's type.
21456
21457 2010-02-26  Nick Clifton  <nickc@redhat.com>
21458
21459         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21460
21461 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21462
21463         * config.gcc: Support --with-fpmath=sse for x86.
21464
21465         * config/i386/ssemath.h: New.
21466
21467         * doc/install.texi (--with-fpmath=sse): Documented.
21468
21469 2010-02-26  Richard Guenther  <rguenther@suse.de>
21470
21471         PR tree-optimization/43188
21472         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21473         vector types of over-aligned element type.
21474
21475 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21476
21477         PR target/43175
21478         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21479         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21480
21481 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21482
21483         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21484
21485 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21486
21487         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21488         * var-tracking.c: Include diagnostic.h.
21489         (debug_dv): New function.
21490         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21491
21492         PR debug/43160
21493         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21494         (add_value_chain, add_value_chains, remove_value_chain,
21495         remove_value_chains): Handle DEBUG_EXPRs.
21496         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21497
21498         PR debug/43161
21499         * regcprop.c (struct queued_debug_insn_change): New type.
21500         (struct value_data_entry): Add debug_insn_changes field.
21501         (struct value_data): Add n_debug_insn_changes field.
21502         (debug_insn_changes_pool): New variable.
21503         (free_debug_insn_changes, apply_debug_insn_changes,
21504         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21505         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21506         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21507         fields.
21508         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21509         changes for them.
21510         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21511         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21512         changes, call cprop_find_used_regs via note_stores.
21513         (copyprop_hardreg_forward): When copying vd from predecessor
21514         which has any queued DEBUG_INSN changes, make sure the pointers are
21515         cleared.  At the end call df_analyze and then if there are any
21516         DEBUG_INSN changes queued at the end of some basic block for still
21517         live registers, apply them.
21518         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21519
21520 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21521
21522         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21523         (arm*-*-*): Ditto.
21524
21525 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21526
21527         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21528         targets.  Set the default with_cpu/with_arch from arch/cpu.
21529         Allow x86-64 and native for with_cpu/with_arch.
21530
21531 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21532
21533         * ebitmap.c: Change calls to verify_popcount with calls to
21534         sbitmap_verify_popcount.
21535         (ebitmap_clear_bit): Fixed map->cacheindex test and
21536         map>cache update when bit clearing results in an empty
21537         element.
21538
21539 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21540
21541         PR target/43154
21542         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21543         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21544         and support both V2DF and V2DI modes.
21545         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21546         support both V2DF and V2DI modes.
21547         (general): Delete trailing whitespace from a few patterns.
21548
21549         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21550         V2DF/V2DI interleave high/low builtins.
21551
21552         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21553         new VSX builtins.
21554
21555         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21556         interleave high/low functions.
21557
21558 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21559
21560         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21561         #pragma extern_prefix.
21562
21563 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21564
21565         PR debug/43166
21566         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21567         BLKmode, assert op0 is a MEM and just adjust its mode.
21568
21569         PR debug/43165
21570         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21571         if bitpos isn't multiple of mode's bitsize.
21572
21573 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21574
21575         * c.opt (-ftemplate-depth=): New.
21576         (-ftemplate-depth-): Deprecate.
21577         * optc-gen.awk: Handle -ftemplate-depth=.
21578         * opth-gen.awk: Likewise.
21579         * c-opts.c (c_common_handle_option): Likewise.
21580         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21581
21582 2010-02-24  Jason Merrill  <jason@redhat.com>
21583
21584         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21585
21586 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21587
21588         * cfg.c (alloc_aux_for_block): Remove inline.
21589         (alloc_aux_for_edge): Likewise.
21590
21591 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21592
21593         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21594
21595 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21596
21597         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21598         * config/i386/sol2-gas.h: New file.
21599         * config.gcc (i[34567]86-*-solaris2*): Use it.
21600
21601 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21602
21603         PR c/43128
21604         * c-typeck.c (ep_convert_and_check): New.
21605         (build_conditional_expr): Use it.
21606         (build_binary_op): Likewise.
21607
21608 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21609
21610         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21611
21612         PR debug/43150
21613         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21614         bounds even for -O+.
21615         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21616         expr needs to have DECL_NAME set.
21617
21618 2010-02-24  Nick Clifton  <nickc@redhat.com>
21619
21620         * config/mep/mep.c: Include gimple.h.
21621         (mep_function_uses_sp): Delete unused function.
21622         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21623         parameters.  Use unsigned integers to count args.  Return a
21624         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21625
21626 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21627
21628         PR target/43107
21629         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21630         greater or equal to nelt instead of 2 * nelt.
21631         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21632         with nelt - 1.
21633
21634 2010-02-23  Jason Merrill  <jason@redhat.com>
21635
21636         PR debug/42800
21637         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21638         in cfun->local_decls even if they have register types.
21639
21640         PR c++/42837
21641         * stor-layout.c (place_field): Don't warn about unnecessary
21642         DECL_PACKED if the type is packed.
21643
21644 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21645
21646         PR target/43139
21647         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21648         GOTOFF relocs, even when the base reg isn't pic pointer.
21649
21650 2010-02-23  Michael Matz  <matz@suse.de>
21651
21652         PR debug/43077
21653         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21654         (expand_gimple_basic_block): Generate and use debug temps if there
21655         are debug uses left after the last real use of TERed ssa names.
21656         Unlink debug immediate uses when they are expanded.
21657
21658 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21659
21660         PR 43123
21661         * config/i386/i386.c (override_options): Reorganise to provide
21662         better error messages.
21663
21664 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21665
21666         PR middle-end/43083
21667         * graphite-scop-detection.c (create_single_exit_edge): Move
21668         the call to find_single_exit_edge to....
21669         (create_sese_edges): ...here.  Don't handle multiple edges
21670         exiting the function.
21671         (build_graphite_scops): Don't handle multiple edges
21672         exiting the function.
21673
21674 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21675
21676         PR middle-end/43097
21677         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21678         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21679
21680 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21681
21682         PR middle-end/43026
21683         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21684
21685 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21686
21687         PR c++/43126
21688         * c-typeck.c (convert_arguments): Print declaration location.
21689         * c-common.c (validate_nargs): Rename as
21690         builtin_function_validate_nargs.
21691         (check_builtin_function_arguments): Update.
21692
21693 2010-02-22  Richard Guenther  <rguenther@suse.de>
21694
21695         PR lto/43045
21696         * tree-inline.c (declare_return_variable): Use the type of
21697         the call stmt lhs if available.
21698
21699 2010-02-22  Duncan Sands  <baldrick@free.fr>
21700
21701         * passes.c (register_pass): Always consider all pass lists when
21702         ref_pass_instance_number is zero.
21703
21704 2010-02-22  Richard Guenther  <rguenther@suse.de>
21705
21706         PR tree-optimization/42749
21707         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21708         parameter.  Do arithmetic in the original type.
21709         (update_accumulator_with_ops): Likewise.
21710         (adjust_accumulator_values): Adjust.
21711
21712 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21713
21714         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21715         (QI to BLKmode splitter): New splitter.
21716
21717 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21718
21719         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21720         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21721
21722 2010-02-22  Richard Guenther  <rguenther@suse.de>
21723
21724         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21725
21726 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21727
21728         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21729         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21730         ($(T)crti.o, $(T)crtn.o): Remove rules.
21731
21732 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21733
21734         PR fortran/35259
21735         * doc/invoke.texi (-fassociative-math): Document that this
21736         option is automatically enabled for Fortran.
21737
21738 2010-02-20  David S. Miller  <davem@davemloft.net>
21739
21740         * configure.ac: Test if linker and assembler properly support
21741         GOTDATA_OP relocations.
21742         * configure: Rebuild.
21743         * config.in: Likewise.
21744         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21745         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21746         (movsi_high_pic): Likewise.
21747         (movdi_lo_sum_pic): Likewise.
21748         (movdi_high_pic): Likewise.
21749         (movsi_pic_gotdata_op): New pattern.
21750         (movdi_pic_gotdata_op): Likewise.
21751         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21752         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21753
21754 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21755
21756         PR target/43067
21757         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21758         attribute to ssemul.
21759         (xop_mulv2div2di3_high): Ditto.
21760
21761 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21762
21763         PR c++/35669
21764         * c.opt (Wconversion-null): New option.
21765         * doc/invoke.texi (Wconversion-null): Document.
21766
21767 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21768
21769         * common.opt (Wlarger-than-): Add Undocumented.
21770
21771 2010-02-19  Mike Stump  <mikestump@comcast.net>
21772
21773         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21774
21775 2010-02-19  Jason Merrill  <jason@redhat.com>
21776
21777         PR target/40332
21778         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21779         * configure: Likewise.
21780
21781 2010-02-20  Alan Modra  <amodra@gmail.com>
21782
21783         PR middle-end/42344
21784         * cgraph.h (cgraph_make_decl_local): Declare.
21785         * cgraph.c (cgraph_make_decl_local): New function.
21786         (cgraph_make_node_local): Use it.
21787         * cgraphunit.c (cgraph_function_versioning): Likewise.
21788         * ipa.c (function_and_variable_visibility): Likewise.
21789
21790 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21791
21792         PR bootstrap/43121
21793         * except.c (sjlj_emit_function_enter): Don't call
21794         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21795         directly.
21796         * rtl.h (add_reg_br_prob_note): Remove prototype.
21797
21798 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21799
21800         PR 41779
21801         * c-common.c (conversion_warning): Remove widening conversions
21802         before checking the conversion of integers to reals.
21803
21804 2010-02-19  Mike Stump  <mikestump@comcast.net>
21805
21806         PR middle-end/43125
21807         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21808
21809         PR objc/43061
21810         * cgraphunit.c (process_function_and_variable_attributes): Check
21811         DECL_PRESERVE_P instead of looking up attribute "used".
21812         * ipa-pure-const.c (check_decl): Likewise.
21813         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21814         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21815         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21816         instead of attribute "used".
21817         * config/sol2-c.c (solaris_pragma_init): Likewise.
21818         (solaris_pragma_fini): Likewise.
21819
21820 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21821
21822         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21823         Use XCNEW instead of xcalloc.
21824         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21825         XNEW instead of xmalloc.
21826         (get_fields): Use XNEWVEC instead of xmalloc.
21827
21828         PR debug/43084
21829         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21830         populate vars array.
21831         (create_new_general_access): For debug stmts just reset value.
21832         (get_stmt_accesses): For accesses within debug stmts just record them
21833         using add_access_to_acc_sites instead of preventing the peeling or
21834         counting them as accesses.
21835
21836         PR middle-end/42233
21837         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21838
21839 2010-02-19  Richard Guenther  <rguenther@suse.de>
21840
21841         PR tree-optimization/42916
21842         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21843         instructions.
21844
21845 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21846
21847         * configure.ac: Replace all uses of changequote in macro arguments
21848         with proper quoting.
21849
21850 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21851
21852         PR middle-end/42233
21853         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21854
21855 2010-02-19  Richard Guenther  <rguenther@suse.de>
21856
21857         PR tree-optimization/42944
21858         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21859         test for aliasing with errno.
21860
21861 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21862
21863         PR middle-end/42233
21864         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21865         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21866         * dojump.c: Include output.h.
21867         (inv): New inline function.
21868         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21869         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21870         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21871         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21872         argument, pass it down to other calls.
21873         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21874         add REG_BR_PROB note to the conditional jump.
21875         * cfgexpand.c (add_reg_br_prob_note): Removed.
21876         (expand_gimple_cond): Don't call it, add the probability
21877         as last argument to jumpif_1/jumpifnot_1.
21878         * Makefile.in (dojump.o): Depend on output.h.
21879         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21880         callers.
21881         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21882         * stmt.c (do_jump_if_equal): Likewise.
21883         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21884         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21885         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21886         Likewise.
21887         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21888         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21889         jumpifnot_1 callers.
21890         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21891         callers.
21892         (store_expr): Adjust jumpifnot caller.
21893         (store_constructor): Adjust jumpif caller.
21894
21895         PR middle-end/42233
21896         * gimplify.c (gimple_boolify): For __builtin_expect call
21897         gimple_boolify also on its first argument.
21898
21899 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21900
21901         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21902         changequote block.
21903         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21904         * configure: Regenerated.
21905
21906 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21907
21908         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21909         lang_hooks.types_compatible_p instead of comptypes.
21910
21911 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21912
21913         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21914         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21915         if __prefer_thumb__ is defined.
21916
21917 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21918
21919         PR tree-optimization/43066
21920         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21921         array with zero-sized element type.
21922
21923 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21924
21925         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21926         rtx, allocate struct var_loc_node here and return it to the
21927         caller, and only if it is actually needed.
21928         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21929         move it earlier and return immediately if it returns NULL.
21930
21931 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21932
21933         * config/sparc/gas.h: New file.  Restore
21934         TARGET_ASM_NAMED_SECTION to its ELF default.
21935         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21936         check !HAVE_GNU_AS.
21937         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21938         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21939         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21940         after sparc/sysv4.h.
21941
21942 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21943
21944         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21945
21946 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21947
21948         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21949         patterns from predicated pattern.
21950
21951 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21952
21953         PR target/43103
21954         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21955         for insn mnemonic suffix.
21956
21957 2010-02-17  Richard Guenther  <rguenther@suse.de>
21958
21959         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21960         to loop PHI nodes.
21961
21962 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21963
21964         PR debug/42918
21965         * caller-save.c (save_call_clobbered_regs): If BB ends with
21966         a DEBUG_INSN, move any notes in between last real insn and the last
21967         DEBUG_INSN after the last DEBUG_INSN.
21968
21969 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21970
21971         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21972         Fix return type.  Fix argument type.  Explain meaning of return value.
21973
21974 2010-02-16  Richard Guenther  <rguenther@suse.de>
21975
21976         PR tree-optimization/41043
21977         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21978         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21979         statements ...
21980         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21981
21982 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21983
21984         PR tree-optimization/43074
21985         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21986         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21987         vectorizable cycles in hybrid SLP check.
21988         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21989
21990 2010-02-16  Richard Guenther  <rguenther@suse.de>
21991
21992         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21993         (true_dependence): If memrefs_conflict_p computes must-alias
21994         trust it.  Move TBAA check after offset-based disambiguation.
21995         (canon_true_dependence): Likewise.
21996
21997 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21998
21999         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
22000         * doc/invoke.texi: Document it.
22001         * var-tracking.c: Include toplev.h and params.h.
22002         (vt_find_locations): Return bool indicating success.  Compute
22003         hash sizes unconditionally.  Check new parameter, report.
22004         (variable_tracking_main_1): Check vt_find_locations results and
22005         retry.  Renamed from...
22006         (variable_tracking_main): ... this.  New wrapper to preserve
22007         flag_var_tracking_assignments.
22008         * Makefile.in (var-tracking.o): Adjust dependencies.
22009
22010 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
22011             Jakub Jelinek  <jakub@redhat.com>
22012
22013         PR target/42854
22014         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
22015         if weak_import attribute is present.
22016         * config/darwin.c (machopic_select_section): Likewise.
22017
22018 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
22019
22020         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
22021         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
22022         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
22023         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
22024
22025         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
22026         types.
22027
22028         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22029         Fix argument types.
22030
22031         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
22032         Rewrite text to refer to the names.
22033
22034 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
22035
22036         * config/i386/i386-builtin-types.def
22037         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
22038         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
22039         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
22040         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
22041         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
22042         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
22043         IX86_BUILTIN_VPERMIL2PS256.
22044         (MULTI_ARG_4_DF2_DI_I): Defined.
22045         (MULTI_ARG_4_DF2_DI_I1): Defined.
22046         (MULTI_ARG_4_SF2_SI_I): Defined.
22047         (MULTI_ARG_4_SF2_SI_I1): Defined.
22048         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
22049         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
22050         __builtin_ia32_vpermil2ps256.
22051         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22052         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22053         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
22054         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22055         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22056         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
22057         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
22058         CODE_FOR_xop_vpermil2v8sf3.
22059         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
22060         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
22061         * config/i386/xopintrin.h (_mm_permute2_pd): New.
22062         (_mm256_permute2_pd): New.
22063         (_mm_permute2_ps): New.
22064         (_mm256_permute2_ps): New.
22065
22066 2010-02-15  Nick Clifton  <nickc@redhat.com>
22067
22068         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
22069         boolean parameters.  Use emit_jump_insn when emitting a pop
22070         instruction containing a return insn.
22071         (push): Use 'true' rather than '1' as second parameter to F.
22072         (h8300_expand_prologue): Likewise.
22073         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
22074         (h8300_expand_epilogue): Likewise.
22075
22076 2010-02-15  Richard Guenther  <rguenther@suse.de>
22077
22078         PR middle-end/43068
22079         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
22080         if that is zero.
22081
22082 2010-02-15  Nick Clifton  <nickc@redhat.com>
22083
22084         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
22085         delta.
22086
22087 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
22088
22089         * intl.c (fake_ngettext): New function.
22090         * intl.h (fake_ngettext): Declare.
22091         (ngettext): Define macro.
22092         * collect2.c (notice_translated): New function.
22093         (main): Use notice_translated and ngettext.
22094         * collect2.h (notice_translated): Declare.
22095
22096 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
22097
22098         * reorg.c (delete_computation): Comment fixes.
22099         * caller-save.c (setup_save_areas): Idem.
22100         * sel-sched-dump.c (dump_lv_set): Idem.
22101         * rtl.def: Idem.
22102
22103 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22104
22105         * config/s390/s390.c (s390_sched_init): New function.
22106         (TARGET_SCHED_INIT): Target hook defined.
22107
22108 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
22109             Jack Howarth  <howarth@bromo.med.uc.edu>
22110             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
22111
22112         PR target/42982
22113         Partial revert of unintended change in fix for PR41605.
22114         * config/darwin.h: Fix typo.
22115         * config/darwin9.h: Same.
22116
22117 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22118
22119         * c-pch.c (pch_init): Clear v.
22120
22121 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22122
22123         PR middle-end/42930
22124         * graphite-scop-detection.c (graphite_can_represent_scev): Call
22125         graphite_can_represent_init for MULT_EXPR.
22126
22127 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22128
22129         PR middle-end/42914
22130         PR middle-end/42530
22131         * graphite-sese-to-poly.c (remove_phi): New.
22132         (translate_scalar_reduction_to_array): Call remove_phi.
22133
22134 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22135
22136         PR middle-end/42771
22137         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
22138         * graphite-clast-to-gimple.h (gloog): Update declaration.
22139         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
22140         * graphite-poly.h (struct poly_bb): Add missing comments.
22141         (struct scop): Add poly_scop_p field.
22142         (POLY_SCOP_P): New.
22143         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
22144         * graphite.c (graphite_transform_loops): Build the polyhedral
22145         representation for each scop before code generation.
22146         * sese.c (rename_variables_in_operand): Removed.
22147         (rename_variables_in_expr): Return the renamed expression.
22148         (rename_sese_parameters): New.
22149         * sese.h (rename_sese_parameters): Declared.
22150
22151 2010-02-11  Richard Guenther  <rguenther@suse.de>
22152
22153         PR tree-optimization/42998
22154         * tree-ssa-pre.c (create_expression_by_pieces): Treat
22155         POINTER_PLUS_EXPR properly.
22156
22157 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22158             Changpeng Fang  <changpeng.fang@amd.com>
22159
22160         PR middle-end/40886
22161         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
22162         the cost of an IV candidate when the IV is used in a test against zero.
22163
22164         * gcc.dg/tree-ssa/ivopts-3.c: New.
22165
22166 2010-02-11  Richard Guenther  <rguenther@suse.de>
22167
22168         PR lto/41664
22169         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
22170         pointer-vs-decl case by swapping refs.  Handle some cases
22171         of pointer-vs-decl disambiguations more conservatively.
22172         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22173         to false after expanding.
22174
22175 2010-02-11  Richard Guenther  <rguenther@suse.de>
22176
22177         PR driver/43021
22178         * gcc.c (process_command): Handle LTO file@offset case more
22179         appropriately.
22180
22181 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22182
22183         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22184         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
22185         of DEBUG_INSNs.
22186         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22187
22188         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22189         if MEM's mode size isn't DWARF2_ADDR_SIZE.
22190         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22191         Optimize eq/ne comparisons when both arguments are known to be
22192         zero-extended.
22193         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22194         Don't mask operands unnecessarily if they are known to be already
22195         zero-extended.
22196
22197 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22198
22199         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22200         instead of loop.
22201
22202 2010-02-10  Richard Guenther  <rguenther@suse.de>
22203
22204         PR tree-optimization/43017
22205         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22206         for wrapping signed arithmetic.
22207
22208 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22209
22210         PR debug/43010
22211         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22212         if no debug info should be emitted for it.
22213
22214 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22215
22216         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22217         note when flag_exceptions is set.
22218
22219 2010-02-10  Duncan Sands  <baldrick@free.fr>
22220
22221         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22222
22223 2010-02-10  Richard Guenther  <rguenther@suse.de>
22224
22225         PR c/43007
22226         * tree.c (get_unwidened): Handle constants.
22227         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22228
22229 2010-02-10  Martin Jambor  <mjambor@suse.cz>
22230
22231         PR lto/42985
22232         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22233         check for variable argument counts independently.
22234
22235 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22236
22237         PR target/42841
22238         * config/sh/sh.c (find_barrier): Increase length for non delayed
22239         conditional branches.
22240
22241 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22242
22243         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22244
22245 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22246
22247         * builtins.c (set_builtin_user_assembler_name): Also handle
22248         ffs if int is smaller than word.
22249
22250 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
22251
22252         PR middle-end/42973
22253         * ira-conflicts.c (get_dup): Remove.
22254         (process_reg_shuffles): Add new parameter.  Use it as an
22255         additional guard for copy generation.
22256         (add_insn_allocno_copies): Rewrite.
22257
22258 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
22259
22260         * common.opt (fsched2-use-traces): Preserved for backward
22261         compatibility.
22262         * doc/invoke.texi: Remove the documentation about option
22263         -fsched2-use-traces.
22264         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22265         flag_sched2_use_traces.
22266         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22267         the backward compatibility flag section.
22268
22269 2010-02-09  Richard Guenther  <rguenther@suse.de>
22270
22271         PR tree-optimization/43008
22272         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22273         make HEAP variables initialized from global memory if they
22274         are not known builtin functions.
22275         (find_func_aliases): Adjust.
22276
22277 2010-02-09  Richard Guenther  <rguenther@suse.de>
22278
22279         PR tree-optimization/43000
22280         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22281         arithmetic manually.
22282
22283 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
22284
22285         PR tree-optimization/42931
22286         * tree-loop-linear.c (try_interchange_loops): Don't call
22287         double_int_mul if estimated_loop_iterations failed.
22288
22289 2010-02-08  Martin Jambor  <mjambor@suse.cz>
22290
22291         PR middle-end/42898
22292         * tree-sra.c (build_accesses_from_assign): Do not mark in
22293         should_scalarize_away_bitmap if stmt has volatile ops.
22294         (sra_modify_assign): Do not process assigns piecemeal if if stmt
22295         has volatile ops.
22296
22297 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22298
22299         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22300
22301 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
22302
22303         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22304         before the pattern.
22305
22306 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
22307
22308         PR middle-end/42946
22309         * df-core.c (df_finish_pass): Change type of saved_flags to int.
22310
22311 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22312
22313         PR middle-end/42988
22314         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22315         to unknown_dependence.
22316         (graphite_legal_transform_dr): Handle the unknown_dependence.
22317         (graphite_carried_dependence_level_k): Same.
22318
22319 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22320
22321         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22322
22323 2010-02-07  Richard Guenther  <rguenther@suse.de>
22324
22325         PR middle-end/42991
22326         * expr.c (get_inner_reference): Always initialize *pbitsize.
22327
22328 2010-02-07  Richard Guenther  <rguenther@suse.de>
22329
22330         PR middle-end/42956
22331         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22332         new ARRAY_REFs on variable size element or minimal index arrays.
22333         Complete.
22334         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22335         gimple_fold_indirect_ref.
22336
22337 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
22338
22339         PR target/42957
22340         * arm.c (arm_override_options): Just return if the user has specified
22341         an invalid fpu name.
22342
22343 2010-02-03  Jason Merrill  <jason@redhat.com>
22344
22345         PR c++/42870
22346         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22347         i386_pe_maybe_record_exported_symbol.
22348
22349 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
22350
22351         PR target/42924
22352         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22353         (pa_delegitimize_address): New function.
22354
22355 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
22356
22357         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22358         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22359
22360 2010-02-05  Richard Guenther  <rguenther@suse.de>
22361
22362         PR lto/42762
22363         * lto-streamer-in.c (get_resolution): Deal with references
22364         to undefined functions.
22365
22366 2010-02-05  Richard Guenther  <rguenther@suse.de>
22367
22368         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22369         (fold_const_aggregate_ref): Likewise.
22370         (ccp_fold_stmt): Substitute loads.
22371         (maybe_fold_reference): Verify types before substituting.
22372         Unshare properly.
22373         (fold_gimple_assign): Unshare properly.
22374         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22375
22376 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22377
22378         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22379         for rs6000_gen_cell_microcode.
22380
22381 2010-02-04  Richard Guenther  <rguenther@suse.de>
22382
22383         PR rtl-optimization/42952
22384         * dse.c (const_or_frame_p): Remove MEM handling.
22385
22386 2010-02-04  Nick Clifton  <nickc@redhat.com>
22387
22388         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22389         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22390         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22391         (mn10300_asm_output_mi_thunk): New function.
22392         (mn10300_can_output_mu_thunk): New function.
22393         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22394         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22395         (FUNCTION_ARG): Delete incorrect comment.
22396
22397 2010-02-03  Jason Merrill  <jason@redhat.com>
22398
22399         PR c++/40138
22400         * fold-const.c (operand_equal_p): Handle erroneous types.
22401
22402 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22403
22404         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22405
22406 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22407
22408         PR rtl-optimization/42941
22409         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22410         of xmalloc.
22411
22412 2010-02-03  Jason Merrill  <jason@redhat.com>
22413
22414         PR c++/35652
22415         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22416
22417 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22418
22419         PR debug/42896
22420         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22421         (cselib_reset_table): Renamed from...
22422         (cselib_reset_table_with_next_value): ... this.
22423         (cselib_get_next_uid): Renamed from...
22424         (cselib_get_next_unknown_value): ... this.
22425         * cselib.c (next_uid): Renamed from...
22426         (next_unknown_value): ... this.
22427         (cselib_clear_table): Adjust.
22428         (cselib_reset_table): Adjust.  Renamed from...
22429         (cselib_reset_table_with_next_value): ... this.
22430         (cselib_get_next_uid): Adjust.  Renamed from...
22431         (cselib_get_next_unknown_value): ... this.
22432         (get_value_hash): Use hash.
22433         (cselib_hash_rtx): Likewise.
22434         (new_cselib_val): Adjust.  Set and dump uid.
22435         (cselib_lookup_mem): Pass next_uid as hash.
22436         (cselib_subst_to_values): Likewise.
22437         (cselib_log_lookup): Dump uid.
22438         (cselib_lookup): Pass next_uid as hash.  Adjust.
22439         (cselib_process_insn): Adjust.
22440         (cselib_init): Initialize next_uid.
22441         (cselib_finish): Adjust.
22442         (dump_cselib_table): Likewise.
22443         * dse.c (canon_address): Dump value uid.
22444         * print-rtl.c (print_rtx): Print value uid.
22445         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22446         (dvuid): New type.
22447         (dv_uid): New function, sort of renamed from...
22448         (dv_htab_hash): ... this, reimplemented in terms of it and...
22449         (dv_uid2hash): ... this.  New.
22450         (variable_htab_eq): Drop excess assertions.
22451         (tie_break_pointers): Removed.
22452         (canon_value_cmp): Compare uids.
22453         (variable_post_merge_New_vals): Print uids.
22454         (vt_add_function_parameters): Adjust.
22455         (vt_initialize): Reset table.  Adjust.
22456
22457 2010-02-03  Richard Guenther  <rguenther@suse.de>
22458
22459         PR tree-optimization/42944
22460         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22461         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22462         malloc and calloc clobbering errno.
22463
22464 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22465
22466         * doc/invoke.texi: Fix name of sched1 dump.
22467
22468         * opts.c (decode_options): Set flag_tree_switch_conversion
22469         only conditionally on optimize >= 2.
22470
22471         * gcse.c: Assorted comment fixes in pass description.
22472
22473 2010-02-03  Anthony Green  <green@moxielogic.com>
22474
22475         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22476         nop padding in order to maintain alignment of storage location of
22477         target function address.
22478         (moxie_trampoline_init): Store target function address at newly
22479         aligned location.
22480         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22481         to 32.
22482         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22483
22484 2010-02-03  Richard Guenther  <rguenther@suse.de>
22485
22486         PR middle-end/42927
22487         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22488
22489 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22490
22491         * config.gcc: Reenable check for obsolete targets.
22492         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22493         mips-sgi-irix6.[0-4]*.
22494
22495 2010-02-02  Nick Clifton  <nickc@redhat.com>
22496
22497         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22498         constant size of 4 as being the same as 0.
22499         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22500         can take values in the range 0..4.
22501
22502 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22503
22504         PR java/41991
22505         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22506         as _darwin10_Unwind_FindEnclosingFunction().
22507         * libgcc-libsystem.ver: New.
22508
22509 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22510
22511         PR target/41399
22512         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22513         implicitly set registers.
22514
22515 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22516
22517         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22518         (arm_override_options): Allow automatic selection of the thread
22519         pointer register if thumb2.
22520         (legitimize_pic_address): Improve code sequences for Thumb2.
22521         (arm_call_tls_get_addr): Likewise.
22522         (legitimize_tls_address): Likewise.
22523         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22524         (pic_load_addr_32bit): ... this.  New named pattern.
22525         * thumb2.md (pic_load_addr_thumb2): Delete.
22526         (pic_load_dot_plus_four): Delete.
22527         (tls_load_dot_plus_four): New named pattern.
22528
22529 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22530
22531         PR libgomp/29986
22532         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22533         Document fix for TLS bug.
22534
22535 2010-01-31  Richard Guenther  <rguenther@suse.de>
22536
22537         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22538         conservatively correct.
22539
22540 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22541
22542         PR target/42850
22543         Revert:
22544         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22545
22546         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22547
22548 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22549
22550         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22551
22552 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22553
22554         * config.gcc: Adjust order of makefile fragments for mingw targets.
22555
22556 2010-01-31  Richard Guenther  <rguenther@suse.de>
22557
22558         PR middle-end/42898
22559         * gimplify.c (gimplify_init_constructor): For volatile LHS
22560         initialize a temporary.
22561
22562 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22563
22564         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22565         --with-headers
22566         * configure: Regenerate.
22567
22568 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22569
22570         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22571         the same alias set and their sizes different constantness.
22572         (aliasing_component_refs_p): Revert 2009-10-24 change.
22573
22574 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22575
22576         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22577         unused.
22578
22579 2010-01-29  Richard Guenther  <rguenther@suse.de>
22580
22581         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22582         Assert we successfully updated the call.
22583
22584 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22585
22586         PR rtl-optimization/42889
22587         * df.h (df_set_bb_dirty_nonlr): New prototype.
22588         * df-core.c (df_set_bb_dirty_nonlr): New function.
22589         * df-scan.c (df_insn_rescan): Call it instead of
22590         df_set_bb_dirty for DEBUG_INSNs.
22591
22592 2010-01-29  Richard Guenther  <rguenther@suse.de>
22593
22594         PR middle-end/37448
22595         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22596         quadratic behavior in most cases.
22597
22598 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22599
22600         PR target/42891
22601         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22602         in the call to gen_x86_movsicc_0_m1.
22603
22604 2010-01-28  Richard Guenther  <rguenther@suse.de>
22605
22606         PR tree-optimization/42871
22607         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22608
22609 2010-01-28  Richard Guenther  <rguenther@suse.de>
22610
22611         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22612         into call arguments.
22613
22614 2010-01-28  Richard Guenther  <rguenther@suse.de>
22615
22616         PR middle-end/42883
22617         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22618         the forwarder if the destination is an EH landing pad.
22619
22620 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22621
22622         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22623         block list passed to gimple_duplicate_sese_tail.
22624         (parallelize_loops): Avoid parallelization when the function
22625         has_nonlocal_label.
22626         Avoid parallelization when the preheader is IRREDUCIBLE.
22627         Try to optimize when estimated_loop_iterations_int is unresolved.
22628         Add the loop's location to the dump file.
22629         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22630         (gimple_duplicate_sese_tail): Remove the check for the latch.
22631         Redirect nexits to the exit block.
22632         Remove handling of the incoming edges to the latch.
22633         Redirect the backedge from the copied latch to the exit bb.
22634
22635 2010-01-28  Michael Matz  <matz@suse.de>
22636
22637         PR target/42881
22638         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22639         Wrap force_reg into a sequence, emit it before user.
22640
22641 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22642
22643         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22644         (arm_rev): New.
22645         (arm_legacy_rev): Likewise.
22646         (thumb_legacy_rev): Likewise.
22647
22648 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22649
22650         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22651         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22652         on MEM's address failed, try avoid_constant_pool_reference and
22653         recurse if it returned something different.
22654         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22655         address, try avoid_constant_pool_reference and recurse if it
22656         returned something different.
22657         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22658         address and avoid_constant_pool_reference returned something
22659         different, don't set have_address.
22660
22661 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22662
22663         PR debug/42861
22664         * var-tracking.c (val_store): Add modified argument, obey it.
22665         Adjust callers.
22666         (count_uses): Move down logging of main.
22667         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22668         don't need resolution.
22669         (emit_notes_in_bb): Likewise.
22670
22671 2010-01-27  Richard Guenther  <rguenther@suse.de>
22672
22673         PR middle-end/42878
22674         * tree-inline.c (remap_decl): Delay remapping of SSA name
22675         default definitions until we need them.
22676
22677 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22678
22679         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22680         (rs6000_delegitimize_address): New function.
22681
22682         * config/s390/s390.c (s390_delegitimize_address): Call
22683         delegitimize_mem_from_attrs.
22684
22685         PR middle-end/42874
22686         * tree-inline.c (cannot_copy_type_1): Removed.
22687         (copy_forbidden): Don't forbid copying of functions containing
22688         records/unions with variable length fields.
22689
22690 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22691
22692         Revert:
22693         PR target/42841
22694         * config/sh/sh.c (find_barrier): Increase length for non delayed
22695         conditional branches.
22696
22697 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22698
22699         * configure.ac (gnu-unique-object): Fix ldd version check.
22700         * configure: Regenerate.
22701
22702 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22703
22704         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22705         HAVE_GNU_AS value.
22706         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22707         Test for HAVE_GNU_AS value.
22708
22709 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22710
22711         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22712         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22713         INT64_TYPE): Define.
22714         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22715         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22716         INT_LEAST64_TYPE): Define.
22717         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22718         UINT_LEAST64_TYPE): Define.
22719         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22720         INT_FAST64_TYPE): Define.
22721         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22722         UINT_FAST64_TYPE): Define.
22723         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22724         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22725         (SIG_ATOMIC_TYPE): Define.
22726
22727 2010-01-26  Richard Guenther  <rguenther@suse.de>
22728
22729         * df-scan.c (df_scan_set_bb_info): Remove assert.
22730         (df_insn_rescan_debug_internal): Merge asserts.
22731         (df_install_ref): Likewise.
22732         (df_mark_reg): Use bitmap_set_range.
22733         (df_hard_reg_used_p): Remove assert.
22734         (df_hard_reg_used_count): Likewise.
22735
22736 2010-01-26  Richard Guenther  <rguenther@suse.de>
22737
22738         PR rtl-optimization/42685
22739         * web.c (web_main): Ignore DEBUG_INSNs.
22740
22741 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22742
22743         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22744
22745         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22746         Fix types of fndecl and arglist parameters.
22747
22748 2010-01-26  Richard Guenther  <rguenther@suse.de>
22749
22750         PR middle-end/42806
22751         * tree-eh.c (unsplit_eh): Skip debug insns.
22752
22753 2010-01-26  Richard Guenther  <rguenther@suse.de>
22754
22755         PR tree-optimization/42250
22756         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22757
22758 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22759
22760         PR fortran/42866
22761         * omp-low.c (expand_omp_sections): Only use single_pred if
22762         l2_bb is single_pred_p.
22763
22764 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22765
22766         PR target/42841
22767         * config/sh/sh.c (find_barrier): Increase length for non delayed
22768         conditional branches.
22769         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22770
22771 2010-01-24  David S. Miller  <davem@davemloft.net>
22772
22773         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22774         define if not using GAS.
22775         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22776         Likewise.  Delete SECTION_MERGE code, which is only applicable
22777         when using GAS.
22778
22779 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22780
22781         PR c++/42748
22782         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22783         mangling of va_list in system headers.
22784
22785 2010-01-23  Toon Moene  <toon@moene.org>
22786
22787         * tree-predcom.c (combine_chains): Return NULL, not false.
22788
22789 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22790
22791         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22792         initialization of variable res to agree with return type.
22793
22794 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22795
22796         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22797         * tree-sra.c: Add include of expr.h.
22798
22799 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22800
22801         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22802         insert the debug stmt on the single non-EH edge from the stmt.
22803
22804 2010-01-22  Richard Henderson  <rth@redhat.com>
22805
22806         PR tree-opt/42833
22807         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22808         the RHS until after generate_subtree_copies has insertted its
22809         code before the current statement.
22810
22811 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22812
22813         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22814
22815         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22816
22817 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22818
22819         PR tree-optimization/42585
22820         * tree-sra.c (struct access): New field grp_total_scalarization.
22821         (dump_access): Dump the new field.
22822         (should_scalarize_away_bitmap): New variable.
22823         (cannot_scalarize_away_bitmap): Likewise.
22824         (sra_initialize): Allocate new bitmaps.
22825         (sra_deinitialize): Free new bitmaps.
22826         (create_access_1): New function.
22827         (create_access): Parts moved to create_access_1.
22828         (type_consists_of_records_p): New function.
22829         (completely_scalarize_record): Likewise.
22830         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22831         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22832         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22833         access.
22834         (analyze_all_variable_accesses): Completely scalarize small eligible
22835         records.
22836
22837 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22838
22839         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22840
22841 2010-01-21  Andrew Haley  <aph@redhat.com>
22842
22843         * gcc.c (process_command): Move lang_specific_driver before
22844         setting cc_libexec_prefix.
22845
22846 2010-01-21  Richard Guenther  <rguenther@suse.de>
22847
22848         PR middle-end/19988
22849         * fold-const.c (negate_expr_p): Pretend only negative
22850         real constants are easily negatable.
22851
22852 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22853             Jason Merrill  <jason@redhat.com>
22854
22855         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22856         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22857         * calls.c (initialize argument_information): Handle it.
22858         * c-common.c (handle_transparent_union_attribute): Use new name.
22859         * c-decl.c (finish_struct): Ditto.
22860         * c-typeck.c (type_lists_compatible_p): Ditto.
22861         (convert_for_assignment): Use new name and also handle record.
22862         * function.c (aggregate_value_p): Handle it.
22863         (pass_by_reference): Ditto.
22864         (assign_parm_data_types): Ditto.
22865         * print-tree.c (print_node): Ditto.
22866         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22867         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22868         * tree.c (first_field): New fn.
22869
22870 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22871
22872         PR target/42818
22873         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22874         even when linking statically, for now.
22875
22876 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22877
22878         PR debug/42715
22879         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22880         without a cselib val.
22881         (count_uses): Accept MO_VAL_SET with no val on stores.
22882         (add_stores): Likewise.
22883
22884 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22885
22886         * var-tracking.c (check_value_val): Add a compile time assertion.
22887         (dv_is_decl_p): Simplify.
22888         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22889         gcc_assert if ENABLE_CHECKING.
22890
22891 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22892
22893         PR debug/42782
22894         * var-tracking.c: Include tree-flow.h.
22895         (mem_dies_at_call): New.
22896         (dataflow_set_preserve_mem_locs): Use it.
22897         (dataflow_set_remove_mem_locs): Likewise.
22898         (dump_var): Renamed from dump_variable.  Adjust all callers.
22899         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22900         * Makefile.in (var-tracking.o): Adjust deps.
22901
22902 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22903
22904         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22905
22906 2010-01-20  Richard Guenther  <rguenther@suse.de>
22907
22908         PR tree-optimization/42717
22909         * tree-ssa-dce.c (get_live_post_dom): Remove.
22910         (forward_edge_to_pdom): Take an arbitrary edge to copy
22911         degenerate PHI args from.
22912         (remove_dead_stmt): Use the first post-dominator even if it
22913         does not contain live statements as redirection destination.
22914
22915 2010-01-20  Richard Guenther  <rguenther@suse.de>
22916
22917         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22918
22919 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22920
22921         * sel-sched.c (create_speculation_check): Remove set but not used
22922         variable twin.
22923         (try_transformation_cache): Remove set but not used variable ds.
22924         (calculate_privileged_insns): Remove set but not used variables
22925         cur_insn and min_spec_insn.
22926         (find_best_expr): Remove set but not used variable avail_n.
22927         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22928         variable e.
22929         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22930         false_label.
22931         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22932         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22933         new_scop_exit_edge.
22934
22935 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22936
22937         PR bootstrap/42786
22938         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22939         cpu types.  Add support for *-sse3 cpu types.
22940         (x86_64-*-*): Ditto.
22941
22942 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22943
22944         PR middle-end/42803
22945         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22946         argument, call initializer_constant_valid_p_1 instead of
22947         initializer_constant_valid_p, pass CACHE to it, return NULL
22948         immediately if first call returns NULL.
22949         (initializer_constant_valid_p_1): New function.
22950         (initializer_constant_valid_p): Use it.
22951
22952 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22953
22954         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22955
22956 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22957
22958         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22959         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22960         (loc_list_from_tree): Don't handle unsigned division.  Handle
22961         signed modulo using DW_OP_{over,over,div,mul,minus}.
22962         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22963         modulo instead of signed.
22964
22965 2010-01-20  DJ Delorie  <dj@redhat.com>
22966
22967         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22968         (Fpa): Pass it
22969         (h8300_emit_stack_adjustment): Propogate it.
22970         (push): Pass it.
22971         (h8300_expand_prologue): Likewise.
22972         (h8300_expand_epilogue): Likewise.
22973
22974 2010-01-19  Michael Matz  <matz@suse.de>
22975
22976         PR tree-optimization/41783
22977         * tree-data-ref.c (toplevel): Include flags.h.
22978         (dump_data_dependence_relation):  Also dump the inputs if the
22979         result will be unknown.
22980         (split_constant_offset_1): Look through some conversions.
22981         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22982         the offset from last element is too large.
22983         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22984         (reassociate_to_the_same_stmt): Handle vector registers.
22985         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22986         (e.g. conversions).
22987         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22988         wide_prolog_niters argument, emit widening instructions.
22989         (vect_do_peeling_for_alignment): Adjust caller, use widened
22990         variant of the iteration cound.
22991         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22992
22993 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22994
22995         PR target/38697
22996         * config/arm/neon-testgen.m (emit_automatics): New parameter
22997         features. Adjust for Fixed_return_reg feature.
22998         (test_intrinsic): Call emit_automatics with new feature.
22999         * config/arm/neon.ml: Update copyright years.
23000         (features): New Fixed_return_reg feature.
23001         (ops): Update feature for Vget_low.
23002
23003 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
23004
23005         PR tree-optimization/42719
23006         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
23007         stmt uses.
23008
23009         PR debug/42728
23010         * fwprop.c (all_uses_available_at): Return false if def_set dest
23011         is a REG that is used in def_insn.
23012
23013 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
23014
23015         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
23016
23017         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
23018         Add argument names.
23019
23020         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
23021
23022         * target.h (struct gcc_target) <secondary_reload>: Change type
23023         of last argument to secondary_reload_info *.
23024
23025 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
23026
23027         PR target/42774
23028         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
23029         memory references with unaligned offsets.  Remove CQImode handling.
23030         (unaligned_memory_operand): Return 1 for memory references with
23031         unaligned offsets.  Remove CQImode handling.
23032
23033 2010-01-18  Richard Guenther  <rguenther@suse.de>
23034
23035         PR middle-end/39954
23036         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
23037         builtin calls.
23038
23039 2010-01-18  Richard Guenther  <rguenther@suse.de>
23040
23041         PR tree-optimization/42781
23042         * tree-ssa-structalias.c (find_what_var_points_to): Skip
23043         restrict processing only if the original variable was artificial.
23044
23045 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
23046
23047         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
23048         find number of popped argument bytes.
23049
23050         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
23051         Fix the text that describes the return value for invalid insns.
23052
23053         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
23054
23055         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
23056         Clarify what 'cost of the -dependence' is.  Fix quoting.
23057
23058         * toplev.c (default_get_pch_validity): Rename argument to "sz".
23059         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
23060
23061 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
23062
23063         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23064         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
23065
23066 2010-01-17  Richard Guenther  <rguenther@suse.de>
23067
23068         PR middle-end/42248
23069         * function.c (split_complex_args): Take a VEC to modify.
23070         (assign_parms_augmented_arg_list): Build a VEC instead of
23071         a chain of PARM_DECLs.
23072         (assign_parms_unsplit_complex): Take a VEC of arguments.
23073         Do not fixup unmodified parms.
23074         (assign_parms): Deal with the VEC.
23075         (gimplify_parameters): Likewise.
23076
23077 2010-01-17  Richard Guenther  <rguenther@suse.de>
23078
23079         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
23080         node existence check.
23081         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
23082         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
23083         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
23084         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
23085         (gimple_execute_on_growing_pred): Likewise.
23086
23087 2010-01-17  Richard Guenther  <rguenther@suse.de>
23088
23089         PR tree-optimization/42773
23090         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
23091         (compute_antic_aux): Likewise.
23092         (compute_partial_antic_aux): Likewise.
23093
23094 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
23095
23096         PR debug/42767
23097         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
23098         and US_TRUNCATE.
23099
23100 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
23101
23102         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
23103         appearance.
23104
23105         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
23106         Fix markup for strict argument.
23107
23108         (TARGET_SCHED_REORDER2): Fix argument types.
23109
23110         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
23111         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
23112
23113         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
23114         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
23115
23116         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
23117         Add argument name.
23118
23119         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
23120         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
23121         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23122         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
23123         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
23124
23125         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
23126
23127         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
23128
23129         (TARGET_ASM_RELOC_RW_MASK): Add return type.
23130         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
23131
23132         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
23133
23134         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
23135         Use prototype.
23136
23137         (TARGET_ASM_NAMED_SECTION): Fix argument list.
23138
23139         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
23140         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
23141
23142         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
23143
23144         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
23145
23146         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
23147         referring to it.  Fix language.
23148
23149         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
23150
23151         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
23152
23153         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
23154
23155         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
23156
23157         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
23158         '@var{stream}.  Remove stray 'and'.
23159
23160         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
23161
23162         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
23163
23164         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
23165
23166         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
23167         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
23168
23169         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
23170         Fix description of return value.
23171         Rename argument "sz" to "len."
23172
23173         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23174         Clarify meaning of 'true' return value.
23175
23176         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23177
23178         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23179         rep_mode versus mode_rep.
23180
23181         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23182
23183         (TARGET_BUILTIN_DECL): Fix name.
23184
23185         (TARGET_COMMUTATIVE_P): Fix type of first argument.
23186
23187         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23188
23189         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23190
23191         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23192
23193         (TARGET_RELAXED_ORDERING): Use @deftypevr.
23194
23195         (TARGET_GET_DRAP_RTX): Note that this is a hook.
23196         Clarify language.
23197
23198         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23199         Rename argument tm_fn to md_fn.
23200
23201         (TARGET_OPTION_PRINT): Fix argument list.
23202
23203 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
23204
23205         PR target/42664
23206         * config/i386/i386.c (ix86_fixup_binary_operands):
23207         Revert FMA4 fixup of operands.
23208
23209 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23210
23211         PR gcc/42525
23212         * Makefile.in (write_entries_to_file, install-plugin):
23213         Use \012 instead of \n with tr.
23214
23215 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
23216
23217         * configure.ac (HAVE_AS_REF): New C macro.
23218         * configure: Regenerate.
23219         * config.in: Likewise.
23220         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23221         if HAVE_AS_REF.
23222         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23223         if HAVE_AS_REF.
23224
23225 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
23226
23227         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23228
23229         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23230
23231         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23232
23233         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23234
23235         (TARGET_IN_SMALL_DATA_P): Fix argument type.
23236
23237         (TARGET_BINDS_LOCAL_P): Fix argument type.
23238
23239         (TARGET_ASM_FILE_END): Use prototype.
23240
23241         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23242
23243         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23244
23245         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23246
23247         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23248
23249         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23250         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23251
23252         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23253         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23254
23255         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23256         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23257         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23258         (TARGET_ADDR_SPACE_CONVERT): Likewise.
23259
23260         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23261
23262         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23263
23264         (TARGET_INIT_BUILTINS): Use prototype.
23265
23266         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23267         Put 'const char *' in braces.  Fix parameter types.
23268         (TARGET_INVALID_CONVERSION): Fix parameter types.
23269         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23270         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23271
23272         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23273         Fix argument type.
23274
23275         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23276
23277         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23278
23279 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
23280
23281         * doc/tm.texi (TARGET_HELP): Fix return type.
23282
23283         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23284         in braces.  Fix argument types.
23285
23286         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23287
23288         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23289
23290         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23291
23292         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23293         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23294
23295         (TARGET_MANGLE_TYPE): Fix argument types.
23296
23297         (TARGET_IRA_COVER_CLASSES): Use prototype.
23298
23299         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
23300
23301         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23302
23303         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23304
23305         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23306
23307         (TARGET_CALLEE_COPIES): Fix argument types.
23308
23309         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23310
23311         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23312
23313         (TARGET_FUNCTION_VALUE): Fix argument types.
23314
23315         (TARGET_RETURN_IN_MSB): Fix argument type.
23316
23317         (TARGET_RETURN_IN_MEMORY): Fix argument types.
23318
23319         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23320
23321         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23322
23323         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23324         agree with return type.
23325
23326         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23327
23328 2010-01-15  Jing Yu  <jingyu@google.com>
23329
23330         PR rtl-optimization/42691
23331         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23332         a pseudo to a constant and are merged, and adjust comments.
23333
23334 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23335
23336         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23337
23338 2010-01-15  Richard Guenther  <rguenther@suse.de>
23339
23340         PR middle-end/42739
23341         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23342         labels of computed or non-local gotos to the destination.
23343         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23344         landing pad label is the first label.
23345
23346 2010-01-15  Richard Guenther  <rguenther@suse.de>
23347
23348         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23349
23350 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23351
23352         PR target/42747
23353         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23354         to allow generation of the xssqrtdp instruction on power7.
23355         (sqrtdf2_fpr): Ditto.
23356
23357 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23358
23359         PR middle-end/42674
23360         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23361         functions with noreturn attribute.
23362
23363         PR c++/42608
23364         * varasm.c (declare_weak): Add weak attribute to decl if it
23365         doesn't have one already.
23366         (assemble_external): Only add decls to weak_decls if they also
23367         have weak attribute.
23368
23369 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23370
23371         * var-tracking.c (var_reg_delete): Don't delete the association
23372         between REGs and values or one-part variables if the register
23373         isn't clobbered.
23374
23375 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23376
23377         PR debug/42657
23378         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23379         because its first operand is a non-localized variable.
23380
23381 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23382
23383         PR tree-optimization/42706
23384         * tree-sra.c (encountered_recursive_call): New variable.
23385         (encountered_unchangable_recursive_call): Likewise.
23386         (sra_initialize): Initialize both new variables.
23387         (callsite_has_enough_arguments_p): New function.
23388         (scan_function): Call decl and flags check only for IPA-SRA, check
23389         whether there is a recursive call and whether it has enough arguments.
23390         (all_callers_have_enough_arguments_p): New function.
23391         (convert_callers): Look for recursive calls only when
23392         encountered_recursive_call is set.
23393         (ipa_early_sra): Bail out either if
23394         !all_callers_have_enough_arguments_p or
23395         encountered_unchangable_recursive_call.
23396
23397 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23398
23399         * sel-sched.c: Add 2010 to copyright years.
23400         * sel-sched-ir.c: Likewise.
23401         * sel-sched-ir.h: Likewise.
23402
23403 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23404
23405         PR tree-optimization/42714
23406         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23407         constructors specially.
23408
23409 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23410
23411         * config/i386/drivers-i386.c (detect_caches_intel):
23412         Add l2sizekb parameter and fill in.
23413         (host_detect_local_cpu): Add l2sizekb, fill in.
23414         Add Atom small cache heuristic.
23415
23416 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23417
23418         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23419         Add level3 parameter and fill in.
23420         (detect_caches_intel): Handle level3 cache.
23421
23422 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23423
23424         * config/i386/drivers-i386.c (host_detect_local_cpu):
23425         Fix core duo detection.
23426
23427 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23428
23429         * config/i386/drivers-i386.c (host_detect_local_cpu):
23430         Fix Atom detection.
23431
23432 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23433
23434         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23435         (rs6000_variable_issue_1): this.  Use...
23436         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23437
23438 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23439
23440         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23441         sel_restore_notes.  Update all callers.  Call reemit_notes
23442         for all insns.
23443
23444 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23445
23446         PR rtl-optimization/42246
23447         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23448         loops.
23449
23450 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23451
23452         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23453         all successors is the same as number of successors in current region.
23454
23455 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23456
23457         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23458         to rename is not separable.  Otherwise check that its LHS is not NULL.
23459
23460 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23461
23462         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23463
23464 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23465
23466         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23467         available registers when failed to discover LHS register class.
23468         Fix indentation.  Update comment.
23469
23470 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23471             Alexander Monakov  <amonakov@ispras.ru>
23472
23473         PR rtl-optimization/42389
23474         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23475         to can_issue_more.
23476         (advance_state_on_fence): Likewise.
23477         (sel_target_adjust_priority): Print debug output only when
23478         sched_verbose >= 4, not 2.
23479         (get_expr_cost): Do not issue all unique insns on the next cycle.
23480         (fill_insns): Initialize can_issue_more from the value saved
23481         with the fence.
23482         * sel-sched-ir.c (flist_add): New parameter issue_more.
23483         Init FENCE_ISSUE_MORE with it.
23484         (merge_fences): Likewise.
23485         (init_fences): Update call to flist_add.
23486         (add_to_fences, add_clean_fence_to_fences)
23487         (add_dirty_fence_to_fences): Likewise.
23488         (move_fence_to_fences): Update call to merge_fences.
23489         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23490         sched groups.
23491         * sel-sched-ir.h (struct _fence): New field issue_more.
23492         (FENCE_ISSUE_MORE): New accessor macro.
23493
23494 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23495
23496         PR rtl-optimization/42388
23497         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23498         that have no predecessors nor successors.  Do not call move_bb_info
23499         for empty blocks outside of current region.
23500
23501 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23502
23503         PR rtl-optimization/42294
23504         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23505         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23506         originators' originators.
23507
23508 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23509
23510         PR rtl-optimization/39453
23511         PR rtl-optimization/42246
23512         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23513         for pipelining_p.
23514         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23515
23516 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23517             Alexander Monakov  <amonakov@ispras.ru>
23518
23519         PR middle-end/42245
23520         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23521         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23522         argument.  Update all callers.
23523         (tidy_control_flow): ... and here.  Recompute topological order
23524         of basic blocks in region if necessary.
23525         (sel_redirect_edge_and_branch): Change return type.  Return true
23526         if topological order might have been invalidated.
23527         (purge_empty_blocks): Export and move from...
23528         * sel-sched.c (purge_empty_blocks): ... here.
23529         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23530         (maybe_tidy_empty_bb): Delete prototype.
23531         (purge_empty_blocks): Declare.
23532
23533 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23534
23535         PR rtl-optimization/42249
23536         * sel-sched.c (try_replace_dest_reg): When chosen register
23537         and original register is the same, do not bail out early, but
23538         still check all original insns for validity of replacing destination
23539         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23540         in this case.
23541
23542 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23543
23544         PR c/42721
23545         Port from no-undefined-overflow branch:
23546         2009-03-09  Richard Guenther  <rguenther@suse.de>
23547
23548         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23549
23550 2010-01-14  Richard Guenther  <rguenther@suse.de>
23551
23552         PR lto/42665
23553         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23554
23555 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23556
23557         PR tree-optimization/42709
23558         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23559         as scalar type in creation of constant vector operand.
23560
23561 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23562
23563         PR testsuite/42414
23564         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23565         (check-parallel-%): Match `testsuite' directory component only
23566         at the end.
23567
23568 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23569
23570         PR translation/39521
23571         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23572         strings with _().
23573
23574 2010-01-13  Richard Guenther  <rguenther@suse.de>
23575
23576         PR tree-optimization/42730
23577         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23578         offset zero.
23579
23580 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23581
23582         PR target/pr42542
23583         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23584         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23585         them signed.
23586
23587 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23588
23589         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23590         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23591         ___umulsi3_highpart.
23592
23593         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23594         rather than schedule_insns if the pass is enabled.
23595
23596 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23597
23598         PR tree-optimization/42704
23599         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23600         SSA_NAMEs.
23601
23602 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23603
23604         PR tree-optimization/42703
23605         * tree-sra.c (analyze_access_subtree): Check that we can build a
23606         reference to the original data within the aggregate.
23607
23608 2010-01-13  Richard Guenther  <rguenther@suse.de>
23609
23610         PR tree-optimization/42705
23611         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23612
23613 2010-01-13  Richard Guenther  <rguenther@suse.de>
23614
23615         PR middle-end/42716
23616         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23617
23618 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23619
23620         PR debug/41371
23621         * var-tracking.c (values_to_unmark): New variable.
23622         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23623         values_to_unmark vector.  Moved body to...
23624         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23625         instead queue it into values_to_unmark vector.
23626         (vt_find_locations): Free values_to_unmark vector.
23627
23628 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23629
23630         * config/s390/s390.c (override_options): Set
23631         default of max-pending-list-length to 256
23632
23633 2010-01-13  Richard Guenther  <rguenther@suse.de>
23634
23635         PR lto/42678
23636         * tree-pass.h (PROP_gimple_lcx): New.
23637         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23638         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23639         before the final cleanup_eh.
23640         (dump_properties): Dump PROP_gimple_lcx.
23641         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23642         (tree_lower_complex_O0): Remove.
23643         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23644         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23645         tree_lower_complex, schedule TODO_update_ssa.
23646         * lto-streamer-out.c (output_function): Stream the functions
23647         properties.
23648         * lto-streamer-in.c (input_function): Likewise.
23649         (lto_read_body): Do not override them here.
23650
23651 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23652
23653         PR c/42708
23654         * c-typeck.c (build_c_cast): Fold value cast to union type before
23655         wrapping it in a CONSTRUCTOR.
23656
23657 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23658
23659         PR rtl-optimization/42699
23660         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23661         involved.
23662
23663 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23664
23665         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23666         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23667         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23668         SUBTARGET_WARN_UNUSED_SPEC): ... here
23669         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23670
23671 2010-01-12  Julian Brown  <julian@codesourcery.com>
23672
23673         * config/arm/neon-schedgen.ml (Utils): Don't try to
23674         open missing module.
23675         (find_with_result): New.
23676
23677 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23678
23679         PR debug/42662
23680         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23681         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23682
23683         PR tree-optimization/42645
23684         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23685         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23686         decl_map, set processing_debug_stmt to -1 and return name without
23687         any remapping.
23688
23689 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23690
23691         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23692         binutils version, and reword target configuration description.
23693
23694 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23695
23696         * config/avr/avr.h (LINKER_NAME): Remove.
23697
23698 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23699
23700         PR target/42416
23701         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23702         that support VSX, warn for -mno-altivec if vsx is not disabled,
23703         and disable vsx.
23704
23705 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23706             Shujing Zhao  <pearly.zhao@oracle.com>
23707
23708         PR translation/42469
23709         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23710         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23711         character between option name and help text.
23712         * c.opt (imultilib): Likewise.
23713
23714 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23715
23716         * lto-streamer-out.c (output_unreferenced_globals): Output static
23717         variables.
23718
23719 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23720
23721         PR rtl-optimization/42621
23722         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23723         optimizing for size.
23724         (duplicate_computed_gotos): Remove now-redundant check.
23725
23726 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23727
23728         PR target/37454
23729         * configure.ac: Save and restore LDFLAGS and LIBS
23730         * configure: Regenerate.
23731
23732 2010-01-10  Richard Guenther  <rguenther@suse.de>
23733
23734         PR middle-end/42667
23735         * builtins.c (fold_builtin_strlen): Add type argument and
23736         convert the resulting length to it.
23737         (fold_builtin_1): Adjust.
23738
23739 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23740
23741         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23742         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23743         1 insn.
23744         (num_insns_constant_wide): Adjust for that change.
23745
23746 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23747
23748         PR debug/42631
23749         * web.c (union_defs): Add used argument, to combine uses of
23750         uninitialized regs.
23751         (entry_register): Adjust type and tests of used argument.
23752         (web_main): Widen used for new use.  Pass it to union_defs.
23753         * df.h (union_defs): Adjust prototype.
23754
23755 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23756
23757         PR debug/42630
23758         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23759         uses in new incoming argument.  Free body.
23760         (reset_debug_uses_in_loop): New.
23761         (analyze_insn_to_expand_var): Call the latter if the former found
23762         anything.  Fix whitespace.  Reject invalid dest overlaps before
23763         going through all insns in the loop.
23764
23765 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23766
23767         PR debug/42629
23768         * haifa-sched.c (dying_use_p): Debug insns don't count.
23769
23770 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23771
23772         PR middle-end/42363
23773         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23774         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23775         (verify_gimple_call): Reject LHS in noreturn calls.
23776
23777 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23778
23779         PR debug/42604
23780         PR debug/42395
23781         * tree-vect-loop-manip.c (adjust_info): New type.
23782         (adjust_vec): New pointer to vector.
23783         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23784         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23785         (slpeel_update_phis_for_duplicate_loop): Use them.
23786         (slpeel_update_phi_nodes_for_guard1): Likewise.
23787         (slpeel_update_phi_nodes_for_guard2): Likewise.
23788         (slpeel_tree_peel_loop_to_edge): Likewise.
23789         (vect_update_ivs_after_vectorizer): Likewise.
23790
23791 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23792
23793         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23794         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23795
23796 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23797
23798         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23799         bogus uninitialized warning.
23800
23801 2010-01-09  Richard Guenther  <rguenther@suse.de>
23802
23803         PR middle-end/42512
23804         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23805         the evolution is compatible with the initial condition.
23806
23807 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23808
23809         * gcc.c (process_command): Update copyright notice dates.
23810         * gcov.c (print_version): Likewise.
23811         * gcov-dump.c (print_version): Likewise.
23812         * mips-tfile.c (main): Likewise.
23813         * mips-tdump.c (main): Likewise.
23814
23815 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23816
23817         PR target/41885
23818         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23819         (rotlhi3): Delete.
23820         (rotlhi3_8): Delete.
23821         (rotlsi3): Delete.
23822         (rotlsi3_8): Delete.
23823         (rotlsi3_16): Delete.
23824         (rotlsi3_24): Delete.
23825         (rotl<mode>3): New.
23826         (*rotw<mode>3): New.
23827         (*rotb<mode>3): New.
23828         * config/avr/avr.c (avr_rotate_bytes): New function.
23829         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23830
23831 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23832
23833         PR target/37454
23834         * configure.ac: Modify -rdynamic check.
23835         * configure: Regenerate.
23836
23837 2010-01-08  DJ Delorie  <dj@redhat.com>
23838
23839         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23840         register popping order.
23841
23842 2010-01-08  Richard Guenther  <rguenther@suse.de>
23843
23844         PR lto/42528
23845         * c.opt (fsigned-char): Also let LTO handle this option.
23846         (funsigned-char): Likewise.
23847
23848 2010-01-07  Richard Guenther  <rguenther@suse.de>
23849
23850         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23851         (gimple_op): Likewise.
23852         (gimple_op_ptr): Likewise.
23853         (gimple_assign_set_lhs): Remove gcc_assert.
23854         (gimple_assign_set_rhs1): Likewise.
23855         (gimple_assign_set_rhs2): Likewise.
23856         (gimple_call_set_lhs): Likewise.
23857         (gimple_call_set_fn): Likewise.
23858         (gimple_call_set_fndecl): Likewise.
23859         (gimple_call_fndecl): Likewise.
23860         (gimple_call_return_type): Likewise.
23861         (gimple_call_set_chain): Likewise.
23862         (gimple_call_num_args): Likewise.
23863         (gimple_call_set_arg): Likewise.
23864         (gimple_cond_set_code): Likewise.
23865         (gimple_cond_set_lhs): Likewise.
23866         (gimple_cond_set_rhs): Likewise.
23867         (gimple_cond_set_true_label): Likewise.
23868         (gimple_cond_set_false_label): Likewise.
23869         (gimple_label_set_label): Likewise.
23870         (gimple_goto_set_dest): Likewise.
23871         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23872         (gimple_debug_bind_get_value): Likewise.
23873         (gimple_debug_bind_get_value_ptr): Likewise.
23874         (gimple_debug_bind_set_var): Likewise.
23875         (gimple_debug_bind_set_value): Likewise.
23876         (gimple_debug_bind_reset_value): Likewise.
23877         (gimple_debug_bind_has_value_p): Likewise.
23878         (gimple_return_retval_ptr): Remove gcc_assert.
23879         (gimple_return_retval): Likewise.
23880         (gimple_return_set_retval): Likewise.
23881         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23882         (safe_referenced_var_iterator): Remove.
23883         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23884         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23885         (fill_referenced_var_vec): Remove.
23886         (first_readonly_imm_use): Remove redundant gcc_assert.
23887         (phi_arg_index_from_use): Combine gcc_asserts.
23888         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23889         (first_imm_use_stmt): Remove redundant gcc_assert.
23890         * tree-cfg.c (verify_gimple_call): Verify function and chain
23891         operands.  Verify arguments.
23892         (verify_types_in_gimple_stmt): Verify condition code and labels.
23893
23894 2010-01-07  Richard Guenther  <rguenther@suse.de>
23895
23896         PR tree-optimization/42641
23897         * sese.c (rename_map_elt_info): Use the SSA name version, do
23898         not hash pointers.
23899
23900 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23901
23902         PR tree-optimization/42625
23903         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23904         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23905
23906 2010-01-07  Duncan Sands  <baldrick@free.fr>
23907
23908         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23909
23910 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23911
23912         PR target/42511
23913         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23914         note itself is not function_invariant_p.
23915
23916 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23917
23918         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23919         Do not add the DF_NOTE problem.
23920         * store-motion.c (execute_rtl_store_motion): Likewise.
23921
23922 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23923
23924         PR tree-optimization/42157
23925         * tree-sra.c (compare_access_positions): Stabilize sort if both
23926         accesses have integer types, return zero immediately if they are the
23927         same.
23928
23929 2010-01-06  Richard Henderson  <rth@redhat.com>
23930
23931         PR middle-end/41883
23932         * haifa-sched.c (add_to_note_list): Merge into ...
23933         (concat_note_lists): ... here, and ...
23934         (unlink_other_notes, rm_other_notes): Merge into...
23935         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23936         NOTE_INSN_EPILOGUE_BEG.
23937
23938 2010-01-06  Richard Guenther  <rguenther@suse.de>
23939
23940         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23941         not inline regular functions into always-inline functions.
23942
23943 2010-01-06  Nick Clifton  <nickc@redhat.com>
23944
23945         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23946         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23947         used together.
23948         (OVERRIDE_OPTIONS): Delete.
23949         (OPTIMIZATION_OPTIONS): Define.
23950         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23951         * config/rx/rx.c (rx_handle_option): Issue an error message if
23952         -mcpu=rx200 and -fpu are used together.
23953         (rx_set_optimization_options): New function.  Issue an error
23954         message if an optimization attribute attempts to reset the FPU/
23955         math optimization pairing.
23956         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23957         * config/rx/rx.opt: Set the default to 32-bit doubles.
23958         * config/rx/t-rx: Add multilibs for -nofpu option.
23959         * doc/invoke.texi: Update documentation of RX options.
23960
23961 2010-01-06  Richard Guenther  <rguenther@suse.de>
23962
23963         * tree-ssa-pre.c (name_to_id): New global.
23964         (alloc_expression_id): Simplify SSA name handling.
23965         (lookup_expression_id): Likewise.
23966         (init_pre): Zero name_to_id.
23967         (fini_pre): Free it.
23968
23969 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23970
23971         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23972
23973 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23974
23975         PR target/42542
23976         * config/i386/sse.md (smaxv2di3): New.
23977         (umaxv2di3): Likewise.
23978         (sminv2di3): Likewise.
23979         (uminv2di3): Likewise.
23980
23981 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23982
23983         PR target/42564
23984         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23985         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23986         (legitimize_tls_address): Likewise.
23987         (sparc_tls_referenced_p): Likewise.
23988         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23989         and adjust calls to legitimize_pic_address.
23990         (legitimate_constant_p) Use sparc_tls_referenced_p.
23991         (legitimate_pic_operand_p): Likewise.
23992         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23993         (sparc_tls_symbol_ref_1): Delete.
23994         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23995         (legitimize_tls_address): Make static, handle CONST patterns.
23996         (legitimize_pic_address): Make static, remove unused parameter and
23997         adjust recursive calls.
23998         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23999         and adjust call to legitimize_pic_address.
24000         (sparc_output_mi_thunk): Likewise.
24001
24002 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
24003             H.J. Lu  <hongjiu.lu@intel.com>
24004
24005         PR target/42542
24006         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
24007         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
24008         operands to make them signed.
24009
24010         Revert:
24011         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24012
24013         PR target/42542
24014         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24015         GTU to GT for V4SI and V2DI.
24016
24017         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24018         (umin<mode>3): Removed.
24019         (uminv8hi3): New.
24020         (uminv4si3): Likewise.
24021
24022 2010-01-05  Martin Jambor  <mjambor@suse.cz>
24023
24024         PR tree-optimization/42462
24025         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
24026         current_function_decl to helper functions and macros.
24027
24028 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24029
24030         PR bootstrap/41771
24031         * flags.h: Don't include real.h.
24032         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
24033         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
24034         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
24035         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
24036         * dominance.c: Update copyright.
24037         * gimple.c (walk_gimple_op): Remove inline.
24038         * tree-ssa-reassoc.c: Include real.h.
24039         * Makefile.in (FLAGS_H): Remove $(REAL_H).
24040         (tree-ssa-reassoc.o): Depend on $(REAL_H).
24041
24042 2010-01-05  Nick Clifton  <nickc@redhat.com>
24043
24044         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
24045         register to push into the stack frame when the accumulator has to
24046         be saved during interrupts.
24047
24048 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
24049
24050         * doc/invoke.texi: Remove the documentation about option
24051         -Wunreachable-code.
24052         * common.opt (Wunreachable-code):  Preserved for backward
24053         compatibility.
24054         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
24055         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
24056         the backward compatibility flag section.
24057
24058 2010-01-05  Richard Guenther  <rguenther@suse.de>
24059
24060         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
24061
24062 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
24063
24064         PR other/42611
24065         * cfgexpand.c (expand_one_var): Diagnose too large variables.
24066
24067         PR tree-optimization/42508
24068         * tree-sra.c (convert_callers): Check for recursive call
24069         by comparing cgraph nodes instead of decls.
24070         (modify_function): Call ipa_modify_formal_parameters also
24071         on all same_body aliases.
24072
24073         * cgraphunit.c (cgraph_materialize_all_clones): Compare
24074         cgraph nodes when checking for same_body aliases.
24075
24076 2010-01-05  Richard Guenther  <rguenther@suse.de>
24077
24078         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
24079         allocation and lookup.
24080         (get_or_alloc_expr_for_constant): Likewise.
24081         (phi_translate): Sink allocation.
24082
24083 2010-01-04  Richard Guenther  <rguenther@suse.de>
24084
24085         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
24086         a new entry only if needed.
24087         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
24088         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
24089         hashtable lookup.
24090         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
24091         the result array.
24092         (phi_translate): Handle CONSTANTs early.
24093
24094 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24095
24096         PR tree-optimization/42398
24097         * tree-sra.c (struct access): Removed flag grp_different_types.
24098         (dump_access): Do not dump the removed flag.
24099         (sort_and_splice_var_accesses): Do not set the removed flag.
24100         (sra_modify_expr): Check for type compatibility directly.
24101
24102 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24103
24104         PR tree-optimization/42366
24105         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24106         edges with variable number of parameters.
24107         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
24108         flag instead of asserting it.
24109         (ipa_read_node_info): Read uses_analysis_done flag.
24110
24111 2010-01-04  Richard Guenther  <rguenther@suse.de>
24112
24113         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
24114         iterative_hash_* as intended.
24115         (vn_reference_compute_hash): Likewise.  Simplify hashing
24116         SSA names.
24117         (vn_reference_lookup_2): Likewise.
24118         (vn_nary_op_compute_hash): Likewise.
24119         (vn_phi_compute_hash): Likewise.
24120         (expressions_equal_p): Remove strange code.
24121         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
24122         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
24123         (bitmap_insert_into_set_1): Take value-id as parameter.
24124         (add_to_value): Pass it.
24125         (bitmap_insert_into_set): Likewise.
24126         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
24127
24128 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
24129
24130         PR driver/42442
24131         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
24132         (do_self_spec): For switches with SWITCH_IGNORE set set also
24133         SWITCH_IGNORE_PERMANENTLY.
24134         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
24135         of SWITCH_IGNORE.
24136
24137 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
24138
24139         * lto-streamer-out.c (output_unreferenced_globals): Output the full
24140         tree of an unreferenced global var.
24141
24142 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24143
24144         PR target/42542
24145         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24146         GTU to GT for V4SI and V2DI.
24147
24148         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24149         (umin<mode>3): Removed.
24150         (uminv8hi3): New.
24151         (uminv4si3): Likewise.
24152
24153 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24154
24155         PR lto/42581
24156         * collect2.c (main): Turn on trace in collect2 if -v is passed
24157         to gcc with LTO.
24158
24159 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
24160
24161         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
24162         description of expression operand.
24163
24164 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
24165
24166         * configure.ac: Add install-html to target_list for Make-hooks.
24167         * configure: Regenerate.
24168         * fortran/Make-lang.in (F95_HTMLFILES): New.
24169         (fortran.html): Use it.
24170         (fortran.install-html): New.
24171         * Makefile.in (install-html): Add lang.install-html.
24172         * java/Make-lang.in (JAVA_HTMLFILES): New.
24173         (java.html): Use it.
24174         (java.install-html): New.
24175         * objc/Make-lang.in (objc.install-html): New.
24176         * objcp/Make-lang.in (obj-c++.install-html): New.
24177         * cp/Make-lang.in (c++.install-html): New.
24178         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24179         * lto/Make-lang.in (lto.install-html): New.
24180
24181 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24182
24183         PR lto/42520
24184         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24185
24186 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24187
24188         PR rtl-optimization/41862
24189         * store-motion.c (store_killed_in_insn, compute_store_table,
24190         remove_reachable_equiv_notes, replace_store_insn,
24191         build_store_vectors): Ignore all DEBUG_INSNs.
24192
24193 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24194
24195         PR lto/41564
24196         * common.opt: Add dumpdir.
24197
24198         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24199         isn't specified.
24200         (option_map): Add --dumpdir.
24201
24202         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24203
24204         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24205
24206         * opts.c (decode_options): Try dump_dir_name first if
24207         dump_base_name isn't an absolute path.
24208         (common_handle_option): Handle OPT_dumpdir.
24209
24210         * toplev.c (dump_dir_name): New.
24211         (print_switch_values): Also ignore -dumpdir.
24212
24213         * toplev.h (dump_dir_name): New.
24214
24215 2010-01-03  Richard Guenther  <rguenther@suse.de>
24216
24217         PR tree-optimization/42589
24218         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24219         double-word expansion of bswap32.
24220
24221 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24222
24223         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24224         with BLOCK_FOR_INSN.
24225         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24226         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24227         noce_process_if_block): Likewise.
24228         * gcse.c (compute_local_properties, insert_expr_in_table,
24229         insert_set_in_table, canon_list_insert, find_avail_set,
24230         pre_insert_copy_insn): Likewise.
24231
24232         * basic-block.h (BLOCK_NUM): Move from here...
24233         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24234
24235 2010-01-03  Richard Guenther  <rguenther@suse.de>
24236
24237         PR tree-optimization/42438
24238         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24239         contains_may_not_return_call flag.
24240         (BB_MAY_NOTRETURN): New.
24241         (valid_in_sets): Trapping nary operations are not valid
24242         in blocks that may not return.
24243         (insert_into_preds_of_block): Remove check for trapping expressions.
24244         (compute_avail): Compute also BB_MAY_NOTRETURN.
24245
24246 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
24247
24248         * doc/invoke.texi: Add 2010 to copyright years.
24249
24250 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24251
24252         * config/sparc/sparc.c: Fix formatting nits.
24253
24254 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
24255             Alexander Monakov  <amonakov@ispras.ru>
24256
24257         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24258
24259 2010-01-02  Richard Guenther  <rguenther@suse.de>
24260
24261         PR middle-end/42577
24262         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24263         (simplify_switch_using_ranges): Mark to be removed edges
24264         as non-executable.
24265
24266 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24267
24268         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24269
24270         * collect2.c (scan_libraries): Add missing argument in call to
24271         scan_prog_file.
24272
24273 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
24274
24275         PR target/42448
24276         * config/alpha/predicates.md (aligned_memory_operand): Return false
24277         for CQImode.
24278         (unaligned_memory_operand): Return true for CQImode.
24279         * config/alpha/alpha.c (get_aligned_mem): Assert that location
24280         doesn not cross aligned SImode word boundary.
24281
24282 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
24283
24284         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24285         Remove.
24286         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24287         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24288
24289 2010-01-02  Richard Guenther  <rguenther@suse.de>
24290
24291         PR lto/41597
24292         * toplev.c (compile_file): Emit LTO marker properly.  Change
24293         it to __gnu_lto_v1.
24294         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24295
24296 2010-01-01  Richard Guenther  <rguenther@suse.de>
24297
24298         PR debug/42455
24299         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24300
24301 2010-01-01  Richard Guenther  <rguenther@suse.de>
24302
24303         PR c/42570
24304         * c-decl.c (grokdeclarator): For zero-size arrays force
24305         structural equality checks as layout_type does.
24306
24307 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24308
24309         * builtins.c: Update copyright to 2010.
24310
24311 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24312
24313         PR lto/42531
24314         * lto-streamer-out.c (produce_asm): Revert the last change.
24315         (copy_function): Likewise.
24316
24317         * lto-streamer.c (lto_get_section_name): Skip any leading
24318         asterisk in name.
24319
24320 2010-01-01  Richard Guenther  <rguenther@suse.de>
24321
24322         PR middle-end/42559
24323         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24324         for LABEL_DECLs.
24325
24326 \f
24327 Copyright (C) 2010 Free Software Foundation, Inc.
24328
24329 Copying and distribution of this file, with or without modification,
24330 are permitted in any medium without royalty provided the copyright
24331 notice and this notice are preserved.