OSDN Git Service

PR tree-optimization/45059
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2
3         PR tree-optimization/45059
4         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5         type conversions from newop{1,2}.  Assert t is a comparison and
6         newop{1,2} after the stripping are gimple vals.
7
8 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
9
10         * config/arm/iterators.md (VU, SE, V_widen_l): New.
11         (V_unpack, US): New.
12         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for
13         vmovl.
14         (vec_unpack<US>_lo_<mode>): Likewise.
15         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
16         (neon_vec_unpack<US>_lo_<mode>): Likewise.
17         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
18         (vec_widen_<US>mult_hi_<mode>): Likewise.
19         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
20         (neon_vec_<US>mult_hi_<mode>"): Likewise.
21         (neon_unpack<US>_<mode>): Widening move intermediate step for
22         vectorizing without -mvectorize-with-neon-quad.
23         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
24         for vectorizing without -mvectorize-with-neon-quad.
25         * config/arm/predicates.md (vect_par_constant_high): Check for
26         high-half lanes of a vector.
27         (vect_par_constant_low): Check for low-half lanes of a vector.
28
29 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
30
31         * tree-if-conv.c (struct ifc_dr): New.
32         (IFC_DR): New.
33         (DR_WRITTEN_AT_LEAST_ONCE): New.
34         (DR_RW_UNCONDITIONALLY): New.
35         (memref_read_or_written_unconditionally): Use the cached values
36         when possible.
37         (write_memref_written_at_least_once): Same.
38         (if_convertible_loop_p): Initialize and free DR->aux fields.
39
40 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
41
42         * gimple.c (gimple_could_trap_p_1): Not static anymore.
43         Pass an extra bool parameter include_mem.
44         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
45         (gimple_assign_rhs_could_trap_p): Same.
46         * gimple.h (gimple_could_trap_p_1): Declared.
47         * tree-data-ref.h (same_data_refs_base_objects): New.
48         (same_data_refs): New.
49         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
50         (write_memrefs_written_at_least_once): New.
51         (ifcvt_memrefs_wont_trap): New.
52         (operations_could_trap): New.
53         (ifcvt_could_trap_p): New.
54         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
55         Gets a vector of data refs.
56         (if_convertible_stmt_p): Same.
57         (if_convertible_loop_p_1): New.
58         (if_convertible_loop_p): Call if_convertible_loop_p_1.
59
60 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
61
62         * common.opt (ftree-loop-if-convert-stores): New flag.
63         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
64         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
65         the created statement before GSI.
66         (if_convertible_phi_p): Allow virtual phi nodes when
67         flag_loop_if_convert_stores is set.
68         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
69         Do not handle types that do not match is_gimple_reg_type.
70         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
71         when flag_loop_if_convert_stores is set, as LHS can contain
72         memory refs.
73         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
74         to if_convertible_gimple_assign_stmt_p.
75         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
76         (replace_phi_with_cond_gimple_assign_stmt): Renamed
77         predicate_scalar_phi.  Do not handle virtual phi nodes.
78         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
79         Call predicate_scalar_phi.
80         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
81         just after the labels for flag_loop_if_convert_stores, otherwise
82         insert the predicate in the end of the BB.
83         (predicate_mem_writes): New.
84         (combine_blocks): Call predicate_all_scalar_phis.  When
85         flag_loop_if_convert_stores is set, call predicate_mem_writes.
86         (tree_if_conversion): Call mark_sym_for_renaming when
87         flag_loop_if_convert_stores is set.
88         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
89         flag_loop_if_convert_stores is set.
90
91 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
92
93         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
94         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
95         (pa_function_value): Make static.
96         (override_options): Rename to...
97         (pa_option_override): ...this. Make static.
98         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
99         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
100         TARGET_OPTION_OVERRIDE): Define.
101         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
102         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
103         Remove.
104         * config/pa/pa-protos.h (override_options): Remove.
105
106 2010-08-24  Richard Guenther  <rguenther@suse.de>
107
108         PR middle-end/45379
109         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
110         if addr->index is NULL or zero.
111         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
112         TARGET_MEM_REF more properly.
113         (indirect_ref_may_alias_decl_p): Likewise.
114         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
115         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more
116         properly.
117
118 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
119
120         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
121         (m32c_override_options): Rename to...
122         (m32c_option_override): ...this. Make static.
123         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
124         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
125         Remove.
126         * config/m32c/m32c-protos.h (m32c_override_options,
127         m32c_function_value_regno_p): Remove.
128
129 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
130
131         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
132         Fix a typo in a previous commit.
133
134 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
135
136         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
137         Pre-initialize innerloop_iters to one.
138
139 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
140
141         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
142         existing static function global.
143
144         *tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
145         is changed to global.
146
147         *tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
148         may_be_nonaddressable_p on base, and don't collect this reference
149         if the address of the base could not be taken.
150
151 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
152
153         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
154         enable the compiler to autovectorize mathmetical functions for
155         power7 using the Mathematical Acceleration Subsystem library.
156
157         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
158         handle which vector math library we have.
159         (rs6000_override_options): Add -mveclibabi=mass support.
160         (rs6000_builtin_vectorized_libmass): New function to handle auto
161         vectorizing math functions that are in the MASS library.
162         (rs6000_builtin_vectorized_function): Call it.
163
164         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
165         -mveclibabi=mass.
166
167 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
168
169         PR boehm-gc/34544
170         * gthr-posix.h (__gthread_active_init): Delete.
171         (__gthread_active_p): Do activity check here.
172         Don't include errno.h on hppa-hpux.  Update comment.
173         * gthr-posix95.h (__gthread_active_init): Delete.
174         (__gthread_active_p): Do activity check here.
175         Don't include errno.h on hppa-hpux.  Update comment.
176         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
177         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
178         add -lpthread when -mt or -pthread is specified.
179         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
180         (LINK_GCC_C_SEQUENCE_SPEC): Define.
181         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
182         (stublib.c, pthread_default_stacksize_np-stub.o,
183         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
184         $(T)libgcc_stub.a): Add methods.
185         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
186         (stublib.c, pthread_default_stacksize_np-stub.o,
187         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
188         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
189         pthread_mutex_unlock): New stubs.
190
191 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
192
193         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
194         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
195         options.
196         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
197         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
198         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
199         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
200         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
201         "-l".
202         * cppspec.c: Include opts.h.
203         (lang_specific_driver): Use cl_decoded_option structures.
204         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
205         * doc/tm.texi: Regenerate.
206         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
207         (driver_handle_option): Allow driver options needing no special
208         processing.
209         (process_command): Decode options before call to
210         lang_specific_driver.  Pass decoded options to
211         lang_specific_driver.
212         * gcc.h (lang_specific_driver): Update prototype.
213         * gccspec.c: Include opts.h.
214         (lang_specific_driver): Use cl_decoded_option structures.
215         * opts-common.c (option_ok_for_language, generate_option,
216         generate_option_input_file): New.
217         (decode_cmdline_option): Use option_ok_for_language.
218         (decode_cmdline_options_to_array): Use generate_option_input_file.
219         (handle_generated_option): Use generate_option.
220         * opts.h (generate_option, generate_option_input_file): Declare.
221
222 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
223
224         * config/mips/mips.c (mips_override_options): Rename to...
225         (mips_option_override): ...this. Make static.
226         (TARGET_OPTION_OVERRIDE): Define.
227         (mips_in_small_data_p): Update comment.
228         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
229         (FIXED_REGISTERS): Update comment.
230         * config/mips/mips-protos.h (mips_override_options): Remove.
231
232 2010-08-21  Olivier Hainque  <hainque@adacore.com>
233
234         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
235
236 2010-08-21  Olivier Hainque  <hainque@adacore.com>
237
238         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
239         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
240
241 2010-08-20  Jan Hubicka  <jh@suse.cz>
242
243         * tree-pass.h (pass_ipa_cdtor_merge): New function.
244         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
245         heap allocated.
246         (record_cdtor_fn): Move to ipa.c; do not test for
247         have_ctors_dtors.
248         (build_cdtor): Move to ipa.c; add code avoiding construction
249         when target have ctors/dtors and there is only one ctor/dtor at given
250         priority.
251         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize sort;
252         reverse order of constructors.
253         (cgraph_build_cdtor_fns):Move to ipa.c; rename to build_cdtor_fns.
254         (cgraph_finalize_function): Do not call record_cdtor_fn.
255         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
256         (cgraph_build_static_cdtor): Move to ipa.c.
257         * ipa.c: Include target.h and tree-iterator.h.
258         (cgraph_build_static_cdtor, static_ctors, static_dtors,
259         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
260         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
261         pass_ipa_cdtor_merge): New.
262         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
263         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of bounds access.
264
265 2010-08-20  Jan Hubicka  <jh@suse.cz>
266
267         PR c++/45307
268         PR c++/17736
269         * cgraph.h (cgraph_only_called_directly_p,
270         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
271         static cdtors.
272         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
273         are not needed.
274         (cgraph_finalize_function): Static cdtors are reachable.
275         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
276
277 2010-08-20  Jan Hubicka  <jh@suse.cz>
278
279         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of flag_wpa.
280         * lto-streamer-out.c (lto_output): Likewise.
281         * passes.c (ipa_write_optimization_summaries): Initialize statement uids.
282
283 2010-08-20  Olivier Hainque  <hainque@adacore.com>
284
285         * tree.h (alias_diag_flags): New enum.
286         (alias_pair): Add an 'emitted_diags' field.
287         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
288         (assemble_alias): Initialize emitted_diags of new pairs.
289
290 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
291
292         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
293         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
294         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
295         (STACK_CHECK_PROTECT): Define.
296         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
297         (output_probe_stack_range): Likewise.
298         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
299         builtin stack checking is enabled.
300         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
301         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
302         (probe_stack_range): New insn.
303
304 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
305
306         PR target/45336
307         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
308         short first.
309
310         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
311         char first.
312
313 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
314
315         PR target/45336
316         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
317         to cover zero extension into 64-bit register.
318         (*sse2_pextrw): Likewise.
319         (*sse4_1_pextrd_zext): New insn.
320
321 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
322
323         revert r163410, partially revert r163267.
324         * config/rs6000/darwin.h (LIB_SPEC): Remove.
325         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all 
326         Darwin versions.
327         
328 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
329
330         PR middle-end/44974
331         * builtins.c (expand_builtin): Don't optimize away
332         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
333
334 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
335
336         * config/i386/i386.md (ashift RSP splitter): Remove splitter.
337         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
338         alternative 1 of operand 2.
339
340 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
341             Paolo Bonzini  <bonzini@gnu.org>
342
343         * simplify-rtx.c (simplify_unary_operation_1): Optimize
344         (sign_extend (zero_extend (...)) and
345         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
346
347 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
348
349         PR rtl-optimization/45353
350         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
351         after bb_note is a BARRIER.
352
353 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
354
355         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
356         linking libgcc.a.
357
358 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
359             Michael Matz  <matz@suse.de>
360
361         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
362
363 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
364
365         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
366         (ggc_mark_roots): ...here.
367
368 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
369
370         * vec.h (FOR_EACH_VEC_ELT): Define.
371         * c-decl.c: Use it.
372         * cfgloop.c: Likewise.
373         * cfgloopmanip.c: Likewise.
374         * cgraph.c: Likewise.
375         * cgraphunit.c: Likewise.
376         * combine.c: Likewise.
377         * config/bfin/bfin.c: Likewise.
378         * config/mips/mips.c: Likewise.
379         * config/rs6000/rs6000.c: Likewise.
380         * dbxout.c: Likewise.
381         * df-scan.c: Likewise.
382         * dominance.c: Likewise.
383         * dse.c: Likewise.
384         * dwarf2out.c: Likewise.
385         * except.c: Likewise.
386         * expr.c: Likewise.
387         * function.c: Likewise.
388         * gcse.c: Likewise.
389         * genattr.c: Likewise.
390         * ggc-common.c: Likewise.
391         * gimplify.c: Likewise.
392         * graphite-blocking.c: Likewise.
393         * graphite-clast-to-gimple.c: Likewise.
394         * graphite-dependences.c: Likewise.
395         * graphite-interchange.c: Likewise.
396         * graphite-poly.c: Likewise.
397         * graphite-scop-detection.c: Likewise.
398         * graphite-sese-to-poly.c: Likewise.
399         * graphite.c: Likewise.
400         * haifa-sched.c: Likewise.
401         * ifcvt.c: Likewise.
402         * implicit-zee.c: Likewise.
403         * ipa-prop.c: Likewise.
404         * ipa-struct-reorg.c: Likewise.
405         * ipa.c: Likewise.
406         * ira-build.c: Likewise.
407         * ira-color.c: Likewise.
408         * ira-emit.c: Likewise.
409         * lambda-code.c: Likewise.
410         * loop-invariant.c: Likewise.
411         * loop-unroll.c: Likewise.
412         * lower-subreg.c: Likewise.
413         * lto-cgraph.c: Likewise.
414         * lto-opts.c: Likewise.
415         * lto-streamer-in.c: Likewise.
416         * lto-streamer-out.c: Likewise.
417         * lto-streamer.c: Likewise.
418         * lto-symtab.c: Likewise.
419         * matrix-reorg.c: Likewise.
420         * opts.c: Likewise.
421         * predict.c: Likewise.
422         * print-tree.c: Likewise.
423         * sdbout.c: Likewise.
424         * sel-sched-dump.c: Likewise.
425         * sel-sched-ir.c: Likewise.
426         * sel-sched.c: Likewise.
427         * sese.c: Likewise.
428         * stor-layout.c: Likewise.
429         * tree-cfg.c: Likewise.
430         * tree-cfgcleanup.c: Likewise.
431         * tree-chrec.c: Likewise.
432         * tree-data-ref.c: Likewise.
433         * tree-emutls.c: Likewise.
434         * tree-inline.c: Likewise.
435         * tree-into-ssa.c: Likewise.
436         * tree-loop-distribution.c: Likewise.
437         * tree-loop-linear.c: Likewise.
438         * tree-mudflap.c: Likewise.
439         * tree-outof-ssa.c: Likewise.
440         * tree-parloops.c: Likewise.
441         * tree-predcom.c: Likewise.
442         * tree-pretty-print.c: Likewise.
443         * tree-scalar-evolution.c: Likewise.
444         * tree-ssa-live.c: Likewise.
445         * tree-ssa-loop-im.c: Likewise.
446         * tree-ssa-loop-ivcanon.c: Likewise.
447         * tree-ssa-loop-ivopts.c: Likewise.
448         * tree-ssa-loop-manip.c: Likewise.
449         * tree-ssa-loop-niter.c: Likewise.
450         * tree-ssa-loop-prefetch.c: Likewise.
451         * tree-ssa-phiprop.c: Likewise.
452         * tree-ssa-pre.c: Likewise.
453         * tree-ssa-reassoc.c: Likewise.
454         * tree-ssa-sccvn.c: Likewise.
455         * tree-ssa-structalias.c: Likewise.
456         * tree-ssa.c: Likewise.
457         * tree-vect-data-refs.c: Likewise.
458         * tree-vect-loop-manip.c: Likewise.
459         * tree-vect-loop.c: Likewise.
460         * tree-vect-patterns.c: Likewise.
461         * tree-vect-slp.c: Likewise.
462         * tree-vect-stmts.c: Likewise.
463         * tree-vrp.c: Likewise.
464         * tree.c: Likewise.
465         * value-prof.c: Likewise.
466         * var-tracking.c: Likewise.
467         * varasm.c: Likewise.
468         * vmsdbgout.c: Likewise.
469
470 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
471             Richard Guenther  <richard.guenther@gmail.com>
472
473         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
474         copy the src value and return a copy.
475         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
476         (C++ Volatiles): Adjust to describe C++ semantics only.
477
478 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
479
480         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
481         be zero or nonzero.
482         * doc/tm.texi: Regenerate.
483         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
484         * df-scan.c (df_get_exit_block_use_set), reginfo.c
485         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
486         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
487         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
488         to 1.
489
490 2010-08-20  Olivier Hainque  <hainque@adacore.com>
491
492         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
493         an extra nop past a sibling call at the very end.
494
495 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
496
497         PR bootstrap/45350
498         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
499         a comment.
500
501 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
502
503         * target.def (function_arg, function_incoming_arg): Remove const
504         qualifier on CUMULATIVE_ARGS parameter.
505         * targhooks.h (default_function_arg, default_function_incoming_arg):
506         Likewise.
507         * targhooks.c (default_function_arg, default_function_incoming_arg):
508         Likewise.
509         * config/i386/i386.c (ix86_function_arg): Likewise.
510
511 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
512
513         PR target/45336
514         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
515         SIGN_EXTENDs or ZERO_EXTENDs.
516
517 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
518
519         PR target/42172
520         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
521         Take its cost into account if nonnull.
522         (insn_a_feeds_b): New static function.
523         (combine_instructions): Look for four-insn combinations.
524         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
525         them into account when computing all_adjacent and looking for other
526         uses.
527         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
528         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
529         (try_combine): New arg I0.  Handle four-insn combinations.
530         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
531         like ELIM_I1.
532
533 2010-08-19  Jason Merrill  <jason@redhat.com>
534
535         PR c++/45307
536         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
537         if ctor is empty.
538         (gimplify_modify_expr_rhs): Adjust.
539
540 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
541
542         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
543         bitmap_bit_p.
544         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
545         * dominance.c (iterate_fix_dominators): Likewise.
546         * dse.c (set_usage_bits): Likewise.
547         (set_position_unneeded, record_store): Likewise.
548         * gimple-fold.c (get_maxval_strlen): Likewise.
549         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
550         * ipa-inline.c (update_caller_keys): Likewise.
551         * ipa-split.c (verify_non_ssa_vars): Likewise.
552         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
553         (close_type_exposed_parameter, close_type_full_escape): Likewise.
554         (close_addressof_down): Likewise.
555         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
556         (setup_allocno_left_conflicts_size): Likewise.
557         (ira_reassign_conflict_allocnos): Likewise.
558         (ira_reassign_pseudos): Likewise.
559         * ira-emit.c (change_loop): Likewise.
560         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
561         * lto-streamer-out.c (write_symbol): Likewise.
562         * predict.c (expr_expected_value_1): Likewise.
563         * regstat.c (regstat_bb_compute_ri): Likewise.
564         * sel-sched.c (create_block_for_bookkeeping): Likewise.
565         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
566         * stmt.c (expand_case): Likewise.
567         * tree-eh.c (emit_eh_dispatch): Likewise.
568         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
569         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
570         Likewise.
571         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
572         (rdg_build_components): Likewise.
573         * tree-object-size.c (collect_object_sizes_for): Likewise.
574         * tree-sra.c (convert_callers): Likewise.
575         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
576         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
577         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
578
579 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
580
581         * config/i386/i386.md (*lea_1): Use P mode iterator.
582         (lea add splitter): Also handle DImode operands.
583         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
584         predicate.  Do not use ix86_lea_for_add_ok.
585         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
586         (lea ashift splitter): Also handle DImode operands.
587         (DImode lea ashift splitter): Remove splitter.
588
589 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
590
591         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
592         ix86_binary_operator_ok.
593
594 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
595
596         PR rtl-optimization/44691
597         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
598         is not a register.
599
600 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
601
602         PR target/45070
603         * config/arm/arm.c (arm_output_epilogue): Ensure that return
604          value of size 1-3 is handled correctly.
605
606 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
607
608         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
609         type for the conditional has wide enough range.
610
611 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
612
613         PR target/45327
614         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
615         ix86_binary_operator_ok.
616
617 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
618
619         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
620         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
621         code to output insn mnemonic.  Fix comment.
622         (*addsi_1_zext): Add r-r-0 alternative 1.
623         <TYPE_LEA>: Split insn to lea.
624         <default>: Handle alternative 1.
625         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
626         multi-level if_then_else RTX to set "type" attribute.
627         <default>: Handle alternative 2.
628         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
629         Use cond RTX instead of multi-level if_then_else RTX to set
630         "type" attribute.
631         <default>: Handle alternatives 2 and 4.
632         (lea splitters): Update calls to ix86_lea_for_add_ok.
633
634         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
635         argument.
636         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
637
638 2010-08-18  Richard Guenther  <rguenther@suse.de>
639
640         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
641         use operand helpers.
642
643 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
644
645         PR middle-end/45292
646         * optabs.c (expand_bool_compare_and_swap): Expand pending
647         pops before trying the optab.
648
649 2010-08-18  Yao Qi  <yao@codesourcery.com>
650
651         PR target/45094
652         * config/arm/arm.c (output_move_double): Fix typo generating
653         instructions ('ldr'->'str').
654
655 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
656
657         PR rtl-optimization/42575
658         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
659         live ranges.
660
661 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
662
663         * config/arm/arm-protos.h (arm_expand_sync): New.
664         (arm_output_memory_barrier, arm_output_sync_insn): New.
665         (arm_sync_loop_insns): New.
666         * config/arm/arm.c (FL_ARCH7): New.
667         (FL_FOR_ARCH7): Include FL_ARCH7.
668         (arm_arch7): New.
669         (arm_print_operand): Support %C markup.
670         (arm_legitimize_sync_memory): New.
671         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
672         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
673         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
674         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
675         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
676         (arm_process_output_sync_insn, arm_output_sync_insn): New.
677         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
678         * config/arm/arm.h (struct arm_sync_generator): New.
679         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
680         (TARGET_HAVE_MEMORY_BARRIER): New.
681         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
682         * config/arm/arm.md: Include sync.md.
683         (UNSPEC_MEMORY_BARRIER): New.
684         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
685         (VUNSPEC_SYNC_OP):New.
686         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
687         (sync_result, sync_memory, sync_required_value): New attributes.
688         (sync_new_value, sync_t1, sync_t2): Likewise.
689         (sync_release_barrier, sync_op): Likewise.
690         (length): Add logic to length attribute defintion to call
691         arm_sync_loop_insns when appropriate.
692         * config/arm/sync.md: New file.
693
694 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
695
696         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
697         ENABLE_TREE_CHECKING.
698         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
699         and GCC >= 4.3.
700
701 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
702
703         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
704         or optimizing for size, always avoid lea if possible.
705
706         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
707
708 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
709
710         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
711         Dunmmy function with NULL return unless the target is
712         OSX >= 10.6 (Darwin10).
713
714 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
715
716         * gcc.c (spec_function): Add remove-outfile.
717         (remove_outfile_spec_function): New function.
718         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
719         * invoke.texi (replace-outfile): Document.
720
721 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
722
723         PR target/45296
724         * reginfo.c (globalize_reg): Reject stack registers.
725
726 2010-08-17  Richard Guenther  <rguenther@suse.de>
727
728         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
729         list of conditional equivalences.
730         (free_all_edge_infos): Adjust.
731         (record_equivalences_from_incoming_edge): Likewise.
732         (record_cond): Likewise.
733         (build_and_record_new_cond): Likewise.
734         (record_conditions): Likewise.
735         (dom_opt_leave_block): Likewise.
736
737 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
738
739         * doc/invoke.texi (ms-extension): Add documentation.
740
741 2010-08-17  Richard Guenther  <rguenther@suse.de>
742
743         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
744
745 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
746
747         PR c/40563
748         * c-decl.c (diagnose_uninitialized_cst_member): New function.
749         (finish_decl): Use it to issue a -Wc++-compat warning about
750         uninitialized const field in struct or union.
751
752         (finish_struct): Use strip_array_types.
753
754 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
755
756         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
757         functions.
758         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
759         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
760         call block_nreverse here.
761         (blocks_nreverse): Rename decl temporary to block.
762
763 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
764
765         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
766         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
767         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
768         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
769         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
770         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
771         thumb2_iorsi3): Delete.
772         (orsi_notsi_si): No longer a named pattern.
773         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
774         * config/arm/predicates.md (shift_amount_operand): New.
775         (mult_operator): New.
776         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
777         attr enabled): New.
778         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
779         arch matches t2.
780         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
781         (not_shiftsi_compare0): Likewise, renamed from
782         arm_notsi_shiftsi_compare0.
783         (not_shiftsi_compare0_scratch): Likweise, renamed from
784         arm_notsi_shiftsi_compare0_scratch.
785         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
786         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
787         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
788         so that the register alternative is disabled when the shift_operator
789         is MULT.  Use "M" as the constraint for constants.
790         (arith_shiftsi splitter): Enable for TARGET_32BIT.
791         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
792         constraint for constants.
793         (arith_shiftsi_compare0_scratch): Likewise.
794         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
795         Handle Thumb2 alternative.
796
797 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
798
799         * doc/options.texi (NoDriverArg): Document.
800         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
801         -MDX and -MMDX.
802         * opt-functions.awk (switch_flags): Handle NoDriverArg.
803         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
804         marking for CL_NO_DRIVER_ARG options when in the driver.
805         * opts.h (CL_NO_DRIVER_ARG): Define.
806         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
807         CL_COMMON): Update values.
808
809 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
810
811         * common.opt: Add driver options.
812         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
813         * doc/options.texi (Driver, RejectDriver): Document.
814         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
815         print_prog_name, print_multi_directory, print_sysroot,
816         print_multi_os_directory, print_multi_lib,
817         print_sysroot_headers_suffix, report_times, combine_flag,
818         use_pipes, wrapper_string): Remove.
819         (save_switch, driver_unknown_option_callback,
820         driver_wrong_lang_callback, driver_post_handling_callback,
821         driver_handle_option): New.
822         (spec_lang, last_language_n_infiles): Make file-scope static
823         instead of local to process_command.
824         (process_command): Use decode_cmdline_options_to_array and
825         read_cmdline_option for option processing.  Compute have_c in
826         prescan of decoded options.
827         * opt-functions.awk (switch_flags): Handle Driver and
828         RejectDriver.
829         (var_type, var_type_struct): Handle Separate options as generating
830         const char * variables.
831         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
832         CL_TARGET to be passed by caller if required.
833         (decode_cmdline_options_to_array): Update comment.
834         * opts.c (complain_wrong_lang): Handle options only valid for the
835         driver.
836         (decode_options): Update call to decode_cmdline_options_to_array.
837         (print_filtered_help): Ignore driver-only options.
838         (print_specific_help): Ignore CL_DRIVER.
839         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
840         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
841         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
842         Update values.
843
844 2010-08-16  Richard Guenther  <rguenther@suse.de>
845
846         * tree-cfg.c (verify_types_in_gimple_reference): Verify
847         TARGET_MEM_REF a bit.
848         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
849         (create_mem_ref_raw): Always create TMR_OFFSET, store the
850         alias pointer type via it.
851         (copy_mem_ref_info): Adjust.
852         (maybe_fold_tmr): Likewise.
853         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
854         (reference_alias_ptr_type): Likewise.
855         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
856         adjust documentation of TMR_OFFSET operand.
857         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
858         use the alias pointer type.
859         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
860         initialize mem attrs but the TMR itself.
861         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
862         similar to MEM_REF.
863         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
864         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
865         (unshare_and_remove_ssa_names): Likewise.
866         (copy_ref_info): Adjust.
867         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
868         TARGET_MEM_REF case.
869         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
870         at TMR_ORIGINAL.
871         * tree.h (TMR_ORIGINAL): Remove.
872         * gimple.c (get_base_address): For TARGET_MEM_REF with a
873         symbol return that.
874         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
875         with a symbol.
876         (get_addr_base_and_unit_offset): Likewise.
877         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
878         TARGET_MEM_REFs.
879         (indirect_ref_may_alias_decl_p): Likewise.
880         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
881
882 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
883
884         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
885         with GCC version 4.6, the default setting (when not optimizing
886         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
887         been changed to -fomit-frame-pointer.
888
889 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
890
891         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
892         Darwin10.  Do not link libgcc.a for Darwin >= 9.
893
894 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
895
896         * doc/invoke.texi (Warning Options): Fix terminology and markup
897         in the description of how unknown warning options are handled.
898
899 2010-08-15  Ira Rosen  <irar@il.ibm.com>
900
901         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
902         in basic blocks.
903         (vect_supportable_dr_alignment): Check alignment for basic blocks.
904         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
905         data references.
906         (vect_bb_vectorization_profitable_p): New function.
907         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
908         check if it's worthwhile to vectorize the basic block.
909
910 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
911
912         * reload.h (register_move_cost, memory_move_secondary_cost,
913         secondary_reload_class): Adjust prototype.
914         * rtl.h (reg_class_subset_p): Adjust prototype.
915         * reload.c (secondary_reload_class): Change arguments type from
916         enum reg_class to reg_class_t. Change result type to reg_class_t.
917         * reginfo.c (register_move_cost, reg_class_subset_p): Change
918         arguments type from enum reg_class to reg_class_t.
919         (memory_move_secondary_cost): Change arguments type from
920         enum reg_class to reg_class_t. Change type of saved_flags to
921         reg_class_t.
922
923         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
924         Remove macros.
925         (mips_cost): Remove.
926         (struct mips_rtx_cost_data): Moved to mips.c.
927         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
928         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
929         (mips_cost): Make static.
930         (mips_canonicalize_move_class): Change argument type to reg_class_t.
931         Change result type to reg_class_t.
932         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
933         type from enum reg_class to reg_class_t.
934         (mips_register_move_cost): Make static. Change arguments
935         type from enum reg_class to reg_class_t.
936         (mips_memory_move_cost): New function.
937         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
938
939 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
940
941         PR rtl-optimization/43358
942         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
943         of a single hard register, using simplify_subreg_regno to decide
944         what that register should be.
945
946 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
947
948         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
949         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
950         (loongson_pmull<V_suffix>): Rename to...
951         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
952
953 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
954
955         * gcc/configure.ac: Enable -fomit-frame-pointer on darwin
956         which support dwarf2.
957         * config/i386/i386.c (override_options): Same.
958
959 2010-08-13  Jie Zhang  <jie@codesourcery.com>
960
961         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
962
963 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
964
965         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
966         -MMD.
967
968 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
969
970         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
971         up dot_prod pattern searching if a stmt is outside the loop.
972
973 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
974             Uros Bizjak  <ubizjak@gmail.com>
975
976         * config.gcc: Handle --enable-frame-pointer.
977
978         * configure.ac: Add --enable-frame-pointer.
979         * configure: Regenerated.
980
981         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
982         (override_options): If not configured with --enable-frame-pointer,
983         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
984         optimizing for size), -fasynchronous-unwind-tables and
985         -maccumulate-outgoing-args by default.
986
987 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
988
989         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
990
991         PR middle-end/45262
992         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
993         -a overflows.  Normalize the range.
994
995 2010-08-12  Richard Guenther  <rguenther@suse.de>
996
997         PR tree-optimization/45232
998         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
999         for types with undefined overflow.
1000         (reassociate_bb): Allow re-associating of bit and min/max
1001         operations for types with undefined overflow.
1002         * tree-ssa-forwprop.c (associate_plusminus): New function.
1003         (tree_ssa_forward_propagate_single_use_vars): Call it.
1004
1005 2010-08-12  Richard Guenther  <rguenther@suse.de>
1006
1007         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
1008         * tree-ssa-alias.c (get_ptr_info): Move ...
1009         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
1010         align and misalign fields conservatively.
1011         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
1012         derive alignment information.
1013         (evaluate_stmt): Derive alignment information from memory
1014         allocation functions.
1015         * tree.h (get_pointer_alignment): Make unsigned.
1016         * builtins.c (get_object_alignment): Use alignment information we
1017         have computed for pointers.
1018         (get_pointer_alignment): Likewise.  Make conservative, return
1019         and unsigned value.
1020         (expand_builtin_strlen): Adjust.
1021         (expand_builtin_memcmp): Likewise.
1022         (expand_builtin_strcmp): Likewise.
1023         (expand_builtin_strncmp): Likewise.
1024         (get_builtin_sync_mem): Use at least mode alignment.
1025         (fold_builtin_memset): Adjust.
1026         (fold_builtin_memory_op): Likewise.
1027         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
1028         information also dump pointer alignment knowledge.
1029         (dump_gimple_stmt): Likewise.
1030
1031 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
1032
1033         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
1034         (EMPTY_FIELD_BOUNDARY): Remove.
1035         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
1036
1037 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
1038
1039         PR debug/45259
1040         * caller-save.c (save_call_clobbered_regs): Only swap notes with
1041         DEBUG_INSNs if n_regs_saved.
1042
1043 2010-08-12  Wei Guozhi  <carrot@google.com>
1044
1045         PR target/44999
1046         * config/arm/arm.md (andsi3): Change to zero extension if possible.
1047         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
1048
1049 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
1050
1051         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
1052
1053         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
1054
1055 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1056
1057         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
1058         the case removed in the previous patch, when the only phi argument
1059         is defined in the same loop as the phi node itself.  Handle it
1060         separately from the invariant case by both propagating it outside
1061         the region and replacing the phi node with an assign.
1062
1063 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1064
1065         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
1066         constant phi nodes with one argument are is_gimple_min_invariant
1067         and SSA_NAME_IS_DEFAULT_DEF.
1068
1069 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1070
1071         * graphite-cloog-util.c (oppose_constraint):
1072         Extend loop counter's value range (CLOOG_ORG).
1073         (cloog_matrix_to_ppl_constraint): Same.
1074         (new_Constraint_System_from_Cloog_matrix): Same.
1075         * graphite-cloog-compat.h (matrix_num_type): New.
1076
1077 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1078
1079         * graphite.c (graphite_initialize): Do not initialize
1080         CLooG and initialize the Parma Polyhedra Library
1081         manually when using CLOOG_ORG.
1082         (graphite_finalize): Do not finalize CLooG and finalize
1083         the Parma Polyhedra Library manually when using CLOOG_ORG.
1084         * graphite-cloog-compat.h (cloog_initialize): Hide function
1085         when using CLOOG_ORG.
1086         (cloog_finalize): Same.
1087
1088 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1089
1090         * graphite-clast-to-gimple.c (free_scattering): Change
1091         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
1092         (CLOOG_ORG).
1093         (build_cloog_prog): Same.
1094         * graphite-cloog-compat.h (cloog_domain): Removed.
1095         (cloog_scattering): New.
1096         (cloog_set_domain): Removed.
1097         (cloog_set_scattering): New.
1098         (cloog_next_domain): Removed.
1099         (cloog_next_scattering): New.
1100         (cloog_set_next_domain): Removed.
1101         (cloog_set_next_scattering): New.
1102         (CloogScatteringList): New.
1103         (CloogScattering): New.
1104         (cloog_scattering_free): New.
1105         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
1106         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
1107         New.
1108
1109 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1110
1111         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
1112         CloogState.
1113         (set_cloog_options): Same.
1114         (print_clast_stmt): Same.
1115         (scop_to_clast): Same.
1116         (print_generated_program): Same.
1117         (gloog): Same.
1118         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
1119         (scop_to_clast): Extend with CloogState.
1120         * graphite-cloog-util.c: Include graphite-cloog-compat.h
1121         (new_Cloog_Domain_from_ppl_Polyhedron):
1122         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
1123         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
1124         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1125         * graphite-cloog-util.h (build_cloog_prog): Same.
1126         * graphite-cloog-copat.h (build_cloog_prog): New.
1127         (CloogState): New.
1128         (cloog_state_malloc): New.
1129         (cloog_state_free): New.
1130         (cloog_loop_malloc): New.
1131         (cloog_options_malloc): New.
1132         (cloog_statement_alloc): New.
1133         (cloog_domain_from_cloog_matrix): New.
1134         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1135         (new_Cloog_Domain_from_ppl_Polyhedron): New.
1136
1137 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1138
1139         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
1140         type of NAME now depends on used CLooG version.
1141         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
1142         (gcc_type_for_clast_expr): Same.
1143         (print_clast_stmt): Replace pprint with clast_pprint.
1144         * graphite-cloog-compat.h: Provide compatibility macros for
1145         CLooG Legacy.
1146         (clast_name_p): New.
1147         (clast_expr_term): New.
1148         (clast_expr_red): New.
1149         (clast_expr_bin): New.
1150         (clast_pprint): New.
1151
1152 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1153
1154         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
1155         compatible to newer CLooG releases (CLOOG_ORG).
1156         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
1157         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
1158         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
1159         (build_cloog_prog) : New.
1160         (cloog_program_extract_scalars): New.
1161         (cloog_program_scatter): New.
1162
1163 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1164
1165         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
1166         conditionally (CLOOG_ORG).
1167         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
1168         (cloog_statement_usr): New.
1169         (cloog_domain): Same.
1170         (cloog_set_domain): Same.
1171         (cloog_next_domain): Same.
1172         (cloog_set_next_domain): Same.
1173         (cloog_program_nb_scattdims): Same.
1174         (cloog_program_set_nb_scattdims): Same.
1175         (cloog_program_names): Same.
1176         (cloog_program_set_names): Same.
1177         (cloog_program_set_context): Same.
1178         (cloog_program_set_loop): Same.
1179         (cloog_program_blocklist): Same.
1180         (cloog_program_set_blocklist): Same.
1181         (cloog_program_scaldims): Same.
1182         (cloog_program_set_scaldims): Same.
1183         (cloog_names_nb_parameters): Same.
1184         (cloog_names_set_nb_parameters): Same.
1185         (cloog_names_parameters): Same.
1186         (cloog_names_set_parameters): Same.
1187         (cloog_names_set_nb_iterators): Same.
1188         (cloog_names_set_iterators): Same.
1189         (cloog_names_set_nb_scattering): Same.
1190         (cloog_names_set_scattering): Same.
1191         (cloog_statement_set_usr): Same.
1192         (cloog_loop_set_next): Same.
1193         (cloog_loop_set_domain): Same.
1194         (cloog_loop_set_block): Same.
1195         (cloog_block_list_next): Same.
1196         (cloog_block_list_set_next):
1197         (cloog_block_list_set_block): Same.
1198
1199 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1200
1201         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
1202         a bool.
1203         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1204         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1205         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
1206         when something has been changed.
1207         (rewrite_commutative_reductions_out_of_ssa): Same.
1208
1209 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1210
1211         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
1212         handle the case when def is in the sese region.
1213         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
1214         for invariant expressions.
1215         (rewrite_cross_bb_phi_deps): Removed.
1216         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1217         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1218         rewrite_cross_bb_phi_deps.
1219
1220 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1221
1222         * graphite-sese-to-poly.c
1223         (rewrite_commutative_reductions_out_of_ssa_loop): Call
1224         scev_analyzable_p only on is_gimple_reg
1225
1226 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1227
1228         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1229         (rewrite_close_phi_out_of_ssa): Propagate constant values or
1230         parametric expressions outside the scop region.
1231         (rewrite_cross_bb_scalar_deps): Same.
1232         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1233
1234 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1235
1236         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1237         SSA_NAME_DEF_STMT only on SSA_NAMEs.
1238
1239 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1240
1241         * tree-scalar-evolution.c (instantiate_scev_name): Do not
1242         instantiate default definitions.
1243
1244 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
1245             Sebastian Pop  <sebastian.pop@amd.com>
1246
1247         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1248         (loop_exits_from_bb_p): New.
1249         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1250         (loop_exits_from_bb_p): Declared.
1251         * graphite-scop-detection.c (scopdet_basic_block_info): Call
1252         loop_exits_to_bb_p.
1253
1254 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1255
1256         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1257         extra parameter for the region.  Call scev_analyzable_p.
1258         (rewrite_reductions_out_of_ssa): Update call to
1259         rewrite_close_phi_out_of_ssa.
1260         (rewrite_cross_bb_phi_deps): Same.
1261         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1262         parameter for the region.  Call scev_analyzable_p.
1263         (rewrite_commutative_reductions_out_of_ssa): Update call to
1264         rewrite_commutative_reductions_out_of_ssa_loop.
1265
1266 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1267
1268         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1269
1270 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1271
1272         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1273         SSA scalar phi nodes that can be scev_analyzable_p.
1274
1275 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1276
1277         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1278         handle SSA_NAME_IS_DEFAULT_DEF.
1279
1280 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1281
1282         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1283
1284 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1285
1286         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1287         case non close-phi nodes with one argument.
1288
1289 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1290
1291         * sese.h (scev_analyzable_p): Scevs could be expressions without
1292         chrecs and still be scev_analyzable_p.
1293
1294 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1295
1296         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1297
1298 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1299
1300         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1301         * cfgloop.h (struct loop): Remove single_iv field.
1302         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1303         (scop_canonicalize_loops): Removed.
1304         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
1305         over all the loop phi nodes in loop->header.
1306         (build_poly_scop): Remove use of scop_canonicalize_loops.
1307
1308 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1309
1310         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1311         handle GIMPLE_CALL.
1312
1313 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1314
1315         * tree-chrec.c (chrec_apply): Should only apply to the specified
1316         variable.  Also handle multivariate chains of recurrences that
1317         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
1318
1319 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1320
1321         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1322         (debug_clast_name_indexes_1): Removed.
1323         (debug_clast_name_indexes): Removed.
1324         (pbb_to_depth_to_oldiv): Removed.
1325         (build_iv_mapping): Replace the use of rename_map with iv_map.
1326         (translate_clast_user): Remove uses of rename_map.  Allocate and
1327         free iv_map.
1328         (translate_clast_for_loop): Remove uses of rename_map.
1329         (translate_clast_for): Same.
1330         (translate_clast_guard): Same.
1331         (translate_clast): Same.
1332         (gloog): Same.
1333         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1334         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1335         * sese.c (set_rename): Now static.
1336         (rename_variables_in_stmt): Removed.
1337         (rename_uses): New.
1338         (is_parameter): Removed.
1339         (is_iv): Removed.
1340         (expand_scalar_variables_call): Removed.
1341         (expand_scalar_variables_ssa_name): Removed.
1342         (expand_scalar_variables_expr): Removed.
1343         (expand_scalar_variables_stmt): Removed.
1344         (expand_scalar_variables): Removed.
1345         (rename_variables): Removed.
1346         (remove_condition): Removed.
1347         (get_true_edge_from_guard_bb): Removed.
1348         (get_false_edge_from_guard_bb): Removed.
1349         (struct igp): Removed.
1350         (default_before_guard): Removed.
1351         (convert_for_phi_arg): Removed.
1352         (add_guard_exit_phis): Removed.
1353         (insert_guard_phis): Removed.
1354         (graphite_copy_stmts_from_block): Now also uses iv_map and a
1355         region.  Do not copy conditions.  Do not copy induction variables.
1356         Call rename_uses.
1357         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1358         the translated statement.  Use the iv_map for the induction
1359         variable renaming.
1360         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1361         (set_rename): Removed declaration.
1362         (scev_analyzable_p): ...here.
1363         * tree-chrec.c (chrec_apply_map): New.
1364         * tree-chrec.h (chrec_apply_map): Declared.
1365
1366 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1367
1368         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1369         insert_loop_close_phis.
1370         * sese.c (name_defined_in_loop_p): Removed.
1371         (expr_defined_in_loop_p): Removed.
1372         (alive_after_loop): Removed.
1373         (close_phi_not_yet_inserted_p): Removed.
1374         (struct alep): Removed.
1375         (add_loop_exit_phis): Removed.
1376         (insert_loop_close_phis): Removed.
1377
1378 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1379
1380         * graphite-cloog-util.c
1381         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
1382         * graphite-poly.c
1383         (psct_scattering_dim_for_loop_depth): Same.
1384
1385 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1386
1387         * graphite-cloog-util.h: Added cloog.h.
1388         * graphite-blocking.c: Removed cloog.h.
1389         * graphite-dependences.c: Same.
1390         * graphite-interchange.c: Same.
1391         * graphite-poly.c: Same.
1392         * graphite-ppl.c: Same.
1393         * graphite-scop-detection.c: Same.
1394         * graphite-sese-to-poly.c:
1395         Removed cloog.h.
1396         Removed graphite-clast-to-gimple.h.
1397         (check_poly_representation): Removed (unused).
1398         * graphite-sese-to-poly.h
1399         (check_poly_representation): Removed (unused).
1400
1401 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1402
1403         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
1404         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1405         (graphite-cloog-util.o): New.
1406         (graphite-ppl.o): Added graphite-cloog-util.h.
1407         * graphite-clast-to-gimple.c:
1408         Added graphite-cloog-util.h to include statements.
1409         * graphite-cloog-util.c: New.
1410         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1411         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1412         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1413         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1414         (insert_constraint_into_matrix): Same.
1415         (ppl_Constrain_System_number_of_constraints): Same.
1416         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1417         (oppose_constraint): Same.
1418         (cloog_matrix_to_ppl_constraint): Same.
1419         (new_Constraint_System_from_Cloog_Matrix): Same.
1420         * graphite-cloog-util.h: New.
1421         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1422         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1423         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1424         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1425         (insert_constraint_into_matrix): Same.
1426         * graphite-ppl.c:
1427         Added graphite-cloog-util.h to include statements.
1428         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1429         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1430         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1431         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1432         (insert_constraint_into_matrix): Same.
1433         (ppl_Constrain_System_number_of_constraints): Same.
1434         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1435         (oppose_constraint): Same.
1436         (cloog_matrix_to_ppl_constraint): Same.
1437         (new_Constraint_System_from_Cloog_Matrix): Same.
1438         * graphite-ppl.h:
1439         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1440         graphite-cloog-util.h.
1441         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1442         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1443         (new_C_Polyhedron_from_Cloog_Matrix): Same.
1444         (insert_constraint_into_matrix): Same.
1445
1446 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
1447
1448         * graphite-clast-to-gimple.c
1449         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1450         (precision_for_interval): Same.
1451         (gcc_type_for_interval): Same.
1452         (compute_type_for_level): Same.
1453         * graphite-interchange.c
1454         (lst_interchange_profitable_p): Same.
1455         * graphite-poly.c
1456         (psct_scattering_dim_for_loop_depth): Same.
1457         * graphite-ppl.c
1458         (ppl_max_for_le_pointset): Same.
1459         (ppl_min_for_le_pointset): Same.
1460
1461 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1462
1463         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1464         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1465
1466 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1467
1468         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1469         rewrite_close_phi_out_of_ssa.
1470
1471 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1472
1473         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1474
1475 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1476
1477         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1478         rename_map.
1479         * sese.c (debug_rename_map): Same.
1480         (get_rename): Same.
1481         (set_rename): Same.
1482         (rename_variables_in_stmt): Same.
1483         (expand_scalar_variables_call): Same.
1484         (expand_scalar_variables_ssa_name): Same.
1485         (expand_scalar_variables_expr): Same.
1486         (expand_scalar_variables_stmt): Same.
1487         (expand_scalar_variables): Same.
1488         (rename_variables): Same.
1489         (graphite_copy_stmts_from_block): Same.
1490         (copy_bb_and_scalar_dependences): Same.
1491
1492 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1493
1494         * graphite-clast-to-gimple.c (copy_renames): Removed.
1495         (translate_clast_for): Do not call copy_renames.
1496         (translate_clast_guard): Same.
1497
1498 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1499
1500         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1501         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1502         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1503         before rewrite_cross_bb_scalar_deps.
1504
1505 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1506
1507         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1508         Early return in when flag_associative_math is not set.
1509
1510 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1511
1512         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1513         of SSA copies on edges except for loop->latch.
1514
1515 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1516
1517         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1518         Split out of rewrite_reductions_out_of_ssa.
1519         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1520         Declared.
1521         * graphite.c (graphite_transform_loops): Call it.
1522
1523 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1524
1525         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1526
1527 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
1528
1529         * dbgcnt.def (graphite_scop): New counter.
1530         * graphite.c: Include dbgcnt.h.
1531         (graphite_transform_loops): Use new counter to limit transformations.
1532         * Makefile.in (graphite.o): Depend on DBGCNT_H.
1533
1534 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1535
1536         * passes.c (init_optimization_passes): Add pass_graphite.
1537         Schedule a pass_copy_prop before pass_graphite_transforms.
1538         * timevar.def (TV_GRAPHITE): Declared.
1539         * tree-pass.h (pass_graphite): Declared.
1540         * tree-ssa-loop.c (pass_graphite): New.
1541
1542 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1543
1544         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1545         Remove calls to rename_nb_iterations and rename_sese_parameters.
1546         * graphite-clast-to-gimple.h (gloog): Update declaration.
1547         * graphite.c (graphite_transform_loops): Update call to gloog.
1548         * sese.c (rename_variables_in_expr): Removed.
1549         (rename_nb_iterations): Removed.
1550         (rename_sese_parameters): Removed.
1551         * sese.h (rename_nb_iterations): Removed.
1552         (rename_sese_parameters): Removed.
1553
1554 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1555
1556         * graphite-clast-to-gimple.c (gloog): Remove call to
1557         sese_adjust_liveout_phis.
1558         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1559         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1560         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1561         rewrite_phi_out_of_ssa.
1562         * sese.c (get_vdef_before_sese): Removed.
1563         (sese_adjust_vphi): Removed.
1564         (sese_adjust_liveout_phis): Removed.
1565         * sese.h (sese_adjust_liveout_phis): Removed.
1566
1567 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1568
1569         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1570         argument for the place after which to insert the out of SSA copy.
1571         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1572         (rewrite_phi_out_of_ssa): Same.
1573         (rewrite_cross_bb_scalar_deps): Same.
1574         (insert_copyout): Removed.
1575         (insert_copyin): Removed.
1576         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1577         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1578         insert_copyin.
1579
1580 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1581
1582         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1583         (rewrite_reductions_out_of_ssa): Same.
1584         (rewrite_commutative_reductions_out_of_ssa): Same.
1585         (build_poly_scop): Do not call these functions.
1586         * graphite-sese-to-poly.h (build_poly_scop): Declared.
1587         (rewrite_reductions_out_of_ssa): Declared.
1588         (rewrite_commutative_reductions_out_of_ssa): Declared.
1589         * graphite.c (graphite_transform_loops): Call on every scop
1590         rewrite_commutative_reductions_out_of_ssa before calling
1591         rewrite_reductions_out_of_ssa and build_scop_bbs.
1592
1593 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1594
1595         * graphite-dependences.c (dot_deps): Make system call to dotty run
1596         in background.
1597         (dot_deps_stmt): Same.
1598         * graphite-poly.c (dot_lst): Same.
1599
1600 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1601
1602         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1603         phi_arg_in_outermost_loop.
1604         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1605         (remove_invariant_phi): Same.
1606
1607 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
1608
1609         * target.def (output_addr_const_extra): New hook.
1610         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
1611         * doc/tm.texi: Regenerate.
1612         * targhooks.c (default_asm_output_addr_const_extra): New function.
1613         * targhooks.h (default_asm_output_addr_const_extra): Declare.
1614         * final.c: (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
1615         target hook.
1616
1617         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1618         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
1619         * config/i386/i386.h (output_addr_const_extra): Rename to...
1620         (i386_asm_output_addr_const_extra): ...this. Make static.
1621         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1622
1623 2010-08-11  Richard Henderson  <rth@redhat.com>
1624
1625         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
1626
1627 2010-08-11  Nick Clifton  <nickc@redhat.com>
1628
1629         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
1630         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
1631         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1632         stormy16-lib2-cmpsi.c.
1633
1634         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
1635         -O2.
1636
1637 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
1638
1639         * opts.h (struct cl_option_handler_func): Make handler take
1640         cl_decoded_option structure as parameter, not individual elements.
1641         (struct cl_option_handlers): Make callbacks take cl_decoded_option
1642         structure as parameter, not individual elements.
1643         (handle_option): Take cl_decoded_option structure as parameter,
1644         not individual elements.
1645         (handle_generated_option): Declare.
1646         * opts-common.c (handle_option): Take cl_decoded_option structure
1647         as parameter, not individual elements.  Update calls to callback
1648         and handler functions.
1649         (handle_generated_option): New.
1650         (read_cmdline_option): Update calls to callback functions and
1651         handle_option.
1652         * opts.c (common_handle_option, complain_wrong_lang,
1653         unknown_option_callback, post_handling_callback,
1654         lang_handle_option, target_handle_option): Take cl_decoded_option
1655         structure as parameter, not individual elements.
1656         (lang_handle_option, target_handle_option, common_handle_option):
1657         Assert option has at most one argument.
1658         (enable_warning_as_error): Call handle_generated_option instead of
1659         handle_option.  Do not pass -Werror argument as argument of
1660         generated option.
1661
1662 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1663
1664         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1665         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1666         (SUBWORD_BOOL_CAS): Likewise.
1667         (SUBWORD_SYNC_OP): Likewise.
1668         (SUBWORD_TEST_AND_SET): Likewise.
1669         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1670         (SUBWORD_SYNC_OP): Likewise.
1671         (OP_AND_FETCH_WORD): Likewise.
1672
1673 2010-08-10  Xinliang David Li  <davidxl@google.com>
1674
1675         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
1676         compute max/min offset in address.
1677
1678 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
1679
1680         * ira-live.c: Include sbitmap.h.
1681         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
1682         Compress live ranges even more.
1683
1684 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1685
1686         * coverage.c (ctr_labels): Delete.
1687
1688 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1689
1690         PR bootstrap/45177
1691         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
1692         test here from arm_gen_load_multiple_1.
1693         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
1694         multiple_operation_profitable_p.
1695
1696 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1697
1698         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
1699         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
1700
1701 2010-08-10  Richard Henderson  <rth@redhat.com>
1702
1703         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
1704         after saving registers.  Assert that SSE registers are only saved
1705         with a sufficiently aligned frame.
1706         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
1707         remove stack_realign_fp handling.
1708         (ix86_expand_prologue): Save int registers before stack_realign_fp,
1709         and do not mark the stack alignment as frame related.
1710         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
1711
1712         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
1713         saves when re-aligning the stack.
1714
1715 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1716
1717         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
1718         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
1719         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
1720
1721 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
1722
1723         * dwarf2out.c (struct die_struct): Move die_tag to the end.
1724
1725 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
1726
1727         * config/arm/iterators.md: New file.
1728         * config/arm/arm.md: Include iterators.md.
1729         (QHSI): Move to new file.
1730         (LTUGEU, cnb, optab, ior_xor): Likewise.
1731         * config/arm/iwmmxt.md (VMMX): Move to new file.
1732         (VSHFT, MMX_char): Likewise.
1733         * config/arm/neon.md (VD): Move to new file.
1734         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
1735         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
1736         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
1737         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
1738         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
1739         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
1740         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
1741         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
1742         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
1743         (Is_d_reg, V_mode_nunits): Likewise.
1744         * config/arm/vec-common.md (VALL): Move to new file.
1745         (VALLW, VINT, VINTW): Likewise.
1746
1747 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
1748
1749         PR middle-end/45182
1750         * combine.c (make_compound_operation): Don't try to convert
1751         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
1752
1753 2010-08-10  Richard Guenther  <rguenther@suse.de>
1754
1755         * tree.h (get_object_alignment): Adjust prototype.
1756         * builtins.c (get_object_alignment): Return unsigned int,
1757         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
1758         and TARGET_MEM_REF properly.
1759         (get_pointer_alignment): Adjust.
1760         * emit-rtl.c (get_mem_align_offset): Adjust comment.
1761         (set_mem_attributes_minus_bitpos): Adjust.
1762         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
1763
1764 2010-08-10  Richard Guenther  <rguenther@suse.de>
1765
1766         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
1767         (copy_prop_visit_assignment): Simplify.
1768         (copy_prop_visit_stmt): Also visit assignments from
1769         constants.
1770         (copy_prop_visit_phi_node): Use operand_equal_p.
1771
1772 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1773
1774         * ipa-split.c (find_split_points): Free stack.
1775
1776 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1777
1778         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
1779         * tree.c (tree_node_kind): Delete corresponding entries.
1780
1781 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1782
1783         * alias.c (may_alias_p): Remove unused ret.
1784
1785 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
1786
1787         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
1788         alias_sets_conflict_p.
1789         (walk_mems_1): Moved from alias.c.
1790         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
1791         in alias.c.
1792         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
1793         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
1794         * alias.c (walk_mems_2): Moved to ddg.c.
1795         (walk_mems_1): Ditto.
1796         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
1797         to ddg.c.
1798         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
1799         disambiguation.
1800         *(may_alias_p): New function to check whether two memory expression
1801         may alias or not. Currently used in buidling inter-iteration memory
1802         dependence.
1803         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
1804         (insn_alias_sets_conflict_p): Removed
1805         *rtl.h (may_alias_p): New function prototype.
1806
1807 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1808
1809         * tree.c (nreverse): Assert that we don't have a BLOCK.
1810
1811 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
1812
1813         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
1814         * config/arm/arm.c (arm_get_pcs_model): Likewise.
1815         * config/avr/avr.c (init_cumulative_args): Likewise.
1816         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
1817         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1818         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
1819         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1820         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
1821         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1822         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
1823         * dwarf2out.c (gen_subprogram_die): Likewise.
1824         * function.c (allocate_struct_function): Likewise.
1825         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
1826         (deserves_ellipsis): Delete.
1827
1828 2010-08-09  Richard Guenther  <rguenther@suse.de>
1829
1830         * tree-ssa-copy.c (cached_last_copy_of): Remove.
1831         (valueize_val): New function.
1832         (get_last_copy_of): Remove.
1833         (set_copy_of_val): Simplify.
1834         (dump_copy_of): Likewise.
1835         (copy_prop_visit_cond_stmt): Use valueize_val.
1836         (copy_prop_visit_phi_node): Properly handle unvisited names.
1837         Drop code managing copy-of chains.
1838         (init_copy_prop): Adjust.
1839         (fini_copy_prop): Likewise.
1840         (execute_copy_prop): Remove obsolete comment.
1841
1842 2010-08-09  Richard Guenther  <rguenther@suse.de>
1843
1844         PR middle-end/44632
1845         * function.c (gimplify_parameters): Do not clear addressable
1846         bit of the original parameter.
1847
1848 2010-08-09  Richard Guenther  <rguenther@suse.de>
1849
1850         PR middle-end/45212
1851         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
1852         alignment from MEM_REF offset only if we took it from the
1853         base object.
1854
1855 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
1856
1857         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
1858
1859 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1860
1861         * c-tree.h (build_arg_info): Declare.
1862         * c-decl.c (build_arg_info): Define.
1863         (get_parm_info): Call it.  Delete initialization code.
1864         * c-parser.c (c_parser_parms_declarator): Likewise.
1865         (c_parser_parms_list_declaractor): Likewise.
1866
1867 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1868
1869         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
1870         (struct c_arg_info): Change type of tags field.
1871         * c-decl.c (grokdeclarator): Update for changed type of tags field.
1872         (get_parm_info): Likewise.
1873         (store_parm_decls_newstyle): Likewise.
1874
1875 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
1876
1877         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
1878         (branch_island_list): Delete.
1879         (branch_islands): Declare.
1880         (add_compiler_branch_island): Adjust for branch_islands instead of
1881         branch_island_list.
1882         (macho_branch_islands): Likewise.
1883         (no_previous_def): Likewise.
1884         (get_prev_label): Likewise.
1885
1886 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1887
1888         PR boehm-gc/34544
1889         * gthr-posix.h (__gthread_start): Delete.
1890         (__gthread_active_init): Use pthread_default_stacksize_np instead of
1891         pthread_create to determine if hpux pthreads are active.
1892         * gthr-posix95.h (__gthread_start): Delete.
1893         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
1894
1895 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
1896
1897         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
1898         _WIN64 not expanded.
1899
1900 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
1901             H.J. Lu  <hongjiu.lu@intel.com>
1902
1903         PR target/45213
1904         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
1905         to output 32bit SFmode immediate as 8 byte sign extended value.
1906
1907 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1908
1909         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
1910         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
1911         (SUBWORD_BOOL_CAS): Likewise.
1912         (SUBWORD_SYNC_OP): Likewise.
1913         (SUBWORD_TEST_AND_SET): Likewise.
1914         (FETCH_AND_OP_WORD): Parenthesise INF_OP
1915         (SUBWORD_SYNC_OP): Likewise.
1916         (OP_AND_FETCH_WORD): Likewise.
1917
1918 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1919
1920         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
1921         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
1922         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
1923         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
1924         generic part.
1925         (cortex_a9_sched_adjust_cost): New function.
1926         (xscale_sched_adjust_cost): New function.
1927         * config/arm/arm-protos.h (struct tune_params): New field
1928         sched_adjust_cost.
1929         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
1930
1931 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
1932
1933         PR target/44942
1934         * config/sparc/sparc.c (function_arg_advance): Always take into account
1935         the padding, if any.
1936
1937 2010-08-06  Richard Guenther  <rguenther@suse.de>
1938
1939         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
1940         (dump_lattice_value): Dump it.
1941         (get_default_value): Adjust.
1942         (get_constant_value): Likewise.
1943         (set_value_varying): Likewise.
1944         (set_lattice_value): Make sure to not go up the lattice
1945         with bitwise constant values.
1946         (get_value_for_expr): Handle ADDR_EXPRs.
1947         (value_to_double_int): New function.
1948         (get_value_from_alignment): Likewise.
1949         (do_dbg_cnt): Adjust.
1950         (ccp_lattice_meet): Handle partially constant values.
1951         (bit_value_unop_1): New function.
1952         (bit_value_binop_1): Likewise.
1953         (bit_value_unop): Likewise.
1954         (bit_value_binop): Likewise.
1955         (evaluate_stmt): Track partially constant values if
1956         flag_tree_bit_ccp is set.
1957         (ccp_fold_stmt): Dump if we folded a predicate.
1958         (ccp_visit_stmt): Adjust.
1959         * common.opt (ftree-bit-ccp): New flag.
1960         * doc/invoke.texi (ftree-bit-ccp): Document.
1961         * opts.c (decode_options): Enable bit-CCP at -O1.
1962
1963 2010-08-06  Alan Modra  <amodra@gmail.com>
1964
1965         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
1966         and -mrelocatable-lib description.
1967
1968 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
1969
1970         From Martin Thuresson  <martint@google.com>
1971         * postreload.c (reload_cse_simplify_operands): Use
1972         SET_REGNO_RAW instead of SET_REGNO.
1973         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
1974         SET_REGNO.
1975         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
1976         instead of SET_REGNO.
1977         * rtl.h (SET_REGNO_RAW): New macro.
1978
1979 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
1980
1981         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
1982         computations.  Fix formatting issues.
1983         (num_sign_bit_copies1): Likewise.
1984         (canonicalize_condition): Likewise.
1985
1986 2010-08-05  Richard Henderson  <rth@redhat.com>
1987
1988         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
1989         (floor_log2): Use clz_hwi.
1990         (exact_log2): Use ctz_hwi.
1991         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
1992         * builtins.c (fold_builtin_bitop): Use them.
1993         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1994         * combine.c (get_pos_from_mask): Use ctz_hwi.
1995         * double-int.c (double_int_ctz): Likewise.
1996         * explow.c (force_reg): Likewise.
1997         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
1998
1999 2010-08-05  Richard Henderson  <rth@redhat.com>
2000
2001         PR target/45189
2002         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
2003         the alignment constant is properly sign-extended.
2004
2005 2010-08-05  Richard Guenther  <rguenther@suse.de>
2006
2007         * expr.c (store_expr): Use emit_block_move only if both
2008         source and target are MEMs.  Use store_bit_field if only
2009         the target is a MEM.
2010
2011 2010-08-05  Richard Henderson  <rth@redhat.com>
2012
2013         PR debug/45188
2014         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
2015         (INCOMING_RETURN_ADDR_RTX): Likewise.
2016         (dwarf2out_do_frame): Remove conditional compilation.
2017         (dwarf2out_frame_init): Likewise.
2018
2019 2010-08-05  Nicolas Setton  <setton@adacore.com>
2020
2021         * gcov.c (flag_display_progress): New static variable.
2022         (main): Display progress info on standard output if requested.
2023         (options): Add -d/--display-progress.
2024         (print_usage): Print them.
2025         (process_args): Handle them.
2026         * doc/gcov.texi: Document them.
2027
2028 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2029
2030         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
2031         (ipcp_insert_stage): Redirect only edges not flagged with
2032         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
2033         discovered constants.
2034
2035 2010-08-05  Martin Jambor  <mjambor@suse.cz>
2036
2037         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
2038         (struct ipa_param_descriptor): New fields types and
2039         cannot_devirtualize.
2040         (ipa_param_cannot_devirtualize_p): New function.
2041         (ipa_param_types_vec_empty): Likewise.
2042         (ipa_make_edge_direct_to_target): Declare.
2043         * ipa-cp.c: Fixed first stage driver name in initial comment,
2044         described devirtualization there too.
2045         (ipcp_analyze_node): Call ipa_analyze_params_uses.
2046         (ipcp_print_all_lattices): Print devirtualization info.
2047         (ipa_set_param_cannot_devirtualize): New function.
2048         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
2049         lattice to BOTTOM.
2050         (ipcp_init_stage): Merged into...
2051         (ipcp_generate_summary): ...its caller.
2052         (ipcp_change_tops_to_bottom): Also process type lists.
2053         (ipcp_add_param_type): New function.
2054         (ipcp_copy_types): Likewise.
2055         (ipcp_propagate_types): Likewise.
2056         (ipcp_propagate_stage): Also propagate types.
2057         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
2058         Also return true if propagated types require it.
2059         (ipcp_update_callgraph): Dump redirection info.
2060         (ipcp_process_devirtualization_opportunities): New function.
2061         (ipcp_const_param_count): Include known type information.
2062         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
2063         on new node.  Fixed formatting.
2064         * ipa-prop.c (make_edge_direct_to_target): Renamed to
2065         ipa_make_edge_direct_to_target and changed all callers.  Made
2066         externally visible.
2067         (ipa_node_duplication_hook): Duplicate types vector.
2068         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
2069         redirect outgoing calls for which we can't get a decl from the
2070         statement.  Check that we can get a decl from the call statement.
2071         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2072         ipa_analyze_params_uses only when ipa-cp is disabled.
2073         * tree-inline.c (get_indirect_callee_fndecl): Removed.
2074         (expand_call_inline): Do not call get_indirect_callee_fndecl.
2075         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
2076         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
2077
2078 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2079
2080         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
2081         temporary. Emit move from temporary to accum, so REG_EQUAL note will
2082         be attached to this insn in correct mode.
2083
2084 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
2085
2086         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
2087         using REGNO of base_reg directly.
2088
2089 2010-08-05  Jie Zhang  <jie@codesourcery.com>
2090
2091         PR tree-optimization/45144
2092         * tree-sra.c (type_consists_of_records_p): Return false
2093         if the record contains bit-field.
2094
2095 2010-08-04  Richard Henderson  <rth@redhat.com>
2096
2097         * config/i386/i386.c (struct ix86_frame): Remove padding and
2098         to_allocate members.
2099         (ix86_compute_frame_layout): Don't store them.
2100         (ix86_can_use_return_insn_p): Use a more direct and more obviously
2101         correct condition for the position of the stack pointer.
2102         (ix86_expand_prologue): Compute remaining stack allocation based
2103         on the ultimate stack pointer offset.
2104         (ix86_expand_epilogue): Use more obvious expressions testing for
2105         the stack pointer already pointing to the saved registers.
2106
2107         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
2108         duplication deconstructing the frame pointer.  Simplify
2109         deallocation of the local stack frame.
2110
2111         * reg-notes.def (CFA_EXPRESSION): New.
2112         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2113         (dwarf2out_frame_debug_cfa_expression): New.
2114         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
2115
2116         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
2117         * config/i386/i386.c (ix86_expand_prologue): Set it.
2118         (ix86_expand_epilogue): Clear it.
2119         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
2120         context, add REG_CFA_EXPRESSION notes.
2121
2122         * config/i386/i386.h (struct machine_frame_state): Rename from
2123         machine_cfa_state.  Add members tracking SP and FP regardless
2124         of the current CFA register.
2125         (ix86_cfa_state): Remove.
2126         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
2127         and sse_reg_save_offset members.
2128         (ix86_compute_frame_layout): Set them.
2129         (gen_push): Increment sp_offset too.
2130         (choose_baseaddr_len, choose_baseaddr): New.
2131         (ix86_emit_save_reg_using_mov): New.
2132         (ix86_emit_save_regs_using_mov): Use it.
2133         (ix86_emit_save_sse_regs_using_mov): Likewise.
2134         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
2135         compare vs the saved red_zone_offset.
2136         (pro_epilogue_adjust_stack): Adjust sp_offset.
2137         (ix86_adjust_stack_and_probe): Likewise.
2138         (ix86_expand_prologue): Set up, use, and validate the new
2139         frame_state_info members.  Use gen_frame_mem.
2140         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
2141         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
2142         new frame_state_info members.
2143         (ix86_emit_leave): Likewise.
2144         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
2145         out-of-range stack pointer offsets here.
2146         (ix86_emit_restore_sse_regs_using_mov): Likewise.
2147         (ix86_expand_epilogue): Use and validate the new frame_state_info
2148         members.  Break up and simplify the logic selecting the
2149         restore_regs_via_mov code path.  Ensure that there will be no
2150         out-of-range stack pointer offsets.
2151
2152         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
2153
2154         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
2155         argument name to reflect the expected tree; fix indentation.
2156         (ix86_asm_output_function_label): Output the entire 32-bit
2157         ms_hook here as bytes ...
2158         (ix86_expand_prologue): ... not here as insns.  Attach the
2159         unwind info for the ms_hook to a blockage insn.
2160         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
2161         (ix86_ms_bitfield_layout_p): Fix indentation.
2162         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
2163
2164         * config/i386/i386.c (ix86_using_red_zone): New.
2165         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
2166         ix86_expand_prologue, ix86_force_to_memory): Use it.
2167
2168         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
2169         saving the int registers.
2170
2171         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
2172         and DWARF2_UNWIND_INFO conditional compilation.
2173
2174 2010-08-04  Richard Henderson  <rth@redhat.com>
2175
2176         PR debug/45171
2177         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
2178         an is_naming_typedef_decl.
2179
2180 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
2181
2182         PR rtl-optimization/45162
2183         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
2184         * dce.c (word_dce_process_block): Likewise.
2185
2186 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
2187
2188         PR target/44583
2189         * config/ia64/constraints.md (Z): New.
2190         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
2191         (xfreg_or_signed_fp01_operand): New.
2192         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
2193         with fr_reg_or_signed_fp01_operand and constraint G with Z.
2194         (subsf3): Ditto.
2195         (*maddsf4): Ditto.
2196         (*msubsf4): Ditto.
2197         (adddf3): Ditto.
2198         (adddf3_trunc): Ditto.
2199         (subdf3): Ditto.
2200         (*subdf3_trunc): Ditto.
2201         (*madddf4): Ditto.
2202         (*madddf4_trunc): Ditto.
2203         (*msubdf4): Ditto.
2204         (*msubdf4_trunc): Ditto.
2205         (addxf3): Replace xfreg_or_fp01_operand with
2206         xfreg_or_signed_fp01_operand and constraint G with Z.
2207         (*addxf3_truncsf): Ditto.
2208         (*addxf3_truncdf): Ditto.
2209         (subxf3): Ditto.
2210         (*subxf3_truncsf): Ditto.
2211         (*subxf3_truncdf): Ditto.
2212         (*maddxf4): Ditto.
2213         (*maddxf4_truncsf): Ditto.
2214         (*maddxf4_truncdf): Ditto.
2215         (*msubxf4): Ditto.
2216         (*msubxf4_truncsf): Ditto.
2217         (*msubxf4_truncdf): Ditto.
2218
2219 2010-08-04  Richard Guenther  <rguenther@suse.de>
2220
2221         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
2222         if either alias-set is zero.
2223
2224 2010-08-04  Richard Guenther  <rguenther@suse.de>
2225
2226         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
2227         * tree-ssa-ccp.c: ... here.
2228         * tree-ssa-copy.c: ... and here.
2229         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
2230         value_range_t): Move ...
2231         * tree-vrp.c: ... here.
2232         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
2233         (substitute_and_fold): Adjust prototype.
2234         * tree-ssa-propagate.c (replace_uses_in): Adjust.
2235         (replace_phi_args_in): Likewise.
2236         (substitute_and_fold): Take callback to query lattice instead
2237         of pointer to lattice.  Replace SSA name defs with lattice
2238         values first.
2239         * tree-ssa-ccp.c (ccp_finalize): Adjust.
2240         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
2241         (get_value): New function.
2242         (fini_copy_prop): Adjust.
2243         * tree-vrp.c (vrp_finalize): Adjust.
2244
2245 2010-08-04  Richard Guenther  <rguenther@suse.de>
2246
2247         PR middle-end/45176
2248         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
2249         points-to set for original MEM_REF.
2250
2251 2010-08-04  Richard Guenther  <rguenther@suse.de>
2252
2253         * tree-ssa-ccp.c (get_constant_value): New function.
2254         (get_rhs_assign_op_for_ccp): Remove.
2255         (valueize_op): New function.
2256         (ccp_fold): Use get_constant_value and valueize_op.
2257         (fold_const_aggregate_ref): Likewise.
2258         (ccp_fold_stmt): Likewise.
2259         (visit_assignment): Simplify.
2260
2261 2010-08-04  Richard Guenther  <rguenther@suse.de>
2262
2263         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
2264         * double-int.h (double_int_ctz): Declare.
2265         * double-int.c (double_int_ctz): New function.
2266
2267 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
2268
2269         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
2270         Define.
2271         picochip_expand_movmemhi : Expand movmem pattern.
2272         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
2273         Declare.
2274         * config/picochip/picochip.md (movmemhi) : New pattern.
2275
2276 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2277
2278         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
2279
2280 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
2281
2282         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
2283         NEG as operand of a MULT by merging it with the other operand.
2284         * combine.c (make_compound_operation): Use trunc_int_for_mode when
2285         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
2286         MULT.
2287         * config/arm/constraints.md (M): Examine only 32 bits of a
2288         HOST_WIDE_INT.
2289         * config/arm/predicates.md (power_of_two_operand): Likewise.
2290
2291 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2292
2293         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
2294         non-NOTE insns.
2295
2296 2010-08-03  Jan Hubicka  <jh@suse.cz>
2297
2298         * ipa-split.c (struct split_point): Add split_part_set_retval.
2299         (find_retval): Forward declare.
2300         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
2301         (consider_split): Compute current->split_part_set_retval.
2302         (visit_bb): Do not look into return value.
2303         (split_function): Handle !split_part_set_retval
2304
2305 2010-08-03  Martin Jambor  <mjambor@suse.cz>
2306
2307         * tree-sra.c (completely_scalarize_record): New parameter REF, create
2308         its own access->expr intead of using build_ref_for_offset.
2309
2310 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
2311
2312         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
2313         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
2314         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
2315         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
2316         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
2317         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
2318         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
2319         DEFAULT_SWITCH_TAKES_ARG.
2320         * config/rx/rx.opt (-patch=): Remove option.
2321         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
2322         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
2323         * doc/invoke.texi (RX Options): Remove -patch=.
2324         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
2325         (option_map): Remove --profile-blocks, --quiet and --silent.
2326
2327 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
2328
2329         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
2330         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
2331         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
2332         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2333         Update calls to ix86_expand_compare and ix86_expand_branch.
2334         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
2335         ix86_expand_compare.
2336         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
2337         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
2338         Make static.
2339         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
2340         and ix86_compare_op1.  Update calls to ix86_expand_compare.
2341         (ix86_expand_int_movcc): Ditto.
2342         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
2343         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
2344         (ix86_expand_setcc): Ditto.
2345         (ix86_expand_compare): Remove prototype.
2346         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
2347         ix86_compare_op0 and ix86_compare_op1.  Update calls
2348         to ix86_expand_branch to directly pass operands[1] and operands[2].
2349         (cbranchxf4): Ditto.
2350         (cbranch<MODEF:mode>4): Ditto.
2351         (cbranchcc4): Ditto.
2352         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
2353         Update calls to ix86_expand_setcc to directly pass operands[2] and
2354         operands[3].
2355         (cstorexf4): Ditto.
2356         (cstore<MODEF:mode>4): Ditto.
2357         (cstorecc4): Ditto.
2358
2359 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2360
2361         PR target/45063
2362         * caller-save.c (save_call_clobbered_regs): Remove regs from
2363         hard_regs_saved when they are set.
2364
2365 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
2366
2367         PR target/41089
2368         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
2369         as volatile.
2370
2371 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
2372
2373         * common.opt (ftree-loop-distribute-patterns): New.
2374         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
2375         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
2376         at -O3.
2377         * tree-data-ref.c (stores_zero_from_loop): New.
2378         * tree-data-ref.h (stores_zero_from_loop): Declared.
2379         * tree-loop-distribution.c (tree_loop_distribution): Call
2380         stores_zero_from_loop.
2381         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
2382
2383 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
2384
2385         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
2386         into account.
2387
2388         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
2389         * config/arm/arm.c (thumb1_code): New variable.
2390         (arm_override_options): Set it.
2391         (thumb1_final_prescan_insn): Keep track of condition code status.
2392         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
2393         jumps that depend on them.
2394         * config/arm/arm.h (thumb1_code): Declare variable.
2395         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
2396         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
2397         thumb1_cc_mode.
2398         (CC_STATUS_INIT): New macro.
2399         * config/arm/constraints.md (Pd): New constraint.
2400         * config/arm/predicates.md (noov_comparison_operator): New predicate.
2401         * config/arm/arm.md (is_thumb1): New define_attr.
2402         (conds): Set default to "clob" when generating Thumb1 code.
2403         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
2404         code are set.  Use two-operand assembly syntax.
2405         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
2406         pattern.
2407         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
2408         codes are set.  Use two-operand assembly syntax.
2409         (zero_extendhisi splitter): Remove constraints.
2410         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
2411         thumb1_movsf_insn): Set conds attribute as appropriate.
2412         (cbranchsi4_insn): Use condition code status from struct
2413         machine_function to determine whether the comparison can be eliminated.
2414         Discourage the alternative using high registers.
2415         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
2416         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
2417         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
2418         subsi3_cbranch): Delete.
2419         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
2420         one subtract and one cbranch insn.
2421
2422         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
2423         thumb2_movdf_soft_insn): Delete patterns.
2424         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
2425         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
2426         (pool_range, neg_pool_range): Use them to define defaults.
2427         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
2428         and allow for TARGET_32BIT.
2429
2430         PR target/40457
2431         * config/arm/arm.h (arm_regs_in_sequence): Declare.
2432         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
2433         load_multiple_sequence, store_multiple_sequence): Delete
2434         declarations.
2435         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
2436         declarations.
2437         * config/arm/ldmstm.md: New file.
2438         * config/arm/arm.c (arm_regs_in_sequence): New array.
2439         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
2440         CHECK_REGS.  All callers changed.
2441         If SAVED_ORDER is nonnull, copy the computed order into it.
2442         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
2443         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
2444         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
2445         If SAVED_ORDER is nonnull, copy the computed order into it.
2446         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
2447         like REGS.  Handle Thumb mode.
2448         (arm_gen_load_multiple_1): New function, broken out of
2449         arm_gen_load_multiple.
2450         (arm_gen_store_multiple_1): New function, broken out of
2451         arm_gen_store_multiple.
2452         (arm_gen_multiple_op): New function, with code from
2453         arm_gen_load_multiple and arm_gen_store_multiple moved here.
2454         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
2455         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
2456         changed.
2457         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
2458         * config/arm/predicates.md (commutative_binary_operator): New.
2459         (load_multiple_operation, store_multiple_operation): Handle more
2460         variants of these patterns with different starting offsets.  Handle
2461         Thumb-1.
2462         * config/arm/arm.md: Include "ldmstm.md".
2463         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
2464         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
2465         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
2466         peepholes): Delete.
2467         * config/arm/ldmstm.md: New file.
2468         * config/arm/arm-ldmstm.ml: New file.
2469
2470         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
2471         if statement which adds extra costs to frame-related expressions.
2472
2473 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2474
2475         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
2476
2477 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
2478
2479         PR target/45142
2480         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
2481         alternative 2.
2482         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
2483         split V4SI operands.
2484
2485 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
2486
2487         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2488         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
2489         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
2490         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
2491
2492 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
2493
2494         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
2495         LOCAL_INCLUDE_DIR.
2496
2497 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
2498
2499         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
2500         used in the call to optab_for_tree_code.  Fix the second
2501         is_widening_mult_p call.  Check that both unwidened operands
2502         have the same sign.
2503
2504 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
2505
2506         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
2507
2508 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
2509
2510         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
2511
2512 2010-07-30  DJ Delorie  <dj@redhat.com>
2513
2514         * config/rx/predicates.md (rx_constshift_operand): New.
2515         * config/rx/rx.md (zs_cond): New.
2516         (cbranchsi4): Remove mode.
2517         (*cbranchsi4_<code>): Likewise.
2518         (*tstbranchsi4_<code>): New.
2519         (*tstbranchsi4r_<code>): New.
2520         (*tstbranchsi4m_eq): New.
2521         (*tstbranchsi4m_ne): New.
2522         (cbranchsf4): Remove mode.
2523         (*cbranchsf4_<code>): Likewise.
2524
2525 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
2526
2527         * rtlanal.c (simplify_subreg_regno): Don't treat
2528         HARD_FRAME_POINTER_REGNUM specially.
2529
2530 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
2531
2532         * common.opt (-G): Don't define option here.
2533         * config/g.opt: New.
2534         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
2535         rs6000/powerpc and score targets.
2536         * opts.c (common_handle_option): Don't handle -G here.
2537         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
2538         * config/frv/frv.c (frv_handle_option): Handle -G.
2539         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
2540         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
2541         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
2542         * config/mips/mips.c (mips_handle_option): Handle -G.
2543         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
2544         * config/score/score.c (score_handle_option): Handle -G.
2545
2546 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
2547
2548         * config/mmix/mmix.c: Include basic-block.h.
2549
2550 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
2551
2552         PR debug/45055
2553         PR rtl-optimization/45137
2554         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
2555         prototypes.
2556         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
2557         New functions.
2558         * combine.c (next_nonnote_nondebug_insn): Removed.
2559         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
2560         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
2561         * sched-deps.c (sched_analyze_insn): Likewise.
2562         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
2563         * rtlanal.c (canonicalize_condition): Likewise.
2564         * postreload.c (reload_combine_recognize_pattern): Likewise.
2565         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
2566
2567 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
2568
2569         * config/i386/i386.md (int_cond): Remove code iterator.
2570         (fp_cond): Ditto.
2571         (cbranch<mode>4): Use ordered_comparison_operator predicate
2572         for operator0.
2573         (cstore<mode>4): Ditto for operator1.
2574         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
2575         (add<mode>cc): ditto.
2576
2577 2010-07-30  Richard Guenther  <rguenther@suse.de>
2578
2579         PR middle-end/45141
2580         * expr.c (expand_expr_real_1): Check for not handled base address.
2581
2582 2010-07-30  Richard Guenther  <rguenther@suse.de>
2583
2584         * ipa-prop.c (ipa_modify_formal_parameters): Use
2585         build_distinct_type_copy.
2586
2587 2010-07-30  Anthony Green  <green@moxielogic.com>
2588
2589         * config/moxie/rtems.h: New file.
2590         * config.gcc: Add moxie-rtems support.
2591
2592 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2593
2594         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
2595         df flags as in run_fast_df_dce.
2596
2597 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2598
2599         Revert:
2600         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2601
2602         * rtl.def (NOTE): Swap operands 4 and 5.
2603         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
2604         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
2605         Adjust accordingly.
2606         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
2607
2608 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
2609
2610         PR debug/45110
2611         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
2612         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
2613         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
2614         formal parameters.
2615         (gen_decl_die): Change return type to dw_die_ref, return what
2616         gen_formal_parameter_die returned.
2617
2618 2010-07-29  Martin Jambor  <mjambor@suse.cz>
2619
2620         * dbgcnt.def (eipa_sra): New counter.
2621         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
2622
2623 2010-07-29  Xinliang David Li  <davidxl@google.com>
2624
2625         PR bootstrap/45119
2626         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
2627         in revision 162652.
2628
2629 2010-07-29  Richard Guenther  <rguenther@suse.de>
2630
2631         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
2632         (TV_TREE_STORE_CCP): Likewise.
2633         (TV_TREE_REDPHI): Likewise.
2634
2635 2010-07-29  Richard Guenther  <rguenther@suse.de>
2636
2637         * double-int.h (double_int_and_not): New function.
2638         * combine.c (try_combine): Use it.
2639         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
2640
2641 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
2642
2643         PR rtl-optimization/42575
2644         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
2645         Argument AU removed.  All callers changed.  Ignore artificial refs.
2646         Use return value of df_word_lr_simulate_defs to decide whether an insn
2647         is necessary.
2648         (fast_dce): Rename arg to WORD_LEVEL.
2649         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
2650         static.
2651         (pass_fast_rtl_byte_dce): Delete.
2652         * dce.h (run_word_dce): Declare.
2653         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
2654         All callers changed.  Simplify code to only deal with two-word regs.
2655         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
2656         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
2657         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
2658         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
2659         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
2660         (df_word_lr_mark_ref): Declare.
2661         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
2662         df_word_lr_simulate_uses): Declare or rename from byte variants.
2663         (df_byte_lr_simulate_artificial_refs_at_top,
2664         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2665         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
2666         declarations.
2667         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
2668         (enum df_mm): Delete.
2669         * df-byte-scan.c: Delete file.
2670         * df-problems.c (df_word_lr_problem_data): Renamed from
2671         df_byte_lr_problem_data, all members deleted except for
2672         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
2673         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
2674         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
2675         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
2676         df_byte_lr_confluence_0): Delete functions.
2677         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
2678         callers changed.
2679         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
2680         Don't initialize members that were deleted, don't try to discover data
2681         about registers.  Ignore hard regs.
2682         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
2683         (df_word_lr_mark_ref): New function.
2684         (df_word_lr_bb_local_compute): Renamed from
2685         df_byte_bb_lr_local_compute; all callers changed.  Use
2686         df_word_lr_mark_ref.  Assert that artificial refs don't include
2687         pseudos.  Ignore hard registers.
2688         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
2689         Assert that exit block uses don't contain pseudos.
2690         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
2691         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
2692         callers changed.  Ignore hard regs.
2693         (df_word_lr_transfer_function): Renamed from
2694         df_byte_lr_transfer_function; all callers changed.
2695         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
2696         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
2697         changed.
2698         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
2699         callers changed.
2700         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
2701         confluence operator 0 set to NULL.
2702         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
2703         callers changed.
2704         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
2705         Return bool, true if bitmap changed or insn otherwise necessary.
2706         All callers changed.  Simplify using df_word_lr_mark_ref.
2707         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
2708         all callers changed.  Simplify using df_word_lr_mark_ref.
2709         * lower-subreg.c: Include "dce.h"
2710         (decompose_multiword_subregs): Call run_word_dce if df available.
2711         * Makefile.in (lower-subreg.o): Adjust dependencies.
2712         (df-byte-scan.o): Delete.
2713         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
2714
2715 2010-07-29  Richard Guenther  <rguenther@suse.de>
2716
2717         * tree.c (build_vector): Assert that the vector constant
2718         has enough elements.
2719         (build_vector_from_ctor): Pad with trailing zeros.
2720
2721 2010-07-29  Richard Guenther  <rguenther@suse.de>
2722
2723         PR tree-optimization/45120
2724         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2725         Handle offset in DEREFs properly.
2726         (get_constraint_for_1): Handle MEM_REF offset properly.
2727
2728 2010-07-29  Richard Guenther  <rguenther@suse.de>
2729
2730         PR middle-end/45034
2731         * convert.c (convert_to_integer): Always use an unsigned
2732         type for narrowed negate and bitwise not.
2733
2734 2010-07-29  Ira Rosen  <irar@il.ibm.com>
2735
2736         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
2737         to outer loop when creating reduction epilogue for double reduction,
2738         and switch back to the inner loop when updating the phi nodes.
2739         Update uses of outer loop exit phi nodes in double reduction (instead
2740         of uses of reduction).
2741
2742 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
2743
2744         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
2745         popcount on power7 and parity on power6 systems.
2746         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
2747         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
2748         instructions.
2749
2750         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
2751         (UNSPEC_PARITY): Ditto.
2752         (SFDF): New iterator for SF/DF.
2753         (rreg2): New mode attribute for floating register constraint.
2754         (TARGET_FLOAT): New mode attribute for whether single/double float
2755         is supported.
2756         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
2757         pattern.
2758         (parity<mode>2_cmpb): New insn for parity on power6 and newer
2759         machines.
2760         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
2761         pattern.  Add support for fcpsgn instruction added in power6.
2762         (copysignsf3): Delete.
2763         (copysigndf3): Delete.
2764         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
2765         instead of if_then_else in RTL to avoid problems with -0.
2766
2767         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
2768         of if_then_else to mirror scalar code.
2769         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
2770         rs6000.md.
2771
2772         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
2773         instead of if_then_else.
2774
2775 2010-07-28  Xinliang David Li  <davidxl@google.com>
2776
2777         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
2778         (dump_cand): Dump var_before/after.
2779         (htab_inv_expr_eq): New function.
2780         (htab_inv_expr_hash): New function.
2781         (tree_ssa_iv_optimize_init): Support pseudo invariants.
2782         (add_candidate_1): consider base type precision.
2783         (set_use_iv_cost): New parameter.
2784         (adjust_setup_cost): Use profile information.
2785         (get_address_cost): Do not hard code width in computing address
2786         offset limits.
2787         (compare_aff_trees): New function.
2788         (get_loop_invariant_expr_id): New function.
2789         (get_computation_cost_at): New parameter and use profile information.
2790         (get_computation_cost): New parameter.
2791         (determine_use_iv_cost_generic): Pass new parameter.
2792         (determine_use_iv_cost_address): Ditto.
2793         (determine_use_iv_cost_condition): Ditto.
2794         (autoinc_possible_for_pair): Ditto.
2795         (determine_use_iv_costs): More dumps.
2796         (iv_ca_get_num_inv_exprs): New function.
2797         (iv_ca_recount_cost): Consider loop invariants in register pressure
2798         cost.
2799         (iv_ca_add_use): New parameter.
2800         (iv_ca_dump): Better dumping.
2801         (iv_ca_extend): New parameter.
2802         (try_add_cand_for): Attempt to get better partial solution.
2803         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
2804         (create_new-ivs): More dumps.
2805         (rewrite_use_compare): Ditto.
2806         (free_loop_data): More cleanup.
2807         (treee_ssa_iv_optimize_finalize): Ditto.
2808
2809 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
2810
2811         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
2812         * config/i386/i386.c (ix86_profile_before_prologue): New.
2813         (override_options): Add special handling for -mfentry.
2814         (ix86_function_regparm): Likewise.
2815         (ix86_function_sseregparm): Likewise.
2816         (ix86_frame_pointer_required): Likewise.
2817         (ix86_expand_prologue): Check for ms_hook_prologue.
2818         (x86_function_profiler): Adjust mcount output.
2819         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
2820         * config/i386/i386.opt (mfentry): New.
2821         * doc/invoke.texi (mfentry): Add documentation.
2822         * doc/tm.texi: Regenerated..
2823         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
2824         * final.c (final_start_function): Replace macro
2825         PROFILE_BEFORE_PROLOGUE by target hook.
2826         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2827         * target.def (profile_before_prologue): New hook.
2828         * targhooks.c (default_profile_before_prologue): New.
2829         * targhooks.h (default_profile_before_prologue): New.
2830
2831 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
2832
2833         PR debug/45105
2834         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
2835
2836         PR debug/45103
2837         * dwarf2out.c (dwarf2out_var_location): Always consider
2838         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
2839
2840 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2841
2842         PR rtl-optimization/45107
2843         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
2844
2845 2010-07-28  Richard Guenther  <rguenther@suse.de>
2846
2847         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
2848         (set_lattice_value): Do not query an old default value.
2849         (get_value_for_expr): New function.  Properly canonicalize
2850         float values.
2851         (ccp_visit_phi_node): Use it.
2852
2853 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
2854
2855         * config/arm/arm.c (arm_pcs_default): Remove static.
2856         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
2857         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
2858         (arm_pcs_default): Declare.
2859
2860 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
2861
2862         * config/rs6000/rs6000.c (rs6000_override_options):
2863         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
2864         ... to darwin_rs6000_override_options.
2865         (rs6000_return_in_memory): Update preceding comment for darwin
2866         64 bit ABI.  Use TARGET_MACHO inline.
2867         (rs6000_darwin64_struct_check_p): New.
2868         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
2869         (function_arg): Likewise.
2870         (rs6000_arg_partial_bytes): Likewise.
2871         (rs6000_function_value): Likewise.
2872
2873 2010-07-28  Andi Kleen <ak@linux.intel.com>
2874
2875         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
2876
2877 2010-07-28  Richard Guenther  <rguenther@suse.de>
2878
2879         PR middle-end/44903
2880         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
2881         targets try harder to not generate unaligned accesses.
2882
2883 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
2884
2885         PR rtl-optimization/45101
2886         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
2887         for gcse-las.
2888
2889 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2890
2891         PR tree-optimization/44885
2892         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
2893         with non-aliased component.
2894
2895 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
2896
2897         * config/darwin-driver.c (SWITCH_TAKES_ARG,
2898         WORD_SWITCH_TAKES_ARG): Remove.
2899         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2900         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
2901         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
2902         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
2903         definitions from gcc.c.
2904         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
2905         defaults.h.
2906         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
2907         Move to defaults.h.
2908         * opts-common.c: Include tm.h.
2909         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
2910         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
2911         Handle more than one argument.  Set canonical_option_num_elements.
2912         (decode_cmdline_options_to_array): Set
2913         canonical_option_num_elements and trailing elements of
2914         canonical_option.
2915         * opts.h (struct cl_decoded_option): Allow four elements in
2916         canonical_option.  Add field canonical_option_num_elements.
2917         * Makefile.in (opts-common.o): Update dependencies.
2918
2919 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
2920
2921         PR middle-end/44790
2922         PR middle-end/44993
2923         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
2924         sure the base has address_mode before adding the offset.
2925
2926 2010-07-27  Xinliang David Li <davidxl@google.com>
2927
2928         * tree-flow.h (create_mem_ref): Add one new parameter.
2929         * tree-ssa-address.c (create_mem_ref): New parameter.
2930         (addr_to_parts): Ditto.
2931         (move_variant_to_index): New function.
2932         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
2933
2934 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
2935
2936         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
2937         4 and 5.
2938         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
2939         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
2940         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
2941         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
2942         CODE_LABELs and NOTEs.
2943         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
2944         * combine.c (try_combine): Likewise.
2945         * ira.c (setup_prohibited_mode_move_regs): Likewise.
2946         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
2947
2948 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
2949
2950         * coretypes.h (struct cl_option_handlers): Declare.
2951         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
2952         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
2953         * langhooks-def.h (lhd_handle_option): Declare.
2954         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
2955         * langhooks.c (lhd_handle_option): New.
2956         * langhooks.h (struct lang_hooks): Update prototype and return
2957         value type of handle_option hook.
2958         * optc-gen.awk: Generate target_flags_explicit definition for the
2959         driver.
2960         * opts-common.c: Include diagnostic.h.
2961         (handle_option): Move from opts.c.  Update prototype and return
2962         value type.  Use handlers structure.
2963         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
2964         handlers structure.
2965         (set_option): Move from opts.c.
2966         * opts.c (common_handle_option): Update prototype and return value
2967         type.  Update calls to handle_option and enable_warning_as_error.
2968         (unknown_option_callback, post_handling_callback,
2969         lang_handle_option, target_handle_option): New.
2970         (handle_option, read_cmdline_option): Move to opts-common.c.
2971         (read_cmdline_options): Update prototype.  Update call to
2972         read_cmdline_option.
2973         (decode_options): Initialize and use handlers structure.
2974         (set_option): Move to opts-common.c.
2975         (enable_warning_as_error): Update prototype.  Update call to
2976         handle_option.
2977         * opts.h (struct cl_option_handler_func, struct
2978         cl_option_handlers): New.
2979         (handle_option, enable_warning_as_error): Update prototypes.
2980         (read_cmdline_option): Declare.
2981         * Makefile.in (opts-common.o): Update dependencies.
2982
2983 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2984
2985         * config/arm/arm.c (params.h): Include.
2986         (arm_override_options): Tune gcse-unrestricted-cost.
2987         * config/arm/t-arm (arm.o): Define dependencies.
2988
2989 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
2990
2991         PR target/42495
2992         PR middle-end/42574
2993         * basic-block.h (get_dominated_to_depth): Declare.
2994         * dominance.c (get_dominated_to_depth): New function, use
2995         get_all_dominated_blocks as a base.
2996         (get_all_dominated_blocks): Use get_dominated_to_depth.
2997
2998         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
2999         (hoist_exprs): Remove.
3000         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
3001         (compute_code_hoist_vbeinout): Add debug print outs.
3002         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
3003
3004         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
3005         quadratic behavior.
3006         * params.h (MAX_HOIST_DEPTH): New macro.
3007         * doc/invoke.texi (max-hoist-depth): Document.
3008
3009 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3010
3011         PR rtl-optimization/40956
3012         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
3013         constants.
3014
3015 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3016
3017         PR target/42495
3018         PR middle-end/42574
3019         * config/arm/arm.c (legitimize_pic_address): Use
3020         gen_calculate_pic_address pattern to emit calculation of PIC address.
3021         (will_be_in_index_register): New function.
3022         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
3023         (thumb1_legitimate_address_p): Use it provided !strict_p.
3024         * config/arm/arm.md (calculate_pic_address): New expand and split.
3025
3026 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3027
3028         PR target/42495
3029         PR middle-end/42574
3030         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
3031         * config/arm/arm.md (define_split "J", define_split "K"): Make
3032         IRA/reload friendly.
3033
3034 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3035
3036         * gcse.c (insert_insn_end_basic_block): Update signature, remove
3037         unused checks.
3038         (pre_edge_insert, hoist_code): Update.
3039
3040 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3041
3042         PR target/42495
3043         PR middle-end/42574
3044         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
3045
3046 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3047
3048         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
3049
3050 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3051
3052         PR rtl-optimization/40956
3053         PR target/42495
3054         PR middle-end/42574
3055         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
3056         for hoisting.
3057         (hoist_code): Count occurences in current block too.
3058
3059 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3060
3061         * gcse.c (struct expr:max_distance): New field.
3062         (doing_code_hoisting_p): New static variable.
3063         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
3064         simple expressions, don't change behavior for PRE.  Set max_distance.
3065         (insert_expr_in_table): Set new max_distance field.
3066         (hash_scan_set): Update.
3067         (hoist_expr_reaches_here_p): Stop search after max_distance
3068         instructions.
3069         (find_occr_in_bb): New static function.  Use it in ...
3070         (hoist_code): Calculate sizes of basic block before any changes are
3071         done.  Pass max_distance to hoist_expr_reaches_here_p.
3072         (one_code_hoisting_pass): Set doing_code_hoisting_p.
3073
3074         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
3075         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
3076         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
3077         macros.
3078         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
3079         Document.
3080
3081 2010-07-27  Jeff Law  <law@redhat.com>
3082             Maxim Kuvyrkov  <maxim@codesourcery.com>
3083
3084         * gcse.c (compute_transpout, transpout): Remove, move logic
3085         to prune_expressions.
3086         (compute_pre_data): Move pruning of trapping expressions ...
3087         (prune_expressions): ... here.  New static function.
3088         (compute_code_hoist_data): Use it.
3089         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
3090
3091 2010-07-27  Xinliang David Li  <davidxl@google.com>
3092
3093         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
3094         (rewrite_use_address): Adjust iv update position when needed.
3095
3096 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
3097
3098         * dbgcnt.def (hoist_insn): New debug counter.
3099         * gcse.c (hoist_code): Use it.
3100
3101 2010-07-27  Xinliang David Li  <davidxl@google.com>
3102
3103         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
3104         (niter_for_single_dom_exit): Passes additional parameter.
3105         (iv_period): Fix comments.
3106         (may_eliminate_iv): Handles multiple exit loops properly.
3107         (free_tree_niter_desc): New function.
3108         (free_loop_data): Frees up loop iteration descriptors.
3109
3110 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3111
3112         PR target/44542
3113         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
3114         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
3115         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
3116         (expand_one_var): Don't consider DECL_ALIGN for variables for
3117         which expand_one_stack_var_at has been already called.
3118
3119         PR testsuite/44701
3120         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
3121         constraints on IA-64.
3122
3123 2010-07-27  Jie Zhang  <jie@codesourcery.com>
3124
3125         PR target/44290
3126         Revert:
3127         2010-07-23  Jie Zhang  <jie@codesourcery.com>
3128
3129         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3130         false if ! tree_versionable_function_p.
3131
3132 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3133
3134         * dwarf2out.c (add_data_member_location_attribute): Use
3135         add_AT_unsigned instead of add_AT_int if offset is non-negative.
3136
3137 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3138
3139         * postreload.c (try_replace_in_use): New static function.
3140         (reload_combine_recognize_const_pattern): Use it here.  Allow
3141         substituting into a final add insn, and substituting into a memory
3142         reference in an insn that sets the reg.
3143
3144 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3145
3146         * common.opt (o): Add MissingArgError.
3147         * doc/options.texi (MissingArgError): Document.
3148         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
3149         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
3150         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3151         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
3152         * langhooks.h (struct lang_hooks): Remove missing_argument.
3153         * optc-gen.awk: Handle MissingArgError and output new structure
3154         field initializers.
3155         * opts.c (read_cmdline_option): Use missing_argument_error field
3156         instead of missing_argument langhook.
3157         * opts.h (struct cl_option): Add missing_argument_error field.
3158         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
3159
3160 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3161
3162         PR target/29090
3163         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
3164         Darwin64 ABI, for zero-sized objects.
3165
3166 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
3167
3168         PR target/35491
3169         PR target/29090
3170
3171         Merge from Apple local 4.2.1.
3172         2005-05-11  Stan Shebs  <shebs@apple.com>
3173         Fix 64-bit varargs for Darwin (Radar 4028089).
3174         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
3175         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
3176         Add argument, add case for 8-byte register half-filled with a float.
3177         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
3178         single-precision floats specially.
3179
3180 2010-07-27  Ira Rosen  <irar@il.ibm.com>
3181
3182         PR tree-optimization/44152
3183         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
3184         complex numbers for further check.
3185         (vect_supported_load_permutation_p): Check nodes with
3186         complex numbers.
3187
3188 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
3189
3190         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
3191         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
3192         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
3193         (LANG_HOOKS_INITIALIZER): Add new hooks.
3194         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
3195         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
3196         and complain_wrong_lang_p.  Update init_options prototype.
3197         * c-objc-common.c (c_initialize_diagnostics): First call
3198         c_common_initialize_diagnostics.
3199         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
3200         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
3201         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
3202         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
3203         (hook_uint_void_0): New.
3204         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
3205         (hook_uint_void_0): New.
3206         * opts-common.c (decode_cmdline_option,
3207         decode_cmdline_options_to_array): Also fill in canonical_option field.
3208         * opts.c (complain_wrong_lang): Use langhook to determine whether
3209         to complain instead of special-casing LTO.
3210         (decode_options): Separate lang_mask determination with
3211         option_lang_mask hook from call of init_options hook.
3212         * opts.h (struct cl_decoded_option): Add canonical_option.
3213
3214 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
3215
3216         PR tree-optimization/45083
3217         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
3218
3219 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
3220
3221         * postreload.c (reload_combine_recognize_const_pattern): Move test
3222         for limiting the insn movement to the right scope.
3223
3224         PR rtl-optimization/45051
3225         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
3226         than reg_mentioned_p.
3227
3228 2010-07-26  Richard Henderson  <rth@redhat.com>
3229
3230         PR target/44132
3231         * tree-emutls.c: New file.
3232         * Makefile.in (OBJS-common): Add it.
3233         * tree-pass.h (pass_ipa_lower_emutls): Declare.
3234         * passes.c (init_optimization_passes): Add it.
3235
3236         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
3237         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
3238         * expr.c (emutls_var_address): Delete.
3239         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
3240         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
3241         (emutls_finish): Delete.
3242         * toplev.c (compile_file): Don't call it.
3243         * tree.h (emutls_decl): Delete.
3244         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
3245         (emutls_finish, emutls_finalize_control_var): Delete.
3246         (emutls_object_type): Move to tree-emutls.c.
3247         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
3248         default_emutls_var_fields, get_emutls_object_type,
3249         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
3250         default_emutls_var_init): Likewise.
3251         (get_variable_section): Don't special case emutls.
3252         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
3253         default_elf_select_section, default_unique_section,
3254         default_encode_section_info): Likewise.
3255         * varpool.c (decide_is_variable_needed): Likewise.
3256         * gimple-iterator.c (update_call_edge_frequencies): New
3257         (gsi_insert_on_edge_immediate): Use it.
3258         (gsi_insert_seq_on_edge_immediate): Likewise.
3259         (gsi_commit_one_edge_insert): Likewise.
3260
3261         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
3262         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
3263         (x86_64_elf_unique_section): Likewise.
3264
3265 2010-07-26  Jan Hubicka  <jh@suse.cz>
3266
3267         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
3268         GTY((skip)).
3269
3270 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
3271
3272         * target.def (output_source_filename): New hook.
3273         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
3274         * doc/tm.texi: Regenerate.
3275         * toplev.c (output_file_directive) Remove function.
3276         * toplev.h (output_file_directive) Remove.
3277         * output.h (default_asm_output_source_filename,
3278         output_file_directive): Declare.
3279         * varasm.h (default_asm_output_source_filename,
3280         output_file_directive): New functions.
3281
3282         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
3283         * config/mips/mips-protos.h (mips_output_filename): Remove.
3284         * config/mips/mips.c (mips_output_filename): Make Static.
3285         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
3286
3287 2010-07-26  Richard Guenther  <rguenther@suse.de>
3288
3289         PR tree-optimization/43784
3290         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
3291         if the destination is used by the call.
3292
3293 2010-07-26  Richard Guenther  <rguenther@suse.de>
3294
3295         PR middle-end/45073
3296         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
3297         SSA updating on being in SSA form.
3298
3299 2010-07-26  Richard Guenther  <rguenther@suse.de>
3300
3301         PR middle-end/45056
3302         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
3303
3304 2010-07-26  Richard Guenther  <rguenther@suse.de>
3305
3306         PR tree-optimization/45071
3307         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
3308         adjust op->opcode.
3309
3310 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
3311
3312         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
3313         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
3314         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
3315         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
3316         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
3317         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
3318         save_r31, return_r31, save_interrupt, return_interrupt,
3319         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
3320         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
3321         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
3322         new ABI requirements.
3323         (save_r6_r9, L_callt_save_r6_r9): Remove.
3324         * config/v850/predicates.md (even_reg_operand, disp23_operand,
3325         const_float_1_operand const_float_0_operand): New Predicates.
3326         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
3327         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
3328         * config/v850/t-v850: Update multilibs for new target variants.
3329         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
3330         * config/v850/t-v850e: Likewise.
3331         * config/v850/v850.c (v850_issue_rate): New.
3332         (v850_strict_argument_naming): New.
3333         (function_arg): Modify to generate a different ABI.
3334         (print_operand): Update case 'z' to support float modes.
3335         (output_move_single): Modify to generate appropriate and better
3336         assembly.
3337         (v850_float_z_comparison_operator, v850_select_cc_mode,
3338         v850_float_nz_comparison_operator,  v850_gen_float_compare,
3339         v850_gen_compare): New functions to support comparison of float values.
3340         (ep_memory_offset): Add support for V850E2 targets.
3341         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
3342         (INTERRUPT_REGPARM_NUM): Remove.
3343         (compute_register_save_size): Add extra case to save/restore long call.
3344         (use_prolog_function): New function to support prologue.
3345         (expand_prologue): Add support for V850E2 targets and modified
3346         as per the current ABI requirements.
3347         (expand_epilogue): Likewise.
3348         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
3349         (construct_save_jarl): Likewise.
3350         (construct_dispose_instruction): Update as per the current ABI
3351         requirements.
3352         (construct_prepare_instruction): Likewise.
3353         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
3354         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
3355         (CPP_SPEC): Updated to support v850e2 targets.
3356         (STRICT_ALIGNMENT): Modified.
3357         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
3358         (FIXED_REGISTERS): Likewise.
3359         (CALL_USED_REGISTERS): Likewise.
3360         (CONDITIONAL_REGISTER_USAGE): Updated.
3361         (HARD_REGNO_MODE_OK): Updated.
3362         (reg_class): Updated to add even registers.
3363         (REG_CLASS_NAMES): Likewise.
3364         (REG_CLASS_CONTENTS): Likewise.
3365         (REGNO_REG_CLASS): Updated for CC registers.
3366         (REG_CLASS_FROM_LETTER): Added support for even registers.
3367         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
3368         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
3369         ARG_POINTER_REGNUM): Updated.
3370         (FUNCTION_ARG_ADVANCE): Define.
3371         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
3372         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
3373         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
3374         (GO_IF_LEGITIMATE_ADDRESS): Updated.
3375         (SELECT_CC_MODE): Define.
3376         (REGISTER_NAMES): Updated to add psw and fcc registers.
3377         (ADDITIONAL_REGISTER_NAMES): Updated.
3378         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
3379         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
3380         * config/v850/v850.md (define_constants): Define new constants.
3381         (type): Update store,bit1,macc,div,fpu and single attributes.
3382         (cpu): New attribute.
3383         (cc): Add set_z attribute.
3384         (unsign23byte_load, sign23byte_load, unsign23hword_load,
3385         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
3386         23word_store): New instructions for 23-bit displacement load and store.
3387         (movqi_internal, movhi_internal): Update the attributes.
3388         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
3389         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
3390         the attributes.
3391         (v850_tst1): Modified using CC_REGNUM.
3392         (tstsi): Remove.
3393         (cmpsi): Modified as define_expand from define_insn.
3394         (cmpsi_insn, cmpsf, cmpdf): New instructions.
3395         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
3396         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
3397         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
3398         one_cmplsi2): Clobber the CC_REGNUM register.
3399         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
3400         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
3401         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
3402         (setf_insn, set_z_insn, set_nz_insn): New instructions for
3403         v850e2v3 target.
3404         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
3405         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
3406         targets.
3407         (sasf_1, sasf_2): Remove.
3408         (sasf): New instruction.
3409         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
3410         targets. CC_REGNUM register is clobbered and attributes are
3411         updated.
3412         (branch_z_normal, branch_z_invert, branch_nz_normal,
3413         branch_nz_invert): New branch related instructions.
3414         (jump): Updated the attributes.
3415         (switch): Update to support new targets. CC_REGNUM register is
3416         clobbered and attributes are updated.
3417         (call_internal_short, call_internal_long, call_value_internal_short,
3418         call_value_internal_long): Updated the attributes.
3419         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
3420         clobbered and attributes are updated.
3421         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
3422         Update to support new targets. CC_REGNUM register is clobbered.
3423         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
3424         instructions.
3425         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
3426         are updated.
3427         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
3428         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
3429         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
3430         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
3431         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
3432         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
3433         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
3434         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
3435         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
3436         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
3437         point instructions defined for V850e2v3 target.
3438         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
3439         Add support for V850E2 targets and CC_REGNUM register is clobbered.
3440         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
3441         support for new targets.
3442         * config/v850/v850-modes.def: New file.
3443         * config/v850/v850.opt(mstrict-align): Remove.
3444         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
3445         mv850e2v3): New command line options for V850.
3446         * config.gcc: Update the newly added files.
3447         * doc/invoke.texi: Update the newly added command line options for
3448         V850 target.
3449
3450 2010-07-26  Richard Guenther  <rguenther@suse.de>
3451
3452         PR tree-optimization/45052
3453         * ipa-pure-const.c (check_stmt): Check volatileness.
3454
3455 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3456
3457         PR target/44707
3458         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
3459         * config/sparc/sparc.c: Include reload.h.
3460         (legitimize_tls_address): Rename into...
3461         (sparc_legitimize_tls_address): ...this.
3462         (legitimize_pic_address): Rename into...
3463         (sparc_legitimize_pic_address): ...this.
3464         (sparc_expand_move): Adjust to above renaming.
3465         (sparc_tls_referenced_p): Likewise.
3466         (sparc_legitimize_tls_address): Likewise.
3467         (sparc_legitimize_pic_address): Likewise.
3468         (sparc_legitimize_address): Likewise.
3469         (sparc_output_mi_thunk): Likewise.
3470         (sparc_legitimize_reload_address): New global function.  Recognize
3471         (lo_sum (high ...) ...) patterns generated by earlier passes.
3472         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
3473
3474 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
3475
3476         PR target/44484
3477         * config/sparc/predicates.md (memory_reg_operand): Delete.
3478         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
3479         (*sync_compare_and_swap): Encode the address form in the pattern.
3480         (*sync_compare_and_swapdi_v8plus): Likewise.
3481
3482 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
3483
3484         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
3485         Streamline paragraph on compatibility with the system compiler.
3486
3487 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
3488
3489         PR middle-end/45035
3490         * alias.c (true_dependence_1): Fix thinko in merge of old
3491         true_dependence and canon_true_dependence.
3492
3493 2010-07-23  Jan Hubicka  <jh@suse.cz>
3494
3495         * lto-streamer-out.c (write_symbol): Fix visibilities of external
3496         references.
3497
3498 2010-07-23  Le-Chun Wu  <lcwu@google.com>
3499
3500         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
3501         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
3502         and an unnecessary assignment.
3503         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
3504         self-assign warning.
3505         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
3506         unnecessary self-init.
3507
3508 2010-07-23  Richard Guenther  <rguenther@suse.de>
3509
3510         PR lto/43071
3511         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
3512         for -flto and -fwhopr.
3513
3514 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
3515
3516         PR target/41943
3517         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
3518         (stmp-int-hdrs): Prefix/postfix headers by include_next.
3519         * config.gcc (user_headers_inc_next_pre): New.
3520         (user_headers_inc_next_post): Likewise.
3521         (*-w64-mingw*): Use for float.h post-fixing, and for
3522         stddef.h/stdarg.h pre-fixing by include_next.
3523         * configure.ac (user_headers_inc_next_post): New.
3524         (user_headers_inc_next_pre): New.
3525         * configure: Regenerated.
3526
3527 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3528
3529         * configure.ac: Don't disable TLS on Solaris 8/9 by default
3530         Set tga_func for Solaris 2/x86 resp. SPARC.
3531         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
3532         (LIB_THREAD_LDFLAGS_SPEC): Define.
3533         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
3534         * configure: Regenerate.
3535         * config.in: Regenerate.
3536         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
3537         -pthread, -threads, LIB_TLS_SPEC with -pthread.
3538         * doc/install.texi (Specific, *-*-solaris2*): Document use of
3539         alternate thread libraries on Solaris 8.
3540         Document TLS patch requirements.
3541         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
3542         Document tls.
3543
3544         PR target/18788
3545         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
3546         -shared.
3547
3548 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
3549
3550         * tree.h (struct tree_base): Add nameless_flag bitfield.
3551         (TYPE_NAMELESS, DECL_NAMELESS): Define.
3552         * omp-low.c (create_omp_child_function, scan_omp_parallel,
3553         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
3554         DECL_ARTIFICIAL where needed.
3555         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
3556         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
3557         has DECL_NAMELESS set.
3558
3559 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3560
3561         PR tree-optimization/44915
3562         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
3563         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
3564         (analyze_function): Likewise.
3565
3566 2010-07-23  Martin Jambor  <mjambor@suse.cz>
3567
3568         PR tree-optimization/44914
3569         * tree-sra.c (sra_modify_function_body): Return true if CFG was
3570         changed, add purging dead eh edges.
3571         (ipa_sra_modify_function_body): Return true if CFG was changed,
3572         simplify purging dead eh edges.
3573         (modify_function): Return true if CFG was changed.
3574         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
3575         was changed.
3576         (ipa_early_sra): Likewise.
3577
3578 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3579
3580         PR target/44290
3581         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
3582         if "naked".
3583         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
3584         false if ! tree_versionable_function_p.
3585
3586 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
3587
3588         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
3589         * ipa-pure-const.c (special_builtlin_state): Remove
3590         BUILT_IN_ARGS_INFO case.
3591         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3592         * builtins.c (expand_builtin): Likewise.
3593         (expand_builtin_args_info): Remove.
3594         * doc/tm.texi (__builtin_args_info): Remove.
3595         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
3596         * doc/tm.text.in: Likewise.
3597
3598 2010-07-23  Richard Guenther  <rguenther@suse.de>
3599
3600         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
3601         (lto_symtab_merge_decls_2): Likewise.
3602         * tree-ssa.c (useless_type_conversion_p): Likewise.
3603         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3604         * gimple.c (gtc_visited2, gtc_ob2): Remove.
3605         (struct type_pair_d): Make same_p an array indexed by mode.
3606         Update comment.
3607         (lookup_type_pair): Update initialization.
3608         (struct sccs): Adjust same_p type.
3609         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
3610         Adjust.
3611         (print_gimple_types_stats): Likewise.
3612         * gimple.h (enum gtc_mode): New.
3613         (gimple_types_compatible_p): Adjust prototype.
3614
3615 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
3616
3617         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
3618         again after processing insn.
3619
3620 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3621
3622         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
3623         proper words when !tree_versionable_function_p.
3624
3625 2010-07-23  Richard Guenther  <rguenther@suse.de>
3626
3627         PR tree-optimization/45037
3628         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
3629
3630 2010-07-23  Jie Zhang  <jie@codesourcery.com>
3631
3632         * doc/extend.texi: Remove IP2K from the description of naked attribute.
3633         Add MCORE instead.
3634
3635 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3636
3637         PR lto/44992
3638         * lto-opts.c (lto_write_options): Add NULL file_data argument to
3639         lto_get_section_name.
3640         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
3641         * lto-streamer-out.c (produce_asm): Likewise.
3642         (copy_function): Likewise.
3643         (produce_symtab): Likewise.
3644         (produce_asm_for_decls): Likewise.
3645         * lto-streamer.c (lto_get_section_name): Add file_data argument.
3646         Rewrite to add random postfix to LTO sections.
3647         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
3648         (lto_get_section_name): Add file_data argument to prototype.
3649
3650 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3651
3652         * lto-section-in.c (lto_section_name): Synchronize names
3653         with lto_get_section_name.
3654
3655 2010-07-10  Andi Kleen  <ak@linux.intel.com>
3656
3657         * lto-opts.c (lto_read_file_options): Check for missing section.
3658
3659 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3660
3661         * ira.c (check_allocation): Correctly handle the case where an allocno
3662         with two objects was allocated to a single reg.
3663
3664 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
3665
3666         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
3667         (is_widening_mult_p): Likewise.
3668         (convert_to_widen): Use them.
3669         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
3670         well as integer ones.
3671
3672 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3673
3674         * alias.c (true_dependence_1): New function, merged version of
3675         true_dependence and canon_true_dependence.
3676         (true_dependence): Simplify.
3677         (canon_true_dependence): Simplify.
3678
3679 2010-07-22  Richard Henderson  <rth@redhat.com>
3680
3681         PR target/45027
3682         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
3683         of V4SFmode for the SSE saves; increase stack alignment if needed.
3684         (ix86_gimplify_va_arg): Don't increase stack alignment here.
3685
3686 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
3687
3688         PR bootstrap/45028
3689         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
3690         call cprop_find_used_regs again via note_uses.
3691
3692 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
3693
3694         * alias.c (get_alias_set): Fix formatting issues.
3695
3696 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
3697
3698         PR middle-end/44878
3699         * stmt.c (expand_value_return):  Call promote_function_mode with
3700         a for_return argument of 2 when returning by reference.
3701
3702 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
3703
3704         PR debug/45024
3705         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
3706         unit DIE if we can find the scope DIE.
3707
3708 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3709
3710         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
3711         changed.  Initialize OBJECT_SUBWORD.
3712         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
3713         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
3714         all callers changed.
3715         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
3716         (finish_allocno): Likewise.
3717         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
3718         (remove_low_level_allocnos): Likewise.
3719         (update_bad_spill_attribute): Likewise.
3720         (setup_min_max_allocno_live_range_point): Likewise.
3721         (sort_conflict_id_map): Likewise.
3722         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
3723         (ior_hard_reg_conflicts): New function.
3724         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
3725         (compress_conflict_vecs): Iterate over objects, not allocnos.
3726         (ira_add_live_range_to_object): New function.
3727         (object_range_compare_func): Renamed from allocno_range_compare_func.
3728         All callers changed.
3729         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
3730         subobjects, widen the min/max range of the lowest-order object to
3731         potentially include all other such low-order objects.
3732         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
3733         (check_allocation): Likewise.  Use more fine-grained tests for register
3734         conflicts.
3735         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
3736         allocno subobjects.
3737         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
3738         choices about which bits to set in each set.  Don't use
3739         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
3740         using the multiple sets we computed.
3741         (push_allocno_to_stack): Iterate over allocno subobjects.
3742         (all_conflicting_hard_regs_coalesced): New static function.
3743         (setup_allocno_available_regs_num): Use it.
3744         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
3745         subobjects.
3746         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
3747         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
3748         by ALLOCNO_NUM_OBJECTS.
3749         (calculate_spill_cost): Likewise.
3750         (color_pass): Express if statement in a more normal way.
3751         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
3752         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
3753         (setup_slot_coalesced_allocno_live_ranges): Likewise.
3754         (allocno_reload_assign): Likewise.
3755         (ira_reassign_pseudos): Likewise.
3756         (fast_allocation): Likewise.
3757         * ira-conflicts.c (build_conflict_bit_table): Likewise.
3758         (print_allocno_conflicts): Likewise.
3759         (ira_build_conflicts): Likewise.
3760         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
3761         callers changed.  Test subword 0 of each allocno for conflicts.
3762         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
3763         callers changed.  Iterate over allocno subobjects.
3764         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
3765         * ira-int.h (struct ira_allocno): New member: num_objects.
3766         Rename object to objects and change it into an array.
3767         (ALLOCNO_OBJECT): Add new argument N.
3768         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
3769         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
3770         (ior_hard_reg_conflicts): Declare.
3771         (ira_add_live_range_to_object): Declare.
3772         (ira_allocno_object_iterator): New.
3773         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
3774         (FOR_EACH_ALLOCNO_OBJECT): New macro.
3775         * ira-lives.c (objects_live): Renamed from allocnos_live; all
3776         uses changed.
3777         (allocnos_processed): New sparseset.
3778         (make_object_born): Renamed from make_allocno_born; take an
3779         ira_object_t argument.  All callers changed.
3780         (make_object_dead): Renamed from make_allocno_dead; take an
3781         ira_object_t argument.  All callers changed.
3782         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
3783         All callers changed.
3784         (mark_pseudo_regno_live): Iterate over allocno subobjects.
3785         (mark_pseudo_regno_dead): Likewise.
3786         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
3787         functions.
3788         (mark_ref_live): Detect subword accesses and call
3789         mark_pseudo_regno_subword_live as appropriate.
3790         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
3791         (process_bb_nodes_live): Deal with object-related updates first; set
3792         and test bits in allocnos_processed to avoid computing allocno
3793         statistics more than once.
3794         (create_start_finish_chains): Iterate over objects, not allocnos.
3795         (print_object_live_ranges): New function.
3796         (print_allocno_live_ranges): Use it.
3797         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
3798         and objects_live.
3799
3800 2010-07-22  Richard Guenther  <rguenther@suse.de>
3801
3802         PR lto/42451
3803         * gimple.c (gtc_next_dfs_num): New global.
3804         (struct sccs): Make value a union, add integer same_p member.
3805         (gtc_visit): New function.
3806         (gimple_types_compatible_p_1): New function, split out from ...
3807         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
3808         (iterative_hash_gimple_type): Adjust for sccs change.
3809
3810 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3811
3812         PR tree-optimization/44891
3813         * tree-sra.c: Include gimple-pretty-print.h.
3814         (replace_uses_with_default_def_ssa_name): Renamed to
3815         get_repl_default_def_ssa_name, return the new SSA name instead of
3816         replacing the old one.
3817         (sra_modify_assign): Dump a message when removing a load, if the LHS
3818         is an SSA_NAME, do not do any propagation, just set the RHS to a
3819         default definition SSA NAME, type convert if necessary.
3820         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
3821
3822 2010-07-22  Richard Guenther  <rguenther@suse.de>
3823
3824         PR tree-optimization/45017
3825         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
3826         TYPE_PRECISION of integral types in addition to size.
3827
3828 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3829
3830         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
3831         when no C library is specified.
3832
3833 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3834
3835         * ipa-prop.h (struct ipa_node_params): Updated comment.
3836         (struct ipa_edge_args): Likewise.
3837         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
3838
3839 2010-07-22  Martin Jambor  <mjambor@suse.cz>
3840
3841         * cgraphunit.c (verify_edge_count_and_frequency): New function.
3842         (verify_cgraph_node): Verify frequencies of indirect edges.
3843         * tree-inline.c (tree_function_versioning): Update frequencies of
3844         indirect edges.
3845
3846 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3847
3848         PR target/43698
3849         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
3850         Set *arm_rev to be predicable.
3851
3852 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3853
3854         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
3855         (LINK_COMMAND_SPEC_A): New.
3856         (DSYMUTIL): New.
3857         (DSYMUTIL_SPEC): New.
3858         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
3859         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
3860
3861 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
3862
3863         * calls.c (load_register_parameters): Move check for zero
3864         sized items so that only the call to
3865         mem_overlaps_already_clobbered_arg_p () is protected.
3866
3867 2010-07-22  Jan Hubicka  <jh@suse.cz>
3868
3869         * ipa-pure-const.c (varying_state): Break out from ...
3870         (get_function_state): ... here; always return varying_state
3871         when state would be NULL otherwise.
3872         (remove_node_data): Do not free varying state.
3873
3874 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
3875
3876         PR bootstrap/44970
3877         PR middle-end/45009
3878         * postreload.c: Include "target.h".
3879         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
3880         into account.
3881         (fixup_debug_insns): Don't copy the rtx.
3882         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
3883         Don't copy when replacing.  Call fixup_debug_insns in the case where
3884         we merged one add with another.
3885         (reload_combine_recognize_pattern): Fail if there aren't any uses.
3886         Try harder to determine whether we're picking a valid index register.
3887         Don't set store_ruid for an insn we're going to scan in the
3888         next iteration.
3889         (reload_combine): Remove unused code.
3890         (reload_combine_note_use): When updating use information for
3891         an old insn, ignore a use that occurs after store_ruid.
3892         * Makefile.in (postreload.o): Update dependencies.
3893
3894         * function.c (record_hard_reg_sets): Restrict the previous change
3895         to cases where the incoming nominal mode is the same as the
3896         incoming promoted mode and everything happens in MODE_INT.
3897
3898 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3899
3900         PR debug/45015
3901         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
3902         ASM_OPERANDS_OUTPUT_IDX.
3903         (adjust_insn): For inline asm with multiple sets ensure first
3904         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
3905         the insn.
3906
3907 2010-07-21  Richard Henderson  <rth@redhat.com>
3908
3909         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
3910         comparison for avoiding xmm register saves.  Emit the xmm register
3911         saves explicitly.
3912         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
3913         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
3914         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
3915         Remove patterns and the associated splitters.
3916
3917 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
3918
3919         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
3920         and imagine parts of a complex, so that they can have the same
3921         base and fall into the same group.
3922
3923 2010-07-21  Richard Guenther  <rguenther@suse.de>
3924
3925         PR lto/45018
3926         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
3927         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
3928         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
3929
3930 2010-07-21  Martin Jambor  <mjambor@suse.cz>
3931
3932         PR tree-optimization/44900
3933         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
3934         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
3935
3936 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
3937
3938         PR middle-end/44738
3939         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
3940
3941 2010-07-21  Richard Guenther  <rguenther@suse.de>
3942
3943         PR middle-end/45013
3944         * tree-ssa.c (useless_type_conversion_p): Dispatch to
3945         gimple_types_compatible_p only when in lto.
3946         * gimple.c (gimple_types_compatible_p): Use canonical types
3947         to speed up comparison.
3948
3949 2010-07-21  Richard Guenther  <rguenther@suse.de>
3950
3951         * tree-flow.h (referenced_var): Move define ...
3952         * tree-flow-inline.h (referenced_var): ... here as an inline
3953         function.  Assert here ...
3954         * tree-dfa.c (referenced_var_lookup): ... instead of here.
3955         * tree-ssa.c (maybe_optimize_var): Check if the variable
3956         is in referenced vars.
3957         (execute_update_addresses_taken): Remove old broken check.
3958         * gimple-pretty-print.c (pp_points_to_solution): Use
3959         referenced_var_lookup.
3960         * tree-into-ssa.c (dump_decl_set): Likewise.
3961
3962 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
3963
3964         PR debug/45003
3965         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
3966         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
3967         ZERO_EXTEND here.
3968
3969 2010-07-20  Richard Henderson  <rth@redhat.com>
3970
3971         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
3972
3973 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
3974
3975         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
3976         computing the sum of the stack pointer and a large constant.
3977         * config/arm/constraints.md (M): Remove superfluous parentheses.
3978         (Pc): New constraint.
3979
3980 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
3981
3982         PR debug/45006
3983         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
3984         operand's type if exp is tcc_unary class tree.
3985
3986 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3987
3988         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
3989         Reverse sense of if_then_else condition.
3990
3991 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
3992
3993         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
3994         * config/rs6000/rs6000.c (rs6000_override_options): Set
3995         rs6000_block_move_inline_limit appropriately.
3996         (expand_block_move): Use rs6000_block_move_inline_limit.
3997         * doc/invoke.texi (mblock-move-inline-limit): Document.
3998
3999 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
4000
4001         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
4002         FROM and TO.  All callers changed.  Don't look for tracked uses,
4003         just scan the RTL for DEBUG_INSNs and substitute.
4004         (reload_combine_recognize_pattern): Call fixup_debug_insns.
4005         (reload_combine): Ignore DEBUG_INSNs.
4006
4007 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
4008
4009         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
4010         depth to 8 from 5.
4011
4012         PR debug/45003
4013         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
4014         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
4015         instead of the result's type.
4016
4017 2010-07-20  Richard Guenther  <rguenther@suse.de>
4018
4019         PR tree-optimization/44977
4020         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
4021         SSA form.
4022
4023 2010-07-20  Richard Guenther  <rguenther@suse.de>
4024
4025         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
4026         (lto_symtab_merge_decls_2): Likewise.
4027         * gimple.h (gimple_types_compatible_p): Declare.
4028         * gimple.c (gimple_queue_type_fixup): Remove.
4029         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
4030         (gimple_compatible_complete_and_incomplete_type_p): New function.
4031         (gimple_types_compatible_p): Adjust.
4032         (gimple_register_type): Remove type fixup code.
4033         (print_gimple_types_stats): Adjust.
4034         (free_gimple_type_tables): Likewise.
4035         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
4036         * tree-ssa.c (useless_type_conversion_p): Likewise.
4037
4038 2010-07-20  Richard Guenther  <rguenther@suse.de>
4039
4040         PR middle-end/44971
4041         PR middle-end/44988
4042         * tree-ssa.c (maybe_optimize_var): New function split out from ...
4043         (execute_update_addresses_taken): ... here.
4044         (non_rewritable_mem_ref_base): Likewise.
4045         (execute_update_addresses_taken): Do not iterate over all referenced
4046         vars but just all local decls and parms.
4047         Properly check call and asm arguments and rewrite call arguments.
4048
4049 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
4050
4051         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
4052         to top level.
4053         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
4054         definitions ...
4055         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
4056         New macro.
4057         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
4058
4059 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
4060
4061         * gengtype.c (start_root_entry): New function, split out from
4062         write_root.  Check whether V is null and raise an error if so.
4063         (write_field_root): Check for V being null.  Don't raise an error here;
4064         set V to null instead.
4065         (write_root): Update comment above function.  Use start_root_entry.
4066
4067 2010-07-19  Xinliang David Li  <davidxl@google.com>
4068
4069         PR testsuite/44932
4070         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
4071         def edges.
4072         (find_uninit_use): Add dump.
4073         (is_use_properly_guarded): Ditto.
4074         (warn_uninitialized_phi): Ditto.
4075         (execute_late_warn_uninitialized): Ditto.
4076
4077 2010-07-19  Richard Guenther  <rguenther@suse.de>
4078
4079         PR middle-end/44941
4080         * expr.c (emit_block_move_hints): Move zero size check first.
4081         Move asserts to more useful places.
4082         * calls.c (load_register_parameters): Check for zero size.
4083
4084 2010-07-19  Richard Henderson  <rth@redhat.com>
4085
4086         * tree-optimize.c (execute_all_early_local_passes): New.  Change
4087         cgraph_state here ...
4088         (execute_early_local_optimizations): ... not here.  Remove.
4089         (pass_early_local_passes, pass_all_early_optimizations): Update.
4090
4091 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
4092
4093         * postreload.c (reload_combine_closest_single_use): Ignore the
4094         number of uses for DEBUG_INSNs.
4095         (fixup_debug_insns): New static function.
4096         (reload_combine_recognize_const_pattern): Use it.  Don't let the
4097         main loop be affected by DEBUG_INSNs.
4098         Really disallow moving adds past a jump insn.
4099         (reload_combine_recognize_pattern): Don't update use_ruid here.
4100         (reload_combine_note_use): Do it here.
4101         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
4102
4103 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
4104
4105         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
4106         of a loop.
4107         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
4108
4109 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
4110
4111         * config/i386/darwin.h: Define darwin_emit_branch_islands.
4112         (TARGET_MACHO_BRANCH_ISLANDS): New.
4113         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
4114         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
4115         default value.
4116         * config/i386/i386.c (output_pic_addr_const): Do not emit
4117         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
4118         (x86_output_mi_thunk): Adjust symbol creation.
4119         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
4120         Remove out of date comment.
4121         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
4122         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4123         (DARWIN_GENERATE_ISLANDS): Ditto.
4124         (output_call):  Do not emit branch islands unless
4125         darwin_emit_branch_islands is set.
4126         * config/darwin.c: Declare darwin_emit_branch_islands.
4127         (machopic_indirect_data_reference): Do not emit unless
4128         darwin_emit_branch_islands is set.
4129         (darwin_override_options): Set darwin_emit_branch_islands
4130         where it is needed.
4131         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
4132
4133 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4134
4135         * doc/sourcebuild.texi (Effective-Target Keywords): Document
4136         sse_runtime, sse2_runtime.
4137
4138 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
4139
4140         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
4141         low half of a single-register SCmode return value before ORing
4142         it with the high half.
4143         * config/mips/mips16.S (MERGE_GPRf): Likewise.
4144
4145 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4146
4147         PR target/44805
4148         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
4149         on all targets.
4150
4151 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
4152
4153         PR target/42235
4154         * postreload.c (reload_cse_move2add): Return bool, true if anything.
4155         changed.  All callers changed.
4156         (move2add_use_add2_insn): Likewise.
4157         (move2add_use_add3_insn): Likewise.
4158         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
4159         reload_combine.
4160         (RELOAD_COMBINE_MAX_USES): Bump to 16.
4161         (last_jump_ruid): New static variable.
4162         (struct reg_use): New members CONTAINING_MEM and RUID.
4163         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
4164         (reload_combine_split_one_ruid, reload_combine_split_ruids,
4165         reload_combine_purge_insn_uses, reload_combine_closest_single_use
4166         reload_combine_purge_reg_uses_after_ruid,
4167         reload_combine_recognize_const_pattern): New static functions.
4168         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
4169         is true for our reg and that we have available index regs.
4170         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
4171         callers changed.  Use them to initialize fields in struct reg_use.
4172         (reload_combine): Initialize last_jump_ruid.  Be careful when to
4173         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
4174         Call reload_combine_recognize_const_pattern.
4175         (reload_combine_note_store): Update REAL_STORE_RUID field.
4176
4177 2010-07-16  Jason Merrill  <jason@redhat.com>
4178
4179         * Makefile.in (opts-common.o): Depend on options.h.
4180
4181 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4182
4183         * tree.c (build_common_builtin_nodes): Use build_function_type_list
4184         instead of build_function_type.
4185         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
4186         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4187
4188 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
4189
4190         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
4191         do all the work.
4192         (rs6000_emit_int_cmove): Use function pointers for insn generation.
4193         Don't force values into registers unnecessarily.
4194         (output_isel): Assert that we're not given conditions we can't handle.
4195         Delete corresponding code.
4196         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
4197         scc_comparison_operator constraint.  Permit 0 for the consequent
4198         operand.  Permit any GPR for the alternative operand.
4199         (isel_unsigned_<mode>): Likewise.
4200
4201 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
4202
4203         PR target/44942
4204         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
4205         argument to const_tree.
4206         * config/i386/i386.c (function_arg_advance): If padding needs to be
4207         inserted before argument, increment cum->words by number of padding
4208         words as well.
4209         (contains_aligned_value_p): Change argument to const_tree.
4210         (ix86_function_arg_boundary): Change second argument to const_tree.
4211
4212 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
4213
4214         PR target/42235
4215         * function.c (record_hard_reg_sets): New static function.
4216         (assign_parm_setup_reg): If an optab for extending exists and the
4217         generated code clobbbers no hard regs, emit the insn directly and
4218         create a REG_EQUIV note.
4219
4220 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4221
4222         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
4223         TREE_CHAIN.
4224         * c-typeck.c (push_init_level): Likewise.
4225         (process_init_element): Likewise.
4226
4227 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
4228
4229         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
4230         (integer_three_node): Add.
4231         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
4232         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
4233         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
4234         of call build_int_cst.
4235         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
4236         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
4237         (find_interesting_uses_address): Ditto.
4238         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
4239         * tree-eh.c (lower_eh_constructs_2): Ditto.
4240         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
4241         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
4242         * expmed.c (expand_divmod): Ditto.
4243         * tree-mudflap.c (mx_register_decls): Ditto.
4244         * varasm.c (array_size_for_constructor): Ditto.
4245         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
4246         * c-parser.c (c_parser_postfix_expression): Ditto.
4247
4248 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
4249
4250         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
4251         New static variables.
4252         (reload_combine_recognize_pattern): New static function, broken out
4253         of reload_combine.
4254         (reload_combine): Use it.  Only initialize first_index_reg and
4255         last_index_reg once.
4256
4257 2010-07-15  Richard Henderson  <rth@redhat.com>
4258
4259         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
4260         when done.
4261
4262 2010-07-15  Jan Hubicka  <jh@suse.cz>
4263
4264         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
4265         comdats for broken gold.
4266         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
4267
4268 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4269
4270         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
4271
4272 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
4273
4274         * tree.h (DECL_CHAIN): Define.
4275         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4276         * c-decl.c: Likewise.
4277         * c-parser.c: Likewise.
4278         * c-typeck.c: Likewise.
4279         * cfgexpand.c: Likewise.
4280         * cgraph.c: Likewise.
4281         * cgraphunit.c: Likewise.
4282         * combine.c: Likewise.
4283         * config/alpha/alpha.c: Likewise.
4284         * config/arm/arm.c: Likewise.
4285         * config/frv/frv.c: Likewise.
4286         * config/i386/i386.c: Likewise.
4287         * config/i386/winnt-cxx.c: Likewise.
4288         * config/ia64/ia64.c: Likewise.
4289         * config/iq2000/iq2000.c: Likewise.
4290         * config/mep/mep.c: Likewise.
4291         * config/mips/mips.c: Likewise.
4292         * config/pa/som.h: Likewise.
4293         * config/rs6000/rs6000.c: Likewise.
4294         * config/s390/s390.c: Likewise.
4295         * config/sh/sh.c: Likewise.
4296         * config/sh/symbian-cxx.c: Likewise.
4297         * config/sparc/sparc.c: Likewise.
4298         * config/spu/spu.c: Likewise.
4299         * config/stormy16/stormy16.c: Likewise.
4300         * config/vxworks.c: Likewise.
4301         * config/xtensa/xtensa.c: Likewise.
4302         * coverage.c: Likewise.
4303         * dbxout.c: Likewise.
4304         * dwarf2out.c: Likewise.
4305         * emit-rtl.c: Likewise.
4306         * expr.c: Likewise.
4307         * function.c: Likewise.
4308         * gimple-low.c: Likewise.
4309         * gimple-pretty-print.c: Likewise.
4310         * gimplify.c: Likewise.
4311         * integrate.c: Likewise.
4312         * ipa-inline.c: Likewise.
4313         * ipa-prop.c: Likewise.
4314         * ipa-split.c: Likewise.
4315         * ipa-struct-reorg.c: Likewise.
4316         * ipa-type-escape.c: Likewise.
4317         * langhooks.c: Likewise.
4318         * lto-cgraph.c: Likewise.
4319         * omp-low.c: Likewise.
4320         * stor-layout.c: Likewise.
4321         * tree-cfg.c: Likewise.
4322         * tree-complex.c: Likewise.
4323         * tree-dfa.c: Likewise.
4324         * tree-dump.c: Likewise.
4325         * tree-inline.c: Likewise.
4326         * tree-mudflap.c: Likewise.
4327         * tree-nested.c: Likewise.
4328         * tree-object-size.c: Likewise.
4329         * tree-pretty-print.c: Likewise.
4330         * tree-sra.c: Likewise.
4331         * tree-ssa-live.c: Likewise.
4332         * tree-ssa-loop-niter.c: Likewise.
4333         * tree-ssa-math-opts.c: Likewise.
4334         * tree-ssa-reassoc.c: Likewise.
4335         * tree-ssa-sccvn.c: Likewise.
4336         * tree-ssa-structalias.c: Likewise.
4337         * tree-tailcall.c: Likewise.
4338         * tree-vrp.c: Likewise.
4339         * tree.c: Likewise.
4340         * var-tracking.c: Likewise.
4341         * varasm.c: Likewise.
4342
4343 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4344
4345         PR target/44877
4346         * config/spu/spu.c (spu_expand_builtin_1): Allow references
4347         (as well as pointers) as argument to mask_for_load builtins.
4348
4349 2010-07-15  Richard Guenther  <rguenther@suse.de>
4350
4351         PR tree-optimization/44946
4352         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
4353         with accessing only padding properly.
4354
4355 2010-07-15  Jan Hubicka  <jh@suse.cz>
4356
4357         * ipa.c (function_and_variable_visibility): Variables marked as used
4358         should not be localized.
4359
4360 2010-07-15  Jan Hubicka  <jh@suse.cz>
4361
4362         * cgraph.c: Include lto-streamer.h
4363         (change_decl_assembler_name): Work when assembler name hash is at place.
4364         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
4365         be sure to rename it to avoid name clash.
4366         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
4367         Localize hidden symbols only when locally defined.
4368
4369 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
4370
4371         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
4372
4373 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
4374             Kevin F. Quinn  <kevquinn@gentoo.org>
4375
4376         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
4377         * common.opt: Add -Wtrampolines.
4378         * doc/invoke.texi: Add -Wtrampolines.
4379
4380 2010-07-15  Jie Zhang  <jie@codesourcery.com>
4381
4382         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
4383         cortex_a8_issue_ls.
4384
4385 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
4386
4387         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
4388         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
4389
4390 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4391
4392         * config/spu/spu.c (reg_names): Remove prototype.
4393         (call_used_regs): Likewise.
4394
4395 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
4396
4397         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4398         "unused" with attribute "used".
4399         (__JCR_END__): Likewise.
4400         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
4401         "used" attribute.
4402         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
4403
4404 2010-07-14  Richard Guenther  <rguenther@suse.de>
4405
4406         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
4407         (maybe_fixup_decls): Likewise.
4408         (input_gimple_stmt): Do not fixup anything.
4409         * lto-streamer-out.c (output_gimple_stmt): Make sure all
4410         non-automatic variable uses are wrapped inside a MEM_REF.
4411
4412 2010-07-14  Richard Henderson  <rth@redhat.com>
4413
4414         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
4415         for functions.
4416         * varasm.c (assemble_variable): Remove early exit for functions;
4417         assert that we're given a variable.
4418
4419 2010-07-14  Jie Zhang  <jie@codesourcery.com>
4420
4421         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
4422         cortex_a8_default when neon_type is not none.
4423
4424 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4425
4426         * lower-subreg.c (subreg_context): New static bitmap.
4427         (decompose_multiword_subregs): Allocate and free it.
4428         (find_decomposable_subregs): Set a bit in it for a register that
4429         occurs in a subreg that changes mode but not size.
4430         (can_decompose_p): Test it instead of non_decomposable_context.
4431
4432 2010-07-14  Richard Guenther  <rguenther@suse.de>
4433
4434         PR tree-optimization/44824
4435         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
4436         is_gimple_mem_ref_addr.
4437         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
4438         non-decl_address_invariant_p addresses.
4439
4440 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4441
4442         * reload.c (find_reloads): Revert code to penalize small register
4443         classes that was brought in with the IRA merge.
4444
4445 2010-07-14  Richard Guenther  <rguenther@suse.de>
4446
4447         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
4448         as base of ARRAY_REFs.
4449
4450 2010-07-14  Richard Guenther  <rguenther@suse.de>
4451
4452         PR middle-end/44930
4453         * tree-pretty-print.c (do_niy): Do not print a newline.
4454
4455 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
4456
4457         * ira-int.h (struct ira_object): New.
4458         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
4459         (struct ira_allocno): Remove members min, max,
4460         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
4461         conflict_allocnos_num and conflict_vec_p.  Add new member object.
4462         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
4463         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
4464         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
4465         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
4466         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
4467         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
4468         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
4469         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
4470         an ira_object_t rather than ira_allocno_t.  All uses changed.
4471         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4472         contains a vector of ira_object_t; all uses changed.
4473         (ira_objects_num): Declare variable.
4474         (ira_create_allocno_object): Declare function.
4475         (ira_conflict_vector_profitable_p): Adjust prototype.
4476         (ira_allocate_conflict_vec): Renamed from
4477         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
4478         (ira_allocate_object_conflicts): Renamed from
4479         ira_allocate_allocno_conflicts; first arg now ira_object_t.
4480         (struct ira_object_iterator): New.
4481         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
4482         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
4483         to conflict_vec_p.  All uses changed.
4484         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
4485         Changed to take into account that conflicts are now tracked for
4486         objects.
4487         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
4488         Args changed to accept ira_object_t.  All uses changed.
4489         (allocnos_conflict_p): New static function.
4490         (collected_conflict_objects): Renamed from collected_allocno_objects;
4491         now a vector of ira_object_t.  All uses changed.
4492         (build_conflict_bit_table): Changed to take into account that
4493         conflicts are now tracked for objects.
4494         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
4495         (print_allocno_conflicts, ira_build_conflicts): Likewise.
4496         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
4497         setup_allocno_left_conflicts_size, allocno_reload_assign,
4498         fast_allocation): Likewise.
4499         * ira-lives.c (make_hard_regno_born, make_allocno_born)
4500         process_single_reg_class_operands, process_bb_node_lives): Likewise.
4501         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
4502         Likewise.
4503         * ira-build.c (ira_objects_num): New variable.
4504         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
4505         contains a vector of ira_object_t; all uses changed.
4506         (ira_object_id_map_vec): Corresponding change.
4507         (object_pool): New static variable.
4508         (initiate_allocnos): Initialize it.
4509         (finish_allocnos): Free it.
4510         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
4511         New functions.
4512         (ira_create_allocno): Don't set members that were removed.
4513         (ira_set_allocno_cover_class): Don't change conflict hard regs.
4514         (merge_hard_reg_conflicts): Changed to take into account that
4515         conflicts are now tracked for objects.
4516         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
4517         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
4518         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
4519         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
4520         setup_min_max_conflict_allocno_ids, ):  Likewise.
4521         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
4522         to ira_object_t; all callers changed.
4523         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
4524         to ira_object_t, all callers changed.
4525         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
4526         to ira_object_t, all callers changed.
4527         (conflict_check, curr_conflict_check_tick): Renamed from
4528         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
4529         changed.
4530         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
4531         arg changed to ira_object_t, all callers changed.
4532         (create_cap_allocno): Call ira_create_allocno_object.
4533         (finish_allocno): Free the corresponding object.
4534         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
4535         callers changed.  Adjusted for dealing with objects.
4536         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
4537         dealing with objects.
4538         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
4539
4540         * ira-int.h (struct live_range): Rename allocno member to object
4541         and change type to ira_object_t.
4542         (struct ira_object): New member live_ranges.
4543         (struct ira_allocno): Remove member live_ranges.
4544         (ALLOCNO_LIVE_RANGES): Remove.
4545         (OBJECT_LIVE_RANGES): New macro.
4546         (ira_create_live_range, ira_copy_live_range_list,
4547         ira_merge_live_range_list, ira_live_ranges_intersect_p,
4548         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
4549         * ira-build.c (ira_create_object): Initialize live ranges here.
4550         (ira_create_allocno): Not here.
4551         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
4552         changed to ira_object_t, all callers changed.
4553         (copy_live_range): Rename from copy_allocno_live_range, all callers
4554         changed.
4555         (ira_copy_live_range_list): Rename from
4556         ira_copy_allocno_live_range_list, all callers changed.
4557         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
4558         all callers changed.
4559         (ira_live_ranges_intersect_p): Rename from
4560         ira_allocno_live_ranges_intersect_p, all callers changed.
4561         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
4562         callers changed.
4563         (ira_finish_live_range_list): Rename from
4564         ira_finish_allocno_live_range_list, all callers changed.
4565         (change_object_in_range_list): Rename from change_allocno_in_range_list,
4566         last arg changed to ira_object_t, all callers changed.
4567         (finish_allocno): Changed to expect live ranges in the allocno's object.
4568         (move_allocno_live_ranges, copy_allocno_live_ranges,
4569         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
4570         ira_flattening, ira_build): Likewise.
4571         * ira-color.c (allocnos_have_intersected_live_ranges_p,
4572         slot_coalesced_allocno_live_ranges_intersect,
4573         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
4574         * ira-conflicts.c (build_conflict_bit_table): Likewise.
4575         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4576         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
4577         make_allocno_dead, create_start_finish_chains,
4578         remove_some_program_points_and_update_live_ranges,
4579         ira_debug_live_range_list): Likewise.
4580
4581         * ira-int.h (ira_object_conflict_iterator): Rename from
4582         ira_allocno_conflict_iterator.
4583         (ira_object_conflict_iter_init): Rename from
4584         ira_allocno_conflict_iter_init, second arg changed to
4585         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
4586         FOR_EACH_ALLOCNO_CONFLICT.
4587         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
4588         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
4589         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
4590         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4591
4592 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
4593
4594         PR other/44874
4595         * tree-dump.c (dump_options): Add enumerate_locals entry.
4596         Add TDF_NOID exclusion to all entry.
4597         * tree-dump.h (dump_enumerated_decls): Declare.
4598         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
4599         Don't display type uid.
4600         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
4601         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
4602         * tree-ssa-live.c: Include gimple.h.
4603         (numbered_tree_d): New struct.
4604         (numbered_tree): New typedef.
4605         (DEF_VEC_O (numbered_tree): New.
4606         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
4607         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
4608         (dump_enumerated_decls): Likewise.
4609         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
4610         debug info and flag_dump_final_insns, call dump_enumerated_decls.
4611         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
4612         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
4613
4614 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
4615
4616         * expmed.h (MAX_BITS_PER_WORD): Move to...
4617         * defaults.h (MAX_BITS_PER_WORD): ...here.
4618
4619 2010-07-13  DJ Delorie  <dj@redhat.com>
4620
4621         * config/h8300/h8300.c (h8300_init_once): Default to
4622         -fstrict_volatile_bitfields.
4623
4624         * config/sh/sh.c (sh_override_options): Default to
4625         -fstrict_volatile_bitfields.
4626
4627         * config/rx/rx.c (rx_option_override): New.
4628
4629         * config/m32c/m32c.c (m32c_override_options): Default to
4630         -fstrict_volatile_bitfields.
4631
4632 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
4633
4634         * tree.h (build_function_call_expr): Delete.
4635         (build_call_expr_loc_array): New function.
4636         (build_call_expr_loc_vec): New function.
4637         * tree-flow.h (struct omp_region): Change type of ws_args field
4638         to a VEC.
4639         * builtins.c (build_function_call_expr): Delete.
4640         (build_call_expr_loc_array): New function.
4641         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
4642         (build_call_expr): Likewise.
4643         (build_call_expr_loc_vec): New function.
4644         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
4645         build_function_call_expr.
4646         * expr.c (emutls_var_address): Likewise.
4647         * varasm.c (emutls_common_1): Likewise.
4648         * omp-low.c (expand_omp_atomic_mutex): Likewise.
4649         (expand_omp_taskreg): Adjust for new type of region->ws_args.
4650         (get_ws_args_for): Return a VEC instead of a tree.
4651         (expand_parallel_call): Call build_call_expr_loc_vec instead of
4652         build_function_call_expr.
4653         * stor-layout.c (self_referential_size): Likewise.
4654
4655 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4656
4657         PR testsuite/44701
4658         * recog.c (constrain_operands): Allow side-effects in memory
4659         operands if either < or > constraint is used, rather than if
4660         both < and > is used.
4661
4662 2010-07-13  Richard Guenther  <rguenther@suse.de>
4663
4664         PR middle-end/44911
4665         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
4666         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
4667         without name.
4668
4669 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
4670
4671         PR target/44761
4672         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
4673         to variable emited.
4674         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
4675         * config/sh/sh.md (symGOT_load): Likewise.
4676         (symDTPOFF2reg): Likewise.
4677         (symTPOFF2reg): Likewise.
4678
4679 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4680
4681         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
4682         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
4683
4684 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4685
4686         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
4687         explanation.
4688         Find ucontext_t * on Solaris 11.
4689         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
4690         Handle new Solaris 11 __sighndlr patterns.
4691
4692 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
4693
4694         PR debug/44901
4695         * vec.h (VEC_block_remove): Fix comment.
4696         * tree-ssa-live.c (remove_unused_locals): Don't use
4697         VEC_unordered_remove on local_decls, instead replace a single
4698         vector element in each iteration if at least one element had
4699         to be removed and VEC_truncate at the end.
4700         * omp-low.c (expand_omp_taskreg): Likewise.
4701
4702 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4703
4704         * c-decl.c (finish_function): Fix typo in comment.
4705
4706 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
4707
4708         PR bootstrap/44921
4709         * postreload.c (move2add_use_add3_insn): Silence gcc warning
4710         on min_regno.
4711
4712 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
4713
4714         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
4715         (simplify_stmt_using_ranges): Use it.
4716
4717 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4718
4719         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
4720         member.  Do not mark as GTY(()).
4721         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
4722         (spu_builtin_decls): New static variable.
4723         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
4724         (spu_init_builtins): Likewise.
4725         (spu_builtin_mul_widen_even): Likewise.
4726         (spu_builtin_mul_widen_odd): Likewise.
4727         (spu_builtin_mask_for_load): Likewise.
4728         (spu_builtin_vec_perm): Likewise.
4729         * config/spu/spu-c.c: Include "target.h".
4730         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
4731         of using spu_builtins[].fndecl.
4732
4733 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4734
4735         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
4736         imply -minterlink-mips16.
4737
4738 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4739
4740         * config/mips/mips.h (mips16_globals): Declare.
4741         (SWITCHABLE_TARGET): Define.
4742         * config/mips/mips.c: Include target-globals.h.
4743         (mips16_globals): New variable.
4744         (mips_set_mips16_mode): Use save_target_globals and
4745         restore_target_globals instead of target_reinit.
4746
4747 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4748
4749         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
4750         to say that the function can be called more than once.
4751         * target-globals.c (save_target_globals): Call init_reg_sets.
4752
4753 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4754
4755         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
4756         * bb-reorder.h: New file.
4757         * bb-reorder.c (default_target_bb_reorder): New variable.
4758         (this_target_bb_reorder): New conditional variable.
4759         (uncond_jump_length): Redefine as a macro.
4760         * target-globals.h (this_target_bb_reorder): Declare.
4761         (target_globals): Add a bb_reorder field.
4762         (restore_target_globals): Copy the bb_reorder field to
4763         this_target_bb-reorder.
4764         * target-globals.c: Include bb-reorder.h.
4765         (default_target_globals): Initialize the bb_reorder field.
4766         (save_target_globals): Likewise.
4767
4768 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4769
4770         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
4771         * gcse.h: New file.
4772         * gcse.c: Include gcse.h.
4773         (default_target_gcse): New variable.
4774         (this_target_gcse): New conditional variable.
4775         (can_copy): Redefine as a macro.
4776         (can_copy_init_p): New macro.
4777         (can_copy_p): Remove can_copy_init_p.
4778         * target-globals.h (this_target_gcse): Declare.
4779         (target_globals): Add a gcse field.
4780         (restore_target_globals): Copy the gcse field to this_target_gcse.
4781         * target-globals.c: Include gcse.h.
4782         (default_target_globals): Initialize the gcse field.
4783         (save_target_globals): Likewise.
4784
4785 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4786
4787         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
4788         and x_ira_prohibited_mode_move_regs_initialized_p.
4789         (ira_prohibited_mode_move_regs): Redefine as a macro.
4790         * ira.c (ira_prohibited_mode_move_regs): Delete.
4791         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
4792
4793 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4794
4795         * reload.h (target_reload): Add x_cached_reg_save_code and
4796         x_cached_reg_restore_code.
4797         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
4798         Redefine as macros.
4799
4800 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4801
4802         * Makefile.in (target-globals.o): Depend on builtins.h.
4803         * builtins.h: New file.
4804         * builtins.c: Include builtins.h.
4805         (default_target_builtins): New variable.
4806         (this_target_builtins): New conditional variable.
4807         (apply_args_mode, apply_result_mode): Redefine as macros.
4808         * target-globals.h (this_target_builtins): Declare.
4809         (target_globals): Add a builtins field.
4810         (restore_target_globals): Copy the builtins field to
4811         this_target_builtins.
4812         * target-globals.c: Include builtins.h.
4813         (default_target_globals): Initialize the builtins field.
4814         (save_target_globals): Likewise.
4815
4816 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4817
4818         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
4819         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
4820         from expmed.c.
4821         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
4822         (alg_hash, alg_hash_used_p): New macros.
4823         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
4824         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
4825         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
4826
4827 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4828
4829         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
4830         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
4831         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
4832         (this_op_costs, costs_classes): Redefine as macros.
4833         (record_reg_classes): Don't take op_costs as a parameter.
4834         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
4835         (scan_one_insn): Update call to record_operand_costs.
4836
4837 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4838
4839         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
4840         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
4841         (target_ira_int): New structure.
4842         (default_target_ira_int): Declare.
4843         (this_target_ira_int): Declare as a variable or define as a macro.
4844         (ira_reg_mode_hard_regset, ira_register_move_cost)
4845         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
4846         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
4847         (prohibited_class_mode_regs, ira_important_classes_num)
4848         (ira_important_classes, ira_reg_class_intersect)
4849         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
4850         (ira_reg_class_union): Redefine as macros.
4851         * ira.h (target_ira): New structure.
4852         (default_target_ira): Declare.
4853         (this_target_ira): Declare as a variable or define as a macro.
4854         (ira_available_class_regs, ira_hard_regno_cover_class)
4855         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
4856         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
4857         (ira_class_hard_regs_num): Redefine as macros.
4858         * ira.c (default_target_ira, default_target_ira_int): New variables.
4859         (this_target_ira, this_target_ira_int): New conditional variables.
4860         (ira_reg_mode_hard_regset, ira_memory_move_cost)
4861         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
4862         (ira_class_subset_p): Delete.
4863         (no_unit_alloc_regs): Redefine as a macro.
4864         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
4865         (ira_class_hard_regs_num, ira_class_hard_reg_index)
4866         (ira_available_class_regs): Delete.
4867         (alloc_reg_class_subclasses): Redefine as a macro.
4868         (ira_reg_class_cover_size, ira_reg_class_cover)
4869         (ira_important_classes_num, ira_important_classes)
4870         (ira_important_class_nums, ira_class_translate): Delete.
4871         (cover_class_order): Document the variable's lifetime.
4872         (reorder_important_classes): Don't set ira_important_class_nums.
4873         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
4874         (ira_reg_class_super_classes, ira_reg_class_union)
4875         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
4876         Delete.
4877         (setup_reg_class_nregs): Don't set ira_max_regs.
4878         (prohibited_class_mode_regs): Delete.
4879         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
4880         (target_globals): Add ira and ira_int fields.
4881         (restore_target_globals): Copy the ira field to this_target_ira
4882         and the ira_int field to this_target_ira_int.
4883         * target-globals.c: Include ira-int.h.
4884         (default_target_globals): Initialize the ira and ira_int fields.
4885         (save_target_globals): Likewise.
4886
4887 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4888
4889         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
4890         * cfgloop.h (target_cfgloop): New structure.
4891         (default_target_cfgloop): Declare.
4892         (this_target_cfgloop): Declare as a variable or define as a macro.
4893         (target_avail_regs, target_clobbered_regs, target_res_regs)
4894         (target_reg_cost, target_spill_cost): Redefine as macros.
4895         * cfgloopanal.c (default_target_cfgloop): New variable.
4896         (this_target_cfgloop): New conditional variable.
4897         (target_avail_regs, target_clobbered_regs, target_res_regs)
4898         (target_reg_cost, target_spill_cost): Delete.
4899         * target-globals.h (this_target_cfgloop): Declare.
4900         (target_globals): Add a cfgloop field.
4901         (restore_target_globals): Copy the cfgloop field to
4902         this_target_cfgloop.
4903         * target-globals.c: Include cfgloop.h.
4904         (default_target_globals): Initialize the cfgloop field.
4905         (save_target_globals): Likewise.
4906
4907 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4908
4909         * regs.h (target_regs): Add x_direct_load, x_direct_store and
4910         x_float_extend_from_mem.
4911         (direct_load, direct_store, float_extend_from_mem): New macros.
4912         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
4913
4914 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4915
4916         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
4917         (target-globals.o): Depend on $(LIBFUNCS_H).
4918         * libfuncs.h: Include hashtab.h.
4919         (libfunc_entry): Moved from optabs.c.
4920         (target_libfuncs): New structure.
4921         (default_target_libfuncs): Declare.
4922         (this_target_libfuncs): Declare as a variable or define as a macro.
4923         (libfunc_table): Redefine as a macro.
4924         * optabs.c (default_target_libfuncs): New variable.
4925         (this_target_libfuncs): New conditional variable.
4926         (libfunc_table): Delete.
4927         (libfunc_entry): Moved to optabs.h.
4928         (libfunc_hash): Redefine as a macro.
4929         (hash_libfunc, eq_libfunc): Fix comments.
4930         (init_optabs): Use libfunc_hash to detect cases where the function
4931         has already been called.  Clear the hash table instead of
4932         recreating it.
4933         * target-globals.h (this_target_libfuncs): Declare.
4934         (target_globals): Add a libfuncs field.
4935         (restore_target_globals): Copy the libfuncs field to
4936         this_target_libfuncs.
4937         * target-globals.c: Include libfuncs.h.
4938         (default_target_globals): Initialize the libfuncs field.
4939         (save_target_globals): Likewise.
4940
4941 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4942
4943         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
4944         in all dependency lists.
4945
4946 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4947
4948         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
4949         * optabs.h (target_optabs): New structure.
4950         (default_target_optabs): Declare.
4951         (this_target_optabs): Declare as a variable or define as a macro.
4952         (optab_table, convert_optab_table, direct_optab_table): Redefine
4953         as macros.
4954         * optabs.c (default_target_optabs): New variable.
4955         (this_target_optabs): New conditional variable.
4956         (optab_table, convert_optab_table, direct_optab_table): Delete.
4957         * target-globals.h (this_target_optabs): Declare.
4958         (target_globals): Add a optabs field.
4959         (restore_target_globals): Copy the optabs field to
4960         this_target_optabs.
4961         * target-globals.c: Include expr.h and optabs.h.
4962         (default_target_globals): Initialize the optabs field.
4963         (save_target_globals): Likewise.
4964
4965 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4966
4967         * flags.h (target_flagstate): Add x_flag_excess_precision.
4968         (flag_excess_precision): Redefine as a macro.
4969         * toplev.c (flag_excess_precision): Delete.
4970
4971 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4972
4973         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
4974         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
4975         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
4976         (no_caller_save_reg_set): Redefine as a macro.
4977         * reload.h (target_reload): Add x_caller_save_initialized_p and
4978         x_regno_save_mode.
4979         (caller_save_initialized_p): Redefine as a macro.
4980         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
4981         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
4982         (regno_save_mode): Redefine as a macro.
4983
4984 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4985
4986         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
4987         * expmed.h: New file.
4988         * expmed.c (default_target_costs): New variable.
4989         (this_target_costs): New conditional variable.
4990         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
4991         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
4992         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
4993         * target-globals.h (this_target_expmed): Declare.
4994         (target_globals): Add a expmed field.
4995         (restore_target_globals): Copy the expmed field to
4996         this_target_expmed.
4997         * target-globals.c: Include expmed.h.
4998         (default_target_globals): Initialize the expmed field.
4999         (save_target_globals): Likewise.
5000
5001 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5002
5003         * Makefile.in (target-globals.o): Depend on reload.h.
5004         * reload.h (target_reload): New structure.
5005         (default_target_reload): Declare.
5006         (this_target_reload): Declare as a variable or define as a macro.
5007         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
5008         * reload1.c (default_target_reload): New variable
5009         (this_target_reload): New conditional variable.
5010         (indirect_symref_ok, double_reg_address_ok): Delete.
5011         (spill_indirect_levels): Redefine as a macro.
5012         * target-globals.h (this_target_reload): Declare.
5013         (target_globals): Add a reload field.
5014         (restore_target_globals): Copy the reload field to
5015         this_target_reload.
5016         * target-globals.c: Include hard-reg-set.h.
5017         (default_target_globals): Initialize the reload field.
5018         (save_target_globals): Likewise.
5019
5020 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5021
5022         * rtl.h (target_rtl): Add x_static_reg_base_value.
5023         * alias.c (static_reg_base_value): Redefine as a macro.
5024
5025 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5026
5027         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
5028         (GTFILES): Remove reginfo.c.
5029         * rtl.h (target_rtl): Add x_top_of_stack.
5030         (top_of_stack): New macro.
5031         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
5032         (top_of_stack): Delete.
5033
5034 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5035
5036         * regs.h (target_regs): Add x_hard_regs_of_mode,
5037         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
5038         x_may_move_out_cost and x_last_mode_for_init_move_cost.
5039         (have_regs_of_mode, contains_reg_of_mode, move_cost)
5040         (may_move_in_cost, may_move_out_cost): Redefine as macros.
5041         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
5042         (may_move_in_cost, may_move_out_cost): Delete.
5043         (last_mode_for_init_move_cost): Redefine as a macro.
5044
5045 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5046
5047         * hard-reg-set.h (target_hard_regs): New structure.
5048         (default_target_hard_regs): Declare.
5049         (this_target_hard_regs): Declare as a variable or define as a macro.
5050         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
5051         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
5052         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
5053         (reg_class_size, reg_class_subclasses, reg_class_subunion)
5054         (reg_class_superunion, reg_names): Redefine as macros.
5055         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
5056         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
5057         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
5058         (reg_class_contents, reg_class_size, reg_class_subclasses)
5059         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
5060         (default_target_hard_regs): New variable
5061         (this_target_hard_regs, initial_call_really_used_regs)
5062         (initial_reg_alloc_order): New conditional variables.
5063         (initial_reg_names): New variable.
5064         (init_reg_sets): Assert that initial_call_really_used_regs,
5065         initial_reg_alloc_order and initial_reg_names
5066         are all the same size as their variable counterparts.  Use them to
5067         initialize those counterparts.
5068         * target-globals.h (this_target_hard_regs): Declare.
5069         (target_globals): Add a hard_regs field.
5070         (restore_target_globals): Copy the hard_regs field to
5071         this_target_hard_regs.
5072         * target-globals.c: Include hard-reg-set.h.
5073         (default_target_globals): Initialize the hard_regs field.
5074         (save_target_globals): Likewise.
5075
5076 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5077
5078         * Makefile.in (target-globals.o): Depend on $(RTL_H).
5079         * rtl.h (target_rtl): New structure.
5080         (default_target_rtl): Declare.
5081         (this_target_rtl): Declare as a variable or define as a macro.
5082         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
5083         Redefine as macros.
5084         * emit-rtl.c (default_target_rtl): New variable.
5085         (this_target_rtl): New conditional variable.
5086         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
5087         (return_address_pointer_rtx): Delete.
5088         (initial_regno_reg_rtx): New macro.
5089         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
5090         (init_emit_regs): Likewise.
5091         * target-globals.h (this_target_rtl): Declare.
5092         (target_globals): Add a rtl field.
5093         (restore_target_globals): Copy the rtl field to this_target_rtl.
5094         * target-globals.c: Include rtl.h.
5095         (default_target_globals): Initialize the rtl field.
5096         (save_target_globals): Likewise.
5097
5098 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5099
5100         * Makefile.in (target-globals.o): Depend on $(REGS_H).
5101         * regs.h (target_reg_modes): New structure.
5102         (default_target_reg_modes): Declare.
5103         (this_target_reg_modes): Declare as a variable or define as a macro.
5104         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
5105         * reginfo.c (default_target_reg_modes): New variable.
5106         (this_target_reg_modes): New conditional variable.
5107         (hard_regno_nregs, reg_raw_mode): Delete.
5108         * target-globals.h (this_target_regs): Declare.
5109         (target_globals): Add a regs field.
5110         (restore_target_globals): Copy the regs field to this_target_regs.
5111         * target-globals.c: Include regs.h.
5112         (default_target_globals): Initialize the regs field.
5113         (save_target_globals): Likewise.
5114
5115 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
5116
5117         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
5118         * doc/tm.texi: Regenerate.
5119         * Makefile.in (OBJS-common): Add target-globals.o.
5120         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
5121         and target-globals.h.
5122         (target-globals.o): New rule.
5123         (GTFILES): Include $(srcdir)/target-globals.h.
5124         * defaults.h (SWITCHABLE_TARGET): Define.
5125         * gengtype.c (open_base_files): Add target-globals.h to the
5126         list of includes.
5127         * target-globals.h: New file.
5128         * target-globals.c: Likewise.
5129
5130         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
5131         * flags.h (target_flag_state): New structure.
5132         (default_target_flag_state): Declare.
5133         (this_target_flag_state): Declare as a variable or define as a macro.
5134         (align_loops_log): Redefine as a macro.
5135         (align_loops_max_skip, align_jumps_log): Likewise.
5136         (align_jumps_max_skip, align_labels_log): Likewise.
5137         (align_labels_max_skip, align_functions_log): Likewise.
5138         * toplev.c (default_target_flag_state): New variable.
5139         (this_target_flag_state): New conditional variable.
5140         (align_loops_log): Delete.
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         * target-globals.h (this_target_flag_state): Declare.
5145         (target_globals): Add a flag_state field.
5146         (restore_target_globals): Copy the flag_state field to
5147         this_target_flag_state.
5148         * target-globals.c: Include flags.h.
5149         (default_target_globals): Initialize the flag_state field.
5150         (save_target_globals): Likewise.
5151
5152 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5153
5154         * postreload.c (reg_symbol_ref[]): New.
5155         (move2add_use_add2_insn): New.
5156         (move2add_use_add3_insn): New.
5157         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
5158         (move2add_note_store): Likewise.
5159
5160 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
5161
5162         PR rtl-optimization/44752
5163         * genautomata.c (main): Don't emit an empty file even if there
5164         is no automaton.
5165
5166 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5167
5168         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
5169         ix86_solaris_return_in_memory.
5170         * config/i386-protos.h: Reflect this.
5171         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5172         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
5173         Move ...
5174         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
5175
5176 2010-07-12  Jie Zhang  <jie@codesourcery.com>
5177
5178         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
5179         align the stack when it's going to be saved.
5180
5181 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5182
5183         PR pch/14940
5184         * config/host-solaris.c (mmap_fixed): New function.
5185         (sol_gt_pch_get_address): Use it.
5186         (sol_gt_pch_use_address): Likewise.
5187
5188 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5189
5190         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
5191         pentiumpro on Solaris 8 and 9/x86.
5192         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
5193         Document SSE/SSE2 support.
5194         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
5195
5196 2010-07-12  Andi Kleen  <ak@linux.intel.com>
5197
5198         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
5199         instead of gcc_assert to print better error message for multiple
5200         prevailing defs.
5201
5202 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
5203
5204         * config/i386/i386.c (ix86_asm_output_function_label): Change format
5205         string placeholder from 0x%x to %#x.
5206         (ix86_code_end): Use putc to output '\n'.
5207         (ix86_print_operand) <case ';'>: Use putc to output ';'.
5208
5209 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
5210
5211         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
5212         in directive -export.
5213
5214 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
5215
5216         * reginfo.h (reg_classes_intersect_p): Change arguments type to
5217         reg_class_t.
5218         * rtl.h (reg_classes_intersect_p): Adjust prototype.
5219
5220         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5221         Remove macros.
5222         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
5223         rs6000_memory_move_cost): Remove
5224         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
5225         TARGET_MEMORY_MOVE_COST): Define.
5226         (rs6000_register_move_cost): Make static. Change arguments type from
5227         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
5228         (rs6000_memory_move_cost): Make static. Change arguments type from
5229         'enum reg_class' to reg_class_t.
5230
5231 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
5232
5233         PR middle-end/42505
5234         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
5235         lookup code into....
5236         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
5237         new functions.
5238         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
5239         * cfgloopanal.c (target_clobbered_regs): Define.
5240         (init_set_costs): Initialize target_clobbered_regs.
5241         (estimate_reg_pressure_cost): Add call_p argument.  When true,
5242         adjust the number of available registers to exclude the
5243         call-clobbered registers.
5244         * cfgloop.h (target_clobbered_regs): Declare.
5245         (estimate_reg_pressure_cost): Adjust declaration.
5246         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
5247         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
5248         (determine_set_costs): Dump target_clobbered_regs.
5249         (loop_body_includes_call): New function.
5250         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
5251         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
5252         call_p flag through.
5253         (best_gain_for_invariant): Likewise.
5254         (find_invariants_to_move): Likewise.
5255         (move_single_loop_invariants): Likewise, using already-computed
5256         has_call field.
5257
5258 2010-07-10  Richard Guenther  <rguenther@suse.de>
5259             Joern Rennecke  <joern.rennecke@embecosm.com>
5260
5261         PR debug/44832
5262         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
5263         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
5264         unless they have DECL_IGNORED_P set.
5265
5266 2010-07-10  Richard Guenther  <rguenther@suse.de>
5267
5268         PR lto/44889
5269         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
5270         helper function.
5271         (gimple_types_compatible_p): Similar to pointed-to
5272         types allow and merge a mix of complete and incomplete aggregate.
5273         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
5274         (iterative_hash_gimple_type): Adjust for that.
5275
5276 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
5277
5278         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
5279
5280 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
5281
5282         PR objc/44140
5283         * config/darwin.c (output_objc_section_asm_op): Save and restore
5284         section when outputting ObjC section list.
5285
5286 2010-07-09  Jan Hubicka  <jh@suse.cz>
5287
5288         * lto-streamer-out.c (produce_symtab): Do not write alias
5289         cgraph/varpool nodes.
5290
5291 2010-07-09  Jan Hubicka  <jh@suse.cz>
5292
5293         * tree-inline.c (declare_return_variable): Fix ICE while
5294         inlining DECL_BY_VALUE function not in SSA form
5295
5296 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
5297
5298         PR tree-optimization/44576
5299         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
5300         New.  Pull out from is_loop_prefetching_profitable to implement
5301         the trip count to ahead ratio heuristic.
5302         (mem_ref_count_reasonable_p): New.  Pull out from
5303         is_loop_prefetching_profitable to implement the instruction to
5304         memory reference ratio heuristic.  Also consider not reasonable if
5305         the memory reference count is above a threshold (to avoid
5306         explosive compilation time.
5307         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
5308         is_loop_prefetching_profitable to implement the instruction to
5309         prefetch ratio heuristic.
5310         (is_loop_prefetching_profitable): Removed.
5311         (loop_prefetch_arrays): Distribute the cost analysis across the
5312         function to allow early exit of the prefetch analysis.
5313         is_loop_prefetching_profitable is splitted into three functions,
5314         with each one called as early as possible.
5315         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
5316         number of memory references in a loop is considered too many.
5317
5318 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5319
5320         * reload.c (find_reloads): Don't clear badop if we have a winreg
5321         alternative, but not win, and the class only has fixed regs.
5322         * hard-reg-set.h (class_only_fixed_regs): Declare.
5323         * reginfo.c (class_only_fixed_regs): New array.
5324         (init_reg_sets_1): Initialize it.
5325         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
5326         discourage alternatives using the stack pointer.
5327
5328         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
5329
5330         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
5331
5332         * config/arm/arm.md (cbranchqi4): Fix array size.
5333         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
5334         calculating length.
5335
5336 2010-07-09  Richard Guenther  <rguenther@suse.de>
5337
5338         * gimple.c (struct type_fixup_s): New struct and VEC type.
5339         (gimple_register_type_fixups): New static global.
5340         (gimple_queue_type_fixup): New function.
5341         (gimple_types_compatible_p): Queue type fixups instead of
5342         applying them here.
5343         (gimple_register_type): Apply queued fixups for the
5344         canonical type.  Empty the type fixup queue.
5345
5346 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5347
5348         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
5349         * configure: Regenerate.
5350         * config.in: Ditto.
5351
5352 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5353             Denys Vlasenko  <dvlasenk@redhat.com>
5354             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5355
5356         PR tree-optimization/28632
5357         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
5358         (extract_range_from_binary_expr): Further optimize
5359         BIT_AND_EXPR and BIT_IOR_EXPR.
5360
5361 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
5362
5363         * tree-if-conv.c (fold_or_predicates): New.
5364         (add_to_predicate_list): Call it.
5365
5366 2010-07-09  Richard Guenther  <rguenther@suse.de>
5367
5368         PR middle-end/44890
5369         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
5370         if base is a pointer.
5371         * tree-cfg.c (verify_expr): Update MEM_REF checking.
5372
5373 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5374
5375         PR target/44877
5376         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
5377         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
5378         builtin mask for load/store builtins.
5379
5380 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5381
5382         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
5383         for "lock addl".
5384         * configure: Regenerate.
5385         * config/i386/i386.c (ix86_print_operand) <case ';'>:
5386         Remove TARGET_MACHO.
5387
5388 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
5389
5390         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
5391         default ISA flags.
5392         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
5393
5394 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
5395
5396         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
5397
5398 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
5399
5400         * config/picochip/picochip.md (commsTestPort): Emit more
5401         efficient sequence for tstport instruction.
5402
5403 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
5404
5405         * config/i386/i386.c (ix86_veclib_handler): Make static.
5406
5407 2010-07-09  Richard Guenther  <rguenther@suse.de>
5408
5409         PR tree-optimization/44852
5410         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5411         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
5412         in MEM_REF.
5413         (indirect_refs_may_alias_p): Likewise.
5414         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
5415
5416 2010-07-09  Richard Guenther  <rguenther@suse.de>
5417
5418         PR tree-optimization/44882
5419         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
5420         sets do conflict.
5421         (vectorizable_load): Likewise.
5422
5423 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
5424
5425         PR target/40657
5426         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
5427         All callers changed.
5428         Handle the case when we're called for the epilogue.
5429         (thumb_unexpanded_epilogue): Use it.
5430         (thumb1_expand_epilogue): Likewise.
5431
5432 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
5435         both ranges are range_int_cst_p with non-negative minimum,
5436         try harder to derive smaller range.
5437
5438 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5439
5440         * genrecog.c: Include diagnostic-core.h before toplev.h.
5441         * genoutput.c: Likewise.
5442         * genextract.c: Likewise.
5443         * genautomata.c: Likewise.
5444         * genemit.c: Likewise.
5445         * genpeep.c: Likewise.
5446         * genattrtab.c: Likewise.
5447         * genconditions.c: Likewise.
5448         * genpreds.c: Likewise.
5449
5450 2010-07-08  Andi Kleen  <ak@linux.intel.com>
5451
5452         * lto-section-in.c (lto_section_name): Add missing comma.
5453
5454 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
5455
5456         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
5457         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
5458         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
5459         (ia64_override_options): Rename to...
5460         (ia64_option_override): ... this one. Make static.
5461
5462 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5463
5464         PR middle-end/44843
5465         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
5466         pointed-to type of the offset in a MEM_REF to compute the alignment.
5467
5468 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
5469
5470         * final.c (final_scan_insn): Replace
5471         TARGET_UNWIND_INFO macro check by unwind_emit
5472         hook NULL check.
5473         * targhooks.c (default_unwind_emit): Removed.
5474         * targhooks.h (default_unwind_emit): Likewise.
5475         * target.def (unwind_emit): Set default value to NULL.
5476
5477         * config/i386/i386-protos.h (ix86_asm_output_function_label):
5478         New prototype.
5479         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
5480         for NULL fntype argument and allow 64-bit targets.
5481         (ix86_asm_output_function_label): New function.
5482         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
5483         (ix86_handle_fndecl_attribute): Likewise.
5484         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
5485         * doc/doc/tm.texi: Regenerated.
5486         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
5487         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
5488         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
5489         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
5490         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5491         * config/elfos.h: Likewise.
5492         * config/i386/cygming.h: Likewise.
5493         * config/netbsd-aout.h: Likewise.
5494         * config/openbsd.h: Likewise.
5495         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
5496         by ix86_asm_output_function_label function call.
5497         * varasm.c (assemble_start_function): Use
5498         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
5499
5500 2010-07-08  Jan Hubicka  <jh@suse.cz>
5501
5502         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
5503         New function.
5504         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
5505         Declare.
5506         * ipa-cp.c (ipcp_estimate_growth): Use it.
5507         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
5508         Likewise.
5509
5510 2010-07-08  Jan Hubicka  <jh@suse.cz>
5511
5512         * tree-inline.c (declare_return_variable): Allocate annotation for new
5513         temporary.
5514
5515 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5516
5517         PR tree-optimization/44710
5518         * tree-if-conv.c (parse_predicate): New.
5519         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
5520         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
5521
5522 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
5523
5524         * common.opt (ftree-loop-if-convert): New flag.
5525         * doc/invoke.texi (ftree-loop-if-convert): Documented.
5526         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
5527         when flag_tree_loop_if_convert is set.
5528
5529 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
5530
5531         * config/i386/i386.c: Use short syntax for function calls
5532         through function pointers.
5533         * config/i386/i386.md: Ditto.
5534
5535 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5536
5537         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
5538
5539 2010-07-08  Richard Guenther  <rguenther@suse.de>
5540
5541         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
5542         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
5543
5544 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
5545
5546         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
5547         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
5548         (loc_list_from_tree): Likewise.
5549         (output_loc_operands): Handle outputting DW_OP_const[48]u
5550         with loc->dtprel set.
5551         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
5552
5553 2010-07-08  Jan Hubicka  <jh@suse.cz>
5554
5555         * ipa.c: Include pointer-set.h
5556         (cgraph_externally_visible_p): New attribute ALIASED;
5557         when in LTO, hidden symbols are local unless they are aliased.
5558         (function_and_variable_visibility): Compute aliased nodes;
5559         handle LTO and hidden symbol on functions and vars.
5560         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
5561         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
5562
5563 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5564
5565         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5566         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5567         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5568         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5569         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5570         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
5571         (ix86_gen_probe_stack_range): Likewise.
5572         (override_options): Set them.
5573         (ix86_target_stack_probe): New function.
5574         (ix86_compute_frame_layout): Force use of push instructions to
5575         save registers if stack checking with probes is enabled.
5576         (get_scratch_register_on_entry): New function.
5577         (release_scratch_register_on_entry): Likewise.
5578         (ix86_adjust_stack_and_probe): Likewise.
5579         (output_adjust_stack_and_probe): Likewise.
5580         (ix86_emit_probe_stack_range): Likewise.
5581         (output_probe_stack_range): Likewise.
5582         (ix86_expand_prologue): Emit stack checking code if static built-in
5583         stack checking is enabled.
5584         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
5585         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
5586         (output_adjust_stack_and_probe): Likewise.
5587         (output_probe_stack_range): Likewise.
5588         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5589         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
5590         TARGET_STACK_PROBE.
5591         (allocate_stack_worker_64): Likewise.
5592         (allocate_stack): Likewise.
5593         (adjust_stack_and_probe): New insn.
5594         (probe_stack_range): Likewise.
5595
5596 2010-07-08  Richard Guenther  <rguenther@suse.de>
5597
5598         PR tree-optimization/44831
5599         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
5600         a MEM_REF preserving TBAA info of the original dereference.
5601         Dereference the original pointer if the address is not invariant.
5602         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
5603         at least one invariant address that we are going to dereference.
5604
5605 2010-07-08  Richard Guenther  <rguenther@suse.de>
5606
5607         PR tree-optimization/44861
5608         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
5609         information when building MEM_REFs.
5610         (vectorizable_load): Likewise.
5611         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
5612
5613 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5614
5615         * config/sol2-c.c: Do not include diagnostic-core.h.
5616
5617 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5618
5619         PR bootstrap/44768
5620         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
5621         with respect to current_function_decl. Pass decl of the function.
5622         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
5623         * ipa-inline.c (compute_inline_parameters): Pass decl to
5624         estimated_stack_frame_size.
5625
5626 2010-07-08  Richard Guenther  <rguenther@suse.de>
5627
5628         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
5629         New function.
5630         (valueize_refs): Call it.
5631
5632 2010-07-08  Richard Guenther  <rguenther@suse.de>
5633
5634         PR rtl-optimization/44838
5635         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
5636         SSA form do not use pointer equivalence.
5637
5638 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
5639
5640         * dwarf2out.c (AT_linkage_name): Delete.
5641         (add_linkage_attr): New function.
5642         (add_linkage_name): Call it to emit the linkage attribute.
5643         (dwarf2out_finish): Likewise.
5644         (move_linkage_attr): Explicitly accept both attribute variants.
5645
5646 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5647
5648         * toplev.h: Do not include diagnostic-core.h.
5649         Include diagnostic-core.h in every file that includes toplev.h.
5650         * c-tree.h: Do not include toplev.h.
5651         * pretty-print.h: Update comment.
5652         * Makefile.in: Update dependencies.
5653         * alias.c: Include diagnostic-core.h in every file that includes
5654         toplev.h.
5655         * attribs.c: Likewise.
5656         * auto-inc-dec.c: Likewise.
5657         * bb-reorder.c: Likewise.
5658         * bt-load.c: Likewise.
5659         * caller-save.c: Likewise.
5660         * calls.c: Likewise.
5661         * cfg.c: Likewise.
5662         * cfganal.c: Likewise.
5663         * cfgbuild.c: Likewise.
5664         * cfgcleanup.c: Likewise.
5665         * cfghooks.c: Likewise.
5666         * cfgloop.c: Likewise.
5667         * combine.c: Likewise.
5668         * config/alpha/alpha.c: Likewise.
5669         * config/arc/arc.c: Likewise.
5670         * config/arm/arm.c: Likewise.
5671         * config/arm/pe.c: Likewise.
5672         * config/avr/avr.c: Likewise.
5673         * config/bfin/bfin.c: Likewise.
5674         * config/cris/cris.c: Likewise.
5675         * config/crx/crx.c: Likewise.
5676         * config/darwin-c.c: Likewise.
5677         * config/darwin.c: Likewise.
5678         * config/fr30/fr30.c: Likewise.
5679         * config/frv/frv.c: Likewise.
5680         * config/h8300/h8300.c: Likewise.
5681         * config/host-darwin.c: Likewise.
5682         * config/i386/i386.c: Likewise.
5683         * config/i386/netware.c: Likewise.
5684         * config/i386/nwld.c: Likewise.
5685         * config/i386/winnt-cxx.c: Likewise.
5686         * config/i386/winnt-stubs.c: Likewise.
5687         * config/i386/winnt.c: Likewise.
5688         * config/ia64/ia64-c.c: Likewise.
5689         * config/ia64/ia64.c: Likewise.
5690         * config/iq2000/iq2000.c: Likewise.
5691         * config/lm32/lm32.c: Likewise.
5692         * config/m32c/m32c-pragma.c: Likewise.
5693         * config/m32c/m32c.c: Likewise.
5694         * config/m32r/m32r.c: Likewise.
5695         * config/m68hc11/m68hc11.c: Likewise.
5696         * config/m68k/m68k.c: Likewise.
5697         * config/mcore/mcore.c: Likewise.
5698         * config/mep/mep-pragma.c: Likewise.
5699         * config/mep/mep.c: Likewise.
5700         * config/mmix/mmix.c: Likewise.
5701         * config/mn10300/mn10300.c: Likewise.
5702         * config/moxie/moxie.c: Likewise.
5703         * config/pa/pa.c: Likewise.
5704         * config/pdp11/pdp11.c: Likewise.
5705         * config/picochip/picochip.c: Likewise.
5706         * config/rs6000/rs6000-c.c: Likewise.
5707         * config/rs6000/rs6000.c: Likewise.
5708         * config/rx/rx.c: Likewise.
5709         * config/s390/s390.c: Likewise.
5710         * config/score/score.c: Likewise.
5711         * config/score/score3.c: Likewise.
5712         * config/score/score7.c: Likewise.
5713         * config/sh/sh.c: Likewise.
5714         * config/sh/symbian-base.c: Likewise.
5715         * config/sh/symbian-c.c: Likewise.
5716         * config/sh/symbian-cxx.c: Likewise.
5717         * config/sol2-c.c: Likewise.
5718         * config/sol2.c: Likewise.
5719         * config/sparc/sparc.c: Likewise.
5720         * config/spu/spu.c: Likewise.
5721         * config/stormy16/stormy16.c: Likewise.
5722         * config/v850/v850-c.c: Likewise.
5723         * config/v850/v850.c: Likewise.
5724         * config/vax/vax.c: Likewise.
5725         * config/vxworks.c: Likewise.
5726         * config/xtensa/xtensa.c: Likewise.
5727         * convert.c: Likewise.
5728         * cse.c: Likewise.
5729         * cselib.c: Likewise.
5730         * dbgcnt.c: Likewise.
5731         * dbxout.c: Likewise.
5732         * ddg.c: Likewise.
5733         * dominance.c: Likewise.
5734         * emit-rtl.c: Likewise.
5735         * explow.c: Likewise.
5736         * expmed.c: Likewise.
5737         * fixed-value.c: Likewise.
5738         * fold-const.c: Likewise.
5739         * fwprop.c: Likewise.
5740         * gcse.c: Likewise.
5741         * ggc-common.c: Likewise.
5742         * ggc-page.c: Likewise.
5743         * ggc-zone.c: Likewise.
5744         * gimple-low.c: Likewise.
5745         * gimplify.c: Likewise.
5746         * graph.c: Likewise.
5747         * haifa-sched.c: Likewise.
5748         * ifcvt.c: Likewise.
5749         * implicit-zee.c: Likewise.
5750         * integrate.c: Likewise.
5751         * ira-build.c: Likewise.
5752         * ira-color.c: Likewise.
5753         * ira-conflicts.c: Likewise.
5754         * ira-costs.c: Likewise.
5755         * ira-lives.c: Likewise.
5756         * ira.c: Likewise.
5757         * lists.c: Likewise.
5758         * loop-doloop.c: Likewise.
5759         * loop-iv.c: Likewise.
5760         * lto-opts.c: Likewise.
5761         * lto-symtab.c: Likewise.
5762         * main.c: Likewise.
5763         * modulo-sched.c: Likewise.
5764         * optabs.c: Likewise.
5765         * params.c: Likewise.
5766         * plugin.c: Likewise.
5767         * postreload-gcse.c: Likewise.
5768         * postreload.c: Likewise.
5769         * predict.c: Likewise.
5770         * profile.c: Likewise.
5771         * real.c: Likewise.
5772         * regcprop.c: Likewise.
5773         * reginfo.c: Likewise.
5774         * regmove.c: Likewise.
5775         * reorg.c: Likewise.
5776         * resource.c: Likewise.
5777         * rtl.c: Likewise.
5778         * rtlanal.c: Likewise.
5779         * sched-deps.c: Likewise.
5780         * sched-ebb.c: Likewise.
5781         * sched-rgn.c: Likewise.
5782         * sdbout.c: Likewise.
5783         * sel-sched-dump.c: Likewise.
5784         * sel-sched-ir.c: Likewise.
5785         * simplify-rtx.c: Likewise.
5786         * stmt.c: Likewise.
5787         * stor-layout.c: Likewise.
5788         * store-motion.c: Likewise.
5789         * targhooks.c: Likewise.
5790         * tree-cfg.c: Likewise.
5791         * tree-cfgcleanup.c: Likewise.
5792         * tree-dump.c: Likewise.
5793         * tree-eh.c: Likewise.
5794         * tree-inline.c: Likewise.
5795         * tree-nomudflap.c: Likewise.
5796         * tree-object-size.c: Likewise.
5797         * tree-optimize.c: Likewise.
5798         * tree-outof-ssa.c: Likewise.
5799         * tree-phinodes.c: Likewise.
5800         * tree-profile.c: Likewise.
5801         * tree-ssa-ccp.c: Likewise.
5802         * tree-ssa-coalesce.c: Likewise.
5803         * tree-ssa-live.c: Likewise.
5804         * tree-ssa-loop-niter.c: Likewise.
5805         * tree-ssa-loop-prefetch.c: Likewise.
5806         * tree-ssa-loop.c: Likewise.
5807         * tree-ssa-structalias.c: Likewise.
5808         * tree-ssa-uninit.c: Likewise.
5809         * tree-ssa.c: Likewise.
5810         * tree-vect-data-refs.c: Likewise.
5811         * tree-vect-loop-manip.c: Likewise.
5812         * tree-vect-loop.c: Likewise.
5813         * tree-vect-patterns.c: Likewise.
5814         * tree-vect-stmts.c: Likewise.
5815         * tree-vrp.c: Likewise.
5816         * varasm.c: Likewise.
5817         * vec.c: Likewise.
5818         * web.c: Likewise.
5819         * xcoffout.c: Likewise.
5820
5821 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
5822
5823         * gengtype.c (write_field_root): New function.
5824         (write_root): Use it.
5825
5826 2010-07-07  Wei Guozhi  <carrot@google.com>
5827
5828         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5829         of lowest bits to lshift/compare): Add a missing line.
5830
5831 2010-07-07  Wei Guozhi  <carrot@google.com>
5832
5833         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
5834         of lowest bits to lshift/compare): New.
5835
5836 2010-07-07  Tom Tromey  <tromey@redhat.com>
5837
5838         * doc/tm.texi: Update.
5839         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
5840         Add @hook.
5841         * target.def (want_debug_pub_sections): New hook.
5842         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
5843         * dwarf2out.c (add_pubname_string): Check
5844         targetm.want_debug_pub_sections.
5845         (add_pubname): Likewise.
5846         (add_pubtype): Likewise.
5847
5848 2010-07-07  Jie Zhang  <jie@codesourcery.com>
5849
5850         * genautomata.c (output_automata_list_min_issue_delay_code):
5851         Correctly decompress min_issue_delay.
5852
5853 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5854
5855         PR rtl-optimization/44404
5856         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
5857         possible, use reg_overlap_mentioned_p instead.
5858
5859 2010-07-07  Duncan Sands  <baldrick@free.fr>
5860
5861         PR middle-end/41355
5862         * tree.c (build_function_type_skip_args): Copy the original type using
5863         build_distinct_type_copy rather than copy_node.
5864
5865 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5866
5867         PR target/44850
5868         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
5869         revision 161876.
5870         (ix86_expand_prologue): Likewise.
5871         (ix86_handle_fndecl_attribute): Likewise.
5872         (ix86_asm_declare_function_name): Likewise.
5873         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5874         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5875         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
5876         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
5877         * doc/extend.texi: Likewise.
5878
5879 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
5880
5881         PR target/44844
5882         * config/i386/i386.md (rdrand<mode>): Changed to expand to
5883         retry if the carry flag isn't valid.
5884         (rdrand<mode>_1): New.
5885
5886 2010-07-07  Richard Guenther  <rguenther@suse.de>
5887
5888         PR middle-end/44790
5889         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
5890         for expanding the constant offset for MEM_REFs.
5891
5892 2010-07-07  Richard Guenther  <rguenther@suse.de>
5893
5894         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
5895         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
5896         * gimple.h (is_gimple_operand): Remove.
5897         * gimple.c (is_gimple_operand): Likewise.
5898         (walk_gimple_op): Fix wi->val_only setting for calls.
5899         * tree-cfg.c (verify_gimple_call): Fix argument validation.
5900         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
5901         invalid gimple calls.
5902
5903 2010-07-06  Jan Hubicka  <jh@suse.cz>
5904
5905         * lto-cgraph.c (output_cgraph): Add missing declaration.
5906
5907 2010-07-06  Jan Hubicka  <jh@suse.cz>
5908
5909         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
5910         partition.
5911
5912 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
5913
5914         * doc/gimple.texi (GIMPLE_DEBUG): Document.
5915         * doc/rtl.texi (Debug Information): New node.
5916         (NOTE_INSN_VAR_LOCATION): Document.
5917         (debug_insn): Likewise.
5918         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
5919
5920 2010-07-07  Jan Hubicka  <jh@suse.cz>
5921
5922         With parts by Richard Guenther.
5923
5924         PR middle-end/44813
5925         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
5926         for functions passed by reference.
5927         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
5928         in memory when passed by reference.
5929         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
5930         beggining.
5931         * ipa-split.c (split_function): Cleanup way return value is passed;
5932         handle SSA DECL_BY_REFERENCE retvals.
5933         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
5934         DECL_BY_REFERENCE is set.
5935         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
5936         find_what_p_points_to): Handle RESULT_DECL.
5937         * tree-inline.c (declare_return_variable): Get new entry_block argument;
5938         when passing by reference ensure that RESULT_DECL is gimple_val.
5939         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
5940         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
5941
5942 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
5943
5944         PR rtl-optimization/44787
5945         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
5946         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
5947
5948 2010-07-06  Jan Hubicka  <jh@suse.cz>
5949
5950         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
5951         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
5952         with body can prevail.
5953         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
5954         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
5955         * cgraph.c (cgraph_get_node_or_alias): New function.
5956         * cgraph.h (cgraph_get_node_or_alias): Declare.
5957
5958 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
5959
5960         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
5961         support.
5962         (ix86_expand_prologue): Likewise.
5963         (ix86_handle_fndecl_attribute): Likewise.
5964         (ix86_asm_declare_function_name): New function for
5965         ASM_DECLARE_FUNCTION_NAME.
5966         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
5967         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
5968         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
5969         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
5970         * doc/extend.texi: Adjust documentation about ms_hook_prologue
5971         attribute.
5972
5973 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5974
5975         * config/i386/i386.md (immediate_operand): New mode attribute.
5976
5977         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
5978         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
5979         using P mode iterator.
5980         (pro_epilogue_adjust_stack_di_2): Rename from
5981         pro_epilogue_adjust_stack_rex64_2.
5982
5983         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
5984
5985 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
5986
5987         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
5988         through gen_mov_insv_1 function pointer.
5989         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
5990         gen_truncxf<mode>2 through gen_truncxf function pointer.
5991         (remainder<mode>3): Ditto.
5992         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
5993         (allocate_stack): Call gen_allocate_stack_worker_64 or
5994         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
5995         function pointer.
5996         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
5997         function pointer.
5998
5999 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
6000
6001         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
6002         operand constraint instead of <r><i>m.
6003
6004 2010-07-06  Richard Guenther  <rguenther@suse.de>
6005
6006         PR middle-end/44828
6007         * convert.c (convert_to_integer): Watch out for overflowing
6008         MULT_EXPR as well.
6009
6010 2010-07-05  Jan Hubicka  <jh@suse.cz>
6011
6012         * lto-streamer.c (write_symbol_vec): Rename to ...
6013         (write_symbol) ... this one; write only symbol given and when
6014         present in cache. Sanity check that what is defined is present
6015         in cgraph/varpool with body/finalized decl.
6016         (write_symbols_of_kind): Remove.
6017         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
6018         pairs to produce symtab.
6019         (produce_asm_for_decls): Update call of produce_symtab; don't do so
6020         when doing WPA streaming.
6021
6022 2010-07-05  Jan Hubicka  <jh@suse.cz>
6023
6024         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
6025         function is still available to fold into.
6026
6027 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6028
6029         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
6030         * function.h (struct_function): Change type of local_decls field
6031         to a VEC.
6032         (add_local_decl): New function.
6033         (FOR_EACH_LOCAL_DECL): New macro.
6034         * cfgexpand.c (init_vars_expansion): Adjust for new type of
6035         cfun->local_decls.
6036         (estimated_stack_frame_size): Likewise.
6037         (expand_used_vars): Likewise.
6038         * cgraphbuild.c (build_cgraph_edges): Likewise.
6039         * function.c (instantiate_decls_1): Likewise.
6040         * ipa-struct-reorg.c (build_data_structure): Likewise.
6041         * ipa-type-escape.c (analyze_function): Likewise.
6042         * lto-streamer-in.c (input_function): Likewise.
6043         * lto-streamer-out.c (output_function): Likewise.
6044         * tree-ssa-live.c (remove_unused_locals): Likewise.
6045         * tree.c (free_lang_data_in_decl): Likewise.
6046         (find_decls_types_in_node): Likewise.
6047         * omp-low.c (remove_exit_barrier): Likewise.
6048         (expand_omp_taskreg): Likewise.
6049         (list2chain): Rename to...
6050         (vec2chain): ...this.  Adjust.
6051         * cgraphunit.c (assemble_thunk): Call add_local_decl.
6052         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
6053         * gimple-low.c (record_vars_into): Likewise.
6054         * tree-inline.c (remap_decls): Likewise.
6055         (declare_return_variable): Likewise.
6056         (declare_inline_vars): Likewise.
6057         (copy_forbidden): Adjust for new type of cfun->local_decls.
6058         (add_local_variables): New function.
6059         (expand_call_inline): Call it.
6060         (tree_function_versioning): Likewise.
6061
6062 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
6063
6064         AVX Programming Reference (June, 2010)
6065         * config/i386/cpuid.h (bit_F16C): New.
6066         (bit_RDRND): Likewise.
6067         (bit_FSGSBASE): Likewise.
6068
6069         * config/i386/i386-builtin-types.def: Add
6070         "DEF_FUNCTION_TYPE (UINT16)", function types for
6071         float16 <-> float conversions and
6072         "DEF_FUNCTION_TYPE (VOID, UINT64)".
6073
6074         * config/i386/i386-c.c (ix86_target_macros_internal): Support
6075         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
6076         OPTION_MASK_ISA_F16C.
6077
6078         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
6079         (OPTION_MASK_ISA_RDRND_SET): Likewise.
6080         (OPTION_MASK_ISA_F16C_SET): Likewise.
6081         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
6082         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
6083         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
6084         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
6085         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
6086         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
6087         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
6088         (override_options): Handle them.
6089         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
6090         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
6091         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
6092         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
6093         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
6094         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
6095         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
6096         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
6097         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
6098         (bdesc_args): Likewise.
6099         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
6100         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
6101         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
6102         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
6103         Handle non-memory store.
6104
6105         * config/i386/i386.h (TARGET_FSGSBASE): New.
6106         (TARGET_RDRND): Likewise.
6107         (TARGET_F12C): Likewise.
6108
6109         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
6110         (UNSPEC_VCVTPS2PH): Likewise.
6111         (UNSPECV_RDFSBASE): Likewise.
6112         (UNSPECV_RDGSBASE): Likewise.
6113         (UNSPECV_WRFSBASE): Likewise.
6114         (UNSPECV_WRGSBASE): Likewise.
6115         (UNSPECV_RDRAND): Likewise.
6116         (rdfsbase<mode>): Likewise.
6117         (rdgsbase<mode>): Likewise.
6118         (wrfsbase<mode>): Likewise.
6119         (wrgsbase<mode>): Likewise.
6120         (rdrand<mode>): Likewise.
6121
6122         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
6123
6124         * config/i386/immintrin.h (_rdrand_u16): New.
6125         (_rdrand_u32): Likewise.
6126         (_readfsbase_u32): Likewise.
6127         (_readfsbase_u64): Likewise.
6128         (_readgsbase_u32): Likewise.
6129         (_readgsbase_u64): Likewise.
6130         (_writefsbase_u32): Likewise.
6131         (_writefsbase_u64): Likewise.
6132         (_writegsbase_u32): Likewise.
6133         (_writegsbase_u64): Likewise.
6134         (_rdrand_u64): Likewise.
6135         (_cvtsh_ss): Likewise.
6136         (_mm_cvtph_ps): Likewise.
6137         (_mm256_cvtph_ps): Likewise.
6138         (_cvtss_sh): Likewise.
6139         (_mm_cvtps_ph): Likewise.
6140         (_mm256_cvtps_ph): Likewise.
6141
6142         * config/i386/sse.md (vcvtph2ps): New.
6143         (*vcvtph2ps_load): Likewise.
6144         (vcvtph2ps256): Likewise.
6145         (vcvtps2ph): Likewise.
6146         (*vcvtps2ph): Likewise.
6147         (*vcvtps2ph_store): Likewise.
6148         (vcvtps2ph256): Likewise.
6149
6150         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
6151
6152         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
6153
6154 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
6155
6156         PR bootstrap/44512
6157         * genenums.c (main): Output include of insn-constants.h
6158         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
6159
6160 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
6161
6162         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
6163         (override_options): Initialize it.
6164         (ix86_expand_prologue): Use it.
6165
6166 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6167
6168         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
6169
6170 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6171
6172         * double-int.h (fit_double_type): Remove declaration.
6173         * double-int.c (fit_double_type): Remove function.
6174         * tree.h (int_fits_type_p): Adjust prototype.
6175         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
6176         instead of fit_double_type.
6177         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
6178         instead of fit_double_type and build_int_cst_wide.
6179         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
6180         instead of fit_double_type and build_int_cst_wide.
6181         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
6182         of fit_double_type.
6183
6184 2010-07-05  Jan Hubicka  <jh@suse.cz>
6185
6186         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
6187         in_other_partition.
6188         * lto-cgraph.c (referenced_from_other_partition_p,
6189         reachable_from_other_partition_p): Use in_other_partition flags.
6190         (output_node, output_varpool_node): COMDAT nodes always have private
6191         copies and thus are never used from other partition.
6192
6193 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
6194
6195         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6196         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
6197         * config/ia64/ia64.c Include reload.h.
6198         (ia64_memory_move_cost): New function.
6199         (TARGET_MEMORY_MOVE_COST): Define.
6200         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
6201         memory_move_cost.
6202
6203 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
6204
6205         PR middle-end/42505
6206         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
6207         comments about cost model.
6208         (try_add_cand_for):  Add second strategy for choosing initial set
6209         based on original IVs, controlled by ORIGINALP argument.
6210         (get_initial_solution): Add ORIGINALP argument.
6211         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
6212         (find_optimal_iv_set): Try two different strategies for choosing
6213         the IV set, and return the one with lower cost.
6214
6215 2010-07-05  Richard Guenther  <rguenther@suse.de>
6216
6217         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
6218
6219 2010-07-05  Richard Guenther  <rguenther@suse.de>
6220
6221         * tree.c (reference_alias_ptr_type): New function.
6222         * tree.h (reference_alias_ptr_type): Declare.
6223         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
6224         allow non-TARGET_MEM_REF new refs.
6225         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
6226         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
6227         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
6228         (create_mem_ref): Get alias pointer type.  Adjust calls to
6229         create_mem_ref_raw.
6230         (maybe_fold_tmr): Likewise.
6231         * tree-flow.h (create_mem_ref): Adjust prototype.
6232
6233 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
6234
6235         PR c++/44808
6236         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
6237         *from_p is VAR_DECL.
6238
6239 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6240
6241         * tree.h (build_call_list): Remove.
6242         * tree.c (build_call_list): Remove.
6243
6244 2010-07-05  Richard Guenther  <rguenther@suse.de>
6245
6246         * double-int.h (double_int_sub): Declare.
6247         * double-int.c (double_int_sub): New function.
6248         * dwarf2out.c (field_byte_offset): Use it.
6249         * fixed-value.c (do_fixed_add): Likewise.
6250         (do_fixed_multiply): Likewise.
6251         (do_fixed_divide): Likewise.
6252         * tree-predcom.c (add_ref_to_chain): Likewise.
6253         (determine_roots_comp): Likewise.
6254         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
6255
6256 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
6257
6258         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
6259         implementations.
6260
6261 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
6262
6263         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
6264         * arm-modes.def (CC_NOTB): Don't define.
6265         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
6266         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
6267         (LTUGEU): New code_iterator.
6268         (cnb, optab): New corresponding code_attrs.
6269         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
6270         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
6271         using LTUGEU.
6272         (addsi3_carryin_shift_<optab>): Likewise.
6273         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
6274         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
6275         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
6276         (subsi3_compare): Renamed from subsi3_compare0_c.
6277         Change CC_NOTB to CC.
6278         (arm_subsi3_insn): Allow constants for operand 0.
6279         (compare_scc peephole for eq case): New.
6280         (compare_scc splitters): Change CC_NOTB to CC.
6281
6282 2010-07-05  Richard Guenther  <rguenther@suse.de>
6283
6284         * tree-ssa-loop-im.c (for_each_index): Do not handle
6285         ALIGN_INDIRECT_REF.
6286         (gen_lsm_tmp_name): Likewise.
6287         * tree-dump.c (dequeue_and_dump): Likewise.
6288         * tree-pretty-print.c (dump_generic_node): Likewise.
6289         (op_code_prio): Likewise.
6290         (op_symbol_code): Likewise.
6291         * tree.c (staticp): Likewise.
6292         (build1_stat): Likewise.
6293         * tree.h (INDIRECT_REF_P): Likewise.
6294         * fold-const.c (maybe_lvalue_p): Likewise.
6295         (operand_equal_p): Likewise.
6296         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6297         (ao_ref_init_from_vn_reference): Likewise.
6298         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
6299         (find_interesting_uses_address): Likewise.
6300         * dwarf2out.c (loc_list_from_tree): Likewise.
6301         * gimplify.c (gimplify_expr): Likewise.
6302         * tree-eh.c (tree_could_trap_p): Likewise.
6303         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6304         * cfgexpand.c (expand_debug_expr): Likewise.
6305         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6306         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
6307         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
6308         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
6309         * tree-ssa-operands.c (get_expr_operands): Likewise.
6310         * expr.c (safe_from_p): Likewise.
6311         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
6312         * tree-vect-data-refs.c (vect_setup_realignment): Build
6313         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
6314         * tree-vect-stmts.c (vectorizable_load): Likewise.
6315         * tree.def (ALIGN_INDIRECT_REF): Remove.
6316
6317 2010-07-05  Richard Guenther  <rguenther@suse.de>
6318
6319         PR tree-optimization/44784
6320         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
6321         for inserted stmts.
6322         (find_or_generate_expression): Fix SCCVN insertion check.
6323
6324 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6325
6326         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
6327         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
6328         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6329         directives.
6330
6331 2010-07-05  Ira Rosen  <irar@il.ibm.com>
6332
6333         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
6334         statements that are not vectorized.
6335         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
6336         in INSIDE_COST.
6337
6338 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
6339
6340         PR bootstrap/44820
6341         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
6342
6343 2010-07-05  Richard Guenther  <rguenther@suse.de>
6344
6345         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
6346         RESULT_DECLs properly.
6347
6348 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
6349
6350         PR rtl-optimization/44695
6351         * config/i386/i386.md (extract_code): Removed.
6352         (<u>divmodqi4): Likewise.
6353         (divmodqi4): New.
6354         (udivmodqi4): Likewise.
6355         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
6356         (udivmodhiqi3): Likewise.
6357
6358 2010-07-04  Jan Hubicka  <jh@suse.cz>
6359
6360         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
6361
6362 2010-07-04  Jan Hubicka  <jh@suse.cz>
6363
6364         * cgraphunit.c (init_cgraph): Only initialize dump file if it
6365         is not already initialized.
6366
6367 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6368
6369         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
6370         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
6371         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6372         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
6373         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
6374         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
6375         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
6376         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
6377         (sync_new_nand_optab): Redefine as macros.
6378         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
6379         Delete.
6380         (direct_optab_index): New enum.
6381         (direct_optab_d): New structure.
6382         (direct_optab): New typedef.
6383         (direct_optab_table): Declare.
6384         (direct_optab_handler, set_direct_optab_handler): New functions.
6385         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
6386         (sync_lock_release_optab): New macros.
6387         * optabs.c (direct_optab_table): New variable.
6388         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
6389         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
6390         cmpstr_optab and cmpstrn_optab.
6391         (emit_conditional_move): Likewise for movcc_optab.
6392         (can_conditionally_move_p): Likewise for movcc_gen_code.
6393         (init_insn_codes): Clear direct_optab_table.
6394         (init_optabs): Don't initialize the new "direct optabs" here.
6395         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
6396         vcond_gen_code.
6397         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
6398         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
6399         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
6400         (expand_sync_operation): Likewise other sync_*_optabs.
6401         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
6402         to sync_compare_and_swap_optab.
6403         (expand_sync_lock_test_and_set): Use direct_optab_handler for
6404         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
6405         to the names of both.
6406         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
6407         cmpstr_optab and cmpstrn_optab.
6408         (expand_builtin_lock_release): Likewise sync_lock_release.
6409         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
6410         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
6411         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
6412         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
6413         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
6414         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
6415         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
6416         (sync_lock_test_and_set, sync_lock_release): Delete.
6417         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
6418         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
6419         * genopinit.c (optabs): Use set_direct_optab_handler for the new
6420         macro optabs.
6421         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
6422         the "optab" local variable.  Use direct_optab_handler for optab and
6423         sync_compare_and_swap_optab.
6424         * reload1.c (reload_in_optab, reload_out_optab): Delete.
6425         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
6426         reload_in_optab and reload_out_optab.
6427         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
6428         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6429         * config/pa/pa.c (pa_secondary_reload): Likewise.
6430         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
6431         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
6432         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
6433         (VMSupportsCS8_builtin): Likewise.
6434
6435 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6436
6437         * optabs.h (optab_handlers): Change type of insn_code to int.
6438         (optab_handler, set_optab_handler, convert_optab_handler)
6439         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
6440         CODE_FOR_nothing".
6441         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
6442         (init_insn_codes): Zero both the above arrays.
6443         (init_optabs): Never call init_insn_codes first time around.
6444
6445 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
6446
6447         * optabs.h (optab_handler, convert_optab_handler): Turn into
6448         inline functions that return an insn code.
6449         (set_optab_handler, set_convert_optab_handler): New functions.
6450         * builtins.c: Replace optab_handler(X)->insn_code with
6451         optab_handler or set_optab_handler thoughout.  Likewise
6452         convert_optab_handler(X)->insn_code with convert_optab_handler
6453         and set_convert_optab_handler.
6454         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
6455         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
6456         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
6457         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
6458         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
6459         config/spu/spu.c: Likewise.
6460
6461 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
6462
6463         PR target/44531
6464         * config.gcc (sh*-*-*): Use regular expressions instead of
6465         the 'i' modifier for sed substitutions.
6466
6467 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
6468
6469         * gimple.c (gimple_body): Comments added.
6470
6471 2010-07-04  Richard Guenther  <rguenther@suse.de>
6472
6473         PR middle-end/44809
6474         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
6475         of an INDIRECT_REF.
6476
6477 2010-07-04  Richard Guenther  <rguenther@suse.de>
6478
6479         PR tree-optimization/44479
6480         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
6481         extra SSA name copy statements which preserves points-to
6482         information.
6483         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6484         Copy points-to information for all pointers.  Properly handle
6485         MEM_REFs.
6486         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
6487         copy statements.
6488         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
6489         dependency.
6490
6491 2010-07-04  Richard Guenther  <rguenther@suse.de>
6492
6493         PR middle-end/44785
6494         * tree-inline.c (initialize_inlined_parameters): Do not
6495         re-use pointer-map slot over remap_type call.
6496
6497 2010-07-04  Richard Guenther  <rguenther@suse.de>
6498
6499         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
6500
6501 2010-07-04  Richard Guenther  <rguenther@suse.de>
6502
6503         PR tree-optimization/44656
6504         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
6505         again after value-replacing in the defintions lhs.
6506
6507 2010-07-04  Ira Rosen  <irar@il.ibm.com>
6508             Revital Eres  <eres@il.ibm.com>
6509
6510         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
6511         Document new arguments.
6512         * doc/tm.texi: Regenerate.
6513         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
6514         Handle unaligned store.
6515         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
6516         * target.def (builtin_vectorization_cost): Add new arguments.
6517         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
6518         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
6519         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
6520         (vect_vfa_segment_size): Fix indentation.
6521         * tree-vectorizer.h (struct _vect_peel_info): New.
6522         (struct _vect_peel_extended_info): New.
6523         (struct _loop_vec_info): Add new field for peeling hash table and a
6524         macro for its access.
6525         (VECT_MAX_COST): Define.
6526         (vect_get_load_cost): Declare.
6527         (vect_get_store_cost, vect_get_known_peeling_cost,
6528         vect_get_single_scalar_iteraion_cost): Likewise.
6529         (vect_supportable_dr_alignment): Add new argument.
6530         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
6531         field.
6532         (destroy_loop_vec_info): Free peeling hash table.
6533         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
6534         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
6535         vect_analyze_slp. Fix indentation.
6536         (vect_get_single_scalar_iteraion_cost): New function.
6537         (vect_get_known_peeling_cost): Likewise.
6538         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
6539         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
6540         statement. Move outside cost calculation inside unknown peeling case.
6541         Call vect_get_known_peeling_cost for known amount of peeling.
6542         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
6543         reference to the print message of forced alignment.
6544         (vect_verify_datarefs_alignment): Update call to
6545         vect_supportable_dr_alignment.
6546         (vect_get_data_access_cost): New function.
6547         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
6548         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
6549         vect_peeling_hash_choose_best_peeling): Likewise.
6550         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
6551         to store all the accesses in the loop and find best possible access to
6552         align using peeling for known alignment case. For unknown alignment
6553         check if stores are preferred or if peeling is worthy.
6554         (vect_find_same_alignment_drs): Analyze pairs of loads too.
6555         (vect_supportable_dr_alignment): Add new argument and check aligned
6556         accesses according to it.
6557         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
6558         (cost_for_stmt): Call vect_get_stmt_cost.
6559         (vect_model_simple_cost): Likewise.
6560         (vect_model_store_cost): Call vect_get_stmt_cost. Call
6561         vect_get_store_cost to calculate the cost of the statement.
6562         (vect_get_store_cost): New function.
6563         (vect_model_load_cost): Call vect_get_stmt_cost. Call
6564         vect_get_load_cost to calculate the cost of the statement.
6565         (vect_get_load_cost): New function.
6566         (vectorizable_store): Update call to vect_supportable_dr_alignment.
6567         (vectorizable_load): Likewise.
6568         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
6569         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
6570         arguments. Handle unaligned store.
6571         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
6572         (rs6000_builtin_support_vector_misalignment): Return true for word and
6573         double word alignments for VSX.
6574         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
6575         vect_supportable_dr_alignment and builtin_vectorization_cost.
6576
6577 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6578
6579         PR target/44597
6580         * config/pa/predicates.md (prefetch_cc_operand): Remove.
6581         (prefetch_nocc_operand): Likewise.
6582         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
6583         (prefetch_20): New insn.
6584         (prefetch_cc): Remove.
6585         (prefetch_nocc): Likewise.
6586
6587 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6588
6589         * expr.c (vector_mode_valid_p): Move to c-common.c.
6590         * expr.h (vector_mode_valid_p): Do not declare here.
6591         * system.h: Poison GCC_EXPR_H in front-ends.
6592         * Makefile.in: Update dependencies.
6593
6594 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6595
6596         PR target/44705
6597         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
6598
6599 2010-07-03  Jan Hubicka  <jh@suse.cz>
6600
6601         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
6602         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
6603         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
6604         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
6605         Likewise.
6606
6607         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
6608         Update timevars.V
6609         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
6610         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
6611         TV_IPA_LTO_DECL_OUT): New.
6612         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
6613
6614 2010-07-03  Jan Hubicka  <jh@suse.cz>
6615
6616         * ipa-inline.c (update_edge_key): Break out from ...
6617         update_callers_keys): ... here;
6618         (update_callee_keys): Update only the edges from caller to callee.
6619         (update_all_calle_keys): Do what update_calle_keys did.
6620         (decide_inlining_of_small_functions): Avoid recomputing of all
6621         callees when badness increase.
6622
6623 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6624
6625         * config/arm/arm.c (arm_attr_length_move_neon): New.
6626         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
6627         * config/arm/neon.md (define_mode_attr V_slen): Remove.
6628         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
6629         to compute length attribute.
6630
6631 2010-07-03  Jie Zhang  <jie@codesourcery.com>
6632
6633         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
6634         as predicate for operand 1 and remove its constraint.
6635         * config/arm/predicates.md (vfp_register_operand): New.
6636         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
6637         (*push_fp_multi): Likewise.
6638
6639 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
6640
6641         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
6642
6643 2010-07-03  Jan Hubicka  <jh@suse.cz>
6644
6645         * config/i386/i386.c (override_options): Revert accidental commit.
6646
6647 2010-07-02  Le-Chun Wu  <lcwu@google.com>
6648
6649         PR c++/44128
6650         * doc/invoke.texi: Update documentation of -Wshadow.
6651
6652 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
6653             Julian Brown  <julian@codesourcery.com>
6654             Sandra Loosemore <sandra@codesourcery.com>
6655
6656         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
6657         comparisons.  Adjust to take both operands.
6658         (arm_select_cc_mode): Handle DImode comparisons.
6659         (arm_gen_compare_reg): Generate a scratch register for DImode
6660         comparisons which require one.  Use xor for Thumb equality checks.
6661         (arm_const_double_by_immediates): New.
6662         (arm_print_operand): Allow 'Q' and 'R' for constants.
6663         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
6664         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
6665         arm_canonicalize_comparison.
6666         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
6667         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
6668         prototype.
6669         (arm_const_double_by_immediates): Declare.
6670         * config/arm/constraints.md (Di): New constraint.
6671         * config/arm/predicates.md (arm_immediate_di_operand)
6672         (arm_di_operand, cmpdi_operand): New.
6673         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
6674         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
6675         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
6676         (cstoredi4): Handle non-Cirrus also.
6677
6678 2010-07-02  Julian Brown  <julian@codesourcery.com>
6679             Sandra Loosemore <sandra@codesourcery.com>
6680
6681         PR target/43703
6682         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
6683         (smax<mode>3): Disable for NEON float modes when
6684         flag_unsafe_math_optimizations is false.
6685         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
6686         (*mul<mode>3_neon)
6687         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
6688         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
6689         for NEON float modes when flag_unsafe_math_optimizations is false.
6690         (quad_halves_<code>v4sf): Only enable if
6691         flag_unsafe_math_optimizations is true.
6692         * doc/invoke.texi (ARM Options): Add note about floating point
6693         vectorization requiring -funsafe-math-optimizations.
6694
6695 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6696             Julian Brown  <julian@codesourcery.com>
6697
6698         * config/arm/neon.md (UNSPEC_VABA): Delete.
6699         (UNSPEC_VABAL): Delete.
6700         (UNSPEC_VABS): Delete.
6701         (UNSPEC_VMUL_N): Delete.
6702         (adddi3_neon): New.
6703         (subdi3_neon): New.
6704         (mul<mode>3add<mode>_neon): Make the pattern named.
6705         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6706         (neon_vadd<mode>): Replace with define_expand, and move the remaining
6707         unspec parts...
6708         (neon_vadd<mode>_unspec): ...to this.
6709         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
6710         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
6711         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
6712         (neon_vaba<mode>): Rewrite in terms of vabd.
6713         (neon_vabal<mode>): Rewrite in terms of vabdl.
6714         (neon_vabs<mode>): Rewrite without unspec.
6715         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
6716         (*arm_subdi3): Likewise.
6717         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
6718         No_op attribute to disable assembly output checks.
6719         * config/arm/arm_neon.h: Regenerated.
6720         * doc/arm-neon-intrinsics.texi: Regenerated.
6721
6722 2010-07-02  Jan Hubicka  <jh@suse.cz>
6723
6724         * ipa-split.c (split_function): For aggregate values, set the return
6725         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
6726         *<retval> = fncall.part ().
6727         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
6728
6729 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6730
6731         * config/arm/neon.md (UNSPEC_VAND): Delete.
6732         (UNSPEC_VBIC): Delete.
6733         (UNSPEC_VCLZ): Delete.
6734         (UNSPEC_VCNT): Delete.
6735         (UNSPEC_VEOR): Delete.
6736         (UNSPEC_VORN): Delete.
6737         (UNSPEC_VORR): Delete.
6738         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
6739         core registers too.
6740         (anddi3_neon): Likewise.
6741         (orndi3_neon): Likewise.
6742         (bicdi3_neon): Likewise.
6743         (xordi3_neon): Likewise.
6744         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
6745         rid of unspec and handle unused operand.
6746         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
6747         * config/arm/predicates.md (imm_for_neon_logic_operand):
6748         Require TARGET_NEON.
6749         (imm_for_neon_inv_logic_operand): Likewise.
6750         * config/arm/arm.md (define_split for logical_binary_operator):
6751         Disable for NEON registers.
6752         (anddi3): Add new define_expand, and rename the insn.  Disable
6753         this insn for NEON, where anddi3_neon now applies.
6754         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
6755         (iordi3): As for anddi3.
6756         (xordi3): Likewise.
6757         * config/arm/neon.ml (Vand): Split DImode variants and mark them
6758         as No_op to disable testing for exact instruction match.
6759         (Vorr): Likewise.
6760         (Veor): Likewise.
6761         (Vbic): Likewise.
6762         (Vorn): Likewise.
6763         * config/arm/arm_neon.h: Regenerated.
6764         * doc/arm-neon-intrinsics.texi: Regenerated.
6765
6766 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6767
6768         * expr.h (emit_stack_probe): Declare.
6769         * explow.c (emit_stack_probe): Make global.
6770         (anti_adjust_stack_and_probe): Fix comments.
6771         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
6772         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6773         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
6774         * config/sparc/sparc.c: Include except.h.
6775         (sparc_emit_probe_stack_range): New function.
6776         (output_probe_stack_range): Likewise.
6777         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
6778         built-in stack checking is enabled.
6779         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
6780         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
6781         (probe_stack_range): New insn.
6782
6783 2010-07-02  Richard Guenther  <rguenther@suse.de>
6784
6785         PR target/43958
6786         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
6787         for argument alignment.
6788
6789 2010-07-02  Jan Hubicka  <jh@suse.cz>
6790
6791         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
6792         walk backwards from entry_bb to check only those basic block of header
6793         that might lead to execution of split part.
6794         (consider_split) ... here.
6795         (find_return_bb): Allow assignment in return BB.
6796         (find_retval): New.
6797         (split_function): Fix name of cloned function; take care of updating
6798         return value in return_bb containing move.
6799
6800 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
6801
6802         PR target/44771
6803         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
6804         used variable insn.
6805
6806 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
6807
6808         * implicit-zee.c (combine_reaching_defs): Fix long lines.
6809         (is_set_with_extension_DI): Delete.
6810         (struct zero_extend_info): New structure.
6811         (add_removable_zero_extend): New function.
6812         (find_removable_zero_extends): Use note_stores to find SETs.
6813         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
6814
6815 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6816
6817         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
6818         is_miss_rate_acceptable. Pull total_positions computation
6819         out of the loops.  Early return if miss_positions exceeds
6820         the acceptable threshold.
6821         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
6822         is_miss_rate_acceptable after renaming of compute_miss_rate.
6823
6824 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
6825
6826         PR middle-end/44576
6827         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
6828         of 1000) for miss rate if the address diference is greater than or
6829         equal to the cache line size (the two reference will never hit the
6830         same cache line).
6831
6832 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
6833
6834         PR target/42835
6835         * config/arm/arm-modes.def (CC_NOTB): New mode.
6836         * config/arm/arm.c (get_arm_condition_code): Handle it.
6837         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
6838         * config/arm/arm.md (subsi3_compare0_c): New pattern.
6839         (compare_scc): Now a define_and_split.  Add a number of extra
6840         splitters before it.
6841
6842         PR target/42172
6843         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
6844         and ZERO_EXTEND.
6845         (arm_rtx_costs_1): Likewise.
6846         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
6847         * config/arm/arm.md (is_arch6): New attribute.
6848         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
6849         extendqisi2): Tighten the code somewhat, avoiding invalid
6850         RTL to occur in the expander patterns.
6851         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
6852         (thumb1_zero_extendhisi2_v6): Delete.
6853         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
6854         (thumb1_extendhisi2_v6): Delete.
6855         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
6856         (thumb1_extendqisi2_v6): Delete.
6857         (zero_extendhisi2 for register input splitter): New.
6858         (zero_extendqisi2 for register input splitter): New.
6859         (thumb1_extendhisi2 for register input splitter): New.
6860         (extendhisi2 for register input splitter): New.
6861         (extendqisi2 for register input splitter): New.
6862         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
6863         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
6864         and add support for a register alternative requiring a split.
6865         (thumb1_zero_extendqisi2): Likewise.
6866         (arm_zero_extendqisi2): Likewise.
6867         (arm_extendhisi2): Likewise.
6868         (arm_extendqisi2): Likewise.
6869
6870 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6871
6872         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
6873         instead of an unspec.
6874         (neon_expand_vector_init): Likewise.
6875         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
6876         (UNSPEC_VDUP_LANE): Delete.
6877         (UNSPEC VDUP_N): Delete.
6878         (UNSPEC_VGET_HIGH): Delete.
6879         (UNSPEC_VGET_LANE): Delete.
6880         (UNSPEC_VGET_LOW): Delete.
6881         (UNSPEC_VMVN): Delete.
6882         (UNSPEC_VSET_LANE): Delete.
6883         (V_double_vector_mode): New.
6884         (vec_set<mode>_internal): Make code emitted match that for the
6885         corresponding intrinsics.
6886         (vec_setv2di_internal): Likewise.
6887         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
6888         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
6889         (neon_vset_lane<mode>): Combine double and quad patterns and
6890         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
6891         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
6892         (neon_vdup_n<mode>): Rewrite RTL without unspec.
6893         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
6894         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
6895         with neon_vdup_lanev2di, adjusting the pattern from the latter
6896         to be predicable for consistency.
6897         (neon_vdup_lane<mode>_internal): New.
6898         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
6899         to avoid using an unspec.
6900         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
6901         (neon_vdup_lanev2di): Turn into a define_expand.
6902         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
6903         (neon_vget_high<mode>): Replace with....
6904         (neon_vget_highv16qi): New pattern using canonical RTL.
6905         (neon_vget_highv8hi): Likewise.
6906         (neon_vget_highv4si): Likewise.
6907         (neon_vget_highv4sf): Likewise.
6908         (neon_vget_highv2di): Likewise.
6909         (neon_vget_low<mode>): Replace with....
6910         (neon_vget_lowv16qi): New pattern using canonical RTL.
6911         (neon_vget_lowv8hi): Likewise.
6912         (neon_vget_lowv4si): Likewise.
6913         (neon_vget_lowv4sf): Likewise.
6914         (neon_vget_lowv2di): Likewise.
6915
6916         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
6917         test for this emitting vmov.
6918         (Vset_lane): Likewise.
6919         (Vdup_n): Likewise.
6920         (Vmov_n): Likewise.
6921
6922         * doc/arm-neon-intrinsics.texi: Regenerated.
6923
6924 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
6925
6926         * config/arm/neon.md (vec_extractv2di): Correct error in register
6927         numbering to reconcile with neon_vget_lanev2di.
6928
6929 2010-07-02  Richard Guenther  <rguenther@suse.de>
6930
6931         * tree-ssa-structalias.c (pt_solution_set_var): New function.
6932         * tree-ssa-alias.h (pt_solution_set_var): Declare.
6933         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
6934         points-to information.
6935
6936 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
6937
6938         * config/s390/s390.c (override_options): Adopt prefetching
6939         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
6940
6941 2010-07-02  Jan Hubicka  <jh@suse.cz>
6942
6943         * df-problems.c (df_kill_notes): Do not collect dead  notes.
6944         (df_set_note): Just call add_reg_note.
6945         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
6946         df_create_unused_note): Do not deal with lists of old notes.
6947         (df_note_bb_compute): Likewise.
6948
6949 2010-07-02  Richard Guenther  <rguenther@suse.de>
6950
6951         * tree-ssa-structalias.c (find_func_aliases): Handle
6952         pointer alignment via BIT_AND_EXPR.
6953         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
6954
6955 2010-07-02  Richard Guenther  <rguenther@suse.de>
6956
6957         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6958         mismatching number of dimensions properly.
6959
6960 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6961
6962         PR target/44707
6963         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
6964         (lo_sum (high ...) ...) patterns generated by earlier passes.
6965
6966 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6967
6968         * doc/install.texi (Prerequisites): Document Perl requirement on
6969         Solaris 2.
6970         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
6971
6972 2010-07-02  Richard Guenther  <rguenther@suse.de>
6973
6974         PR middle-end/44777
6975         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
6976
6977 2010-07-02  Jan Hubicka  <jh@suse.cz>
6978
6979         PR middle-end/44706
6980         * predict.c (predict_paths_for_bb): Handle case when control dependence
6981         BB has only abnormal edges.
6982
6983 2010-07-02  Richard Guenther  <rguenther@suse.de>
6984
6985         PR tree-optimization/44748
6986         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
6987         the embedded conversion in MEM_REFs.
6988
6989 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
6990
6991         * reload.c: Include toplev.h.
6992         * recog.c:  Likewise.
6993         * Makefile.in: Adjust dependencies.
6994
6995 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
6996
6997         PR debug/44694
6998         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
6999         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
7000
7001 2010-07-01  Richard Guenther  <rguenther@suse.de>
7002
7003         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
7004         types for offsets.
7005
7006 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
7007
7008         PR target/44732
7009         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
7010         Fix argument types.
7011
7012 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
7013
7014         PR target/44727
7015         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7016         Make sure operand 0 dies.
7017
7018 2010-07-01  Richard Guenther  <rguenther@suse.de>
7019
7020         PR middle-end/42834
7021         PR middle-end/44468
7022         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
7023         * doc/generic.texi (References to storage): Document MEM_REF.
7024         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
7025         (print_call_name): Likewise.
7026         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
7027         (build_simple_mem_ref_loc): New function.
7028         (mem_ref_offset): Likewise.
7029         * tree.h (build_simple_mem_ref_loc): Declare.
7030         (build_simple_mem_ref): Define.
7031         (mem_ref_offset): Declare.
7032         * fold-const.c: Include tree-flow.h.
7033         (operand_equal_p): Handle MEM_REF.
7034         (build_fold_addr_expr_with_type_loc): Likewise.
7035         (fold_comparison): Likewise.
7036         (fold_unary_loc): Fold
7037         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
7038         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
7039         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
7040         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
7041         (ptr_deref_may_alias_ref_p_1): Likewise.
7042         (ao_ref_base_alias_set): Properly differentiate base object for
7043         offset and TBAA.
7044         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
7045         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
7046         (indirect_refs_may_alias_p): Likewise.
7047         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
7048         chasing code.
7049         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
7050         (call_may_clobber_ref_p_1): Likewise.
7051         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
7052         * expr.c (expand_assignment): Handle MEM_REF.
7053         (store_expr): Handle MEM_REFs from STRING_CSTs.
7054         (store_field): If expanding a MEM_REF of a non-addressable
7055         decl use bitfield operations.
7056         (get_inner_reference): Handle MEM_REF.
7057         (expand_expr_addr_expr_1): Likewise.
7058         (expand_expr_real_1): Likewise.
7059         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
7060         * alias.c (ao_ref_from_mem): Handle MEM_REF.
7061         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
7062         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
7063         (dr_analyze_indices): Likewise.
7064         (dr_analyze_alias): Likewise.
7065         (object_address_invariant_in_loop_p): Likewise.
7066         * gimplify.c (mark_addressable): Handle MEM_REF.
7067         (gimplify_cond_expr): Build MEM_REFs.
7068         (gimplify_modify_expr_to_memcpy): Likewise.
7069         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
7070         (gimple_fold_indirect_ref): Adjust.
7071         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
7072         * tree.def (MEM_REF): New tree code.
7073         * tree-dfa.c: Include toplev.h.
7074         (get_ref_base_and_extent): Handle MEM_REF.
7075         (get_addr_base_and_unit_offset): New function.
7076         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
7077         * gimple-fold.c (may_propagate_address_into_dereference): Handle
7078         MEM_REF.
7079         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
7080         accesses if the array has just one dimension.  Remove always true
7081         parameter.  Do not require type compatibility here.
7082         (maybe_fold_offset_to_component_ref): Remove.
7083         (maybe_fold_stmt_indirect): Remove.
7084         (maybe_fold_reference): Remove INDIRECT_REF handling.
7085         Fold back to non-MEM_REF.
7086         (maybe_fold_offset_to_address): Simplify.  Deal with type
7087         mismatches here.
7088         (maybe_fold_reference): Likewise.
7089         (maybe_fold_stmt_addition): Likewise.  Also handle
7090         &ARRAY + I in addition to &ARRAY[0] + I.
7091         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
7092         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
7093         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
7094         * tree-ssa.c (useless_type_conversion_p): Make most pointer
7095         conversions useless.
7096         (warn_uninitialized_var): Handle MEM_REF.
7097         (maybe_rewrite_mem_ref_base): New function.
7098         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
7099         to SSA form.
7100         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
7101         INDIRECT_REF handling.
7102         (copy_tree_body_r): Handle MEM_REF.
7103         * gimple.c (is_gimple_addressable): Adjust.
7104         (is_gimple_address): Likewise.
7105         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
7106         invariant base are invariant.
7107         (is_gimple_min_lval): Adjust.
7108         (is_gimple_mem_ref_addr): New function.
7109         (get_base_address): Handle MEM_REF.
7110         (count_ptr_derefs): Likewise.
7111         (get_base_loadstore): Likewise.
7112         * gimple.h (is_gimple_mem_ref_addr): Declare.
7113         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
7114         * tree-cfg.c (verify_address): New function, split out from ...
7115         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
7116         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
7117         INDIRECT_REFs.
7118         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
7119         INDIRECT_REF.  Allow conversions.
7120         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
7121         a register does not change its size.
7122         (verify_types_in_gimple_reference): Verify MEM_REF.
7123         (verify_gimple_assign_single): Disallow INDIRECT_REF.
7124         Handle MEM_REF.
7125         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
7126         New.
7127         (mark_address_taken): Handle MEM_REF.
7128         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
7129         (get_asm_expr_operands): Pass opf_not_non_addressable.
7130         (get_expr_operands): Handle opf_[not_]non_addressable.
7131         Handle MEM_REF.  Remove INDIRECT_REF handling.
7132         * tree-vrp.c (check_array_ref): Handle MEM_REF.
7133         (search_for_addr_array): Likewise.
7134         (check_array_bounds): Likewise.
7135         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
7136         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
7137         (ref_always_accessed_p): Likewise.
7138         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
7139         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
7140         Handle MEM_REF.
7141         * cgraphbuild.c (mark_load): Properly check for NULL result
7142         from get_base_address.
7143         (mark_store): Likewise.
7144         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
7145         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
7146         handling for MEM_REF.
7147         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
7148         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
7149         * builtins.c (stabilize_va_list_loc): Use the function ABI
7150         valist type if we couldn't canonicalize the argument type.
7151         Always dereference with the canonical va-list type.
7152         (maybe_emit_free_warning): Handle MEM_REF.
7153         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
7154         memmove to memcpy.
7155         * builtins.c (fold_builtin_memory_op): Use ref-all types
7156         for all memcpy foldings.
7157         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
7158         (build_outer_var_ref): Likewise.
7159         (scan_omp_1_op): Likewise.
7160         (lower_rec_input_clauses): Likewise.
7161         (lower_lastprivate_clauses): Likewise.
7162         (lower_reduction_clauses): Likewise.
7163         (lower_copyprivate_clauses): Likewise.
7164         (expand_omp_atomic_pipeline): Likewise.
7165         (expand_omp_atomic_mutex): Likewise.
7166         (create_task_copyfn): Likewise.
7167         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
7168         Remove old union trick.  Initialize constant offsets.
7169         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
7170         INDIRECT_REF.  Init base_alias_set properly.
7171         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
7172         (vn_reference_fold_indirect): Adjust for MEM_REFs.
7173         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
7174         for ARRAY_REFs.
7175         (may_insert): Remove.
7176         (visit_reference_op_load): Do not test may_insert.
7177         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
7178         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7179         a field to store the constant offset this op applies.
7180         (run_scc_vn): Adjust prototype.
7181         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
7182         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
7183         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
7184         bother about volatile qualifiers on pointers.
7185         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
7186         * tree-ssa-loop-ivopts.c
7187         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
7188         (strip_offset_1): Likewise.
7189         (find_interesting_uses_address): Replace INDIRECT_REF handling with
7190         MEM_REF handling.
7191         (get_computation_cost_at): Likewise.
7192         * ipa-pure-const.c (check_op): Handle MEM_REF.
7193         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
7194         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
7195         and constants.
7196         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
7197         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
7198         (eliminate_local_variables_1): Likewise.
7199         (create_call_for_reduction_1): Likewise.
7200         (create_loads_for_reductions): Likewise.
7201         (create_loads_and_stores_for_name): Likewise.
7202         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
7203         (ssa_accessed_in_tree): Handle MEM_REF.
7204         (ssa_accessed_in_assign_rhs): Likewise.
7205         (update_type_size): Likewise.
7206         (analyze_accesses_for_call_stmt): Likewise.
7207         (analyze_accesses_for_assign_stmt): Likewise.
7208         (transform_access_sites): Likewise.
7209         (transform_allocation_sites): Likewise.
7210         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
7211         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
7212         not handle INDIRECT_REF.
7213         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
7214         (cond_store_replacement): Likewise.
7215         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
7216         MEM_REF, no not handle INDIRECT_REFs.
7217         (insert_into_preds_of_block): Properly initialize avail.
7218         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
7219         for ARRAY_REFs.  Properly handle reference lookups that
7220         require a bit re-interpretation.
7221         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
7222         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
7223         (build_ref_for_offset_1): Remove.
7224         (build_ref_for_offset): Build MEM_REFs.
7225         (gate_intra_sra): Disable for now.
7226         (sra_ipa_modify_expr): Handle MEM_REF.
7227         (ipa_early_sra_gate): Disable for now.
7228         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
7229         MEM_REF handling.
7230         (disqualify_base_of_expr): Likewise.
7231         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
7232         MEM_REF handling.
7233         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
7234         Use mem_ref_offset.  Remove bogus folding.
7235         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
7236         (make_fancy_name_1): Add support for MEM_REF.
7237         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
7238         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
7239         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
7240         (compute_complex_ancestor_jump_func): Likewise.
7241         (ipa_analyze_virtual_call_uses): Likewise.
7242         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
7243         INDIRECT_REF folding with more generalized MEM_REF folding.
7244         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
7245         (forward_propagate_addr_into_variable_array_index): Also handle
7246         &ARRAY + I in addition to &ARRAY[0] + I.
7247         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
7248         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
7249         creates assignments with overlap.
7250         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
7251         (get_frame_field): Likewise.
7252         (get_nonlocal_debug_decl): Likewise.
7253         (convert_nonlocal_reference_op): Likewise.
7254         (struct nesting_info): Add mem_refs pointer-set.
7255         (create_nesting_tree): Allocate it.
7256         (convert_local_reference_op): Insert to be folded mem-refs.
7257         (fold_mem_refs): New function.
7258         (finalize_nesting_tree_1): Perform defered folding of mem-refs
7259         (free_nesting_tree): Free the pointer-set.
7260         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
7261         (vectorizable_load): Likewise.
7262         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
7263         (propagate_with_phi): Likewise.
7264         * tree-object-size.c (addr_object_size): Handle MEM_REFs
7265         instead of INDIRECT_REFs.
7266         (compute_object_offset): Handle MEM_REF.
7267         (plus_stmt_object_size): Handle MEM_REF.
7268         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
7269         for &MEM_REF.
7270         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
7271         (symbol_marked_for_renaming): Likewise.
7272         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
7273         (fold-const.o): Add $(TREE_FLOW_H).
7274         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
7275         (find_func_clobbers): Likewise.
7276         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
7277         (decompose_access): Likewise.
7278         (replace_field_acc): Likewise.
7279         (replace_field_access_stmt): Likewise.
7280         (insert_new_var_in_stmt): Likewise.
7281         (get_stmt_accesses): Likewise.
7282         (reorg_structs_drive): Disable.
7283         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
7284         (ix86_canonical_va_list_type): Likewise.
7285
7286 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7287
7288         PR other/44566
7289         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
7290         * target.def (struct gcc_target): Replace enum reg_class with
7291         reg_class_t in hook argument / return types.
7292         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
7293         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
7294         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
7295         * targhooks.h (default_branch_target_register_class): Likewise.
7296         (default_ira_cover_classes, default_secondary_reload): Likewise.
7297         (default_memory_move_cost, default_register_move_cost): Likewise.
7298         * targhooks.c (default_branch_target_register_class): Likewise.
7299         (default_ira_cover_classes, default_secondary_reload): Likewise.
7300         (default_memory_move_cost, default_register_move_cost): Likewise.
7301         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
7302         * bt-load.c (branch_target_load_optimize): Likewise.
7303         * ira.c (setup_cover_and_important_classes): Likewise.
7304         * ira-costs.c (copy_cost): Likewise.
7305         * reload1.c (emit_input_reload_insns): Likewise.
7306         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
7307         * config/frv/frv.c (frv_secondary_reload): Likewise.
7308         * config/s390/s390.c (s390_secondary_reload): Likewise.
7309         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
7310         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
7311         (ix86_register_move_cost): Likewise.
7312         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
7313         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
7314         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
7315         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
7316         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
7317         (rs6000_ira_cover_classes): Likewise.
7318         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
7319         * config/picochip/picochip-protos.h (picochip_secondary_reload):
7320         Likewise.
7321         * config/pa/pa.c (pa_secondary_reload): Likewise.
7322         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
7323         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
7324         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
7325         * doc/tm.texi: Regenerate.
7326
7327 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
7328
7329         PR bootstrrap/44726
7330         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
7331         use.
7332         (build_alias_set_optimal_p): Likewise.
7333         (build_base_obj_set_for_drs): Likewise.
7334
7335 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7336
7337         * target.def: Remove comment about licensing problems of function
7338         declarations.
7339
7340         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
7341         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
7342         * doc/tm.texi: Regenerate.
7343
7344         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
7345         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
7346
7347         * target.def (enum_va_list_p): Use DEFHOOK.
7348         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
7349         Rename ptype to ptree.
7350         * doc/tm.texi: Regenerate.
7351
7352         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
7353         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
7354         * doc/tm.texi: Regenerate.
7355
7356         * target.def (memory_move_cost): Use DEFHOOK.
7357         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
7358         Rename regclass AKA class to rclass.
7359         * doc/tm.texi: Regenerate.
7360
7361         * target.def (pragma_parse): Use DEFHOOK.
7362         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
7363         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
7364         * doc/tm.texi: Regenerate.
7365
7366         * target.def (pass_by_reference): Use DEFHOOK.
7367         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
7368         * doc/tm.texi: Regenerate.
7369
7370         * target.def (resolve_overloaded_builtin): Rename params to arglist.
7371         Use DEFHOOK.
7372         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
7373         * doc/tm.texi: Regenerate.
7374
7375         * target.def (return_pops_args): Use DEFHOOK.
7376         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
7377         Rename stack-size to size.
7378         * doc/tm.texi: Regenerate.
7379
7380         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
7381         last-sched_cycle to last_clock, cur_cycle to clock.
7382         * doc/tm.texi.in: Use @hook.
7383         * doc/tm.texi: Regenerate.
7384
7385         * target.def (print_operand, print_operand_address): Update comment.
7386         (print_operand_punct_valid_p): Likewise.
7387
7388 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7389
7390         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
7391         to rtl.h.
7392         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
7393         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
7394         * rtl-error.h: New.
7395         * regrename.c: Do not include toplev.h. Include rtl-error.h.
7396         * rtl-error.c: Likewise.
7397         * reload.c: Likewise.
7398         * recog.c:  Likewise.
7399         * sel-sched.c: Likewise.
7400         * function.c: Likewise.
7401         * reg-stack.c: Likewise.
7402         * cfgrtl.c: Likewise.
7403         * reload1.c: Likewise.
7404         * final.c: Include rtl-error.
7405         * Makefile.in: Adjust dependencies.
7406
7407 2010-06-30  Jan Hubicka  <jh@suse.cz>
7408
7409         PR middle-end/PR44706
7410         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
7411         to return the value.
7412
7413 2010-06-30  Michael Matz  <matz@suse.de>
7414
7415         PR bootstrap/44699
7416         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
7417         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
7418         a gimple reg, attach the original VDEF to the last store in the
7419         sequence.
7420
7421 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
7422
7423         PR other/44034
7424         * config/darwin.c (darwin_override_options): Use renamed
7425         targetm.asm_out.emit_unwind_label.
7426
7427 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7428
7429         PR tree-optimization/39799
7430         * tree-inline.c (remap_ssa_name): Initialize variable only if
7431         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7432
7433 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
7434
7435         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
7436
7437 2010-06-30  Richard Guenther  <rguenther@suse.de>
7438
7439         PR target/44722
7440         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
7441         against oscillation with reverse peephole2.
7442
7443 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
7444
7445         PR target/44721
7446         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7447         Fix last commit.
7448
7449 2010-06-30  Nick Clifton  <nickc@redhat.com>
7450
7451         * config/rx/rx-modes.def: New file.
7452         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
7453         (CC_REGNUM): Define.
7454         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
7455         register.
7456         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
7457         (SELECT_CC_MODE): Define.
7458         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
7459         (reg:CC CC_REG) instead of (cc0).
7460         (attr "cc"): Delete.
7461         (cbranchsi4): Do not split compare and branch here. Instead move
7462         it to...
7463         (cbranchsi4_<code>): ... here.  New patterns.
7464         (cmpsi): Call rx-compare_redundant to find out if it is necessary
7465         to emit the compare instruction.
7466         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
7467         cc_status flags.
7468         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
7469         FIRST_PSEUDO_REGNUM.
7470         (rx_expand_prologue, rx_expand_epilogue): Likewise.
7471         (rx_notice_update_cc): Delete.
7472         (rx_cc_modes_compatible): New function.
7473         (flags_needed_for_conditional): New function.
7474         (flags_from_mode): New function.
7475         (rx_compare_redundant): New function - scans backwards through
7476         insn list to find out if condition flags are already set correctly.
7477         (TARGET_CC_MODES_COMPATIBLE): Define.
7478         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
7479
7480         * config/rx/rx.h (BRANCH_COST): Define.
7481         (REGISTER_MOVE_COST): Define.
7482         * config/rx/predicates (rx_source_operand): Allow all constant types.
7483         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
7484         (tstsi4): New pattern.
7485         * config/rx/rx.c (rx_memory_move_cost): Define.
7486         (TARGET_MEMORY_MOVE_COST): Define.
7487
7488 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7489
7490         * tree.h (block_may_fallthru): Declare here.
7491         * tree-flow.h (block_may_fallthru): Do not declare here.
7492         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
7493         bitmap.h
7494         * Makefile.in (c-typeck.o): Update dependencies.
7495
7496 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
7497
7498         PR debug/44694
7499         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
7500         * cselib.c (cfa_base_preserved_regno): New static variable.
7501         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
7502         of REGNO (cfa_base_preserved_val->locs->loc).
7503         (cselib_preserve_cfa_base_value): Add regno argument, set
7504         cfa_base_preserved_regno to it.
7505         (cselib_invalidate_regno): Allow removal of registers other than
7506         cfa_base_preserved_regno from cfa_base_preserved_val.
7507         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
7508         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
7509         of MEM addresses, if not on LHS.
7510         (reverse_op): Don't add reverse ops for cfa_base_rtx.
7511         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
7512
7513 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
7514
7515         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
7516         static variables.
7517         (peep2_buf_position): New static function.
7518         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
7519         peephole2_optimize): Use it.
7520         (peep2_attempt, peep2_update_life): New static functions, broken out
7521         of peephole2_optimize.
7522         (peep2_fill_buffer): New static function.
7523         (peephole2_optimize): Change the main loop to try to fill the buffer
7524         with the maximum number of insns before matching them against
7525         peepholes.  Use a forward scan.  Remove special case for targets with
7526         conditional execution.
7527         * genrecog.c (change_state): Delete dead code.
7528         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
7529         Rewrite so as not to expect the second insn to have had a peephole
7530         applied yet.
7531
7532 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7533
7534         * genhooks.c (emit_findices): Cast field precision to int.
7535         (emit_documentation): Likewise.
7536
7537 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR tree-optimization/43801
7540         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
7541         if old_decl was DECL_ONE_ONLY.
7542
7543         PR debug/44668
7544         * dwarf2out.c (add_accessibility_attribute): New function.
7545         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
7546         instead of adding DW_AT_accessibility manually.
7547         (gen_enumeration_type_die, gen_struct_or_union_type_die,
7548         gen_typedef_die): Use it.
7549
7550 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7551
7552         * vmsdbgout.c (full_name): Just output the file name if not native.
7553
7554 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7555
7556         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
7557         (funcnam_table): New static table.
7558         (funcnum_table): New static table.
7559         (write_rtnbeg): Write value saved in funcnum_table.
7560         (write_rtnend): Write value saved in funcnum_table.
7561         (vmsdbgout_begin_function): Save current function info in
7562         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
7563         (vmsdbgout_finish): Iterate over funcnum_table.
7564
7565 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7566
7567         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
7568         (vmsdbgout_type_decl): Declare
7569         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
7570         (FUNC_EPILOGUE_LABEL): New macro
7571         (vmsdbgout_begin_epilogue): New function.
7572         (vmsdbgout_type_decl): New function.
7573
7574 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7575
7576         * vmsdbg.h: Update copyright.
7577
7578 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
7579
7580         * vmsdbg.h (DST_K_TBG): New DST constant.
7581         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
7582         (write_modbeg): Cast module_language to avoid warning.
7583         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
7584
7585 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7586
7587         PR other/44034
7588         * target.def, doc/tm.texi.in, genhooks.c: New files.
7589         * target.h: Instead of defining individual hook members,
7590         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
7591         include target.def.
7592         * target-def.h: Instead of defining individual hook initializers,
7593         include target-hooks-def.h.
7594         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
7595         targetm.live_on_entry -> targetm.extra_live_on_entry
7596         targetm.sched.md_finish ->targetm.sched.finish
7597         targetm.sched.md_init -> targetm.sched.init
7598         targetm.sched.md_init_global -> targetm.sched.init_global
7599         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
7600         targetm.asm_out.except_table_label ->
7601           targetm.asm_out.emit_except_table_label
7602         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
7603         targetm.target_help -> targetm.help
7604         targetm.vectorize.builtin_support_vector_misalignment ->
7605           targetm.vectorize.support_vector_misalignment
7606         targetm.file_start_app_off -> targetm.asm_file_start_app_off
7607         targetm.file_start_file_directive ->
7608          targetm.asm_file_start_file_directive
7609         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
7610         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
7611         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
7612         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
7613           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
7614         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
7615           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
7616         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
7617         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
7618         * Makefile.in (TARGET_H): Depend on target.def.
7619         (TARGET_DEF_H): Depend on target-hooks-def.h.
7620         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
7621         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
7622         * doc/tm.texi: Regenerate.
7623
7624         * Makefile.in (s-tm-texi): Remove stray tab / rule.
7625
7626         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
7627         (targetm.sched.init): Likewise.
7628
7629 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7630
7631         PR bootstrap/44713
7632         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
7633         (function_arg_advance_32): Const-ify TYPE parameter.
7634         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
7635         (ix86_function_arg_advance): Change type of NAMED to bool.
7636         (function_arg_32): Const-ify CUM and TYPE parameters.
7637         (function_arg_64): Likewise.  Change type of NAMED to bool.
7638         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
7639         to bool.
7640         (ix86_function_arg): Change type of NAMED to bool.
7641         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
7642         last argument as a bool.
7643
7644 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
7645
7646         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
7647         (OVERRIDE_OPTIONS): Add note of obsolescence.
7648         Replace references with references to TARGET_OPTION_OVERRIDE.
7649         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
7650          the macro).
7651         * targhooks.c (default_target_option_override): New function.
7652         * targhooks.h (default_target_option_override): Declare.
7653         * target.h (struct gcc_target): Add override member to
7654         target_option member.
7655         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
7656         targetm.target_option.override call.
7657         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
7658         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
7659
7660 2010-06-29  Jan Hubicka  <jh@suse.cz>
7661
7662         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
7663
7664 2010-06-29  Jan Hubicka  <jh@suse.cz>
7665
7666         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
7667         unreachable.
7668         (rebuild_frequencies): New function.
7669         * predict.h (rebuild_frequencies): Declare.
7670         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
7671         entry block and edge reaching new_entry.
7672         (tree_function_versioning): When doing partial cloning, rebuild
7673         frequencies when done.
7674         * passes.c (execute_function_todo): Use rebild_frequencies.
7675
7676 2010-06-29  Richard Guenther  <rguenther@suse.de>
7677
7678         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
7679         * tree-flow.h (enum noalias_state): Remove.
7680         (struct var_ann_d): Remove noalias_state member.
7681
7682 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7683
7684         PR target/43902
7685         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
7686         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
7687         (maddhidi4): Likewise.
7688
7689         Revert parts of the change for PR25130.
7690         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7691         MEM_ALIAS_SET.
7692
7693 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7694
7695         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
7696         targetm.calls.function_incoming_arg, and
7697         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
7698         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
7699         * target.h (struct gcc_target): Add function_arg_advance,
7700         function_arg, and function_incoming_arg fields.
7701         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
7702         (TARGET_FUNCTION_INCOMING_ARG): Define.
7703         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
7704         and TARGET_FUNCTION_INCOMING_ARG.
7705         * targhooks.h (default_function_arg_advance): Declare.
7706         (default_function_arg, default_function_incoming_arg): Declare.
7707         * targhooks.c (default_function_arg_advance): New function.
7708         (default_function_arg, default_function_incoming_arg): New function.
7709         * config/i386/i386.c (function_arg_advance): Rename to...
7710         (ix86_function_arg_advance): ...this.  Make static.
7711         (function_arg): Rename to...
7712         (ix86_function_arg): ...this.  Make static.
7713         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7714         (TARGET_FUNCTION_ARG): Define.
7715         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
7716         (FUNCTION_ARG): Delete.
7717         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
7718         (function_arg): Delete prototype.
7719
7720 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
7721
7722         * reginfo.c (init_reg_sets_1): Adjust comments.
7723         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
7724         * calls.c (prepare_call_address): Likewise.
7725         (emit_call_1): Use targetm.calls.return_pops_args.
7726         (expand_call): Likewise.
7727         * function.c (assign_parms): Likewise.
7728         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
7729         * target.h (struct gcc_target) [struct calls]: Add
7730         return_pops_args field.
7731         * targhooks.h (default_return_pops_args): Declare.
7732         * targhooks.c (default_return_pops_args): Define.
7733         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
7734         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
7735         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
7736         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
7737         documentation.
7738         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
7739         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
7740         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
7741         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
7742         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
7743         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
7744         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
7745         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
7746         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
7747         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
7748         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
7749         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
7750         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
7751         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
7752         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
7753         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
7754         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
7755         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
7756         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
7757         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
7758         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
7759         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
7760         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
7761         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
7762         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
7763         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
7764         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
7765         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
7766         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
7767         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
7768         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
7769         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
7770         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
7771         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
7772         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
7773         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
7774         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
7775         * config/i386/i386.c (ix86_return_pops_args): Make static.
7776         Constify arguments.
7777         (TARGET_RETURN_POPS_ARGS): Define.
7778         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
7779         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
7780         (TARGET_RETURN_POPS_ARGS): Define.
7781         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
7782         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
7783         (TARGET_RETURN_POPS_ARGS): Define.
7784
7785 2010-06-29  Richard Guenther  <rguenther@suse.de>
7786
7787         PR middle-end/44667
7788         * tree-inline.c (initialize_inlined_parameters): Make sure
7789         to remap the inlined parameter variable substitutions types.
7790
7791 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
7792
7793         PR rtl-optimization/44659
7794         * combine.c (make_compound_operation) <SUBREG>: Do not return the
7795         result of force_to_mode if it partially re-expanded the compound.
7796
7797 2010-06-28  Jan Hubicka  <jh@suse.cz>
7798
7799         PR middle-end/44671
7800         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
7801         RESULT_DECL.
7802
7803 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
7804
7805         * double-int.h (force_fit_type_double): Remove declaration.
7806         * double-int.c (force_fit_type_double): Move to tree.c.
7807         * tree.h (force_fit_type_double): Declare.
7808         * tree.h (force_fit_type_double): Moved from double-int.c. Use
7809         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
7810         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
7811         * convert.c (convert_to_pointer): Adjust call to
7812         force_fit_type_double.
7813         * tree-vrp.c (extract_range_from_assert,
7814         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
7815         * fold-const.c: Update comment.
7816         (int_const_binop, fold_convert_const_int_from_int,
7817         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
7818         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
7819         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
7820         round_up_loc): Adjust call to force_fit_type_double.
7821
7822 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7823
7824         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
7825
7826 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7827
7828         * tree-sra.c (convert_callers): New parameter, change fndecls of
7829         recursive calls.
7830         (modify_function): Pass the old decl to convert_callers.
7831
7832 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7833
7834         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
7835         ipa_check_create_node_params and ipa_initialize_node_params with
7836         checking asserts they are not necessary.
7837
7838 2010-06-28  Jan Hubicka  <jh@suse.cz>
7839
7840         PR tree-optimization/44687
7841         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
7842
7843 2010-06-28  Martin Jambor  <mjambor@suse.cz>
7844
7845         PR c++/44535
7846         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
7847         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
7848         instead of BINFO_BASE_BINFO.
7849
7850 2010-06-28  Michael Matz  <matz@suse.de>
7851
7852         PR middle-end/44592
7853         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
7854         proper VDEF chain for intermediate stores in the sequence.
7855
7856 2010-06-28  Jan Hubicka  <jh@suse.cz>
7857
7858         PR tree-optimization/44357
7859         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
7860         uninlinable functions.
7861
7862 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7863
7864         * config.gcc (powerpc*-*-*): Handle titan.
7865         * config/rs6000/rs6000.c (titan_cost): New costs.
7866         (rs6000_override_options): Add "titan" to processor_target_table.
7867         Add Titan to branch alignment logic.
7868         Correctly set rs6000_cost for titan.
7869         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
7870         * config/rs6000/titan.md: New file.
7871         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
7872
7873 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7874
7875         * tree-browser.c (TB_history_stack): Convert to a VEC.
7876         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
7877         (TB_history_prev): Likewise.
7878
7879 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
7880
7881         * vec.h (vec_heap_free): Add parentheses around free.
7882
7883 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
7884
7885         * system.h: Poison GCC_EXCEPT_H for front-end files.
7886
7887         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
7888         langhook.
7889         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
7890         Define to NULL by default.
7891         * except.h: Define GCC_EXCEPT_H.
7892         (doing_eh): Remove prototype.
7893         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
7894         (lang_protect_cleanup_actions): Remove.
7895         * except.c (lang_protect_cleanup_actions): Remove.
7896         (doing_eh): Remove.
7897         (gen_eh_region): Don't check doing_eh here.
7898         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
7899         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
7900         instead of lang_protect_cleanup_actions.
7901         * omp-low.c (maybe_catch_exception): Likewise.
7902         * Makefile.in: Update dependencies.
7903
7904 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
7905
7906         * cgraph.h (struct varpool_node): new used_from_object_file flag.
7907         (struct cgraph_local_info): new used_from_object_file flag.
7908         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
7909         (cgraph_clone_node): initialize used_from_object_file.
7910         (cgraph_create_virtual_clone): initialize used_from_object_file.
7911         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
7912         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
7913         when compiling with -fwhole-program.
7914         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
7915         internal resolver.
7916         * ipa.c (function_and_variable_visibility): Set externally_visible
7917         flag of varpool_node if used_from_object_file flag is set.
7918         (cgraph_externally_visible_p): check used_from_object_file flag.
7919         * doc/invoke.texi (-fwhole-program option): Change description of
7920         externally_visible attribute accordingly.
7921         * doc/extend.texi (externally_visible): Ditto.
7922
7923 2010-06-27  Jan Hubicka  <jh@suse.cz>
7924
7925         * params.def (max-inline-insns-auto): Default to 40.
7926         * doc/invoke.texi (max-inline-insns-auto): Document the change.
7927
7928 2010-06-27  Jan Hubicka  <jh@suse.cz>
7929
7930         PR middle-end/44671
7931         PR middle-end/44686
7932         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
7933         signature change.
7934         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
7935         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
7936
7937 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
7938
7939         * target.h (struct gcc_target): Add register_move_cost field.
7940         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
7941         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
7942         * targhooks.c (default_register_move_cost): New function.
7943         * targhooks.h (default_register_move_cost): Declare function.
7944         * defaults.h (REGISTER_MOVE_COST): Delete.
7945         * ira-int.h (ira_register_move_cost): Update comment.
7946         * ira.c (ira_register_move_cost): Update comment.
7947         * reload.h (register_move_cost): Declare.
7948         * reginfo.c (register_move_cost): New function.
7949         (move_cost): Update comment.
7950         (init_move_cost, memory_move_secondary_cost): Replace
7951         REGISTER_MOVE_COST with register_move_cost.
7952         * postreload.c (reload_cse_simplify_set): (Ditto.).
7953         * reload.c (find_valid_class, find_reloads): (Ditto.).
7954         * reload1.c (choose_reload_regs): (Ditto.).
7955         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
7956         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
7957         * doc/md.texi (can_create_pseudo_p): Update documentation.
7958
7959         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
7960         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
7961         * config/i386/i386.h (ix86_memory_move_cost): Make static.
7962         (TARGET_MEMORY_MOVE_COST): Define.
7963
7964         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
7965         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
7966         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
7967         (TARGET_MEMORY_MOVE_COST): Define.
7968
7969 2010-06-27  Richard Guenther  <rguenther@suse.de>
7970
7971         PR tree-optimization/44683
7972         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
7973         false edge from the inverted condition.
7974
7975 2010-06-27  Richard Guenther  <rguenther@suse.de>
7976
7977         PR middle-end/44684
7978         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
7979         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
7980         for register LHS.  Or non-store assignments.
7981
7982 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
7983
7984         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
7985         (sparc_emit_set_const64): Likewise.  Remove disabled code.
7986         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
7987         (sparc_emit_set_const64): Likewise.
7988
7989 2010-06-26  Catherine Moore  <clm@codesourcery.com>
7990
7991         * config/mips/mips.md (alu_type): New attribute.
7992         (type): Infer type from alu_type.
7993         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
7994         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
7995         *subsi3_extended, negsi2, negdi2, *low<mode>,
7996         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
7997         xor<mode>3, *nor<mode>3,
7998         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
7999         *zero_extendhi_truncqi):  Set alu_type instead of type.
8000
8001 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
8002
8003         * config/alpha/alpha.c (alpha_need_linkage): Adjust
8004         splay_tree_new_ggc call.
8005         (alpha_use_linkage): Likewise.
8006
8007 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8008
8009         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
8010         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
8011         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
8012         (static_specs): Remove switches_need_spaces.
8013         (process_command, do_self_spec): Hardcode handling "-o" instead of
8014         checking switches_need_spaces.
8015         * system.h (SWITCHES_NEED_SPACES): Poison.
8016
8017 2010-06-26  Richard Guenther  <rguenther@suse.de>
8018
8019         PR tree-optimization/44393
8020         * tree-loop-distribution.c (generate_loops_for_partition): Fix
8021         stmt removal and VOP renaming.
8022         (generate_memset_zero): Remove redundant stmt updating.
8023         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
8024         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
8025
8026 2010-06-26  Jan Hubicka  <jh@suse.cz>
8027
8028         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
8029         edges comming from header are equivalent.
8030         (visit_bb): Handle PHIs correctly.
8031         * tree-inline.c (copy_phis_for_bb): Be able to copy
8032         PHI from entry edge.
8033         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
8034
8035 2010-06-26  Richard Guenther  <rguenther@suse.de>
8036
8037         PR middle-end/44674
8038         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
8039         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
8040
8041 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
8042
8043         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
8044         add_infile, alloc_switch): New.
8045         (process_command): Remove variable lang_n_infiles.  Process
8046         options in a single pass.  Use new functions for allocating
8047         infiles and switches arrays.  Properly skip operands of
8048         -Xpreprocessor and -Xassembler.
8049
8050 2010-06-26  Jan Hubicka  <jh@suse.cz>
8051
8052         PR middle-end/44671
8053         * cgraphunit.c (cgraph_function_versioning): Remove wrong
8054         cgraph_make_decl_local call; fix typo copying RTL data.
8055
8056 2010-06-25  DJ Delorie  <dj@redhat.com>
8057
8058         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
8059         (m32c_output_aligned_common): Likewise.
8060         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
8061         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8062         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
8063         (m32c_register_pragmas): Register it.
8064         * config/m32c/m32c.c (m32c_get_pragma_address): New.
8065         (m32c_insert_attributes): Set #pragma address decls volatile.
8066         (pragma_entry_eq): New.
8067         (pragma_entry_hash): New.
8068         (m32c_note_pragma_address): New.
8069         (m32c_get_pragma_address): New.
8070         (m32c_output_aligned_common): New.
8071         * doc/extend.texi: Document the new pragma.
8072
8073         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
8074         also.
8075         * config/m32c/predicates.md (m32c_any_operand): Check the code
8076         instead of memory_operand so as to allow matching volatile MEMs.
8077         (m32c_nonimmediate_operand): Likewise.
8078         (mra_operand): Allow volatiles.
8079
8080 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
8081
8082         PR debug/44610
8083         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
8084         address if the offset is unknown.
8085
8086 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
8087
8088         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
8089         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
8090         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
8091         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
8092         to ia64_start_function. Invoke it.
8093         * config/ia64/ia64.c (ia64_start_function): Call new function
8094         dwarf2out_vms_debug_main_pointer.
8095
8096 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8097
8098         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
8099         statements computing the true predicate.
8100
8101 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8102
8103         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
8104         to boolean_true_node.
8105         (reset_bb_predicate): New.
8106         (predicate_bbs): Call reset_bb_predicate.
8107
8108 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8109
8110         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
8111         (tree_if_conversion): Returns true when something has been changed.
8112         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
8113         changed something.
8114
8115 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
8116
8117         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
8118         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
8119         * tree-if-conv.c: Include dbgcnt.h.
8120         (tree_if_conversion): Use if_conversion_tree to count the number of
8121         if-convertible loops.
8122
8123 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
8124
8125         * common.opt (fprefetch-loop-arrays): Re-define
8126         -fprefetch-loop-arrays as a tri-state option with the initial
8127         value of -1.
8128         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
8129         pass only when flag_prefetch_loop_arrays > 0.
8130         * toplev.c (process_options): Note that, with tri-states,
8131         flag_prefetch_loop_arrays>0 means prefetching is enabled.
8132         * config/i386/i386.c (override_options): Enable prefetching at -O3
8133         for a set of CPUs that sw prefetching is helpful.
8134         (software_prefetching_beneficial_p): New.  Return TRUE if software
8135         prefetching is beneficial for the given CPU.
8136
8137 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
8138
8139         PR rtl-optimization/44326
8140         * implicit-zee.c (find_removable_zero_extends): Replace
8141         INSN_P with NONDEBUG_INSN_P.
8142
8143 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8144
8145         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
8146         (struct ipa_node_params): Removed the modification_analysis_done flag.
8147         (ipa_is_param_modified): Removed.
8148         (ipa_analyze_node): Declare.
8149         (ipa_compute_jump_functions): Remove declaration.
8150         (ipa_count_arguments): Likewise.
8151         (ipa_detect_param_modifications): Likewise.
8152         (ipa_analyze_params_uses): Likewise.
8153         * ipa-prop.c (struct param_analysis_info): New type.
8154         (visit_store_addr_for_mod_analysis): Removed.
8155         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
8156         moved down in the file.
8157         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
8158         (ipa_count_arguments): Made static.
8159         (mark_modified): New function.
8160         (is_parm_modified_before_call): New function.
8161         (compute_pass_through_member_ptrs): New parameter parms_info, call
8162         is_parm_modified_before_call instead of ipa_is_param_modified.
8163         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
8164         it to compute_pass_through_member_ptrs.
8165         (ipa_compute_jump_functions): New parameter parms_info, pass it to
8166         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
8167         on the callee if it is analyzed.  Made static.
8168         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
8169         is_parm_modified_before_call instead of ipa_is_param_modified.
8170         (ipa_analyze_call_uses): New parameter parms_info, pass it to
8171         ipa_analyze_indirect_call_uses.
8172         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
8173         ipa_analyze_call_uses.
8174         (ipa_analyze_params_uses): New parameter parms_info, pass it to
8175         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
8176         (ipa_analyze_node): New function.
8177         (ipa_print_node_params): Do not dump the modified flag.
8178         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
8179         it.  Do not stream the modified parameter flag.
8180         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
8181         it.  Do not stream the modified parameter flag.
8182         * ipa-cp.c (ipcp_analyze_node): Removed.
8183         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
8184         with only a call to ipa_analyze_node.
8185         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
8186         node with only a call to ipa_analyze_node.
8187
8188 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8189
8190         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
8191
8192 2010-06-25  Jan Hubicka  <jh@suse.cz>
8193
8194         * tree-pass.h (pass_split_functions): Declare.
8195         * opts.c (decode_options): Enable function splitting at -O2
8196         * timevar.def (TV_IPA_FNSPLIT): New macro.
8197         * ipa-split.c: New file.
8198         * common.opt (-fpartial-inlining): New flag.
8199         * Makefile.in (ipa-split.o): New object file.
8200         * passes.c (init_optimization_passes): Add ipa-split.
8201         * params.def (partial-inlining-entry-probability): New parameters.
8202         * doc/invoke.texi (-fpartial-inlining): New.
8203
8204 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8205
8206         PR 44665
8207         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
8208         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
8209         (gimplify_expr): Likewise.
8210
8211 2010-06-25  Martin Jambor  <mjambor@suse.cz>
8212
8213         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
8214         statements instead of bailing out on them.
8215         (ipa_analyze_indirect_call_uses): Do not require that loads from the
8216         parameter are in the same BB as the condition.  Update comments.
8217
8218 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
8219
8220         PR middle-end/43866
8221         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
8222         true or always false, return NULL_TREE.
8223         (tree_unswitch_single_loop): Optimize conditions even when reaching
8224         max-unswitch-level parameter.  If num > 0, optimize first all conditions
8225         using entry checks, then do still reachable block discovery and consider
8226         only conditions in still reachable basic blocks in the loop.
8227
8228         PR tree-optimization/44539
8229         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
8230         the call doesn't have LHS, but has VDEF.
8231
8232 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8233
8234         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
8235         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
8236         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
8237         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
8238         * system.h (MODIFY_TARGET_NAME): Poison.
8239
8240 2010-06-25  Alan Modra  <amodra@gmail.com>
8241
8242         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
8243         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
8244         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8245         CMODEL_LARGE as default.
8246         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
8247         (offsettable_ok_by_alignment): Delete.
8248         (rs6000_emit_move): Remove mcmodel=medium optimization.
8249
8250 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8251
8252         With large parts from Jim Wilson:
8253         PR target/43902
8254         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
8255         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8256         * optabs.c (optab_for_tree_code): Likewise.
8257         (expand_widen_pattern_expr): Likewise.
8258         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
8259         out of execute_optimize_widening_mul.
8260         (convert_plusminus_to_widen): New function.
8261         (execute_optimize_widening_mul): Use the two new functions.
8262         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
8263         Remove code to generate widening multiply-accumulate.  Add support
8264         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
8265         * gimple-pretty-print.c (dump_ternary_rhs): New function.
8266         (dump_gimple_assign): Call it when appropriate.
8267         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
8268         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
8269         (expand_gimple_stmt_1): Likewise.
8270         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
8271         WIDEN_MULT_MINUS_EXPR.
8272         * tree-ssa-operands.c (get_expr_operands): Likewise.
8273         * tree-inline.c (estimate_operator_cost): Likewise.
8274         * gimple.c (extract_ops_from_tree_1): Renamed from
8275         extract_ops_from_tree.  Add new arg for a third operand; fill it.
8276         (gimple_build_assign_stat): Support operations with three operands.
8277         (gimple_build_assign_with_ops_stat): Likewise.
8278         (gimple_assign_set_rhs_from_tree): Likewise.
8279         (gimple_assign_set_rhs_with_ops_1): Renamed from
8280         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
8281         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
8282         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
8283         WIDEN_MULT_MINUS_EXPR.
8284         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
8285         (extract_ops_from_tree_1): Adjust declaration.
8286         (gimple_assign_set_rhs_with_ops_1): Likewise.
8287         (gimple_build_assign_with_ops): Pass NULL for last operand.
8288         (gimple_build_assign_with_ops3): New macro.
8289         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
8290         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
8291         functions.
8292         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
8293         (verify_gimple_assign): Call it.
8294         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
8295         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
8296         functions for dealing with three-operand statements.
8297         * tree.c (commutative_ternary_tree_code): New function.
8298         * tree.h (commutative_ternary_tree_code): Declare it.
8299         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
8300         ternary statements.
8301         (gimple_assign_nonzero_warnv_p): Likewise.
8302         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
8303         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
8304         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
8305         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
8306         (struct hashtable_expr): New member ternary in the union.
8307         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
8308         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
8309         (iterative_hash_hashable_expr): Likewise.
8310         (print_expr_hash_elt): Handle EXPR_TERNARY.
8311         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
8312         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
8313         statements.  Handle GIMPLE_TERNARY_RHS.
8314
8315 2010-06-25  Jan Hubicka  <jh@suse.cz>
8316
8317         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
8318
8319 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
8320
8321         PR c/44517
8322         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
8323         parameters are not good.
8324         (c_parser_parameter_declaration): Error unknown type name if the type
8325         name can't start declaration specifiers.
8326
8327 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
8328
8329         * gcc.c (translate_options): Don't mention +e in comment.
8330         (process_command): Don't handle +e specially.
8331
8332 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
8333
8334         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
8335
8336         * ira-build.c (merge_hard_reg_conflicts): New function.
8337         (create_cap_allocno, copy_info_to_removed_store_destinations,
8338         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
8339         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
8340         (remove_unnecessary_allocnos, remove_low_level_allocnos)
8341         copy_nifo_to_removed_store_destination): Use them.
8342         * ira-lives.c (make_hard_regno_born): New function, split out of
8343         make_regno_born.
8344         (make_allocno_born): Likewise.
8345         (make_hard_regno_dead): New function, split out of make_regno_dead.
8346         (make_allocno_dead): Likewise.
8347         (inc_register_pressure): New function, split out of set_allocno_live.
8348         (dec_register_pressure): New function, split out of clear_allocno_live.
8349         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
8350         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
8351         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
8352         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
8353         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
8354         mark_pseudo_regno_live.
8355         (process_bb_node_lives): Use mark_pseudo_regno_live,
8356         make_hard_regno_born and make_allocno_dead.
8357         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
8358         set_allocno_live, clear_allocno_live): Delete functions.
8359
8360         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
8361         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
8362         functions.
8363         (ira_flattening): Use ira_parent_allocno.
8364         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
8365         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
8366
8367         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
8368         statement.
8369
8370         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
8371         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
8372         minmax_set_iter_cond, minmax_set_iter_next,
8373         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
8374         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
8375         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
8376         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
8377         uses changed.
8378
8379         * ira-int.h (struct live_range, live_range_t): Renamed from struct
8380         ira_allocno_live_range and allocno_live_range_t; all uses changed.
8381         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
8382         All uses changed.
8383
8384 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
8385
8386         * thumb2.md (thumb2_tlobits_cbranch): Delete.
8387         (peephole2 to convert zero_extract/compare of single bit to
8388          lshift/compare): New.
8389
8390 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
8391
8392         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
8393         recursive call and call to 'int_const_binop'.
8394         (build_range_check, fold_cond_expr_with_comparison, unextend,
8395         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
8396         multiple_of_p): Adjust call to const_binop.
8397
8398 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
8399
8400         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
8401         determine size of XFmode operand.
8402         (XFmode extended DFmode push splitter): Ditto.
8403         (XFmode extended SFmode push splitter): Ditto.
8404
8405 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8406
8407         PR target/44588
8408         * config/i386/i386.md (extract_code): New.
8409         (<u>divmodqi4): Likewise.
8410         (divmodhiqi3): Likewise.
8411         (udivmodhiqi3): Likewise.
8412         (<u>divqi3): Remvoved.
8413
8414 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
8415
8416         PR middle-end/44492
8417         * recog.h (struct recog_data): Add is_asm field.
8418         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
8419         present in constraints of inline-asm operand and memory operand
8420         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
8421         (extract_insn): Initialize recog_data.is_asm.
8422         * doc/md.texi (Constraints): Document operand side-effect rules.
8423
8424 2010-06-24  Andi Kleen  <ak@linux.intel.com>
8425
8426         * c-parser.c (c_parser_conditional_expression): Call
8427         warn_for_omitted_condop.
8428         * doc/invoke.texi: Document omitted condop warning.
8429
8430 2010-06-24  Nick Clifton<nickc@redhat.com>
8431
8432         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
8433         insn in the sequence is a jump insn before setting its label.
8434
8435 2010-06-24  Alan Modra  <amodra@gmail.com>
8436
8437         * collect2.c (main): Match exactly --version and --help.
8438
8439 2010-06-24  DJ Delorie  <dj@redhat.com>
8440
8441         * config/m32c/m32c-pragma.c: Don't include rtl.h.
8442
8443 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
8444
8445         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
8446         using X87MODEF mode iterator.
8447         (pushsf splitter): Macroize splitter using P mode iterator.
8448         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
8449         mode iterator.
8450
8451         (*movxf_internal): Rename from *movxf_integer.
8452         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
8453         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
8454         (*movdf_internal): Rename from *movdf_integer.
8455         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
8456         (*movsf_internal): Rename from *movdf_1.
8457
8458 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
8459
8460         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
8461         (const_gimple_seq_node): Removed typedefs.
8462
8463         * gimple.h (gimple_seq_node_d, gimple_seq_node)
8464         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
8465
8466 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8467
8468         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
8469         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
8470         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
8471         and CODE_FOR_vec_extract_lo_v4df.
8472
8473         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
8474         Changed to define_insn_and_split.
8475         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
8476         (vec_extract_lo_v16hi): Likewise.
8477         (vec_extract_lo_v32qi): Likewise.
8478         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
8479         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
8480
8481 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
8482
8483         PR target/44640
8484         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
8485         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
8486         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
8487         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
8488         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
8489
8490         PR target/44640
8491         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
8492
8493         PR other/44644
8494         * df-core.c (struct df): Rename to df_d.
8495         * df.h (struct df): Likewise.
8496         * dse.h (struct df): Remove forward declaration.
8497         * recog.h (struct insn_data): Rename to:
8498         (struct_insn_data_d).  Adjusted all users.
8499
8500 2010-06-23  Arnaud Charlet  <charlet@adacore.com
8501
8502         PR ada/22220
8503         * doc/install.texi: Update requirements to build GNAT.
8504
8505 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
8506
8507         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
8508         enum type.
8509         (m68k_sched_attr_opx_type): Remove unreachable return.
8510         (m68k_sched_attr_opy_type): Likewise.
8511         (m68k_sched_attr_size): Likewise.
8512         (sched_get_opxy_mem_type): Likewise.
8513         (m68k_sched_attr_op_mem): Likewise.
8514
8515 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8516
8517         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
8518         new statement and adjust VDEF only if necessary.  Remove superfluous
8519         call to maybe_clean_or_replace_eh_stmt.
8520         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
8521         copy the flags.
8522         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
8523         * tree-inline.c (copy_bb): ...and not there.
8524
8525 2010-06-22  Cary Coutant  <ccoutant@google.com>
8526
8527         * dwarf2out.c (is_nested_in_subprogram): New function.
8528         (should_move_die_to_comdat): Use it.
8529         (copy_ancestor_tree): Don't mark DIEs here.
8530         (copy_decls_walk): Start walk from root of newly-added tree;
8531         mark DIEs here instead.
8532
8533 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8534
8535         * config/i386/i386.md (unit): Also check sseishft1.
8536
8537 2010-06-22  Jan Hubicka  <jh@suse.cz>
8538
8539         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
8540         enabled.
8541
8542 2010-06-22  Jan Hubicka  <jh@suse.cz>
8543
8544         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
8545         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
8546         Return true if something changed.
8547         * df.h (df_confluence_function_n): Return bool.
8548         * df-core.c (df_worklist_propagate_forward,
8549         df_worklist_propagate_backward): Track changes and ages.
8550         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
8551         track ages.
8552         * dse.c (dse_confluence_n): Return always true.
8553
8554 2010-06-22  Jan Hubicka  <jh@suse.cz>
8555
8556         * bitmap.c (bitmap_clear_bit): Micro optimize.
8557
8558 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
8559
8560         * config/i386/i386.md (SWI1248x): New mode iterator.
8561         (SWI48x): Ditto.
8562         (SWI12): Ditto.
8563         (SWI24): Ditto.
8564
8565         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
8566         SWI1248x mode iterator.
8567         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
8568         using SWI124 mode iterator.
8569         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
8570         mode iterator.
8571         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
8572         *pushdi2_prologue_rex64 using P mode iterator.
8573         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
8574         using SWI48 mode iterator.
8575         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
8576         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
8577         using SWI1248x mode iterator.
8578         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
8579         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
8580         SWI48 mode iterator.
8581         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
8582         iterator.
8583         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
8584         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
8585         SWI12 mode iterator.
8586         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
8587         SWI12 mode iterator.
8588         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
8589         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
8590         SWI24 mode iterator.
8591         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
8592         SWI48 mode iterator.
8593         (mov<mode>_insn_1): New expander.
8594         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
8595         using SWI48x mode iterator.
8596
8597         (*movoi_internal_avx): Rename from *movoi_internal.
8598         (*movti_internal_rex64): Rename from *movti_rex64.
8599         (*movti_internal_sse): Rename from *movti_sse.
8600         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
8601         (*movdi_internal): Rename from *movdi_2.
8602         (*movsi_internal): Rename from *movsi_1.
8603         (*movhi_internal): Rename from *movhi_1.
8604         (*movqi_internal): Rename from *movqi_1.
8605
8606         (insv): Update the call to gen_movsi_insv_1 for rename.
8607         * config/i386/i386.c (promote_duplicated_reg): Ditto.
8608
8609 2010-06-22  Jan Hubicka  <jh@suse.cz>
8610
8611         * passes.c (execute_function_todo): Move call of statistics_fini_pass
8612         to ...
8613         (execute_todo) ... this one.
8614
8615 2010-06-22  Alan Modra  <amodra@gmail.com>
8616
8617         PR target/44364
8618         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
8619         * caller-save.c (insert_restore, insert_save): Use non-validate
8620         form of adjust_address.
8621
8622 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8623
8624         PR target/39690
8625         * config/pa/pa.c (override_options): Disable
8626         -freorder-blocks-and-partition.
8627
8628 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8629
8630         PR target/44615
8631         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
8632
8633         * config/i386/i386.md (type): Add sseishft1
8634
8635         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
8636         (ppro_insn_load): Likewise.
8637         (ppro_insn_store): Likewise.
8638         (ppro_insn_both): Likewise.
8639
8640         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
8641         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
8642         for type.
8643         (*vec_extractv2di_1_avx): Likewise.
8644         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
8645         type.  Remove atom_unit.
8646         (*vec_extractv2di_1_sse2): Likewise.
8647
8648 2010-06-21  DJ Delorie  <dj@redhat.com>
8649
8650         * diagnostic.h (diagnostic_classification_change_t): New.
8651         (diagnostic_context): Add history and push/pop list.
8652         (diagnostic_push_diagnostics): Declare.
8653         (diagnostic_pop_diagnostics): Declare.
8654         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
8655         from pragmas in a history chain instead of the global table.
8656         (diagnostic_push_diagnostics): New.
8657         (diagnostic_pop_diagnostics): New.
8658         (diagnostic_report_diagnostic): Scan history chain to find state
8659         of diagnostics as of the diagnostic location.
8660         * opts.c (set_option): Pass UNKNOWN_LOCATION to
8661         diagnostic_classify_diagnostic.
8662         (enable_warning_as_error): Likewise.
8663         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
8664         use in the history chain.
8665         * doc/extend.texi: Document pragma GCC diagnostic changes.
8666
8667 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
8668
8669         * dwarf2out.c (add_linkage_name): New function.  Don't add
8670         anything to DW_TAG_member DIEs.
8671         (add_name_and_src_coords_attributes): Use it.
8672         (gen_variable_die): Call it for C++ static data members if
8673         specification is DW_TAG_member.
8674
8675         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
8676         C++ char16_t and char32_t.
8677
8678         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
8679         * genattrtab.c: Include vecprim.h.
8680         (cached_attrs, cached_attr_count, attrs_seen_once,
8681         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
8682         attrs_cached_after): New variables.
8683         (find_attrs_to_cache): New function.
8684         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
8685         (write_test_expr): Add attrs_cached argument, return it too,
8686         attempt to cache non-const attributes used more than once in
8687         a single case handling.
8688         (write_attr_get): Use find_attrs_to_cache, for caching candidates
8689         emit cached_* variables.  Adjust write_attr_set callers.
8690         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
8691         to find attributes that should be cached in this block.  Adjust
8692         write_test_expr callers.
8693         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
8694         callers.
8695         (make_automaton_attrs): Adjust write_test_expr caller.
8696
8697         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
8698         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
8699         (make_automaton_attrs): If find_tune_attr returns non-NULL,
8700         write separate internal_dfa_insn_code_* and insn_default_latency_*
8701         functions for each attribute's value and emit init_sched_attrs
8702         function and function pointers.
8703         * genattr.c (const_attrs, reservations): New variables.
8704         (gen_attr): Add const attributes to const_attrs vector.
8705         (check_tune_attr, find_tune_attr): New functions.
8706         (main): Add reservations to reservations vector.  If find_tune_attr
8707         returns true, add prototype for init_sched_attrs and make
8708         internal_dfa_insn_code and insn_default_latency function pointers,
8709         otherwise define init_sched_attrs as dummy macro.
8710         * cfgexpand.c: Include insn-attr.h.
8711         (gimple_expand_cfg): Call init_sched_attrs.
8712
8713         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
8714
8715         PR target/44575
8716         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
8717         va_arg from a set of register save slots into a temporary,
8718         if the container is bigger than type size, do the copying
8719         using smaller mode or using memcpy.
8720
8721         PR bootstrap/44426
8722         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
8723         prototype.
8724         (sel_print_to_dot): Remove macro.
8725         (sel_print): Likewise.  New prototype.
8726         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
8727         (sel_print): New function.
8728
8729 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8730
8731         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
8732         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
8733
8734 2010-06-21  Nick Clifton  <nickc@redhat.com>
8735
8736         * config/rx/rx.h (PTRDIFF_TYPE): Define.
8737         (SMALL_REGISTER_CLASS): Define (to zero).
8738         (PRINT_OPERAND): Delete.
8739         (PRINT_OPERAND_ADDRESS): Delete.
8740         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
8741         (rx_print_operand_address): Delete prototype.
8742         * config/rx/rx.c (rx_print_operand): Make static.
8743         Allow %H and %L to handle CONST_DOUBLEs.
8744         (rx_print_operand_address): Make static.
8745         (rx_gen_move_template): Rename local variable 'template' to
8746         out_template.
8747         (rx_function_arg): Do not pass unknown sized objects in registers.
8748         (TARGET_PRINT_OPERAND): Define.
8749         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8750
8751 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8752
8753         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
8754
8755 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
8756
8757         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
8758         stack-alignment for simple leaf-functions.
8759
8760 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8761
8762         * doc/install.texi: Document bootstrap-lto.
8763
8764 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
8765
8766         PR debug/44248
8767         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
8768         (input_function): Drop them here, if VTA is disabled.
8769
8770 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
8771
8772         PR target/44546
8773         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
8774         New predicate.
8775         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
8776         ix86_swapped_fp_comparsion_operator instead of
8777         ix86_fp_comparison_operator.
8778
8779         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
8780         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
8781         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
8782         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
8783         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
8784         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
8785
8786 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
8787
8788         PR other/32998
8789         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
8790         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
8791         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
8792         (decode_cmdline_option): Update for this return value.  Set
8793         orig_option_with_args_text field.  Set arg field for unknown
8794         options.  Make static.
8795         (decode_cmdline_options_to_array): New.
8796         (prune_options): Update handling of find_opt return value.
8797         * opts.c (read_cmdline_option): Take decoded option.  Return void.
8798         (read_cmdline_options): Take decoded options.
8799         (decode_options): Add parameters for decoded options.  Use
8800         decode_cmdline_options_to_array.  Use decoded options for -O
8801         scan.  Use integral_argument for -O parameters.  Update call to
8802         read_cmdline_options.
8803         (enable_warning_as_error): Update handling of find_opt return value.
8804         * opts.h: Update comment on unknown options.
8805         (struct cl_decoded_option): Update comments on opt_index and arg.
8806         Add orig_option_with_args_text.
8807         (decode_cmdline_option): Remove.
8808         (decode_cmdline_options_to_array): Declare.
8809         (decode_options): Update prototype.
8810         * toplev.c (save_argv): Remove.
8811         (save_decoded_options, save_decoded_options_count): New.
8812         (read_integral_parameter): Remove.
8813         (print_switch_values): Use decoded options.
8814         (toplev_main): Don't set save_argv.  Update call to decode_options.
8815         * toplev.h (read_integral_parameter): Remove.
8816         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
8817
8818 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
8819
8820         PR target/44072
8821         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
8822         immediate.
8823         * constraints.md (Pw, Px): New constraints.
8824         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
8825
8826 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
8827
8828         * config/i386/sse.md (fma4modesuffixf4): Removed.
8829         (ssemodesuffixf2s): Likewise.
8830         (ssemodesuffixf4): Likewise.
8831         (ssemodesuffixf2c): Likewise.
8832         (ssescalarmodesuffix2s): Likewise.
8833         (avxmodesuffixf2c): Likewise.
8834         (ssemodesuffix): New.
8835         (ssescalarmodesuffix): Likewise.
8836         Update patterns with ssemodesuffix and ssescalarmodesuffix.
8837
8838 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
8839
8840         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
8841
8842 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
8843
8844         * stor-layout.c (debug_rli): Remove unused local variables.
8845
8846 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8847
8848         PR rtl-optimization/40900
8849         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
8850         original expression for later reuse.
8851         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
8852         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
8853
8854 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
8855
8856         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
8857         double_int_fits_in_uhwi_p): Implement as static inline.
8858         (double_int_xor): New inline function.
8859         (double_int_lrotate, double_int_rrotate, double_int_max,
8860         double_int_umax, double_int_smax, double_int_min, double_int_umin,
8861         double_int_smin): Declare.
8862         (lrotate_double, rrotate_double): Remove declaration.
8863         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
8864         double_int_to_uhwi, lrotate_double, rrotate_double): Remove 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): New function.
8868         * fold-const.c (int_const_binop): Clean up, use double_int_*
8869         functions.
8870         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
8871         double_int_* and immed_double_int_const functions.
8872
8873 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8874
8875         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
8876         * function.c (types_used_by_cur_var_decl): Likewise.
8877         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
8878
8879 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
8880
8881         * tree.h (record_layout_info): Change type of pending_statics field
8882         to a VEC.
8883         * stor-layout.c (start_record_layout): Store NULL into
8884         pending_statics.
8885         (debug_rli): Call debug_vec_tree instead of debug_tree.
8886         (place_field): Likewise.
8887         (finish_record_layout): Likewise.
8888
8889 2010-06-18  Alan Modra  <amodra@gmail.com>
8890
8891         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
8892
8893 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8894
8895         PR target/43740
8896         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
8897         for SET source operand from SET destination operand.
8898
8899 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
8900
8901         PR rtl-optimization/39871
8902         * reload1.c (init_eliminable_invariants): For flag_pic, disable
8903         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
8904         (function_invariant_p): Rule out a plus of frame or arg pointer with
8905         a SYMBOL_REF.
8906         * ira.c (find_reg_equiv_invariant_const): Likewise.
8907
8908 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
8909
8910         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
8911         print_operand_address and puts to output the operand for CONST.
8912
8913 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
8914
8915         PR debug/44572
8916         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
8917         hook.
8918
8919 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8920
8921         * v850-protos.h (print_operand): Delete.
8922         (print_operand_address): Delete.
8923         * v850.h (PRINT_OPERAND): Delete.
8924         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8925         (PRINT_OPERAND_ADDRESS): Delete.
8926         * v850.c (print_operand_address): Rename to...
8927         (v850_print_operand_address): ...this.  Make static. Call
8928         v850_print_operand.
8929         (print_operand): Rename to...
8930         (v850_print_operand): ...this.  Make static.  Call
8931         v850_print_operand_address.
8932         (v850_print_operand_punct_valid_p): New function.
8933         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8934         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8935
8936 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8937
8938         * config/sh/sh-protos.h (print_operand): Delete.
8939         (print_operand_address): Delete.
8940         * config/sh/sh.h (PRINT_OPERAND): Delete.
8941         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8942         (PRINT_OPERAND_ADDRESS): Delete.
8943         * config/sh/sh.c (sh_print_operand_address): Make static.
8944         (sh_print_operand): Make static.  Call sh_print_operand_address
8945         and sh_print_operand.
8946         (sh_print_operand_punct_valid_p): New function.
8947         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8948         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8949
8950 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8951
8952         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
8953         (mcore_print_operand_address): Delete.
8954         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
8955         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8956         (PRINT_OPERAND_ADDRESS): Delete.
8957         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
8958         (mcore_print_operand): Make static.
8959         (mcore_print_operand_punct_valid_p): New function.
8960         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
8961         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
8962
8963 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8964
8965         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
8966         (print_operand_address): Delete.
8967         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
8968         (PRINT_OPERAND_ADDRESS): Delete.
8969         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
8970         static.
8971         (m68hc11_print_operand): Make static.
8972         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8973
8974 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8975
8976         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
8977         (m32r_print_operand_address): Delete.
8978         * config/m32r/m32r.h (m32r_punct_chars): Delete.
8979         (PRINT_OPERAND): Delete.
8980         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8981         (PRINT_OPERAND_ADDRESS): Delete.
8982         * config/m32r/m32r.c (m32r_punct_chars): Make static.
8983         (m32r_print_operand_address): Make static.
8984         (m32r_print_operand): Make static.
8985         (m32r_print_operand_punct_valid_p): New function.
8986         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
8987         (TARGET_PRINT_OPERAND_ADDRESS): Define.
8988
8989 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
8990
8991         * config/iq2000/iq2000-protos.h (print_operand): Delete.
8992         (print_operand_address): Delete.
8993         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
8994         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
8995         (PRINT_OPERAND_ADDRESS): Delete.
8996         (iq2000_print_operand_punct): Delete.
8997         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
8998         (iq2000_print_operand_address): Make static.
8999         (iq2000_print_operand): Make static.
9000         (iq2000_print_operand_punct_valid_p): New function.
9001         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9002         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9003
9004 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9005
9006         * config/frv/frv-protos.h (frv_print_operand): Delete.
9007         (frv_print_operand_address): Delete.
9008         * config/frv/frv.h (PRINT_OPERAND): Delete.
9009         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9010         (PRINT_OPERAND_ADDRESS): Delete.
9011         * config/frv/frv.c (frv_print_operand_address): Make static.
9012         (frv_print_operand): Make static.
9013         (frv_print_operand_punct_valid_p): New function.
9014         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9015         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9016
9017 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
9018
9019         * tree.h (vec_member): Declare.
9020         * tree.c (vec_member): Define.
9021
9022 2010-06-17  Richard Guenther  <rguenther@suse.de>
9023
9024         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
9025         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
9026
9027 2010-06-17  Richard Guenther  <rguenther@suse.de>
9028
9029         * tree-inline.c (declare_return_variable): Remove bogus code.
9030
9031 2010-06-17  Richard Guenther  <rguenther@suse.de>
9032
9033         * gimplify.c (gimplify_bind_expr): Always promote complex
9034         and vector variables to registers if possible.
9035
9036 2010-06-17  Richard Guenther  <rguenther@suse.de>
9037
9038         * expr.c (get_inner_reference): Use double_int for bit_offset
9039         calculation.
9040
9041 2010-06-16  DJ Delorie  <dj@redhat.com>
9042
9043         * common.opt (-fstrict-volatile-bitfields): new.
9044         * doc/invoke.texi: Document it.
9045         * fold-const.c (optimize_bit_field_compare): For volatile
9046         bitfields, use the field's type to determine the mode, not the
9047         field's size.
9048         * expr.c (expand_assignment): Likewise.
9049         (get_inner_reference): Likewise.
9050         (expand_expr_real_1): Likewise.
9051         * expmed.c (store_fixed_bit_field): Likewise.
9052         (extract_bit_field_1): Likewise.
9053         (extract_fixed_bit_field): Likewise.
9054
9055 2010-06-16  Richard Guenther  <rguenther@suse.de>
9056
9057         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
9058
9059 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
9060
9061         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
9062         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
9063         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
9064         * debug.c: Likewise.
9065         * sdbout.c: Likewise.
9066         * vmsdbgout.c: Likewise.
9067         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
9068         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
9069         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
9070         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
9071         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
9072         * dwarf2out.c (dw_fde_struct): New fields
9073         dw_fde_vms_{end,begin}_prologue.
9074         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
9075         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
9076         (dwarf2out_vms_end_prologue): New function.
9077         (dwarf2out_vms_begin_epilogue): New function.
9078         (dw_val_struct): New value dw_val_class_vms_delta.
9079         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
9080         begin_epilogue for VMS.
9081         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
9082         new static functions.
9083         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
9084         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
9085         static functions.
9086         (print_die): New case dw_val_class_vms_delta.
9087         (attr_checksum): Likewise.
9088         (same_dw_val_p: Likewise.
9089         (size_of_die): Likewise.
9090         (value_format): Likewise.
9091         (output_die): Likewise.
9092         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
9093         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
9094         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
9095         dwarf2out_cfi_begin_epilogue
9096         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
9097
9098 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9099
9100         * config/cris/cris-protos.h (cris_print_operand): Delete.
9101         (cris_print_operand_address): Delete.
9102         * config/cris/cris.h (PRINT_OPERAND): Delete.
9103         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9104         (PRINT_OPERAND_ADDRESS): Delete.
9105         * config/cris/cris.c (cris_print_operand_address): Make static.
9106         (cris_print_operand): Make static.
9107         (cris_print_operand_punct_valid_p): New function.
9108         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9109         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9110
9111 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
9112
9113         * config/arm/arm-protos.h (arm_print_operand): Delete.
9114         (arm_print_operand_address): Delete.
9115         * config/arm/arm.h (PRINT_OPERAND): Delete.
9116         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9117         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
9118         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
9119         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
9120         (arm_print_operand): Make static.
9121         (arm_print_operand_punct_valid_p): New function.
9122         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
9123         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9124
9125 2010-06-16  Nick Clifton  <nickc@redhat.com>
9126
9127         * config/rx/constraints.md (NEGint4): New constraint.
9128         * config/rx/rx.md (attr cc): Add set_zsc.
9129         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
9130         initialised.
9131         (cmpsf): Likewise.
9132         (call_internal): Clobber the cc0 register.
9133         (call_value_internal): Likewise.
9134         (cstoresi4): Likewise.
9135         (movsieq): Likewise.
9136         (movsine): Likewise.
9137         (addsi3): Add alternative to handle small negative constants.
9138         (sunsi3): Likewise.
9139         (addsi3): Do not set the O bit in the cc0 register.
9140         (adddi3): Likewise.
9141         (subsi3): Likewise.
9142         (subdi3): Likewise.
9143         (andsi3): Reorder alternatives to prefer shorter forms.
9144         (mulsi3): Likewise.
9145         (iorsi3): Likewise.
9146         (negsi2): Note that the cc0 flags are set.
9147         (rotlsi3): Note that only the Z and S bits are set in cc0.
9148         (lshrsi3): Likewise.
9149         (ashlsi3): Likewise.
9150         (subsf3): Use %Q for the MEM operand.
9151         (fix_truncsfsi2): Likewise.
9152         (floatsisf2): Likewise.
9153         (bitset): Remove early clobber from destination.
9154         (bitset_in_memory): Likewise.
9155         (lrintsf2): Clobber the cc0 register.
9156         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
9157         (rx_print_operand): Handle %N.
9158
9159 2010-06-16  Jan Hubicka  <jh@suse.cz>
9160
9161         * df-core.c (df_compact_blocks): Free problem_temps vector.
9162
9163 2010-06-16  Martin Jambor  <mjambor@suse.cz>
9164
9165         PR tree-optimization/43905
9166         * tree-sra.c: Include tree-inline.h.
9167         (create_abstract_origin): Removed.
9168         (modify_function): Version the call graph node instead of creating
9169         abstract origins and dealing with same_body aliases.
9170         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
9171         function is versionable.
9172         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
9173
9174 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
9175
9176         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
9177         (CHOOSE_DYNAMIC_LINKER): Update.
9178
9179 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
9180
9181         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
9182         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
9183         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
9184         *prefetch_3dnow_rex.
9185
9186 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
9187
9188         * target.h (struct asm_out):Add declare_constant_name field.
9189         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9190         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
9191         * output.h (default_asm_declare_constant_name): Declare.
9192         (assemble_label): Update prototype.
9193         * varasm.c (assemble_constant_contents): Use
9194         targetm.asm_out.declare_constant_name target hook.
9195         (assemble_label): Add 'file' argument.
9196         (default_asm_declare_constant_name): New function.
9197         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
9198         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
9199         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
9200
9201         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
9202         * config/darwin.c (darwin_asm_declare_constant_name): New function.
9203         (machopic_output_indirection): Update assemble_label argument list.
9204         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
9205         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
9206
9207 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
9208
9209         PR middle-end/44391
9210         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9211         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
9212
9213 2010-06-15  Richard Guenther  <rguenther@suse.de>
9214
9215         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
9216
9217 2010-06-15  Paul Brook  <paul@codesourcery.com>
9218
9219         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
9220         hard-float ABI.
9221
9222 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
9223
9224         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
9225         don't get a vector type for output.
9226
9227 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
9228
9229         PR fortran/44536
9230         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
9231         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
9232         (LANG_HOOKS_DECLS): Add it.
9233         * gimplify.c (omp_notice_variable): Call
9234         lang_hooks.decls.omp_report_decl.
9235
9236 2010-06-15  Martin Jambor  <mjambor@suse.cz>
9237
9238         PR lto/44464
9239         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
9240         on the newly dead SSA name.
9241
9242 2010-06-15  Alan Modra  <amodra@gmail.com>
9243
9244         * doc/invoke.texi: Add mcmodel to powerpc options.
9245         * configure.ac: Add HAVE_LD_LARGE_TOC test.
9246         * configure: Regenerate.
9247         * config.in: Regenerate.
9248         * config/rs6000/linux64.opt (mcmodel): New.
9249         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
9250         (TARGET_CMODEL, SET_CMODEL): Define.
9251         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
9252         select CMODEL_MEDIUM default.
9253         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
9254         (TARGET_CMODEL): Define default.
9255         * config/rs6000/rs6000.c (cmodel): New variable.
9256         (rs6000_explicit_options): Add cmodel field.
9257         (rs6000_handle_option): Handle -mcmodel.
9258         (create_TOC_reference): Add largetoc_reg param.  Generate high,
9259         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
9260         (rs6000_delegitimize_address): Recognise new toc reference rtl
9261         and minimal-toc rtl.
9262         (rs6000_legitimize_reload_address): Handle new toc references.
9263         (print_operand_address): Handle legitimate_constant_pool_address_p
9264         match before lo_sum.
9265         (rs6000_eliminate_indexed_memrefs): Tidy.
9266         (rs6000_emit_move): Tweak threshold for inlining constants.
9267         Keep rs6000_emit_allocate_stack large stack frame offsets
9268         loaded into r0 inline.
9269         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
9270         (tocrel_base, tocrel_offset): New variables.
9271         (toc_relative_expr_p): Set them here.
9272         (print_operand_address): Skip over any offset on constant pool address.
9273         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
9274         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
9275         (offsettable_ok_by_alignment): New function.
9276         (rs6000_emit_move): Address suitably aligned local symbol_refs
9277         relative to the toc pointer for -mcmodel=medium.
9278         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
9279         strict param.  Allow lo_sum version of addressing.  Verify reg
9280         used for -mminimal-toc and -mcmodel != small.  Update all callers.
9281         * config/rs6000/constraints.md: Update for above change.
9282         * config/rs6000/predicates.md: Likewise.
9283         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
9284         code.
9285         (tls_gd): Split for -mcmodel=medium/large.
9286         (tls_gd_high, tls_gd_low): New.
9287         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
9288         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
9289         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
9290         (largetoc_high, largetoc_low): New.
9291         (cmptf_internal2): Add clobber.
9292         * config/rs6000/rs6000-protos.h: Update.
9293
9294 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
9295
9296         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
9297         true if no prefetch is going to be generated for a given group.
9298         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
9299         estimate the prefetch_count.
9300         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
9301         prefetch count by considering the unroll_factor and prefetch_mod
9302         for is_loop_prefetching_profitable.
9303
9304 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
9305
9306         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
9307         anything if the argument is not a MEM.
9308
9309 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9310
9311         PR debug/43650
9312         PR debug/44181
9313         PR debug/44247
9314         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
9315         debug stmts.
9316         (canonicalize_loop_ivs): Likewise.
9317
9318 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
9319
9320         PR debug/43656
9321         * haifa-sched.c (setup_insn_reg_pressure_info,
9322         update_register_pressure): Reject debug insns.
9323         (ready_sort): Don't setup reg pressure for debug insns.
9324         (schedule_insn): Don't update reg pressure for debug insns.
9325
9326 2010-06-14  Richard Guenther  <rguenther@suse.de>
9327
9328         * lto-streamer.c (cached_bp): Remove.
9329         (bitpack_delete): Likewise.
9330         (bitpack_create): Likewise.
9331         (bp_get_next_word): Likewise.
9332         (bp_pack_value, bp_unpack_value): Move ...
9333         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
9334         Re-implement.
9335         (struct bitpack_d): Likewise.
9336         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
9337         New inline functions.
9338         * lto-streamer-out.c (lto_output_bitpack): Remove.
9339         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9340         (pack_value_fields): Adjust.
9341         (lto_write_tree): Likewise.
9342         (output_gimple_stmt): Likewise.
9343         (output_function): Likewise.
9344         * lto-streamer-in.c (input_gimple_stmt): Adjust.
9345         (input_function): Likewise.
9346         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
9347         (lto_input_bitpack): Remove.
9348         (lto_materialize_tree): Adjust.
9349         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
9350         * lto-cgraph.c (lto_output_edge): Adjust.
9351         (lto_output_node): Likewise.
9352         (lto_output_varpool_node): Likewise.
9353         (lto_output_ref): Likewise.
9354         (input_node): Likewise.
9355         (input_varpool_node): Likewise.
9356         (input_ref): Likewise.
9357         (input_edge): Likewise.
9358         (output_node_opt_summary): Likewise.
9359         (input_node_opt_summary): Likewise.
9360         * ipa-pure-const.c (pure_const_write_summary): Likewise.
9361         (pure_const_read_summary): Likewise.
9362         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
9363         (ipa_read_indirect_edge_info): Likewise.
9364         (ipa_write_node_info): Likewise.
9365         (ipa_read_node_info): Likewise.
9366
9367 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
9368
9369         PR target/44534
9370         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
9371         (vec_extract_lo_v16hi): Likewise.
9372         (vec_extract_lo_v32qi): Likewise.
9373
9374 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9375
9376         PR bootstrap/44426
9377         * tree.h (build_call_expr): Don't define as vararg macro, instead
9378         add a prototype.
9379         * builtins.c (build_call_nofold): Remove.
9380         (expand_builtin_int_roundingfn, expand_builtin_pow,
9381         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
9382         expand_builtin_memset_args, expand_builtin_strcmp,
9383         expand_builtin_strncmp, expand_builtin_memory_chk): Use
9384         build_call_nofold_loc instead of build_call_nofold.
9385         (build_call_expr): New function.
9386
9387         PR tree-optimization/44508
9388         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
9389         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
9390         don't eliminate trivially dead stmts.
9391         * tree-vrp.c (vrp_finalize): Pass false as last argument
9392         to substitute_and_fold.
9393         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
9394         to substitute_and_fold.
9395         * tree-ssa-ccp.c (ccp_finalize): Likewise.
9396
9397         PR bootstrap/44509
9398         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
9399
9400 2010-06-14  Ira Rosen  <irar@il.ibm.com>
9401
9402         PR tree-optimization/44507
9403         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
9404         to build initial vector for BIT_AND_EXPR.
9405         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
9406
9407 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
9408
9409         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
9410         adjust z10prop set_attr.
9411
9412 2010-06-13  Jan Hubicka  <jh@suse.cz>
9413
9414         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
9415         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
9416         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
9417         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
9418         datastructure checks into checking asserts.
9419         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
9420         * tree-ssa-sccvn.c (VN_INFO): Likewise.
9421         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
9422         df_ref_create_structure): Likewise.
9423         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
9424         pool_free): Use gcc_checking_assert.
9425         * alias.c (get_alias_set): Likewise.
9426         * var-tracking.c (variable_htab_free, shared_hash_copy,
9427         canonicalize_values_mark, variable_merge_over_cur): Likewise.
9428         * lto-streamer.c (bp_unpack_value): Likewise.
9429
9430 2010-06-13  Richard Guenther  <rguenther@suse.de>
9431
9432         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
9433         Do not stream but initialize TYPE_CANONICAL to NULL.
9434         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
9435         * gimple.c (gimple_types_compatible_p): Disregard
9436         TYPE_STRUCTURAL_EQUALITY_P.
9437         (gimple_register_type): Use TYPE_CANONICAL as cache.
9438         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
9439         before registering common types.
9440         * config/i386/i386.c (ix86_function_arg_boundary): Do not
9441         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
9442         * tree.h (TYPE_CANONICAL): Clarify documentation.
9443
9444 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
9445
9446         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9447         LIBCALL_VALUE): Remove macros.
9448         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
9449         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9450         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9451         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
9452         (ia64_function_value): Make static. Handle receiving the function
9453         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
9454
9455 2010-06-12  Jan Hubicka  <jh@suse.cz>
9456
9457         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
9458         at correct place.
9459
9460 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
9461
9462         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
9463
9464 2010-06-12  Jan Hubicka  <jh@suse.cz>
9465
9466         * df-core.c (df_clear_bb_info): New function.
9467         (df_set_blocks): bb_info is always allocated.
9468         (df_get_bb_info): Use block_info_elt_size.
9469         (df_set_bb_info): Likewise.
9470         (df_compact_blocks): Update for new block_info.
9471         (grow_bb_info): New function.
9472         * df-problems.c (df_grow_bb_info): Move to df-core.c
9473         (df_rd_set_bb_info): Remove.
9474         (df_rd_free_bb_info): Do not free block pool.
9475         (df_rd_alloc): Do not create pool, use check for
9476         obstack presence instead of NULL pointer for new blocks.
9477         (df_rd_free): DO not free alloc pool; clear block_info.
9478         (problem_RD): Add size of block info structure.
9479         (df_lr_set_bb_info): Remove.
9480         (df_lr_free_bb_info): Do not free block pool.
9481         (df_lr_alloc): Do not create pool, use check for
9482         obstack presence instead of NULL pointer for new blocks.
9483         (df_lr_free): DO not free alloc pool; clear block_info.
9484         (problem_LR): Add size of block info structure.
9485         (df_live_set_bb_info): Remove.
9486         (df_live_free_bb_info): Do not free block pool.
9487         (df_live_alloc): Do not create pool, use check for
9488         obstack presence instead of NULL pointer for new blocks.
9489         (df_live_free): DO not free alloc pool; clear block_info.
9490         (problem_LIVE): Add size of block info structure.
9491         (problem_CHAIN): Add size of block info structure.
9492         (df_byte_lr_set_bb_info): Remove.
9493         (df_byte_lr_free_bb_info): Do not free block pool.
9494         (df_byte_lr_alloc): Do not create pool, use check for
9495         obstack presence instead of NULL pointer for new blocks.
9496         (df_byte_lr_free): DO not free alloc pool; clear block_info.
9497         (problem_BYTE_LR): Add size of block info structure.
9498         (problem_NOTE): Add size of block info structure.
9499         (df_byte_MD_set_bb_info): Remove.
9500         (df_byte_MD_free_bb_info): Do not free block pool.
9501         (df_byte_MD_alloc): Do not create pool, use check for
9502         obstack presence instead of NULL pointer for new blocks.
9503         (df_byte_MD_free): DO not free alloc pool; clear block_info.
9504         (problem_BD): Add size of block info structure.
9505         * df-scan.c (df_scan_free_internal): Free block pool.
9506         (df_scan_set_bb_info): Remove.
9507         (df_scan_free_bb_info): Check for artificial_defs instead
9508         of bb_info being non-NULL.
9509         (df_scan_alloc): DO not create df_scan_block pool.
9510         (problem_SCAN): Set size of block info.
9511         (df_bb_refs_record): Do not allocate bb_info.
9512         * df.h (df_problem): Add block_info_elt_size.
9513         (struct dataflow): Change block_info to void *.
9514         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
9515         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
9516         in-line structures.
9517
9518 2010-06-12  Jan Hubicka  <jh@suse.cz>
9519
9520         PR tree-optimize/44485
9521         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
9522         containing use of return value of noreturn function.
9523
9524 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
9525
9526         * targhooks.c (default_function_value): Don't use
9527         FUNCTION_OUTGOING_VALUE.
9528         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
9529         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
9530
9531 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
9532
9533         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
9534         Add crtfastmath.o to extra_parts.
9535         * config/mips/crtfastmath.c: New.
9536         * config/mips/linux.h (ENDFILE_SPEC): New.
9537
9538 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
9539
9540         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
9541         old_type in parameter.
9542         (gcc_type_for_value): Update call to gcc_type_for_interval.
9543         (compute_type_for_level_1): Renamed compute_type_for_level.
9544         Update call to gcc_type_for_interval.
9545
9546 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9547
9548         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
9549         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
9550
9551 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
9552
9553         * opts-common.c: Include options.h.
9554         (integral_argument): Move from opts.c.
9555         (decode_cmdline_option): New.  Based on read_cmdline_option.
9556         * opts.c (integral_argument): Move to opts-common.c.
9557         (read_cmdline_option): Move most contents to
9558         decode_cmdline_option.  Use %qs in diagnostics.
9559         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
9560         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
9561         decode_cmdline_option): New.
9562
9563 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9564
9565         PR target/44481
9566         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
9567         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
9568         (partiysi2_cmp): Ditto.
9569         (*partiyhi2_cmp): Ditto.
9570         (*parityqi2_cmp): Remove.
9571
9572 2010-06-11  Jan Hubicka  <jh@suse.cz>
9573
9574         * bitmap.h (bmp_iter_next_bit): New.
9575         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
9576
9577 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
9578             Eric Botcazou  <ebotcazou@adacore.com>
9579
9580         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
9581         computed cost.
9582
9583 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9584
9585         * config/i386/i386.md (unspec): New define_c_enum.
9586         (unspecv): Ditto.
9587
9588 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
9589
9590         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9591
9592 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
9593
9594         PR middle-end/44483
9595         * tree-if-conv.c (bb_predicate_s): New struct.
9596         (bb_predicate_p): New.
9597         (bb_has_predicate): New.
9598         (bb_predicate): New.
9599         (set_bb_predicate): New.
9600         (bb_predicate_gimplified_stmts): New.
9601         (set_bb_predicate_gimplified_stmts): New.
9602         (add_bb_predicate_gimplified_stmts): New.
9603         (init_bb_predicate): New.
9604         (free_bb_predicate): New.
9605         (is_predicated): Use bb_predicate.
9606         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
9607         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
9608         before processing their successors.
9609         (clean_predicate_lists): Removed.
9610         (find_phi_replacement_condition): Use bb_predicate.
9611         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
9612         computations.
9613         (insert_gimplified_predicates): New.
9614         (combine_blocks): Call insert_gimplified_predicates.
9615         (tree_if_conversion): Call free_bb_predicate instead of
9616         clean_predicate_lists.
9617
9618 2010-10-11  Paul Brook  <paul@codesourcery.com>
9619
9620         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
9621         * config/arm/arm.c (all_architectures): Change v7e-m default to
9622         cortexm4.
9623         * config/arm/arm-cores.def: Add cortex-m4.
9624         * config/arm/arm-tune.md: Regenerate.
9625
9626 2010-06-11  Jan Hubicka  <jh@suse.cz>
9627
9628         * ipa-pure-const.c (special_builtlin_state): New function.
9629         (check_call): Use it instead of special casign BUILT_IN_RETURN.
9630         (propagate_pure_const): Use it.
9631
9632 2010-06-11  Jan Hubicka  <jh@suse.cz>
9633
9634         * df-problems.c (df_live_scratch): Convert to bitmap_head.
9635         (df_live_alloc): Initialize df_live_scratch when initializing
9636         problem_data.
9637         (df_live_transfer_function): Update uses of df_live_scratch.
9638         (df_live_free): Free problem_data; clear df_live_scratch before
9639         releasing the obstack.
9640         (df_md_free): Free problem data.
9641
9642 2010-06-11  Jan Hubicka  <jh@suse.cz>
9643
9644         * doc/invoke.texi (Wsuggest-attribute): Document.
9645         (Wmissing-noreturn): Remove.
9646         * ipa-pure-const.c (warn_function_noreturn): New function.
9647         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
9648         warn_missing_noreturn.
9649         * common.opt (Wsuggest-attribute=noreturn): New.
9650         * tree-flow.h (warn_function_noreturn): Declare.
9651         * tree-cfg.c (execute_warn_function_noreturn): Use
9652         warn_function_noreturn.
9653         (gate_warn_function_noreturn): New.
9654         (pass_warn_function_noreturn): Update.
9655
9656 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9657
9658         * c-typeck.c (handle_warn_cast_qual): Add loc
9659         parameter. Improve warning message.
9660         (build_c_cast): Pass location to handle_warn_cast_qual.
9661
9662 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
9663
9664         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
9665         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
9666         insn mnemonic.
9667         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
9668
9669 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
9670
9671         Fix bootstap on mips
9672         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
9673         be naming typedefs.
9674
9675 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
9676
9677         * system.h (helper_const_non_const_cast): New inline for
9678         gcc version <= 4.0.
9679         (CONST_CAST2): For gcc version <= 4.0 use
9680         new helper to do const/non-const casting.
9681
9682 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9683
9684         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
9685         * Makefile.in (OBJS-common): Include insn-enums.o.
9686         (insn-enums.o): New rule.
9687         (simple_generated_c): Add insn-enums.c.
9688         (build/genenums.o): New rule.
9689         (genprogmd): Add "enums".
9690         * genconstants.c (print_enum_type): Declare a C string array
9691         for each enum.
9692         * genenums.c: New file.
9693         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
9694         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
9695         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
9696
9697 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9698
9699         * doc/md.texi (define_enum_attr): Document.
9700         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
9701         * read-md.h (lookup_enum_type): Declare.
9702         * read-md.c (lookup_enum_type): New function.
9703         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
9704         * genattrtab.c (attr_desc): Add an enum_name field.
9705         (evaluate_eq_attr): Take the associated attribute as argument.
9706         Get the enum prefix from the enum_name field, if defined.
9707         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
9708         (simplify_test_exp): Pass attr to evaluate_eq_attr.
9709         (add_attr_value): New function, split out from...
9710         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
9711         (write_test_expr): Pass attr to evaluate_eq_attr.
9712         (write_attr_get): Use the enum_name as the enum tag, if defined.
9713         (write_attr_valueq): Use the enum_name as a prefix, if defined.
9714         (find_attr): Initialize enum_name.
9715         (main): Handle DEFINE_ENUM_ATTR.
9716         * gensupport.c (process_rtx): Likewise.
9717         * config/mips/mips.h (mips_tune_attr): Delete.
9718         * config/mips/mips.md (cpu): Use define_attr_enum.
9719
9720 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9721
9722         * doc/md.texi (define_c_enum, define_enum): Document.
9723         * read-md.h (md_constant): Add a parent_enum field.
9724         (enum_value, enum_type): New structures.
9725         (upcase_string, traverse_enum_types): Declare.
9726         * read-md.c (enum_types): New variable.
9727         (upcase_string, add_constant): New functions.
9728         (handle_constants): Don't create the hash table here.
9729         Use add_constant.
9730         (traverse_md_constants): Don't check for a null md_constants.
9731         (decimal_string, handle_enum, traverse_enum_types): New functions.
9732         (read_md_files): Initialize md_constants and md_enums.
9733         * genconstants.c (print_md_constant): Ignore info argument.
9734         Only print constants that belong to no enum.
9735         (print_enum_type): New function.
9736         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
9737         for each defined enum type.
9738         * config/mips/mips.md (processor): New define_enum.
9739         (unspec): New define_c_enum.
9740         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
9741         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
9742         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
9743         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
9744         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9745         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9746         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9747         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9748         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9749         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9750         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9751         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9752         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9753         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9754         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9755         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9756         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9757         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9758         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9759         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9760         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9761         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9762         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9763         (UNSPEC_RDDSP): Move to mips-dsp.md.
9764         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
9765         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
9766         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
9767         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
9768         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
9769         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
9770         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
9771         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
9772         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
9773         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
9774         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
9775         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
9776         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
9777         Moved to mips-dspr2.md.
9778         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
9779         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
9780         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
9781         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
9782         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
9783         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
9784         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9785         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9786         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9787         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9788         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9789         UNSPEC_LOONGSON_PSADBH)
9790         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9791         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9792         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
9793         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9794         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9795         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9796         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
9797         (cpu): Update comment.
9798         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
9799         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
9800         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
9801         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
9802         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
9803         UNSPEC_LOONGSON_PCMPEQ)
9804         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
9805         UNSPEC_LOONGSON_PINSR_0)
9806         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
9807         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
9808         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
9809         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
9810         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
9811         UNSPEC_LOONGSON_PSADBH)
9812         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
9813         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
9814         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
9815         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
9816         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
9817         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
9818         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
9819         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
9820         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
9821         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
9822         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
9823         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
9824         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
9825         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
9826         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
9827         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
9828         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
9829         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
9830         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
9831         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
9832         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
9833         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
9834         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
9835         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
9836         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
9837         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
9838         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9839         (UNSPEC_RDDSP): Moved from mips.md.
9840         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
9841         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
9842         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
9843         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
9844         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
9845         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
9846         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
9847         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
9848         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
9849         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
9850         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
9851         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
9852         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
9853         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
9854         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
9855         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
9856         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
9857         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
9858         (UNSPEC_SCC): Moved from mips.md.
9859         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
9860         "processor_type" to "processor".
9861         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
9862         * config/mips/mips.h (processor_type): Delete.
9863         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
9864         "processor_type" to "processor".
9865
9866 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9867
9868         * configure.ac (tm_include_list): Add insn-constants.h.
9869         * configure: Regenerate.
9870         * Makefile.in (GTM_H): Move insn-constants.h here from...
9871         (TM_H): ...here.
9872         * mkconfig.sh: Remove special handling for insn-constants.h.
9873
9874 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9875
9876         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
9877         (BUILD_MD): ...this new variable.
9878         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
9879         that include the old contents of simple_generated_h and
9880         simple_generated_c.
9881         (simple_generated_h, simple_generated_c): Include them.  Add
9882         insn-constants.h.
9883         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
9884         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
9885         Remove these dependencies from the main rule and include
9886         insn-conditions.md in the command line only if it appears
9887         in the dependency list.
9888         (insn-constants.h, s-constants): Delete.
9889         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
9890         or gensupport.h.
9891         (build/genmddeps.o): Likewise.
9892         (genprogrtl): New variable that contains everything from genprogmd
9893         except mddeps and constants.
9894         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
9895         depend on $(BUILD_MD)
9896         (genprog): New variable.  Make these programs depend on
9897         $(BUILD_ERRORS).
9898         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
9899         (main): Use read_md_files instead of init_rtx_reader_args.
9900         * genconstants.c: As for genmddeps.c.
9901         * read-md.h (read_skip_construct): Declare.
9902         * read-md.c (read_skip_construct): New function.
9903         (handle_file): Allow a null handle_directive, skipping the
9904         construct if so.
9905         (parse_include): Update the comment accordingly.
9906
9907 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9908
9909         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
9910         * genmddeps.c: Include read-md.h.
9911         (main): Call init_rtx_reader_args instead of init_md_reader_args.
9912         * genattr.c (main): Likewise.
9913         * genattrtab.c (main): Likewise.
9914         * genautomata.c (main): Likewise.
9915         * gencodes.c (main): Likewise.
9916         * genconditions.c (main): Likewise.
9917         * genconfig.c (main): Likewise.
9918         * genconstants.c (main): Likewise.
9919         * genemit.c (main): Likewise.
9920         * genextract.c (main): Likewise.
9921         * genflags.c (main): Likewise.
9922         * genopinit.c (main): Likewise.
9923         * genoutput.c (main): Likewise.
9924         * genpeep.c (main): Likewise.
9925         * genrecog.c (main): Likewise.
9926         * genpreds.c (main): Likewise.
9927         * gensupport.h (in_fname): Move to read-md.h.
9928         (init_md_reader_args_cb): Rename to...
9929         (init_rtx_reader_args_cb): ...this and return a bool.
9930         (init_md_reader_args): Rename to...
9931         (init_rtx_reader_args): ...this and return a bool.
9932         (include_callback): Move to read-md.h.
9933         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
9934         (file_name_list, first_dir_md_include): Move to read-md.c
9935         (first_bracket_include): Delete unused variable.
9936         (last_dir_md_include): Move to read-md.c.
9937         (process_include): Delete, moving code to read-md.c:handle_include.
9938         (process_rtx): Don't handle INCLUDE.
9939         (save_string): Delete.
9940         (rtx_handle_directive): New function.
9941         (init_md_reader_args_cb): Rename to...
9942         (init_rtx_reader_args_cb): ...this and return a boolean success value.
9943         Use read_md_args.
9944         (init_md_reader_args): Rename to...
9945         (init_rtx_reader_args): ...this and return a boolean success value.
9946         * rtl.def (INCLUDE): Delete.
9947         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
9948         argument.
9949         * read-rtl.c (read_conditions): Don't gobble ')' here.
9950         (read_mapping): Likewise.
9951         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
9952         Handle top-level non-rtx constructs here rather than in read_rtx_1.
9953         Store the whole queue in *X.  Remove call to init_md_reader.
9954         (read_rtx_1): Rename to...
9955         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
9956         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
9957         here.
9958         (read_nested_rtx): New function.  Handle (nil) here rather than
9959         in read_rtx_code.
9960         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
9961         gobble ')' here.
9962         * read-md.h (directive_handler_t): New type.
9963         (in_fname, include_callback): Moved from read-md.h.
9964         (read_constants, init_md_reader): Delete.
9965         (read_md_files): Declare.
9966         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
9967         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
9968         from gensupport.c.
9969         (read_constants): Rename to...
9970         (handle_constants): ...this.  Don't gobble ')' here.
9971         (handle_include, handle_file, handle_toplevel_file)
9972         (parse_include): New functions, mostly taken from gensupport.c.
9973         (init_md_reader): Subsume into...
9974         (read_md_files): ...this new function.
9975
9976 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9977
9978         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
9979         (unread_char): Decrement read_md_lineno after putting back '\n'.
9980         * read-md.c (fatal_with_file_and_line): Push back any characters
9981         that we decide not to add to the context.
9982         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
9983         fatal_expected_char in cases where '/' ends a line (for example).
9984         (read_name): Don't increment read_md_lineno here.
9985         (read_escape): Likewise.
9986         (read_quoted_string): Likewise.
9987         (read_braced_string): Likewise.
9988
9989 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
9990
9991         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
9992         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
9993         * genconstants.c: Include read-md.h.
9994         * read-rtl.c (md_constants): Move to read-md.c.
9995         (md_name): Move to read-md.h.
9996         (initialize_iterators): Use leading_string_hash instead of def_hash
9997         and leading_string_eq_p instead of def_name_eq_p.
9998         (read_name): Move to read-md.c.
9999         (def_hash, def_name_eq_p): Delete.
10000         (read_constants, traverse_md_constants): Move to read-md.c.
10001         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
10002         * read-md.h: Include hashtab.h.
10003         (md_name): Moved from read-rtl.c.
10004         (md_constant): Moved from read-md.h.
10005         (leading_string_hash, leading_string_eq_p, read_name)
10006         (read_constants, traverse_md_constants): Declare.
10007         * read-md.c (md_constants): Moved from read-rtl.c.
10008         (leading_string_hash, leading_string_eq_p): New functions.
10009         (read_name, read_constants, traverse_md_constants): Moved from
10010         read-rtl.c.
10011
10012 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10013
10014         * read-rtl.c (md_name): New structure.
10015         (read_name): Take an md_name instead of a buffer pointer.
10016         Use the "string" field instead of strcpy when expanding constants.
10017         (read_constants): Remove the tmp_char argument.  Update the calls
10018         to read_name, using two local name buffers instead of the tmp_char
10019         argument.  Merge the constant-creation code.
10020         (read_conditions): Remove the tmp_char argument.  Update the calls
10021         to read_name, using a local name buffer instead of the tmp_char
10022         argument.
10023         (read_mapping): Replace tmp_char variable with a local name buffer.
10024         Update the calls to read_name.
10025         (read_rtx_1): Likewise.  Update the calls to read_constants and
10026         read_conditions.
10027
10028 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10029
10030         * Makefile.in (build/read-md.o): Depend on errors.h.
10031         * read-md.h (error_with_line): Declare.
10032         * read-md.c: Include errors.h.
10033         (message_with_line_1): New function, extracted from...
10034         (message_with_line): ...here.
10035         (error_with_line): New function.
10036         * genattrtab.c: If a call to message_with_line is followed by
10037         "have_error = 1;", replace both statements with a call to
10038         error_with_line.
10039         * genoutput.c: Likewise.
10040         * genpreds.c: Likewise.
10041         * genrecog.c: If a call to message_with_line is followed by
10042         "error_count++;", replace both statements with a call to
10043         error_with_line.
10044         (errorcount): Delete.
10045         (main): Don't check it.
10046         * gensupport.c: If a call to message_with_line is followed by
10047         "errors = 1;", replace both statements with a call to error_with_line.
10048         (errors): Delete.
10049         (process_define_cond_exec): Check have_error instead of errors.
10050         (init_md_reader_args_cb): Likewise.  Don't set errors.
10051
10052 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10053
10054         * read-md.h (read_md_file): Declare.
10055         (read_char, unread_char): New functions.
10056         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10057         (read_quoted_string, read_string): Remove FILE * argument.
10058         * read-md.c (read_md_file): New variable.
10059         (read_md_filename, read_md_lineno): Update comments and remove
10060         unnecessary initialization.
10061         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
10062         (read_escape, read_quoted_string, read_braced_string, read_string):
10063         Remove FILE * argument.  Update calls accordingly, using read_char
10064         and unread_char instead of getc and ungetc.
10065         * rtl.h (read_rtx): Remove FILE * argument.
10066         * read-rtl.c (iterator_group): Remove FILE * argument from
10067         "find_builtin".
10068         (iterator_traverse_data): Remove "infile" field.
10069         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
10070         (add_mapping, read_name, read_constants, read_conditions)
10071         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
10072         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
10073         Remove file arguments from all calls, using read_char and unread_char
10074         instead of getc and ungetc.
10075         * gensupport.c (process_include): Preserve read_md_file around
10076         the include.  Set read_md_file to the handle of the included file.
10077         Update call to read_rtx.
10078         (init_md_reader_args_cb): Set read_md_file to the handle of the file
10079         and remove local FILE *.  Update calls to read_rtx.
10080
10081 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10082
10083         * read-md.h (read_rtx_lineno): Rename to...
10084         (read_md_lineno): ...this.
10085         (read_rtx_filename): Rename to...
10086         (read_md_filename): ...this.
10087         (copy_rtx_ptr_loc): Rename to...
10088         (copy_md_ptr_loc): ...this.
10089         (print_rtx_ptr_loc): Rename to...
10090         (print_md_ptr_loc): ...this.
10091         * read-md.c: Likewise.  Update references after renaming.
10092         (string_obstack): Replace RTL with MD in comment.
10093         (set_rtx_ptr_loc): Rename to...
10094         (set_md_ptr_loc): ...this.
10095         (get_rtx_ptr_loc): Rename to...
10096         (get_md_ptr_loc): ...this.
10097         * genconditions.c: Update references after renaming.
10098         * genemit.c: Likewise.
10099         * genoutput.c: Likewise.
10100         * genpreds.c: Likewise.
10101         * gensupport.c: Likewise.
10102         * read-rtl.c: Likewise.
10103
10104 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
10105
10106         * Makefile.in (READ_MD_H): New variable.
10107         (BUILD_RTL): Add build/read-md.o.
10108         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
10109         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
10110         (build/genattrtab.o, build/genconditions.o build/genemit.o)
10111         (build/genextract.o, build/genflags.o, build/genoutput.o)
10112         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
10113         (build/read-md.o): New rule.
10114         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
10115         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
10116         * coretypes.h: ...here.
10117         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
10118         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
10119         * genattr.c: Include read-md.h.
10120         * genattrtab.c: Likewise.
10121         * genconditions.c: Likewise.
10122         * genemit.c: Likewise.
10123         * genextract.c: Likewise.
10124         * genflags.c: Likewise.
10125         * genoutput.c: Likewise.
10126         * genpreds.c: Likewise.
10127         * genrecog.c: Likewise.
10128         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
10129         (join_c_conditions, print_c_condition, read_rtx_filename)
10130         (read_rtx_lineno): Move to read-md.h.
10131         * read-rtl.c: Include read-md.h.
10132         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
10133         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
10134         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
10135         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
10136         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
10137         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
10138         (read_braced_string, read_string): Move to read-md.c.
10139         (read_rtx): Move some initialization to init_md_reader and call
10140         init_md_reader here.
10141         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
10142         Move to read-md.h.
10143         * gensupport.c: Include read-md.h.
10144         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
10145         * read-md.h, read-md.c: New files.
10146
10147 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
10148
10149         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10150         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10151         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
10152         * config/moxie/moxie.c (moxie_function_value): Make static.
10153         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
10154         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10155
10156 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10157
10158         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
10159         * dbgcnt.def (tree_sra): New counter.
10160         * tree-sra.c: Include dbgcnt.h.
10161         (gate_intra_sra): Check tree_sra debug counter.
10162
10163 2010-06-10  Martin Jambor  <mjambor@suse.cz>
10164
10165         PR tree-optimization/44258
10166         * tree-sra.c (build_access_subtree): Return false iff there is a
10167         partial overlap.
10168         (build_access_trees): Likewise.
10169         (analyze_all_variable_accesses): Disqualify candidates if
10170         build_access_trees returns true for them.
10171
10172 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
10173
10174         PR debug/41371
10175         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
10176         tail-recurse into canonical node.  Fast-forward over
10177         non-canonical VALUEs.
10178
10179 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
10180
10181         PR boostrap/44470
10182         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
10183         (*addsi_1_zext) <TYPE_LEA>: Likewise.
10184         (add lea splitter): Likewise.
10185         (add_zext lea splitter): Likewise.
10186
10187 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
10188
10189         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
10190
10191 2010-06-10  Jan Hubicka  <jh@suse.cz>
10192
10193         * df-problems.c (df_live_problem_data): Add live_bitmaps.
10194         (df_live_alloc): Initialize problem data and live_osbtacks.
10195         (df_live_finalize): Remove obstack, problem data; do not
10196         clear all bitmaps.
10197         (df_live_top_dump, df_live_bottom_dump): Do not dump old
10198         data when not allocated.
10199         (df_live_verify_solution_start): Do not allocate problem data.
10200         (df_live_verify_solution_end): Check if out is allocated.
10201         (struct df_md_problem_data): New structure.
10202         (df_md_alloc): Allocate problem data.
10203         (df_md_free): Free problem data; do not clear bitmaps.
10204
10205 2010-06-10  Jan Beulich  <jbeulich@novell.com>
10206
10207         PR bootstrap/37304
10208         * configure.ac: Replace $() with ${} when intending to expand
10209         variables rather than invoking commands.
10210         * configure: Re-generate.
10211
10212 2010-06-10  Jan Hubicka  <jh@suse.cz>
10213
10214         PR rtl-optimization/44460
10215         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10216         TYPE_NEEDS_CONSTRUCTING sanity check.
10217
10218 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10219
10220         * doc/include/fdl.texi: Move to GFDL version 1.3.
10221
10222         * doc/cpp.texi: Move to GFDL version 1.3.
10223         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
10224         * doc/gccint.texi: Move to GFDL version 1.3.
10225         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
10226         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
10227         * doc/invoke.texi: Move to GFDL version 1.3.
10228
10229 2010-06-09  Jan Hubicka  <jh@suse.cz>
10230
10231         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
10232         Break out from ...
10233         (propagate) ... here; swap the order.
10234
10235 2010-06-09  Jan Hubicka  <jh@suse.cz>
10236
10237         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
10238         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
10239         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
10240         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
10241
10242 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10243
10244         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
10245         Do not the gather memory reference in the outer loop if the step
10246         is not a constant.
10247
10248 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
10249
10250         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
10251         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
10252         8 to 4.  Minor change of the related comments.
10253
10254 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10255
10256         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
10257         the scev analysis when the variable is not used outside the loop
10258         in a close phi node: call compute_overall_effect_of_inner_loop.
10259
10260 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10261
10262         * graphite-sese-to-poly.c (single_pred_cond): Renamed
10263         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
10264         (build_sese_conditions_before): Renamed call to single_pred_cond.
10265         (build_sese_conditions_after): Same.
10266
10267 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
10268
10269         * graphite-poly.h: Fix comments and indentation.
10270         * graphite-sese-to-poly.c: Same.
10271         (build_sese_conditions_before): Compute stmt and gbb only when needed.
10272         * tree-chrec.c: Fix comments and indentation.
10273         (tree-ssa-loop-niter.c): Same.
10274
10275 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10276
10277         PR rtl-optimization/42461
10278         * dce.c (deletable_insn_p): Return true for const or pure calls again.
10279         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
10280
10281 2010-06-09  Jan Hubicka  <jh@suse.cz>
10282
10283         * bitmap.c (bitmap_and): Walk array forward.
10284         (bitmap_and_compl_into): Likewise.
10285         (bitmap_xor): Likewise.
10286         (bitmap_xor_into):  Likewise.
10287         (bitmap_equal_p): Likewise.
10288         (bitmap_intersect_p): Likewise.
10289         (bitmap_intersect_compl_p): Likewise.
10290         (bitmap_ior_and_into): Likewise.
10291         (bitmap_elt_copy): Likewise.
10292         (bitmap_and_compl): Likewise.
10293         (bitmap_elt_ior): Likewise.
10294
10295 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
10296
10297         * opts-common.c (prune_options): Ensure replacement argv array
10298         is correctly terminated by a NULL entry.
10299
10300 2010-06-09  Jan Hubicka  <jh@suse.cz>
10301
10302         * cgraph.h (varpool_first_static_initializer,
10303         varpool_next_static_initializer): Make checking only when
10304         checking enabled.
10305         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
10306         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
10307         gcc_assert to gcc_checking_assert.
10308         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
10309         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
10310         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
10311         op_iter_init_phiuse, op_iter_init_phidef,
10312         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
10313         gcc_checking_assert.
10314         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
10315         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
10316         partition_is_global, live_on_entry, live_on_exit,
10317         live_merge_and_clear): Likewise.
10318         * system.h (gcc_checking_assert): New macro.
10319         * gimple.h (set_bb_seq): Use gcc_checking_assert.
10320
10321 2010-06-09  Jason Merrill  <jason@redhat.com>
10322
10323         * Makefile.in (TAGS): Collect tags info from c-family.
10324
10325 2010-06-09  Jan Hubicka  <jh@suse.cz>
10326
10327         * gimple.h (gcc_gimple_checking_assert): New macro.
10328         (gimple_set_def_ops, gimple_set_use_ops,
10329         gimple_set_vuse, gimple_set_vdef,
10330         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
10331         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
10332         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
10333         gimple_asm_output_op, gimple_asm_output_op_ptr,
10334         gimple_asm_set_output_op, gimple_asm_clobber_op,
10335         gimple_asm_set_clobber_op, gimple_asm_label_op,
10336         gimple_asm_set_label_op, gimple_try_set_kind,
10337         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
10338         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
10339         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
10340         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
10341         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
10342         gimple_omp_for_set_initial, gimple_omp_for_final,
10343         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
10344         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
10345         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
10346         conditional with ENABLE_GIMPLE_CHECKING.
10347         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
10348
10349 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
10350
10351         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
10352         (get_computation_cost_at): Use it.
10353         (determine_use_iv_cost_condition): Likewise.
10354         (determine_iv_cost): Likewise.
10355
10356 2010-06-09  Richard Guenther  <rguenther@suse.de>
10357
10358         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
10359         replace constants.
10360
10361 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
10362
10363         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
10364
10365 2010-06-09  Martin Jambor  <mjambor@suse.cz>
10366
10367         PR tree-optimization/44423
10368         * tree-sra.c (dump_access): Dump also grp_assignment_read.
10369         (analyze_access_subtree): Pass negative allow_replacements to children
10370         if the current type is scalar.
10371
10372 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10373
10374         PR testsuite/42843
10375         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
10376         * doc/plugins.texi (Plugin license check): Update information
10377         on type of plugin_is_GPL_compatible.
10378         * Makefile.in (PLUGINCC): Define as $(COMPILER).
10379         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
10380
10381 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
10382
10383         * config/arm/arm.c (thumb2_reorg): New function.
10384         (arm_reorg): Call it.
10385         * config/arm/thumb2.md (define_peephole2 for flag clobbering
10386         arithmetic operations): Delete.
10387
10388 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
10389
10390         PR target/44067
10391         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
10392         e500v2 target.
10393
10394 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
10395
10396         PR plugins/44459
10397         * gcc-plugin.h: Encapsulate all declarations in extern "C".
10398
10399 2010-06-08  Jan Hubicka  <jh@suse.cz>
10400
10401         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
10402         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
10403
10404 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
10405
10406         PR tree-optimization/39874
10407         PR middle-end/28685
10408         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
10409         Declare.
10410         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
10411         same_bool_result_p): New.
10412         (and_var_with_comparison, and_var_with_comparison_1,
10413         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
10414         (or_var_with_comparison, or_var_with_comparison_1,
10415         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
10416         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
10417         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
10418         of combine_comparisons.
10419         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
10420
10421 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
10422
10423         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10424         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10425         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
10426         pdp11_function_value_regno_p): New functions.
10427         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10428         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10429
10430 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
10431
10432         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
10433         Thumb-2 in the MINUS case.
10434
10435 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10436
10437         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
10438
10439         * doc/gty.texi (GTY Options): Document typed GC allocation and
10440         variable_size GTY option.
10441
10442         * ggc-internal.h: New.
10443
10444         * ggc.h: Update copyright year.
10445         (digit_string): Move to stringpool.c.
10446         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
10447         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
10448         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
10449         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
10450         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
10451         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
10452         (ggc_force_collect, ggc_get_size, ggc_statistics)
10453         (ggc_print_common_statistics): Move to ggc-internal.h.
10454         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
10455         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
10456         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
10457         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
10458         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
10459         (ggc_alloc_zone_pass_stat): Remove.
10460         (ggc_internal_alloc_stat, ggc_internal_alloc)
10461         (ggc_internal_cleared_alloc_stat): New.
10462         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
10463         (ggc_internal_vec_alloc_stat)
10464         (ggc_internal_cleared_vec_alloc_stat)
10465         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
10466         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
10467         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
10468         (ggc_cleared_alloc_ptr_array_two_args): New.
10469         (htab_create_ggc, splay_tree_new_ggc): Redefine.
10470         (ggc_splay_alloc): Change the type of the first argument to
10471         enum gt_types_enum.
10472         (ggc_alloc_string): Make macro.
10473         (ggc_alloc_string_stat): New.
10474         (ggc_strdup): Redefine.
10475         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
10476         (ggc_alloc_rtvec_sized): New.
10477         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
10478         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
10479         (ggc_internal_cleared_alloc_zone_stat)
10480         (ggc_internal_zone_alloc_stat)
10481         (ggc_internal_zone_cleared_alloc_stat)
10482         (ggc_internal_zone_vec_alloc_stat)
10483         (ggc_alloc_zone_rtx_def_stat)
10484         (ggc_alloc_zone_tree_node_stat)
10485         (ggc_alloc_zone_cleared_tree_node_stat)
10486         (ggc_alloc_cleared_gimple_statement_d_stat): New.
10487
10488         * ggc-common.c: Include ggc-internal.h.
10489         (ggc_internal_cleared_alloc_stat): Rename from
10490         ggc_alloc_cleared_stat.
10491         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
10492         (ggc_calloc): Remove.
10493         (ggc_cleared_alloc_htab_ignore_args): New.
10494         (ggc_cleared_alloc_ptr_array_two_args): New.
10495         (ggc_splay_alloc): Add obj_type parameter.
10496         (init_ggc_heuristics): Formatting fixes.
10497
10498         * ggc-none.c: Update copyright year.
10499         (ggc_alloc_stat): Rename to ggc_alloc_stat.
10500         (ggc_alloc_cleared_stat): Rename to
10501         ggc_internal_cleared_alloc_stat.
10502         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10503
10504         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
10505         Remove references to ggc_alloc in comments.
10506         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
10507         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
10508         (new_ggc_zone, destroy_ggc_zone): Remove.
10509         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
10510
10511         * ggc-zone.c: Include ggc-internal.h.  Remove references to
10512         ggc_alloc in comments.
10513         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
10514         (ggc_internal_alloc_zone_pass_stat): New.
10515         (ggc_internal_cleared_alloc_zone_stat): New.
10516         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
10517         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
10518         (new_ggc_zone, destroy_ggc_zone): Remove.
10519
10520         * stringpool.c: Update copyright year.  Include ggc-internal.h
10521         (digit_vector): Make static.
10522         (digit_string): Moved from ggc.h.
10523         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
10524         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
10525
10526         * Makefile.in (GGC_INTERNAL_H): New.
10527         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
10528         $(GGC_INTERNAL_H) to dependencies.
10529
10530         * gentype.c: Update copyright year.
10531         (walk_type): Accept variable_size GTY option.
10532         (USED_BY_TYPED_GC_P): New macro.
10533         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
10534         whitespace at the end of strings.
10535         (get_type_specifier, variable_size_p): New functions.
10536         (alloc_quantity, alloc_zone): New enums.
10537         (write_typed_alloc_def): New function.
10538         (write_typed_struct_alloc_def): Likewise.
10539         (write_typed_typed_typedef_alloc_def): Likewise.
10540         (write_typed_alloc_defns): Likewise.
10541         (output_typename, write_splay_tree_allocator_def): Likewise.
10542         (write_splay_tree_allocators): Likewise.
10543         (main): Call write_typed_alloc_defns and
10544         write_splay_tree_allocators.
10545
10546         * lto-streamer.h (lto_file_decl_data_ptr): New.
10547
10548         * passes.c (order): Define using cgraph_node_ptr.
10549
10550         * strinpool.c (struct string_pool_data): Declare nested_ptr using
10551         ht_identifier_ptr.
10552
10553         * gimple.h (union gimple_statement_d): Likewise.
10554
10555         * rtl.h (struct rtx_def): Likewise.
10556         (struct rtvec_def): Likewise.
10557
10558         * tree.h (union tree_node): Likewise.
10559
10560         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
10561
10562         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
10563
10564         * tree-scalar-evolution.c (scev_initialize): Likewise.
10565
10566         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
10567
10568         * dwarf2asm.c (dw2_force_const_mem): Likewise.
10569
10570         * omp-low.c (lower_omp_critical): Likewise.
10571
10572         * bitmap.h (struct bitmap_head_def): Update comment to not
10573         reference ggc_alloc.
10574
10575         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
10576
10577         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
10578
10579         * ipa-prop.c (duplicate_ggc_array): Rename to
10580         duplicate_ipa_jump_func_array.  Use typed GC allocation.
10581         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
10582
10583         * gimple.c (gimple_alloc_stat): Use
10584         ggc_alloc_cleared_gimple_statement_d_stat.
10585
10586         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
10587
10588         * tree.c (make_node_stat): Use
10589         ggc_alloc_zone_cleared_tree_node_stat.
10590         (make_tree_vec_stat): Likewise.
10591         (build_vl_exp_stat): Likewise.
10592         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
10593         (make_tree_binfo_stat): Likewise.
10594         (tree_cons_stat): Likewise.
10595
10596         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
10597         (shallow_copy_rtx_stat): Likewise.
10598         (make_node_stat): Likewise.
10599
10600         * lto-symtab.c: Fix comment.
10601
10602         * tree-cfg.c (create_bb): Update comment to not reference
10603         ggc_alloc_cleared.
10604         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
10605
10606         * varpool.c (varpool_node): Use typed GC allocation.
10607         (varpool_extra_name_alias): Likewise.
10608
10609         * varasm.c (emutls_decl): Likewise.
10610         (get_unnamed_section): Likewise.
10611         (get_noswitch_section): Likewise.
10612         (get_section): Likewise.
10613         (get_block_for_section): Likewise.
10614         (build_constant_desc): Likewise.
10615         (create_constant_pool): Likewise.
10616         (force_const_mem): Likewise.
10617
10618         * tree.c (build_vl_exp_stat): Likewise.
10619         (build_real): Likewise.
10620         (build_string): Likewise.
10621         (decl_debug_expr_insert): Likewise.
10622         (decl_value_expr_insert): Likewise.
10623         (type_hash_add): Likewise.
10624         (build_omp_clause): Likewise.
10625
10626         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
10627
10628         * tree-ssa.c (init_tree_ssa): Likewise.
10629
10630         * tree-ssa-structalias.c (heapvar_insert): Likewise.
10631
10632         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
10633
10634         * tree-ssa-loop-niter.c (record_estimate): Likewise.
10635
10636         * tree-ssa-alias.c (get_ptr_info): Likewise.
10637
10638         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
10639
10640         * tree-phinodes.c (allocate_phi_node): Likewise.
10641
10642         * tree-iterator.c (tsi_link_before): Likewise.
10643         (tsi_link_after): Likewise.
10644
10645         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
10646
10647         * tree-dfa.c (create_var_ann): Likewise.
10648
10649         * tree-cfg.c (create_bb): Likewise.
10650
10651         * toplev.c (alloc_for_identifier_to_locale): Likewise.
10652         (general_init): Likewise.
10653
10654         * stringpool.c (stringpool_ggc_alloc): Likewise.
10655         (gt_pch_save_stringpool): Likewise.
10656
10657         * sese.c (if_region_set_false_region): Likewise.
10658
10659         * passes.c (do_per_function_toporder): Likewise.
10660
10661         * optabs.c (set_optab_libfunc): Likewise.
10662         (set_conv_libfunc): Likewise.
10663
10664         * lto-symtab.c (lto_symtab_register_decl): Likewise.
10665
10666         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
10667         (input_eh_region): Likewise.
10668         (input_eh_lp): Likewise.
10669         (make_new_block): Likewise.
10670         (unpack_ts_real_cst_value_fields): Likewise.
10671
10672         * lto-section-in.c (lto_new_in_decl_state): Likewise.
10673
10674         * lto-cgraph.c (input_node_opt_summary): Likewise.
10675
10676         * loop-init.c (loop_optimizer_init): Likewise.
10677
10678         * lambda.h (lambda_vector_new): Likewise.
10679
10680         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
10681
10682         * ira.c (update_equiv_regs): Likewise.
10683
10684         * ipa.c (cgraph_node_set_new): Likewise.
10685         (cgraph_node_set_add): Likewise.
10686         (varpool_node_set_new): Likewise.
10687         (varpool_node_set_add): Likewise.
10688
10689         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
10690         (duplicate_ipa_jump_func_array): Likewise.
10691         (ipa_read_node_info): Likewise.
10692
10693         * ipa-cp.c (ipcp_create_replace_map): Likewise.
10694
10695         * integrate.c (get_hard_reg_initial_val): Likewise.
10696
10697         * gimple.c (gimple_alloc_stat): Likewise.
10698         (gimple_build_omp_for): Likewise.
10699         (gimple_seq_alloc): Likewise.
10700         (gimple_copy): Likewise.
10701
10702         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
10703         (gsi_insert_after_without_update): Likewise.
10704
10705         * function.c (add_frame_space): Likewise.
10706         (insert_temp_slot_address): Likewise.
10707         (assign_stack_temp_for_type): Likewise.
10708         (allocate_struct_function): Likewise.
10709         (types_used_by_var_decl_insert): Likewise.
10710
10711         * except.c (init_eh_for_function): Likewise.
10712         (gen_eh_region): Likewise.
10713         (gen_eh_region_catch): Likewise.
10714         (gen_eh_landing_pad): Likewise.
10715         (add_call_site): Likewise.
10716
10717         * emit-rtl.c (get_mem_attrs): Likewise.
10718         (get_reg_attrs): Likewise.
10719         (start_sequence): Likewise.
10720         (init_emit): Likewise.
10721
10722         * dwarf2out.c (new_cfi): Likewise.
10723         (queue_reg_save): Likewise.
10724         (dwarf2out_frame_init): Likewise.
10725         (new_loc_descr): Likewise.
10726         (find_AT_string): Likewise.
10727         (new_die): Likewise.
10728         (add_var_loc_to_decl): Likewise.
10729         (clone_die): Likewise.
10730         (clone_as_declaration): Likewise.
10731         (break_out_comdat_types): Likewise.
10732         (new_loc_list): Likewise.
10733         (loc_descriptor): Likewise.
10734         (add_loc_descr_to_each): Likewise.
10735         (add_const_value_attribute): Likewise.
10736         (tree_add_const_value_attribute): Likewise.
10737         (add_comp_dir_attribute): Likewise.
10738         (add_name_and_src_coords_attributes): Likewise.
10739         (lookup_filename): Likewise.
10740         (store_vcall_insn): Likewise.
10741         (dwarf2out_init): Likewise.
10742
10743         * dbxout.c (dbxout_init): Likewise.
10744
10745         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10746
10747         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
10748
10749         * config/score/score7.c (score7_output_external): Likewise.
10750
10751         * config/score/score3.c (score3_output_external): Likewise.
10752
10753         * config/s390/s390.c (s390_init_machine_status): Likewise.
10754
10755         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
10756         (rs6000_init_machine_status): Likewise.
10757         (output_toc): Likewise.
10758
10759         * config/pa/pa.c (pa_init_machine_status): Likewise.
10760         (get_deferred_plabel): Likewise.
10761
10762         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
10763
10764         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
10765
10766         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
10767
10768         * config/mep/mep.c (mep_init_machine_status): Likewise.
10769         (mep_note_pragma_flag): Likewise.
10770
10771         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
10772
10773         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
10774
10775         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
10776
10777         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
10778         (i386_pe_maybe_record_exported_symbol): Likewise.
10779
10780         * config/i386/i386.c (get_dllimport_decl): Likewise.
10781         (ix86_init_machine_status): Likewise.
10782         (assign_386_stack_local): Likewise.
10783
10784         * config/frv/frv.c (frv_init_machine_status): Likewise.
10785
10786         * config/darwin.c (machopic_indirection_name): Likewise.
10787
10788         * config/cris/cris.c (cris_init_machine_status): Likewise.
10789
10790         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
10791
10792         * config/avr/avr.c (avr_init_machine_status): Likewise.
10793
10794         * config/arm/arm.c (arm_init_machine_status): Likewise.
10795
10796         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
10797         (alpha_need_linkage): Likewise.
10798         (alpha_use_linkage): Likewise.
10799
10800         * cgraph.c (cgraph_allocate_node): Likewise.
10801         (cgraph_create_edge_1): Likewise.
10802         (cgraph_create_indirect_edge): Likewise.
10803         (cgraph_add_asm_node): Likewise.
10804
10805         * cfgrtl.c (init_rtl_bb_info): Likewise.
10806
10807         * cfgloop.c (alloc_loop): Likewise.
10808         (rescan_loop_exit): Likewise.
10809
10810         * cfg.c (init_flow): Likewise.
10811         (alloc_block): Likewise.
10812         (unchecked_make_edge): Likewise.
10813
10814         * c-parser.c (c_parse_init): Likewise.
10815         (c_parse_file): Likewise.
10816
10817         * c-decl.c (bind): Likewise.
10818         (record_inline_static): Likewise.
10819         (push_scope): Likewise.
10820         (make_label): Likewise.
10821         (lookup_label_for_goto): Likewise.
10822         (finish_struct): Likewise.
10823         (finish_enum): Likewise.
10824         (c_push_function_context): Likewise.
10825
10826         * bitmap.c (bitmap_element_allocate): Likewise.
10827         (bitmap_gc_alloc_stat): Likewise.
10828
10829         * alias.c (record_alias_subset): Likewise.
10830         (init_alias_analysis): Likewise.
10831
10832 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
10833
10834         * fold-const.c (fold_comparison): Remove redundant parenthesis.
10835         * tree-inline.c (expand_call_inline): Pass translated return value of
10836         cgraph_inline_failed_string to diagnostic function.
10837
10838 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
10839             Shujing Zhao  <pearly.zhao@oracle.com>
10840
10841         PR c/37724
10842         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
10843         implicit bad conversions is initialization.
10844         (error_init): Use gmsgid instead of msgid for argument name and change
10845         the call for error.
10846         (pedwarn_init): Use gmsgid instead of msgid for argument name and
10847         change the call for pedwarn.
10848         (warning_init): Use gmsgid instead of msgid for argument name and
10849         change the call for warning.
10850
10851 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
10852
10853         * config/mips/mips-protos.h (mips_print_operand): Delete.
10854         (mips_print_operand_address): Delete.
10855         * config/mips/mips.h (mips_print_operand_punct): Delete.
10856         (PRINT_OPERAND): Delete.
10857         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
10858         (PRINT_OPERAND_ADDRESS): Delete.
10859         * config/mips/mips.c (mips_print_operand_punct): Make static.
10860         (mips_print_operand_address): Make static.
10861         (mips_print_operand): Make static.  Call
10862         mips_print_operand_punct_valid_p.
10863         (mips_print_operand_punct_valid_p): New function.
10864         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10865         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10866
10867 2010-06-07  Jan Hubicka  <jh@suse.cz>
10868
10869         PR middle-end/44454
10870         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
10871         are allocated.
10872
10873 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
10874
10875         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
10876         name of RECORD.
10877
10878 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10879
10880         * doc/sourcebuild.texi (Effective-Target Keywords, Other
10881         attributes): Document gas.
10882
10883 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
10884
10885         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
10886         <TYPE_LEA>: Split instruction.
10887         <default>: Remove alternative 2 handling.
10888         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
10889         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
10890         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
10891
10892         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
10893         (ashift_zext lea splitter): Use DImode for multiplication.
10894
10895         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
10896         to generate addition.
10897
10898 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
10899
10900         * common.opt (fira-verbose): Use Var.
10901         (fpcc-struct-return): Use Init instead of VarExists.
10902         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
10903         toplev.c.
10904         * flags.h (flag_signed_char, flag_short_enums,
10905         flag_pcc_struct_return, flag_ira_verbose,
10906         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
10907         * toplev.c (flag_detailed_statistics, flag_signed_char,
10908         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
10909         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
10910         * toplev.h (flag_crossjumping, flag_if_conversion,
10911         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
10912         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
10913         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
10914         flag_cprop_registers, time_report, flag_ira_loop_pressure,
10915         flag_ira_coalesce, flag_ira_move_spills,
10916         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
10917
10918 2010-06-07  Jan Hubicka  <jh@suse.cz>
10919
10920         * df-core.c (df_analyze_problem): Do verification after allocation.
10921
10922         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
10923         (df_lr_alloc): Initialize problem data; move bitmaps to
10924         lr_bitmaps obstack.
10925         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
10926         (df_lr_verify_solution_start): Do not initialize problem data;
10927         allocate bitmaps in lr_bitmaps.
10928         (df_lr_verify_solution_end): Do not free problem data.
10929
10930 2010-06-07  Jan Hubicka  <jh@suse.cz>
10931
10932         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
10933         if caller is noreturn.
10934         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
10935         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
10936         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
10937         * ipa-pure-const.c (check_decl): Add IPA parameter.
10938         (state_from_flags): New function.
10939         (better_state, worse_state): New functions.
10940         (check_call): When in IPA mode, do not care about callees.
10941         (check_load, check_store): Update.
10942         (check_ipa_load, check_ipa_store): New.
10943         (check_stmt): When in IPA mode, use IPA checkers.
10944         (analyze_function): Use state_from_flags.
10945         (propagate): Check indirect edges and references.
10946
10947 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
10948
10949         PR rtl-optimization/44404
10950         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
10951         of count_occurrences to see if it's safe to modify mem_insn.
10952
10953 2010-06-07  Richard Guenther  <rguenther@suse.de>
10954
10955         * gimplify.c (gimplify_cleanup_point_expr): For empty body
10956         and EH-only cleanup drop the cleanup instead of inserting it
10957         unconditionally.
10958
10959 2010-06-07  Ira Rosen  <irar@il.ibm.com>
10960
10961         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
10962         documentation.
10963         * targhooks.c (default_builtin_vectorization_cost): New function.
10964         * targhooks.h (default_builtin_vectorization_cost): Declare.
10965         * target.h (enum vect_cost_for_stmt): Define.
10966         (builtin_vectorization_cost): Change argument and comment.
10967         * tree-vectorizer.h: Remove cost model macros.
10968         * tree-vect-loop.c: Include target.h.
10969         (vect_get_cost): New function.
10970         (vect_estimate_min_profitable_iters): Replace cost model macros with
10971         calls to vect_get_cost.
10972         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
10973         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
10974         default implementation.
10975         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
10976         calls to target hook builtin_vectorization_cost.
10977         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
10978         Likewise.
10979         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
10980         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
10981         implementation to return costs.
10982         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10983         * config/spu/spu.h: Remove vectorizer cost model macros.
10984         * config/i386/i386.h: Likewise.
10985         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
10986         a call to target hook builtin_vectorization_cost.
10987
10988 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
10989
10990         PR target/44319
10991         * config/i386/i386.c (override_options): Turn zee pass on for level 2
10992         and above and defer till target is known.
10993         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
10994         turn off otherwise.
10995
10996 2010-05-25  Jan Hubicka  <jh@suse.cz>
10997
10998         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
10999         (df_compact_blocks): Likewise.
11000         * df.h (struct df): Turn hardware_regs_used,
11001         regular_block_artificial_uses, eh_block_artificial_uses,
11002         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
11003         bitmap_head.
11004         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
11005         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
11006         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
11007         df_scan_blocks, df_insn_delete, df_insn_rescan,
11008         df_insn_rescan_debug_internal, df_insn_rescan_all,
11009         df_process_deferred_rescans, df_process_deferred_rescans,
11010         df_notes_rescan, df_get_call_refs, df_get_call_refs,
11011         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
11012         df_record_entry_block_defs, df_record_exit_block_uses,
11013         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
11014         df_scan_verify): Update.
11015
11016 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11017
11018         PR c++/44188
11019         * c-common.c (is_typedef_decl): Move this definition ...
11020         * tree.c (is_typedef_decl): ... here.
11021         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11022         * c-common.h (is_typedef_decl): Move this declaration ...
11023         * tree.h (is_typedef_decl): ... here.
11024         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11025         * dwarf2out.c (is_naming_typedef_decl): New function.
11026         (gen_tagged_type_die): Split out of ...
11027         (gen_type_die_with_usage): ... this function. When an anonymous
11028         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11029         is emitted for the typedef.
11030         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11031         anonymous tagged types.
11032
11033 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11034
11035         PR c/20000
11036         * c-decl.c (grokdeclarator): Delete warning.
11037
11038 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11039
11040         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
11041         newly built CALL_EXPR.
11042         * tree-profile.c (tree_profiling): Don't profile functions produced
11043         for built-in stuff.
11044
11045 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
11046
11047         PR bootstrap/44427
11048         PR bootstrap/44428
11049         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
11050         endianness-independent.
11051
11052 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
11053
11054         * c-common.c: Move to c-family/.
11055         * c-common.def: Likewise.
11056         * c-common.h: Likewise.
11057         * c-cppbuiltin.c: Likewise.
11058         * c-dump.c: Likewise.
11059         * c-format.c: Likewise.
11060         * c-format.h : Likewise.
11061         * c-gimplify.c: Likewise.
11062         * c-lex.c: Likewise.
11063         * c-omp.c: Likewise.
11064         * c.opt: Likewise.
11065         * c-opts.c: Likewise.
11066         * c-pch.c: Likewise.
11067         * c-ppoutput.c: Likewise.
11068         * c-pragma.c: Likewise.
11069         * c-pragma.h: Likewise.
11070         * c-pretty-print.c: Likewise.
11071         * c-pretty-print.h: Likewise.
11072         * c-semantics.c: Likewise.
11073         * stub-objc.c: Likewise.
11074
11075         * gengtype.c (get_file_langdir): Special-case files in c-family/.
11076         (get_output_file_with_visibility): Fix name for c-common.h.
11077         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
11078
11079         * c-tree.h: Update include path for moved files.
11080         * c-lang.c: Likewise.
11081         * c-lang.h: Likewise.
11082         * c-parser.c: Likewise.
11083         * c-convert.c: Likewise.
11084         * c-decl.c: Likewise.
11085         * c-objc-common.c: Likewise.
11086         * configure.ac: Make sure c-family/ exists in the build directory.
11087         * configure: Regenerate.
11088         * Makefile.in: Update paths for moved files.  Regroup files per
11089         location and update dependencies.  Move generated_files down after
11090         ALL_GTFILES_H.
11091
11092         * config/spu/spu-c.c: Update paths for moved files.
11093         * config/mep/mep-pragma.c: Likewise.
11094         * config/darwin-c.c: Likewise.
11095         * config/i386/msformat-c.c: Likewise.
11096         * config/i386/i386-c.c: Likewise.
11097         * config/avr/avr-c.c: Likewise.
11098         * config/sol2-c.c: Likewise.
11099         * config/ia64/ia64-c.c: Likewise.
11100         * config/rs6000/rs6000-c.c: Likewise.
11101         * config/arm/arm.c: Likewise.
11102         * config/arm/arm-c.c: Likewise.
11103         * config/h8300/h8300.c: Likewise.
11104         * config/v850/v850-c.c: Likewise.
11105
11106         * config/t-darwin: Fix dependencies for moved files.
11107         * config/t-sol2: Fix dependencies for moved files.
11108         * config/mep/t-mep: Fix dependencies for moved files.
11109         * config/ia64/t-ia64: Fix dependencies for moved files.
11110         * config/rs6000/t-rs6000: Fix dependencies for moved files.
11111         * config/v850/t-v850: Fix dependencies for moved files.
11112         * config/v850/t-v850e: Fix dependencies for moved files.
11113
11114         * config/m32c/m32c-pragma.c
11115
11116         * po/exgettext: Look in c-family/ also.
11117
11118 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
11119
11120         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
11121         (mark_control_dependent_edges_necessary): Call it instead of marking
11122         the last statement manually.
11123         (propagate_necessity): Likewise.
11124
11125 2010-06-05  Jan Hubicka  <jh@suse.cz>
11126
11127         * basic-block.h (compute_dominance_frontiers): Updated.
11128         (compute_idf): Likewise.
11129
11130         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
11131         for dominance frontiers.
11132         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
11133         (insert_updated_phi_nodes_for): Likewise.
11134         (update_ssa): Likewise.
11135         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11136         (compute_dominance_frontiers): Likewise.
11137         (compute_idf): Likewise.
11138         * df-problems.c (df_md_local_compute): Likewise.
11139
11140 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
11141
11142         * target.h (struct gcc_target): Add memory_move_cost field.
11143         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
11144         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
11145         * targhooks.c (default_memory_move_cost): New function.
11146         * targhooks.h (default_memory_move_cost): Declare function.
11147         * reload.h (memory_move_cost): Declare.
11148         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11149         * reginfo.c (memory_move_cost): New function.
11150         (memory_move_secondary_cost): Change type of 'in' argument to bool.
11151         * ira.h (ira_memory_move_cost): Update comment.
11152         * ira.c (ira_memory_move_cost): Update comment.
11153         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
11154         with memory_move_cost.
11155         * postreload.c (reload_cse_simplify_set): (Ditto.).
11156         * reload1.c (choose_reload_regs): (Ditto.).
11157         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
11158         (MEMORY_MOVE_COST):  Revise documentation.
11159
11160         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
11161         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
11162         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
11163         type of 'in' argument to bool.
11164         (TARGET_MEMORY_MOVE_COST): Define.
11165
11166 2010-06-05  Jan Hubicka  <jh@suse.cz>
11167
11168         * ipa-pure-const.c (propagate): Fix typo in handling of functions
11169         that cannot return.  Be more careful when merging the results with
11170         previously known ones.
11171
11172 2010-06-05  Matthias Klose  <doko@ubuntu.com>
11173
11174         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
11175         function to add the -iplugindir option.
11176         (find_plugindir_spec_function): Add new declaration and function.
11177         (static_spec_func): Use it for "find-plugindir".
11178
11179 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
11180
11181         PR c++/44361
11182         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
11183         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
11184         statement expression.
11185
11186 2010-06-05  Jan Hubicka  <jh@suse.cz>
11187
11188         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
11189         (df_rd_problem_data): Convert sparse_invalidated_by_call,
11190         dense_invalidated_by_call to bitmap head.
11191         (df_rd_alloc, df_rd_bb_local_compute_process_def,
11192         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
11193         df_rd_start_dump, df_lr_verify_transfer_functions,
11194         df_live_verify_transfer_functions, df_chain_create_bb,
11195         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
11196         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
11197         df_simulate_one_insn_forwards, df_md_alloc,
11198         df_md_bb_local_compute_process_def,
11199         df_md_bb_local_compute_process_def, df_md_local_compute,
11200         df_md_transfer_function df_md_free): Update.
11201
11202 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
11203
11204         PR c/44322
11205         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
11206         target type for ADDR_EXPR; require no changes to qualifiers except
11207         for function types.
11208         * c-tree.h (c_build_type_variant): Remove.
11209
11210 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11211
11212         * genautomata.c (get_excl_set): Do work per element, not per char.
11213         (check_presence_pattern_sets): Similar.
11214         (check_absence_pattern_sets): Similar.
11215
11216 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
11217
11218         * genautomata.c (curr_state_pass_num): Delete.
11219         (min_issue_delay_pass_states): Delete.
11220         (min_issue_delay): Delete.
11221         (initiate_min_issue_delay_pass_states): Delete.
11222         (output_min_issue_delay_table): Compute min_issue_delay_vect
11223         using a breadth-first search variant.
11224         (output_tables): Don't call initiate_min_issue_delay_pass_states.
11225
11226 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11227
11228         PR boostrap/44421
11229         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
11230         (df_byte_lr_bb_local_compute): Likewise.
11231
11232 2010-06-03  Jason Merrill  <jason@redhat.com>
11233
11234         Implement noexcept operator (5.3.7)
11235         * c-common.c (c_common_reswords): Add noexcept.
11236         * c-common.h (enum rid): Add RID_NOEXCEPT.
11237
11238 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
11239
11240         * config/darwin-driver.c (darwin_default_min_version): Use
11241         GCC-specific formats in diagnostics.
11242         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
11243         diagnostics.
11244         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
11245         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
11246         eval_spec_function, handle_braces, process_brace_body, main,
11247         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
11248         getenv_spec_function, compare_version_strings,
11249         version_compare_spec_function): Use GCC-specific formats in
11250         diagnostics.
11251
11252 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11253
11254         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
11255         that operand 0 and operand 1 are equal.
11256         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
11257         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
11258         and operand 1 are equal.
11259         <default>: Ditto.  Remove ??? comment.
11260         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
11261         and operand 1 are equal.
11262         <default>: Ditto.  Remove ??? comment.
11263         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
11264         are equal.
11265         (*add<mode>_4) <default>: Ditto.
11266         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
11267
11268 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
11269
11270         * config/i386/i386-protos.h (ix86_print_operand): Declare.
11271         * config/i386/i386.c (ix86_print_operand): Make non-static.
11272         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
11273         * output.h (output_operand): Declare.
11274         * final.c (output_operand): Make non-static.
11275
11276 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
11277
11278         PR rtl-optimization/44013
11279         * sched-deps.c (add_dependence_list_and_free): Don't free lists
11280         when processing debug insns.
11281
11282         PR debug/41371
11283         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
11284         recursing.  Check that recursion is bounded.  Rename inner var
11285         to avoid hiding incoming argument.
11286
11287 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11288
11289         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
11290         operands[2] == 255.
11291         (*addqi_3): Ditto.
11292         (*addqi_4): Ditto.
11293         (*addqi_5): Ditto.
11294         (*addqi_ext_1_rex64): Ditto.
11295         (*addqi_ext_1): Ditto.
11296
11297         (*addqi_4): Check for incdec_operand in QImode.
11298
11299         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
11300         using SWI mode iterator.
11301         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
11302         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
11303         mode iterator.
11304         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
11305         using SWI mode iterator.
11306
11307 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11308
11309         PR c/25880
11310         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
11311         * c-format.c (gcc_diag_flag_specs): Add hash.
11312         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
11313         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
11314         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
11315         pp_c_cv_qualifiers. Handle qualifiers spelling here.
11316         (pp_c_type_qualifier_list): Call the function above.
11317         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
11318         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
11319         (WARN_FOR_QUALIFIERS): New macro.
11320         (convert_for_assignment): Use it.
11321
11322 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
11323
11324         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
11325
11326 2010-06-04  Jan Hubicka  <jh@suse.cz>
11327
11328         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
11329         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
11330         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
11331         DF_BYTE_LR_OUT): Update for embedded bitmaps.
11332         * fwprop.c (single_def_use_enter_block): Likewise.
11333         * ddg.c (create_ddg_dep_from_intra_loop_link,
11334         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
11335         * loop-iv.c (latch_dominating_def): Likewise.
11336         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
11337         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
11338         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
11339         df_rd_transfer_function, df_rd_top_dump,
11340         df_rd_bottom_dump): Update.
11341         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
11342         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
11343         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
11344         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
11345         df_lr_verify_solution_start, df_lr_verify_solution_end,
11346         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
11347         df_live_free_bb_info, df_live_alloc, df_live_reset,
11348         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
11349         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
11350         df_live_verify_solution_start, df_live_verify_solution_end,
11351         df_live_verify_transfer_functions, df_chain_create_bb,
11352         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
11353         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11354         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
11355         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
11356         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11357         df_byte_lr_transfer_function, df_byte_lr_top_dump,
11358         df_byte_lr_bottom_dump, df_create_unused_note,
11359         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
11360         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
11361         df_md_transfer_function, df_md_init, df_md_confluence_0,
11362         df_md_confluence_n,
11363         df_md_top_dump, df_md_bottom_dump): Update.
11364         (struct df_lr_problem_data): Embedd bitmap headers.
11365
11366 2010-06-04  Jan Hubicka  <jh@suse.cz>
11367
11368         * dce.c (dce_process_block): Do not re-scan already marked
11369         instructions.
11370
11371 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
11372
11373         PR rtl-optimization/39871
11374         PR rtl-optimization/40615
11375         PR rtl-optimization/42500
11376         PR rtl-optimization/42502
11377         * ira.c (init_reg_equiv_memory_loc: New function.
11378         (ira): Call it twice.
11379         * reload.h (calculate_elim_costs_all_insns): Declare.
11380         * ira-costs.c: Include "reload.h".
11381         (regno_equiv_gains): New static variable.
11382         (init_costs): Allocate it.
11383         (finish_costs): Free it.
11384         (ira_costs): Call calculate_elim_costs_all_insns.
11385         (find_costs_and_classes): Take estimated elimination costs
11386         into account.
11387         (ira_adjust_equiv_reg_cost): New function.
11388         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
11389         * reload1.c (init_eliminable_invariants, free_reg_equiv,
11390         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
11391         (elim_bb): New static variable.
11392         (reload): Move code out of here into init_eliminable_invariants and
11393         free_reg_equiv.  Call them.
11394         (calculate_elim_costs_all_insns): New function.
11395         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
11396         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
11397         but call note_reg_elim_costly if we turned a valid memory address
11398         into an invalid one.
11399         * Makefile.in (ira-costs.o): Depend on reload.h.
11400
11401 2010-06-04  Julian Brown  <julian@codesourcery.com>
11402
11403         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
11404         for pool ranges.
11405
11406 2010-06-04  Richard Guenther  <rguenther@suse.de>
11407
11408         PR lto/41584
11409         * cgraph.h (struct varpool_node): Add lto_file_data field.
11410         * lto-cgraph.c (input_varpool_node): Initialize it.
11411
11412 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
11413
11414         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
11415         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
11416         predicate in "type" attribute calculation.
11417         (*addsi_1_zext): Ditto.
11418         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
11419         (*addsi_2_zext): Ditto.
11420         (*add<mode>_3): Ditto.
11421         (*addsi_3_zext): Ditto.
11422         (*add<mode>_5): Ditto.
11423
11424 2010-06-03  Jan Hubicka  <jh@suse.cz>
11425
11426         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
11427         of bitmap_bit_p.
11428         * cfganal.c (compute_dominance_frontiers_1): Likewise.
11429
11430 2010-06-03  Jan Hubicka  <jh@suse.cz>
11431
11432         * df-problems.c (df_create_unused_note, df_note_bb_compute):
11433         micro-optimize the checks when to add new note.
11434
11435 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
11436
11437         * final.c (output_asm_insn): Call
11438         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
11439         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
11440         (output_address): Call targetm.asm_out.print_operand_address.
11441         Update comments.
11442         * target.h (struct gcc_target): Add print_operand,
11443         print_operand_address, and print_operand_punct_valid_p fields.
11444         * targhooks.h (default_print_operand): Declare.
11445         (default_print_operand_address): Declare.
11446         (default_print_operand_punct_valid_p): Declare.
11447         * targhooks.c (default_print_operand): Define.
11448         (default_print_operand_address): Define.
11449         (default_print_operand_punct_valid_p): Define.
11450         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
11451         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
11452         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
11453         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
11454         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
11455         * vmsdbgout.c (addr_const_to_string): Update comment.
11456         * config/i386/i386.c (print_operand): Rename to...
11457         (ix86_print_operand): ...this.  Make static.
11458         (print_operand_address): Rename to...
11459         (ix86_print_operand_address): ...this.  Make static.  Call
11460         ix86_print_operand instead of PRINT_OPERAND.
11461         (ix86_print_operand_punct_valid_p): New function.
11462         (TARGET_PRINT_OPERAND): Define.
11463         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11464         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11465         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
11466         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11467         (PRINT_OPERAND): Delete.
11468         (PRINT_OPERAND_ADDRESS): Delete.
11469         * config/i386/i386-protos.h (print_operand): Delete prototype.
11470         (print_operand_address): Delete prototype.
11471
11472 2010-06-03  Richard Guenther  <rguenther@suse.de>
11473
11474         PR tree-optimization/44403
11475         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11476         Preserve pointer qualifiers.
11477         (vect_create_data_ref_ptr): Likewise.
11478
11479 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11480
11481         PR c++/44294
11482         * defaults.h (MAX_FIXED_MODE_SIZE): New.
11483
11484         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
11485
11486 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
11487
11488         PR debug/44375
11489         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
11490         return false if merging the bbs would lead to goto_locus
11491         location being lost from the IL.
11492
11493 2010-06-03  Jan Hubicka  <jh@suse.cz>
11494             Jakub Jelinek  <jakub@redhat.com>
11495
11496         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
11497         set->regs[i] is NULL or has just one entry.
11498
11499 2010-06-03  Jan Hubicka  <jh@suse.cz>
11500
11501         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
11502         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
11503
11504 2010-06-03  Paul Brook  <paul@codesourcery.com>
11505
11506         * config/arm/arm.c (FL_TUNE): Define.
11507         (arm_default_cpu, arm_cpu_select): Remove.
11508         (all_cores): Populate core field.
11509         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
11510         (arm_find_cpu): New function.
11511         (arm_handle_option): Lookup cpu/architecture names.
11512         (arm_override_options): Cleanup mcpu/march/mtune handling.
11513         (arm_file_start): Ditto.
11514
11515 2010-06-03  Alan Modra  <amodra@gmail.com>
11516
11517         PR target/44169
11518         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
11519         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
11520         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
11521         (rs6000_emit_load_toc_table): Likewise.
11522
11523 2010-06-02  Jan Hubicka  <jh@suse.cz>
11524
11525         * passes.c (init_optimization_passes): Put ipa reference
11526         after ipa pure-const.
11527
11528 2010-06-02  Jan Hubicka  <jh@suse.cz>
11529
11530         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
11531         calls_read_all and calls_write_all.
11532         (get_reference_optimization_summary): Fix formatting.
11533         (is_proper_for_analysis): Check that decl is not readonly.
11534         (propagate_bits): Check CONST/PURE/noreturn flags.
11535         (ipa_init): Move all_module_statics to optimization_summary_obstack.
11536         (analyze_function): Ignore indirect edges.
11537         (copy_global_bitmap): For all module statics, do nothing.
11538         (generate_summary): Do not print calls_read_all/calls_write_all.
11539         (read_write_all_from_decl): Take node as argument; check
11540         cgraph_node_cannot_return.
11541         (propagate): Reorganize read_all/write_all computation;
11542         check indirect edges; check ecf flags; use all_module_statics
11543         in the results; do not free all_module_statics.
11544         (stream_out_bitmap): Handle all_module_statics.
11545         (ipa_reference_write_optimization_summary): Likewise; use
11546         varpool/cgraph encoders to get boundaries.
11547         (ipa_reference_read_optimization_summary): Read in all_module_statics;
11548         use it when possible.
11549
11550 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11551
11552         PR target/44218
11553         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
11554         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
11555
11556         * doc/extend.texi (powerpc builtins): Document vec_recip,
11557         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11558
11559         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
11560         (rs6000_emit_swrsqrt): Ditto.
11561         (rs6000_emit_swdivsf): Delete.
11562         (rs6000_emit_swdivdf): Ditto.
11563         (rs6000_emit_swrsqrtsf): Ditto.
11564
11565         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
11566         describe the reciprocal estimate support for each type.
11567         (recip_options): Map -mrecip=<opt> into option bits.
11568         (gen_2arg_fn_t): New typedef for binary rtx gen function.
11569         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
11570         reciprocal estimate instructions.
11571         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
11572         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
11573         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
11574         cost information if -mdebug=cost or -mdebug=reg.
11575         (rs6000_override_options): Set -mrecip-precision for power6, and
11576         power7 machines.  If -mvsx or -mdfp, enable various options that
11577         came in previous instruction set ISAs, unless the option was
11578         explicitly disabled by the command line option.  Parse
11579         -mrecip=<opt> options.
11580         (rs6000_builtin_vectorized_function): Add support for vectorizing
11581         the reciprocal estimate builtins and expansions.
11582         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
11583         (bdesc_2arg): Add reciprocal estimate builtins.
11584         (bdesc_1arg): Add reciprocal square root estimate builtins.
11585         (rs6000_expand_builtin): Rewrite to use a switch statement,
11586         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
11587         (rs6000_init_builtins): Create declarations for reciprocal
11588         estimate builtins.
11589         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
11590         sized, prefer traditional floating point registers, if integer
11591         vector types, prefer altivec registers.  Don't actually look at
11592         the memory address any more.
11593         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
11594         builtins.
11595         (rs6000_load_constant_and_splat): New helper function to load up
11596         the constant for reciprocal estimate instructions.
11597         (rs6000_emit_madd): New helper function for generating
11598         multiply/add type instructions, based on the current switches.
11599         (rs6000_emit_msub): Ditto.
11600         (rs6000_emit_mnsub): Ditto.
11601         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
11602         replace a divide with a reciprocal estimate and fixup, adding
11603         support for machines with high precision and vectors.
11604         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
11605         low precision machines.
11606         (rs6000_emit_swdiv): New common function to be called to replace a
11607         division with reciprocal estimate and fixup.
11608         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
11609         for double and vector types.  Add support for high precision machines.
11610
11611         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
11612         the reciprocal estimate instructions can be generated.
11613         (TARGET_FRE): Ditto.
11614         (TARGET_FRSQRTES): Ditto.
11615         (TARGET_FRSQRTE): Ditto.
11616         (RS6000_RECIP_*): New macros for reciprocal estimate support.
11617
11618         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
11619         square root estimate on vectors.
11620         (re<mode>2): New insn for reciprocal division estimate on vectors.
11621
11622         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
11623         New builtin.
11624         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
11625         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
11626         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
11627         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
11628         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
11629         (RS6000_BUILTIN_RSQRT): Ditto.
11630         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
11631         floating point builtin.
11632
11633         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11634         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
11635         __RECIP_PRECISION__ based on the command line switches.
11636         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
11637
11638         * config/rs6000/rs6000.opt (-mrecip): Document add support for
11639         replacing division instructions with reciprocal estimate and fixup.
11640         (-mrecip=<opt>): New option.
11641         (-mrecip-precision): Ditto.
11642
11643         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
11644         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
11645         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
11646         precision scalar.
11647
11648         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
11649         (UNSPEC_VREFP): Ditto.
11650         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
11651         conterparts with regard to support of -mno-fused-madd and -ffast-math.
11652         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
11653         reciprocal estimate instructions to be generated.
11654         (altivec_vrefp): Ditto.
11655
11656         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
11657         estimate support.
11658         (rreg): New mode attribute for reciprocal estimate support.
11659         (recip<mode>3): New insn for division using reciprocal estimate
11660         and fixup builtins.
11661         (divide define_split): New define_split to convert floating point
11662         division to use reciprocal estimate if the user used the
11663         appropriate options and the split is run when we can add new
11664         pseudo registers for the fixup.
11665         (rsqrt<mode>2): New insn for reciprocal square root support.
11666         (recipsf3): Move into recip<mode>3.
11667         (recipdf3): Ditto.
11668         (fres): Use TARGET_FRES.
11669         (rsqrtsf2): Move into rsqrt<mode>2.
11670         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
11671         (copysignsf3): Add support for VSX.
11672         (fred): Use TARGET_FRE.
11673         (fred_fpr): Ditto.
11674         (rsqrtdf_internal1): New function for frsqrte instruciton.
11675
11676         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
11677         (vec_rsqrt): Ditto.
11678
11679 2010-06-03  Richard Guenther  <rguenther@suse.de>
11680
11681         PR middle-end/44291
11682         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
11683         (set_user_assembler_libfunc): Likewise.
11684
11685 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11686
11687         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
11688         defaults.h.
11689         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
11690         to defaults.h
11691         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
11692         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
11693         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
11694         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
11695         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
11696         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
11697         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
11698         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
11699         * defaults.h: Updated for above mentioned changes.
11700
11701 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
11702
11703         * c-common.c: Remove header include of tm_p.h.
11704         * Makefile.in (c-common.o): Remove TM_P_H dependency.
11705
11706 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
11707
11708         * tree.h (struct tree_decl_map): New type.
11709         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
11710         (tree_decl_map_hash): New prototype.
11711         (debug_expr_for_decl, value_expr_for_decl): Change into
11712         tree_decl_map hashtab from tree_map.
11713         (init_ttree): Adjust initialization.
11714         (tree_decl_map_hash): New function.
11715         (decl_debug_expr_lookup, decl_debug_expr_insert,
11716         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
11717
11718 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11719
11720         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
11721         linker emulations.
11722         * configure: Regenerate.
11723         * config.in: Regenerate.
11724
11725         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
11726         (X86_64_EMULATION): Define.
11727         (TARGET_LD_EMULATION): Use them.
11728
11729         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
11730         (SPARC64_EMULATION): Define.
11731         (LINK_ARCH_SPEC): Use them.
11732
11733 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11734
11735         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
11736         smallest_mode_for_size for computing the precision types of new
11737         graphite IVs.  Do not call lang_hooks.types.type_for_size.
11738
11739 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11740
11741         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
11742         information.
11743         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
11744
11745 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
11746
11747         PR middle-end/44363
11748         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
11749         return false instead.
11750
11751 2010-06-02  Jan Hubicka  <jh@suse.cz>
11752
11753         PR middle-end/44295
11754         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
11755         create new cgraph node to check callee.
11756
11757 2010-06-02  Richard Guenther  <rguenther@suse.de>
11758
11759         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
11760
11761 2010-06-02  Richard Guenther  <rguenther@suse.de>
11762
11763         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
11764         (lto_wrapper_cleanup): ... this.  Do not exit.
11765         (fatal): Adjust.  Exit here.
11766         (fatal_perror): Likewise.
11767         (fatal_signal): New function.
11768         (main): Set up signal handlers to cleanup temporary files.
11769         * Makefile.in (lto-wrapper.o): Adjust dependencies.
11770
11771 2010-06-02  Richard Guenther  <rguenther@suse.de>
11772
11773         PR tree-optimization/44377
11774         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
11775
11776 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11777
11778         * config/s390/2097.md (z10_fhex): Remove insn reservation.
11779         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
11780         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
11781         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
11782         instruction.
11783         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
11784
11785 2010-06-02  Jan Hubicka  <jh@suse.cz>
11786
11787         * bitmap.c (bitmap_descriptor): Add search_iter.
11788         (bitmap_find_bit): Increment it.
11789         (print_statistics): Print it.
11790
11791 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
11792
11793         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
11794         instead of gimple_build_call_vec.  Delete unnecessary local variable.
11795
11796 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11797
11798         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
11799         change from yesterday.
11800
11801 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
11802
11803         * c-ada-spec.c: Clean up redundant includes.
11804
11805 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
11806
11807         * gimplify.c: Do not include except.h and optabs.h.
11808         (gimplify_body): Do not initialize RTL profiling.
11809         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
11810         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
11811         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
11812         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
11813         langhooks.h.
11814
11815         * tree-pretty-print.h: Include pretty-print.h.
11816         * gimple-pretty-print.h: Include pretty-print.h.
11817
11818         * tree-pretty-print.c: Do not include diagnostic.h.
11819         * tree-vrp.c: Likewise.
11820         * tree-tailcall.c: Likewise
11821         * tree-scalar-evolution.c: Likewise
11822         * tree-ssa-dse.c: Likewise
11823         * tree-chrec.c: Likewise
11824         * tree-ssa-sccvn.c: Likewise
11825         * tree-ssa-copyrename.c: Likewise
11826         * tree-nomudflap.c: Likewise
11827         * tree-call-cdce.c: Likewise
11828         * tree-stdarg.c: Likewise
11829         * tree-ssa-math-opts.c: Likewise
11830         * tree-nrv.c: Likewise
11831         * tree-ssa-sink.c: Likewise
11832         * tree-browser.c: Likewise
11833         * tree-ssa-loop-ivcanon.c: Likewise
11834         * tree-ssa-loop.c: Likewise
11835         * tree-parloops.c: Likewise
11836         * tree-ssa-address.c: Likewise
11837         * tree-ssa-ifcombine.c: Likewise
11838         * tree-if-conv.c: Likewise
11839         * tree-data-ref.c: Likewise
11840         * tree-affine.c: Likewise
11841         * tree-ssa-phiopt.c: Likewise
11842         * tree-ssa-coalesce.c: Likewise
11843         * tree-ssa-pre.c: Likewise
11844         * tree-ssa-live.c: Likewise
11845         * tree-predcom.c: Likewise
11846         * tree-ssa-forwprop.c: Likewise
11847         * tree-ssa-dce.c: Likewise
11848         * tree-ssa-ter.c: Likewise
11849         * tree-ssa-loop-prefetch.c: Likewise
11850         * tree-optimize.c: Likewise
11851         * tree-ssa-phiprop.c: Likewise
11852         * tree-object-size.c: Likewise
11853         * tree-outof-ssa.c: Likewise
11854         * tree-ssa-structalias.c: Likewise
11855         * tree-switch-conversion.c: Likewise
11856         * tree-ssa-reassoc.c: Likewise
11857         * tree-ssa-operands.c: Likewise
11858         * tree-vectorizer.c: Likewise
11859         * tree-vect-data-refs.c: Likewise
11860         * tree-vect-generic.c: Likewise
11861         * tree-vect-stmts.c: Likewise
11862         * tree-vect-patterns.c: Likewise
11863         * tree-vect-slp.c: Likewise
11864         * tree-vect-loop.c: Likewise
11865         * tree-ssa-loop-ivopts.c: Likewise
11866         * tree-ssa-loop-im.c: Likewise
11867         * tree-ssa-loop-niter.c: Likewise
11868         * tree-ssa-loop-unswitch.c: Likewise
11869         * tree-ssa-loop-manip.c: Likewise
11870         * tree-ssa-loop-ch.c: Likewise
11871         * tree-dump.c: Likewise
11872         * tree-complex.c: Likewise
11873
11874         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
11875         * tree-ssa-uninit.c: Likewise
11876         * tree-ssa-threadupdate.c: Likewise
11877         * tree-ssa-uncprop.c: Likewise
11878         * tree-ssa-ccp.c: Likewise
11879         * tree-ssa-dom.c: Likewise
11880         * tree-ssa-propagate.c: Likewise
11881         * tree-ssa-alias.c: Likewise
11882         * tree-dfa.c: Likewise
11883         * tree-cfgcleanup.c: Likewise
11884         * tree-sra.c: Likewise
11885         * tree-ssa-copy.c: Likewise
11886         * tree-ssa.c: Likewise
11887         * tree-profile.c: Likewise
11888         * tree-cfg.c: Likewise
11889         * tree-ssa-threadedge.c: Likewise
11890         * tree-vect-loop-manip.c: Likewise
11891
11892         * tree-inline.c: Do not include diagnostic.h and expr.h.
11893         Include rtl.h.
11894         (copy_decl_for_dup_finish): Do not use NULL_RTX.
11895
11896         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
11897         * tree-loop-distribution.c: Likewise.
11898
11899 2010-06-01  Jan Hubicka  <jh@suse.cz>
11900
11901         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
11902
11903 2010-06-01  Jan Hubicka  <jh@suse.cz>
11904
11905         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
11906         remove return value.
11907         (split_bbs_on_noreturn_calls) .... here.
11908         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
11909         * tree-flow.h (fixup_noreturn_call): New.
11910
11911 2010-06-01  Jan Hubicka  <jh@suse.cz>
11912
11913         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
11914
11915 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
11916
11917         * tree.h (build_nt_call_list): Delete.
11918         * tree.c (build_nt_call_list): Delete.
11919
11920 2010-06-01  Jan Hubicka  <jh@suse.cz>
11921
11922         * fwprop.c: Make emit-rtl.h include last.
11923         * rtlanal.c: Include emit-rtl.h.
11924         * genautomata.c: Output emit-rtl include into insn-automata.c
11925         * df-scan.c: Include emit-rtl.h.
11926         * haifa-sched.c: Indlude emit-rtl.h.
11927         * mode-switching.c: Indlude emit-rtl.h.
11928         * graph.c: Indlude emit-rtl.h.
11929         * sel-sched.c: Include emit-rtl.h.
11930         * sel-sched-ir.c: Include emit-rtl.h.
11931         * ira-build.c: Include emit-rtl.h.
11932         * emit-rtl.c (first_insn, last_insn): Remove defines.
11933         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
11934         Move to emit-rtl.h.
11935         (set_new_first_and_last_insn, get_last_insn_anywhere,
11936         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
11937         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
11938         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
11939         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
11940         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
11941         Use accessor functions.
11942         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11943          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11944         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11945         mem_expr_equal_p): Move here from rtl.h.
11946         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
11947         Move here from emit-rtl.c; make inline.
11948         * cfglayout.h: Include emit-rtl.h.
11949         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
11950          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
11951         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
11952         mem_expr_equal_p, get_insns, set_first-insn,
11953         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
11954         * reg-stack.c: Include emit-rtl.h.
11955         * dce.c: Likewise.
11956
11957 2010-06-01  Jan Hubicka  <jh@suse.cz>
11958
11959         * cgraph.h (tree_function_versioning): Update prototype.
11960         (cgraph_function_versioning): Update prototype.
11961         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
11962         bitmap.
11963         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
11964         (cgraph_materialize_clone, save_inline_function_body): Update use of
11965         tree_function_versioning.
11966         * tree-inline.c (copy_bb): Look for previous copied block to link
11967         after; fix debug output.
11968         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
11969         (copy_body): Likewise.
11970         (expand_call_inline): Update use of copy_body.
11971         (tree_function_versioning): Update use of copy body; accept
11972         blocks_to_copy and new_entry.
11973
11974 2010-06-01  Jan Hubicka  <jh@suse.cz>
11975
11976         * gegenrtl.c: Remove unnecesary prototypes.
11977         (gendecl): Remove.
11978         (gendef): Produce static inline.
11979         (gencode): Remove.
11980         (main): Do not decode parameters; generate header only.
11981         * Makefile.in (genrtl.c): Remove.
11982
11983 2010-06-01  Jan Hubicka  <jh@suse.cz>
11984
11985         * tree-switch-conversion.c (build_one_array): Make it readonly.
11986
11987 2010-06-01  Richard Guenther  <rguenther@suse.de>
11988
11989         * optabs.c (init_optabs): Guard all accesses to reinit.
11990         * ipa-pure-const.c (propagate): Fix another typo.
11991         * opts.c (common_handle_option): Split assignment to bool.
11992         * c-opts.c (c_common_handle_option): Likewise.
11993
11994 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
11995             Matthew Gingell  <gingell@adacore.com>
11996
11997         * doc/invoke.texi: Mention -fdump-ada-spec.
11998         * tree-dump.c (dump_files): Add ada-spec.
11999         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
12000         * tree-pass.h (tree_dump_index): Add TDI_ada.
12001         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
12002         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
12003         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
12004         * c-decl.c: Include c-ada-spec.h.
12005         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
12006         functions.
12007         (c_write_global_declarations): Add handling of -fdump-ada-spec.
12008         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
12009         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
12010         * c-ada-spec.h, c-ada-spec.c: New files.
12011
12012 2010-06-01  Richard Guenther  <rguenther@suse.de>
12013
12014         PR lto/43853
12015         * ipa-pure-const.c (get_function_state): Hand back varying state
12016         if we do not have one.
12017         (has_function_state): New function.
12018         (duplicate_node_data): Adjust.
12019         (remove_node_data): Likewise.
12020         (pure_const_write_summary): Likewise.
12021         (propagate): Likewise.  Fix typo.
12022
12023 2010-06-01  Jan Hubicka  <jh@suse.cz>
12024
12025         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
12026         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
12027         (execute_all_ipa_transforms): Do not play with the states.
12028
12029 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
12030
12031         * config/arm/t-linux-androideabi: New.
12032         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
12033
12034 2010-06-01  Jan Hubicka  <jh@suse.cz>
12035
12036         * tree-inline.c (estimate_num_insns): For stdarg functions look
12037         into call statement to count cost of argument passing.
12038
12039 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
12040
12041         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
12042         argument for fprintf.
12043         (ix86_output_addr_diff_elt): Likewise.
12044         (x86_function_profiler): Likewise.
12045         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
12046         (LPREFIX): Likewise.
12047         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
12048
12049 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12050
12051         PR target/44338
12052         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
12053         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
12054         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
12055         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
12056         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
12057         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
12058         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
12059         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
12060         TARGET_FUSED_MADD.
12061
12062 2010-05-31  Jan Hubicka  <jh@suse.cz>
12063
12064         * tree.h (tree_range_check_failed): Declare noreturn.
12065
12066 2010-05-31  Jan Hubicka  <jh@suse.cz>
12067
12068         * gimple.c (gimple_call_builtin_p): New function.
12069         * gimple.h (gimple_call_builtin_p): Declare.
12070         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
12071         to exit.
12072         (execute_warn_function_return): BUILT_IN_RETURN is return.
12073         (split_critical_edges): Return edges are not critical.
12074         (is_ctrl_altering_stmt): Builtin_in_return is altering.
12075         (gimple_verify_flow_info): Handle built_in_return.
12076         (execute_warn_function_return): Handle built_in_return.
12077         * ipa-pure-const.c (check_call): Ignore builtin_return.
12078
12079 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
12080
12081         PR middle-end/44337
12082         * expr.c (expand_assignment): Don't store anything for out-of-bounds
12083         array accesses with non-MEM.
12084
12085         PR tree-optimization/44182
12086         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
12087         newly needs to end a bb is followed by debug stmts, instead return
12088         true from the function at the end.
12089         (maybe_move_debug_stmts_to_successors): New function.
12090         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
12091
12092 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
12093
12094         PR target/44161
12095         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
12096
12097 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12098
12099         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
12100         for nested functions in non-optimized compilation.
12101
12102 2010-05-31  Richard Guenther  <rguenther@suse.de>
12103
12104         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
12105
12106 2010-05-30  Jan Hubicka  <jh@suse.cz>
12107
12108         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
12109
12110 2010-05-30  Richard Guenther  <rguenther@suse.de>
12111
12112         PR lto/42975
12113         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
12114         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
12115         no longer needed.
12116
12117 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
12118
12119         * config/darwin.c (output_objc_section_asm_op): Add comment.
12120         (name_needs_quotes): Add '_' to list of valid comment chars.
12121         (machopic_output_function_base_name): Remove unneeded quotes.
12122         (darwin_encode_section_info): Adjust asm whitespace.
12123         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
12124         (ASM_OUTPUT_LOCAL): Ditto.
12125         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
12126         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
12127         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
12128
12129 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12130
12131         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
12132         RS6000_OUTPUT_BASENAME unconditionally.
12133         (rs6000_output_function_epilogue): Likewise.
12134
12135 2010-05-30  Jan Hubicka  <jh@suse.cz>
12136
12137         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
12138         nodes.
12139
12140 2010-05-30  Richard Guenther  <rguenther@suse.de>
12141
12142         * tree-cfg.c (verify_gimple_assign_single): Implement
12143         verification for COND_EXPR rhs.
12144
12145 2010-05-30  Jan Hubicka  <jh@suse.cz>
12146
12147         * cgraph.h (cgraph_dump_file): Declare.
12148         * cgraphunit.c (cgraph_dump_file): Export.
12149         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
12150
12151 2010-05-30  Jan Hubicka  <jh@suse.cz>
12152
12153         * dwarf2out.c (reference_to_unused,
12154         premark_types_used_by_global_vars_helper): Avoid creation of new
12155         varpool nodes.
12156
12157 2010-05-30  Jan Hubicka  <jh@suse.cz>
12158
12159         * cgraph.h (cgraph_node_cannot_return,
12160         cgraph_edge_cannot_lead_to_return): New functions.
12161         * cgraph.c (cgraph_node_cannot_return,
12162         cgraph_edge_cannot_lead_to_return): Use them.
12163         * ipa-pure-const.c (pure_const_names): New static var.
12164         (check_call): Handle calls not leading to return.
12165         (pure_const_read_summary): Dump info read.
12166         (propagate): Dump info about propagation process; ignore side effects
12167         of functions not leading to exit; fix handling of pure functions.
12168
12169 2010-05-30  Jan Hubicka  <jh@suse.cz>
12170
12171         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
12172         for tail call epilogues.
12173
12174 2010-05-30  Jan Hubicka  <jh@suse.cz>
12175
12176         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
12177         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
12178         dump files.
12179
12180 2010-05-29  Jan Hubicka  <jh@suse.cz>
12181
12182         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
12183         node; remove references in node we no longer keep in cgrpah but need
12184         body of.
12185
12186 2010-05-29  Jan Hubicka  <jh@suse.cz>
12187
12188         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
12189
12190 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12191
12192         PR target/44165
12193         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
12194
12195 2010-05-29  Jan Hubicka  <jh@suse.cz>
12196
12197         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
12198         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
12199         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
12200         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
12201         debug_names_replaced_by, debug_update_ssa): Likewise.
12202         * sbitmap.c (debug_sbitmap): Likewise.
12203         * genrecog.c (debug_decision, debug_decision_list): Likewise.
12204         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
12205         debug_tree_chain): Likewise.
12206         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
12207         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
12208         * optabs.c (debug_optab_libfuncs): Likewise.
12209         (verify_loop_closed_ssa): Likewise.
12210         * value-prof.c (verify_histograms): Likewise.
12211         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
12212         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
12213         * cfghooks.c (verify_flow_info): Likewise.
12214         * fold-const.c (debug_fold_checksum): Likewise.
12215         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
12216         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
12217         Likewise.
12218         * omega.c (debug_omega_problem): Likewise.
12219         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
12220         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12221         * dominance.c (verify_dominators, debug_dominance_info,
12222         debug_dominance_tree): Likewise.
12223         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
12224         * df_regno_debug, df_ref_debug,
12225         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
12226         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
12227         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
12228         * sel-sched.c (debug_state): Likewise.
12229         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
12230         Likewise.
12231         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
12232         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
12233         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
12234         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
12235         Likewise.
12236         * c-pretty-print.c (debug_c_tree): Likewise.
12237         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
12238         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
12239         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
12240         * ebitmap.c (debug_ebitmap): Likewise.
12241         * function.c (debug_find_var_in_block_tree): Likewise.
12242         * print-rtl.c (debug_rtx): Likewise.
12243         (debug_rtx_count): Likewise.
12244         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
12245         * stor-layout.c (debug_rli): Likewise.
12246         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
12247         * tree-data-ref.c (debug_data_references,
12248         debug_data_dependence_relations, debug_data_reference,
12249         debug_data_dependence_relation, debug_rdg_vertex,
12250         debug_rdg_component, debug_rdg): Likewise.
12251         * tree-affine.c (debug_aff): Likewise.
12252         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
12253         Likewise.
12254         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
12255         * emit-rtl.c (verify_rtl_sharing): Likewise.
12256         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
12257         debug_value_expressions): Likewise.
12258         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
12259         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
12260         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
12261         * cfglayout.c (verify_insn_chain): Likewise.
12262         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
12263         debug_clast_stmt, debug_generated_program): Likewise.
12264         * ggc-page.c (debug_print_page_list): Likewise.
12265         * tree-ssa-ter.c (debug_ter): Likewise.
12266         * graphite-dependences.c (debug_pddr): Likewise.
12267         * sched-deps.c (debug_ds): Likewise.
12268         * tree-ssa.c (verify_ssa): Likewise.
12269         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
12270         debug_scattering_functions, debug_iteration_domains, debug_pdr,
12271         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
12272         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
12273         * tree-inline.c (debug_find_tree): Likewise.
12274         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
12275         debug_ppl_powerset_matrix): Likewise.
12276         * var-tracking.c (debug_dv): Likewise.
12277         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
12278         * cfgloop.c (verify_loop_structure): Likewise.
12279         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
12280         * c-common.c (verify_sequence_points): Likewise.
12281         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
12282         debug_candidates, debug_rgn_dependencies): Likewise.
12283         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
12284         * debug_constraint_graph, debug_solution_for_var,
12285         debug_sa_points_to_info): Likewise.
12286         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
12287         Likewie.
12288         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
12289         debug_loops, debug_loop, debug_loop_num): Likewise.
12290         * passes.c (debug_pass): Likewise.
12291         (dump_properties): Likewise; add cfglayout property.
12292         (debug_properties): Likewise.
12293         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
12294         * varpool.c (debug_varpool): Likewise.
12295         * regcprop.c (debug_value_data): Likewise.
12296         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
12297         debug_immediate_uses_for): Likewise.
12298
12299 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12300
12301         PR bootstrap/44315
12302         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
12303         Filter out insn-flags.h.
12304
12305 2010-05-29  Jan Hubicka  <jh@suse.cz>
12306
12307         * cgraph.h (struct varpool_node_set_def,
12308         struct cgraph_node_set_def): Remove unused AUX pointer.
12309         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
12310         VEC_empty macro.
12311
12312 2010-05-29  Jan Hubicka  <jh@suse.cz>
12313
12314         PR middle-end/44324
12315         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
12316
12317 2010-05-29  Richard Guenther  <rguenther@suse.de>
12318
12319         * lto-streamer.c (cached_bp): New global variable.
12320         (bitpack_create): Return the cached bitpack, if available.
12321         (bitpack_delete): Clear and cache the bitpack, if appropriate.
12322         (bp_pack_value): Remove redundant asserts.
12323
12324 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12325
12326         PR middle-end/44306
12327         * tree-if-conv.c (is_true_predicate): New.
12328         (is_predicated): Use is_true_predicate.
12329         (add_to_predicate_list): Same.  Do not use unshare_expr.
12330         (add_to_dst_predicate_list): Same.
12331
12332 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
12333
12334         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
12335         field on edges.
12336         (predicate_bbs): Same.
12337         (clean_predicate_lists): Same.
12338         (find_phi_replacement_condition): Do not AND the predicate from
12339         edge->aux.
12340
12341 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12342
12343         PR bootstrap/44315
12344         * Makefile.in (build/gencondmd.o): Add a missing `\'.
12345
12346 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12347
12348         PR target/44261
12349         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
12350         (negdf2): Adjust expander pattern and use negdf2_slow.
12351         (negsf2): Likewise.
12352
12353 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
12354
12355         * basic-block.h (struct control_flow_graph): Move last_label_uid field
12356         up.
12357         * df.h (struct df_base_ref): Move regno field up.
12358         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
12359         * expr.h (struct separate_ops): Move location field up.
12360         * optabs.h (struct optab_d): Move libcall_basename field down.
12361         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
12362         * config/i386/i386.h (struct machine_function): Convert call_abi field
12363         into a bitfield.  Move cfa field to the end of the structure.
12364
12365 2010-05-29  Jan Hubicka  <jh@suse.cz>
12366
12367         * varpool.c (varpool_get_node): Fix lookup.
12368
12369 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12370
12371         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
12372         RTL specific prototypes with #ifdef RTX_CODE.
12373         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
12374         * config/spu/t-spu-elf: Fix dependencies.
12375
12376         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
12377
12378 2010-05-29  Mike Stump  <mikestump@comcast.net>
12379
12380         PR bootstrap/44315
12381         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
12382         TM_H when building to avoid dependency loops.
12383
12384 2010-05-29  Jan Hubicka  <jh@suse.cz>
12385
12386         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
12387         refs and body; not the whole node for masters of materialized clones.
12388
12389 2010-05-29  Mike Stump  <mikestump@comcast.net>
12390
12391         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
12392
12393 2010-05-29  Jan Hubicka  <jh@suse.cz>
12394
12395         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
12396         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
12397         use of clone_function_name.
12398         * cgraph.h (cgraph_create_virtual_clone,
12399         cgraph_function_versioning): update prototypes.
12400         (clone_function_name): Declare.
12401         * ipa-cp.c (ipcp_insert_stage): Update call of
12402         cgraph_create_virtual_clone.
12403         * omp-low.c (create_omp_child_function_name): Use
12404         cgraph_create_virtual_clone.
12405         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
12406         (cgraph_function_versioning): Take SUFFIX argument; produce new name
12407         and make decl local.
12408
12409 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12410
12411         * vec.h: Include statistics.h
12412         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
12413         with VEC_H.
12414
12415 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12416
12417         * c-lex.c: Do not include c-tree.h.
12418         * c-pretty-print.c: Likewise.
12419         * c-opts.c: Likewise.
12420         * c-gimplify.c: Likewise.
12421         * c-common.c: Likewise.
12422         * c-dump.c: Likewise.  Include c-common.h.
12423
12424 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12425
12426         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
12427         before including diagnostic-core.h.
12428         (c_cpp_error): New prototype moved from c-tree.h.
12429         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
12430         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
12431         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
12432         (c_cpp_error): Prototype moved to c-common.h.
12433         * Makefile.in: Update dependency for C_COMMON_H.
12434
12435 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
12436
12437         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
12438         * c-common.c (c_register_addr_space): Remove here.
12439         * c-decl.c (c_register_addr_space): Re-add here.
12440
12441 2010-05-28  Mike Stump  <mikestump@comcast.net>
12442
12443         * config/darwin-c.c: Remove c-tree.h include.
12444
12445 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12446
12447         * gcc.c: Include diagnostic.h.
12448         (error_count): Remove.  All users changed to use errorcount.
12449         (programname): Remove.  All users changed to use progname.
12450         (fancy_abort, internal_error, fatal_error, error, warning, inform,
12451         fnotice): Remove.
12452         (execute): Don't include "Internal error" and bug reporting
12453         information in argument of internal_error call.
12454         (process_command): Don't increment error_count after calling
12455         perror_with_name.
12456         (input_filename): Rename to gcc_input_filename.  All users
12457         changed.
12458         (main): Call diagnostic_initialize.  Register delete_temp_files
12459         with atexit.  Use seen_error to test for errors.
12460         * gcc.h: Include diagnostic-core.h.
12461         (fatal_error, error, warning): Remove.
12462         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
12463         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
12464         (gcc.o): Update dependencies.
12465
12466 2010-05-28  Jeff Law  <law@redhat.com>
12467
12468         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
12469         functions.
12470         * ira.h (ira_bad_reload_regno): Declare
12471         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
12472
12473         * ira-color.c (update_curr_costs): Free updated hard reg costs.
12474         (ira_reassign_conflict_allocnos): Remove bogus asserts.
12475         (allocno_reload_assign): Likewise.
12476
12477 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
12478
12479         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
12480         build1_stat.
12481
12482 2010-05-28  Richard Guenther  <rguenther@suse.de>
12483
12484         PR lto/44312
12485         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
12486         Stream fixed-point constants mode.
12487         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
12488         and TYPE_PRECISION.
12489         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
12490         Stream fixed-point constants mode.
12491         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
12492         and TYPE_PRECISION.
12493
12494 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12495
12496         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
12497         only place it was called from.
12498         (number_of_latch_executions): Do not return chrec_dont_know when the
12499         may_be_zero is a runtime condition: instead, return a COND_EXPR
12500         including the may_be_zero condition.
12501         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
12502         of nb_iterations.
12503         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
12504         COND_EXPRs.
12505
12506 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12507
12508         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
12509         generate COND_EXPRs for degenerate_phi_result.
12510
12511 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
12512
12513         PR middle-end/44293
12514         * tree-if-conv.c (if_convertible_loop_p): Check the
12515         if-convertibility of phi nodes in non predicated BBs.
12516
12517 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12518
12519         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
12520
12521 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12522
12523         PR driver/15303
12524         * gcc.c (inform, warning, inform): New functions.
12525         (fatal_ice): Rename to internal_error; change cmsgid parameter to
12526         gmsgid.  All callers changed.
12527         (notice): Rename to fnotice; add parameter fp.  All callers changed.
12528         (fatal_error): Rename to fatal_signal.  All users changed.
12529         (fatal): Rename to fatal_error; change cmsgid parameter to
12530         gmsgid.  All callers changed.
12531         (process_command): Use warning instead of error for warnings.
12532         (end_going_arg): Don't use _() around argument of error.
12533         (do_spec_1): Use inform for message from %n specs.  Use warning
12534         instead of error for warnings.
12535         (main): Use inform for comparison messages.  Use warning for
12536         message about unused linker input.
12537         (error): Increment error_count.  Print "error: ".
12538         * gcc.h (fatal): Change to fatal_error.
12539         (warning): Declare.
12540         * config/darwin-driver.c (darwin_default_min_version): Use warning
12541         instead of fprintf for warnings.
12542         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
12543
12544 2010-05-28  Julian Brown  <julian@codesourcery.com>
12545
12546         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
12547         (*thumb2_addsi3_compare0_scratch): New.
12548         * config/arm/constraints.md (Pv): New.
12549         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
12550         for ARM mode only.
12551         (*addsi3_compare0_scratch): Likewise.
12552
12553 2010-05-28  Jan Hubicka  <jh@suse.cz>
12554
12555         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
12556         check.
12557         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
12558         only on local statics.
12559
12560 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
12561
12562         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
12563
12564 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12565
12566         PR bootstrap/44314
12567         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
12568         (OPTION_GLIBC): Define.
12569
12570 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12571
12572         PR debug/41048
12573         * dwarf2out.c (double_int_type_size_in_bits): New function.
12574         (round_up_to_align): Change first argument and return value to
12575         double_int.
12576         (field_byte_offset): Work internally on double_ints.
12577
12578         PR target/43636
12579         * builtins.c (expand_movstr): Use a temporary pseudo instead
12580         of target even when target is not NULL and not const0_rtx, but
12581         fails movstr predicate.
12582         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
12583
12584 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
12585
12586         * final.c (rest_of_clean_state): Use %m in errors instead of
12587         strerror (errno).
12588         * gengtype.c (read_input_list, close_output_files): Use xstrerror
12589         instead of strerror.
12590         * toplev.c (process_options): Use %m in errors instead of strerror
12591         (errno).
12592         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
12593         (errno).
12594
12595 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
12596
12597         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
12598         (ix86_canonical_va_list_type): Make static.  Add declaration.
12599         (ix86_enum_va_list): Make static.  Reindent.
12600         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
12601         (ix86_canonical_va_list_type): Ditto.
12602         (ix86_enum_va_list): Ditto.
12603
12604 2010-05-28  Richard Guenther  <rguenther@suse.de>
12605
12606         * lto-wrapper.c (run_gcc): With -save-temps generate a
12607         user-visible ltrans filename.  Fixup ltrans unit numbering.
12608
12609 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
12610
12611         * c-common.c (c_common_nodes_and_builtins): Replace use
12612         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
12613         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
12614         to ix86_enum_va_list.
12615         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
12616         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
12617         (TARGET_ENUM_VA_LIST_P): Add hook description.
12618         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
12619         * target.h (gcc_target): Add enum_va_list hook.
12620
12621         PR bootstrap/44299
12622         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
12623         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
12624         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
12625
12626 2010-05-28  Alan Modra  <amodra@gmail.com>
12627
12628         PR target/44266
12629         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12630         emit_library_call machinery to set up __tls_get_addr calls.
12631
12632 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12633
12634         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
12635
12636 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
12637
12638         Revert fix for PR c++/44188
12639         * c-common.c (is_typedef_decl): Revert the moving of  this
12640         definition ...
12641         * tree.c (is_typedef_decl): ... here.
12642         (typdef_variant_p): Revert the moving of this  definition
12643         here from gcc/cp/tree.c.
12644         * c-common.h (is_typedef_decl): Revert the moving of this
12645         declaration ...
12646         * tree.h (is_typedef_decl): ... here.
12647         (typedef_variant_p): Revert the moving of this  declaration here
12648         from gcc/cp/cp-tree.h
12649         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
12650         (gen_tagged_type_die): Revert the splitting out of ...
12651         (gen_type_die_with_usage): ... this function. Revert the anonymous
12652         tagged type handling.
12653         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
12654         typedefs naming anonymous tagged types.
12655
12656 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12657
12658         * config/rs6000/rs6000-modes.def (PSImode): Delete.
12659
12660 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
12661
12662         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
12663         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
12664         throughout.
12665         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
12666         "xer" to "ca".
12667         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
12668         XER_REGS to CA_REGS throughout.
12669         * config/rs6000/rs6000.h: Same.
12670         (ADDITIONAL_REGISTER_NAMES): Add "xer".
12671         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
12672         that mode_iterator "P" is the size for arithmetic carries as well.
12673         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
12674
12675 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
12676
12677         PR bootstrap/44255
12678         * combine.c (struct rtx_subst_pair): Define unconditionally.
12679         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
12680         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
12681         Call make_compound_operation on pair->to.
12682         (propagate_for_debug): Don't call make_compound_operation here.
12683         Always use simplify_replace_fn_rtx.
12684
12685 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
12686
12687         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
12688         * config/xtensa/xtensa.c (override_options): Check
12689           TARGET_FORCE_NO_PIC and set flag_pic.
12690         * config/xtensa/xtensa.opt: Document -mforce-no-pic
12691
12692 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12693
12694         PR bootstrap/44299
12695         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
12696         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
12697
12698 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12699
12700         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
12701         toplev.h.
12702         * diagnostic.c: Don't include toplev.h.
12703         (progname): Define.  Moved from toplev.c.
12704         (seen_error): New function.
12705         * diagnostic.h: Include diagnostic-core.h.
12706         (diagnostic_t, emit_diagnostic): Don't declare here.
12707         * toplev.c (progname): Move to toplev.c.
12708         (emit_debug_global_declarations, compile_file, finalize,
12709         do_compile, toplev_main): Use seen_error.
12710         * toplev.h: Include diagnostic-core.h.
12711         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
12712         internal_error, warning, warning_at, error, error_n, error_at,
12713         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
12714         verbatim, fnotice, progname): Move to diagnostic-core.h.
12715         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
12716         (expand_builtin_expect): Use seen_error.
12717         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
12718         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
12719         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
12720         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
12721         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
12722         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
12723         errorcount for errors.
12724         * c-opts.c (c_common_finish): Use seen_error.
12725         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12726         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
12727         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
12728         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
12729         (get_coverage_counts): Use seen_error.
12730         * dwarf2out.c (dwarf2out_finish): Use seen_error.
12731         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
12732         gimplify_body): Use seen_error.
12733         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
12734         * ipa-pure-const.c (gate_pure_const): Use seen_error.
12735         * ipa-reference.c (gate_reference): Use seen_error.
12736         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
12737         * lambda-code.c: Include diagnostic-core.h instead of
12738         diagnostic.h.
12739         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
12740         * lto-compress.c: Include diagnostic-core.h instead of
12741         diagnostic.h.
12742         * lto-section-in.c: Include diagnostic-core.h instead of
12743         diagnostic.h.
12744         * lto-streamer-out.c: Include diagnostic-core.h instead of
12745         diagnostic.h.
12746         * lto-streamer.c: Include diagnostic-core.h instead of
12747         diagnostic.h.
12748         (gate_lto_out): Use seen_error.
12749         * matrix-reorg.c: Include diagnostic-core.h instead of
12750         diagnostic.h.
12751         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
12752         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
12753         (gate_expand_omp, lower_omp_1): Use seen_error.
12754         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
12755         (rest_of_decl_compilation, rest_of_type_compilation,
12756         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
12757         * tree-cfg.c (label_to_block_fn): Use seen_error.
12758         * tree-inline.c (optimize_inline_calls): Use seen_error.
12759         * tree-mudflap.c (mudflap_finish_file): Use
12760         seen_error.
12761         * tree-optimize.c (gate_all_optimizations,
12762         gate_all_early_local_passes, gate_all_early_optimizations): Use
12763         seen_error.
12764         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
12765         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
12766         (varpool_remove_unreferenced_decls,
12767         varpool_assemble_pending_decls): Use seen_error.
12768         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
12769         (TOPLEV_H, DIAGNOSTIC_H): Update.
12770         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
12771         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
12772         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
12773         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
12774         coverage.o, lambda-code.o): Update dependencies.
12775
12776 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
12777
12778         PR c++/44188
12779         * c-common.c (is_typedef_decl): Move this definition ...
12780         * tree.c (is_typedef_decl): ... here.
12781         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
12782         * c-common.h (is_typedef_decl): Move this declaration ...
12783         * tree.h (is_typedef_decl): ... here.
12784         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
12785         * dwarf2out.c (is_naming_typedef_decl): New function.
12786         (gen_tagged_type_die): Split out of ...
12787         (gen_type_die_with_usage): ... this function. When an anonymous
12788         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
12789         is emitted for the typedef.
12790         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
12791         anonymous tagged types.
12792
12793 2010-05-27  Jason Merrill  <jason@redhat.com>
12794
12795         * print-tree.c (debug_vec_tree): New fn.
12796         (print_vec_tree): New fn.
12797         * tree.h: Declare them.
12798         * gdbinit.in (pvt): New command.
12799
12800         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
12801
12802         * gdbinit.in (pdd): New command.
12803
12804 2010-05-27  Jan Hubicka  <jh@suse.cz>
12805
12806         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
12807         (update_caller_keys): Return early if there are no callers;
12808         only update fibheap when decresing the key.
12809         (update_callee_keys): Avoid recursion.
12810         (decide_inlining_of_small_functions): When badness does not match;
12811         re-insert into fibheap.
12812
12813 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
12814
12815         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
12816         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
12817         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
12818         (ALL_HOST_OBJS): Now a union of the above two.
12819         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
12820         all files in ALL_HOST_FRONTEND_OBJS.
12821         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
12822
12823         * c-common.c: Pretend to be a backend file by undefining
12824         IN_GCC_FRONTEND (still need rtl.h here).
12825
12826 2010-05-27  Jan Hubicka  <jh@suse.cz>
12827
12828         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
12829         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
12830
12831 2010-05-27  Jan Hubicka  <jh@suse.cz>
12832
12833         * sched-ebb.c: Rename struct deps to struct deps_desc.
12834         * ddg.c: Likewise.
12835         * sel-sched-ir.c: Likewise.
12836         * sched-deps.c: Likewise.
12837         * sched-int.h: Likewise.
12838         * sched-rgn.c: Likewise.
12839
12840 2010-05-27  Jon Beniston  <jon@beniston.com>
12841
12842         PR 43726
12843         * config/lm32/lm32.h: Remove definition of
12844         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
12845
12846 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12847
12848         PR lto/44230
12849         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
12850
12851 2010-05-27  Richard Guenther  <rguenther@suse.de>
12852
12853         PR tree-optimization/44284
12854         * tree-vect-stmts.c (vectorizable_assignment): Handle
12855         sign-changing conversions as simple copy.
12856
12857 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12858
12859         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
12860         Bionic C library.
12861         (__gthread_active_p): Check for pthread_create if compiling against
12862         Bionic C library.
12863
12864 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12865
12866         Support compilation for Android platform.  Reimplement -mandroid.
12867
12868         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
12869         (*android*): Set ANDROID_DEFAULT.
12870         (arm*-*-linux*): Include linux-android.h.
12871         (arm*-*-eabi*): Don't include previous -mandroid implementation.
12872         * config/arm/eabi.h: Remove, move Android-specific parts ...
12873         * config/linux-android.h: ... here.  New file.
12874         * config/arm/eabi.opt: Rename to ...
12875         * config/linux-android.opt: ... this.
12876         (mandroid): Allow -mno-android option.  Initialize based on
12877         ANDROID_DEFAULT.
12878         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
12879         Move logic to corresponding LINUX_TARGET_* macros.
12880         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
12881         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
12882         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
12883         Android definitions.
12884         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
12885         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
12886         Document.
12887
12888 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12889
12890         Add support for Bionic C library
12891
12892         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
12893         macro.
12894         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
12895         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
12896
12897         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
12898         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
12899         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
12900         to support multiple C libraries.  Handle Bionic.
12901         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
12902         (BIONIC_DYNAMIC_LINKER64): Define.
12903         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
12904         Update.
12905         (TARGET_HAS_SINCOS): Enable for Bionic.
12906
12907         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
12908         the last option specified on command line take effect.
12909         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
12910         (mbionic): New.
12911         (mglibc, muclibc): Update.
12912
12913         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
12914         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
12915         DEFAULT_LIBC.
12916
12917         * doc/invoke.texi (-mglibc, -muclibc): Update.
12918         (-mbionic): Document.
12919
12920 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12921
12922         * c-common.h (c_register_addr_space): Add prototype.
12923         (ADDR_SPACE_KEYWORD): Remove.
12924         * c-common.c (c_register_addr_space): New function.
12925         (c_addr_space_name): Reimplement.
12926         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
12927
12928         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
12929         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
12930
12931         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
12932         Remove TARGET_ADDR_SPACE_KEYWORDS.
12933
12934 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
12935
12936         * input.c: New file.
12937         * input.h (main_input_filename): Move declaration to toplev.h.
12938         * toplev.c (input_location, line_table): Move to input.c
12939         * toplev.h (main_input_filename): Move declaration from input.h.
12940         * tree.c (expand_location): Move to input.c.
12941         * Makefile.in (OBJS-common): Add input.o.
12942         (input.o): Add dependencies.
12943
12944 2010-05-27  Richard Guenther  <rguenther@suse.de>
12945
12946         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
12947         for non-existant files.
12948         (fork_execute): Mark args_name file as deleted.
12949
12950 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
12951
12952         PR bootstrp/44287
12953         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
12954         (narrow_signed_type): Likewise.
12955
12956 2010-05-26  Jan Hubicka  <jh@suse.cz>
12957
12958         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
12959         edge only when checking is enabled; check using former_clone_of;
12960         check inline clones too.
12961         (cgraph_materialize_clone): Record former_clone_of pointer.
12962         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
12963         combining redirections; dump args_to_skip bitmap
12964         (cgraph_materialize_all_clones): Do no redirection here.
12965         * ipa-inline.c (inline_transform): Do redirection here.
12966         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
12967         cheking only).
12968
12969 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12970
12971         * config/avr/avr-c.c: Do not include regs.h.
12972         Include cpplib.h for cpp_define and tree.h for c-common.h.
12973         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
12974         * config/avr/t-avr: Fix dependencies for avr-c.o.
12975
12976 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
12977
12978         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
12979         string instead of SYMBOL_REF rtx.
12980         * rtl.h (set_stack_check_libfunc): Move prototype from here...
12981         * libfuncs.h: ...to here.  Adjust for explow.c change.
12982
12983 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
12984
12985         * pretty-print.c: Don't include ggc.h.
12986         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
12987         (identifier_to_locale): Use them for allocation.
12988         * pretty-print.h (identifier_to_locale_alloc,
12989         identifier_to_locale_free): Declare.
12990         * toplev.c (alloc_for_identifier_to_locale): New.
12991         (general_init): Set identifier_to_locale_alloc and
12992         identifier_to_locale_free.
12993         * Makefile.in (pretty-print.o): Update dependencies.
12994
12995 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12996
12997         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
12998         pointer types if they have different alignment or mode.
12999
13000 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
13001
13002         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
13003         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13004         * config/sparc/sparc-protos.h (function_value): Remove declaration.
13005         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
13006         sparc_function_value_regno_p): New functions.
13007         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13008         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13009         (function_value): Rename to...
13010         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
13011         argument to 'outgoing'.
13012         (function_arg_record_value, function_arg_union_value,
13013         function_arg_vector_value): Update comment.
13014
13015 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
13016
13017         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
13018         (fde_needed_for_eh_p): New predicate.
13019         (output_call_frame_info): Use it throughout to decide whether FDEs
13020         are needed for EH purpose.
13021         (dwarf2out_begin_prologue): Reorder assignments.
13022
13023 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13024
13025         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
13026         special case loop->header.
13027         (is_predicated): New.
13028         (if_convertible_loop_p): Call it.
13029
13030 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13031
13032         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
13033         iterator in parameter.  Do not generate code during the analysis.
13034         (tree_if_convert_cond_stmt): Removed.
13035         (tree_if_convert_stmt): Removed.
13036         (predicate_bbs): New.
13037         (if_convertible_loop_p): Call predicate_bbs.
13038         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
13039         now contains all the analysis part.
13040
13041 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13042
13043         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
13044         statements in the analysis part.
13045         (tree_if_convert_stmt): Update comment.
13046         (remove_conditions_and_labels): New.
13047         (combine_blocks): Call remove_conditions_and_labels.
13048         (tree_if_conversion): Update comment.
13049
13050 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13051
13052         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
13053         than 2 predecessors or more than 2 successors.
13054
13055 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13056
13057         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
13058         of loops in which the data dependence analysis fails.
13059
13060 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13061
13062         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
13063         CDI_POST_DOMINATORS.
13064         (tree_if_conversion): Same.
13065
13066 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13067
13068         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
13069
13070 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
13071
13072         * tree-if-conv.c: Update copyright years.  Fix comments.
13073         Fix indentation.
13074
13075 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
13076
13077         * builtin-types.def (BT_INT128): New primitive type.
13078         (BT_UINT128): Likewise.
13079         * c-common.c (c_common_r): Add __int128 keyword.
13080         (c_common_type_for_size): Handle __int128.
13081         (c_common_type_for_mode): Likewise.
13082         (c_common_signed_or_unsigned_type): Likewise.
13083         (c_common_nodes_and_builtins): Add builtin type
13084         if target supports 128-bit integer scalar.
13085         * c-common.h (enum rid): Add RID_INT128.
13086         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
13087         if target supports 128-bit integer scalar.
13088         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
13089         (finish_declspecs): Likewise.
13090         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
13091         (c_token_starts_declspecs): Likewise.
13092         (c_parser_declspecs): Likewise.
13093         (c_parser_attributes): Likewise.
13094         (c_parser_objc_selector): Likewise.
13095         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
13096         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
13097         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
13098         * tree.c (make_or_reuse_type): Likewise.
13099         (make_unsigned_type): Likewise.
13100         (build_common_tree_nodes_2): Likewise.
13101         * tree.h (enum integer_type_kind): Add itk_int128 and
13102         itk_unsigned_int128.
13103         (int128_integer_type_node): New define.
13104         (int128_unsigned_type_node): New define.
13105         * doc/extend.texi: Add documentation about __int128 type.
13106
13107 2010-05-26  Richard Guenther  <rguenther@suse.de>
13108
13109         * tree-ssa-sccvn.c (copy_nary): Adjust.
13110         (copy_phis): Rename to ...
13111         (copy_phi): ... this.  Adjust.
13112         (copy_references): Rename to ...
13113         (copy_reference): ... this.  Adjust.
13114         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
13115         result into the valid table.
13116
13117 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13118
13119         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
13120         insn-config.h, insn-codes.h, recog.h, and optabs.h.
13121
13122 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13123
13124         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
13125
13126 2010-05-26  Richard Guenther  <rguenther@suse.de>
13127
13128         * opts.c (common_handle_option): Handle OPT_Ofast.
13129
13130 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
13131
13132         * diagnostic.c: Don't include opts.h.
13133         (permissive_error_option): Define.
13134         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
13135         for classify_diagnostic.  Don't use memset for
13136         classify_diagnostic.  Initialize new and recently added fields.
13137         (diagnostic_classify_diagnostic): Use context->n_opts instead of
13138         N_OPTS.
13139         (diagnostic_report_diagnostic): Pass context parameter to
13140         diagnostic_report_warnings_p.  Use option_enabled and option_name
13141         hooks from context.
13142         (emit_diagnostic): Use permissive_error_option.
13143         (permerror): Likewise.
13144         * diagnostic.h: Don't include options.h.
13145         (struct diagnostic_context): Add n_opts, opt_permissive,
13146         inhibit_warnings, warn_system_headers, option_enabled and
13147         option_name fields.  Change classify_diagnostic to a pointer.
13148         * opts-diagnostic.h: New file.
13149         * opts.c: Include opts-diagnostic.h.
13150         (common_handle_option): Set global_dc fields for -Wfatal-errors,
13151         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
13152         (option_name): New function.
13153         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
13154         (c_common_handle_option): Set global_dc->permissive for
13155         -fpermissive.
13156         * c-common.c (c_cpp_error): Save and restore
13157         global_dc->warn_system_headers, not variable warn_system_headers.
13158         * toplev.c: Include opts-diagnostic.h.
13159         (general_init): Update call to diagnostic_initialize.  Set
13160         global_dc->show_column, global_dc->option_enabled and
13161         global_dc->option_name.
13162         (process_options): Don't set global_dc fields here.
13163         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
13164         (diagnostic.o, opts.o, toplev.o): Update dependencies.
13165
13166 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
13167
13168         * config/picochip/picochip.md (movsi): Split a movsi from a
13169         const after reload.
13170
13171 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13172
13173         * ggc-zone.c: Update copyright year.
13174         (poison_region): Mark memory for Valgrind as undefined before
13175         memset () call and inaccessible afterwards.
13176         (ggc_pch_total_size): Change type of i to int.
13177
13178 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13179
13180         * ggc-common.c (ggc_free_overhead): Allow empty slot.
13181
13182 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
13183
13184         * ggc-common.c: Update copyright year.
13185         (ggc_rlimit_bound): Remove prototype.  Compile only if
13186         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
13187         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
13188         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
13189         (ggc_min_heapsize_heuristic): Likewise.
13190
13191 2010-05-26  Richard Guenther  <rguenther@suse.de>
13192
13193         PR rtl-optimization/44164
13194         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
13195         no-common access-path disambiguation.
13196         (indirect_ref_may_alias_decl_p): Adjust.
13197         (indirect_refs_may_alias_p): Likewise.
13198         (refs_may_alias_p_1): Likewise.
13199
13200 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13201
13202         * c-typeck.c: Do not include expr.h.
13203
13204 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
13205
13206         * rtl.h (decl_default_tls_model): Move prototype from here...
13207         * output.h: ...to here.
13208         * c-decl.c: Do not include rtl.h.
13209         * c-pragma.c: Likewise.
13210         * c-parser.c: Likewise.
13211         * c-gimplify.c: Likewise.  And also not hard-reg-set.
13212         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
13213         FIXME note for it.  Add a FIXME note for expr.h.
13214         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
13215         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
13216         defined.
13217
13218 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
13219
13220         PR target/44199
13221         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
13222         or total_size is larger than red zone size for non-V4 ABI, emit a
13223         stack_tie resp. frame_tie insn before stack pointer restore.
13224         * config/rs6000/rs6000.md (frame_tie): New insn.
13225
13226 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13227
13228         * function.h (struct function): Add can_throw_non_call_exceptions bit.
13229         * lto-streamer-in.c (input_function): Stream it in.
13230         * lto-streamer-out.c (output_function): Stream it out.
13231         * function.c (allocate_struct_function): Set it.
13232         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
13233         for flag_non_call_exceptions.
13234         * cfgbuild.c (control_flow_insn_p): Likewise.
13235         (make_edges): Likewise.
13236         * cfgexpand.c (expand_stack_alignment): Likewise.
13237         * combine.c (distribute_notes): Likewise.
13238         * cse.c (cse_extended_basic_block): Likewise.
13239         * except.c (insn_could_throw_p): Likewise.
13240         * gcse.c (simple_mem): Likewise.
13241         * ipa-pure-const.c (check_call): Likewise.
13242         (check_stmt ): Likewise.
13243         * lower-subreg.c (lower-subreg.c): Likewise.
13244         * optabs.c (emit_libcall_block): Likewise.
13245         (prepare_cmp_insn): Likewise.
13246         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
13247         * postreload.c (rest_of_handle_postreload): Likewise.
13248         * reload1.c (reload_as_needed): Likewise.
13249         (emit_input_reload_insns): Likewise.
13250         (emit_output_reload_insns): Likewise.
13251         (fixup_abnormal_edges): Likewise.
13252         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
13253         * store-motion.c (find_moveable_store): Likewise.
13254         * tree-eh.c (stmt_could_throw_p): Likewise.
13255         (tree_could_throw_p): Likewise.
13256         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13257         * config/arm/arm.c (arm_expand_prologue): Likewise.
13258         (thumb1_expand_prologue): Likewise.
13259         * config/rx/rx.md (cbranchsf4): Likewise.
13260         (cmpsf): Likewise.
13261         * config/s390/s390.c (s390_emit_prologue): Likewise.
13262         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
13263         (inline_forbidden_into_p): New predicate.
13264         (expand_call_inline): Use it to forbid inlining.
13265         (tree_can_inline_p): Likewise.
13266
13267 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13268
13269         * config/i386/i386-c.c: Do not include rtl.h.
13270         * config/i386/t-i386: Update dependencies.
13271
13272 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13273
13274         * attribs.c: Do not include rtl.h.
13275         * Makefile.in: Update dependencies.
13276
13277 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
13278
13279         * double-int.h (double_int_and): New.
13280         * combine.c (try_combine): Clean up, use double_int_* and
13281         immed_double_int_const functions.
13282
13283 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13284
13285         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
13286         stderr to /dev/null instead of grep -q.
13287         * configure: Regenerate.
13288
13289 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
13290
13291         * Makefile.in (EXCEPT_H): Fix typo.
13292
13293 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
13294
13295         * ira-build.c (update_conflict_hard_reg_costs): New.
13296         (ira_build): Call update_conflict_hard_reg_costs.
13297
13298 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13299
13300         PR debug/41371
13301         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
13302         ENABLE_CHECKING.
13303         (intersect_loc_chains): Walk the s2var's loc_chain together
13304         with s1node chain as long as the locations are equal, don't
13305         call find_loc_in_1pdv in that case.
13306
13307         PR debug/42801
13308         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
13309         (copy_bind_expr): ... instead of here.
13310         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
13311         if the block hasn't been remapped.
13312         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
13313         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
13314
13315 2010-05-25  Richard Guenther  <rguenther@suse.de>
13316
13317         PR middle-end/44069
13318         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
13319         out-of-bounds array accesses.
13320
13321 2010-05-25  Richard Guenther  <rguenther@suse.de>
13322
13323         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
13324         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
13325         (run_gcc): Re-organize to make cleanup easier.
13326
13327 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13328
13329         * config/s390/s390.c (optimization_options): Fix and move the
13330         flag_prefetch_loop_arrays override ...
13331         (override_options): ... here.
13332
13333 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
13334
13335         * diagnostic.c: Don't include plugin.h.
13336         (diagnostic_report_diagnostic): Don't handle plugins specially
13337         here.  Pass context to internal_error callback.
13338         * diagnostic.h (struct diagnostic_context): Add context parameter
13339         to internal_error callback.
13340         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
13341         * plugin.h (struct diagnostic_context): Declare.
13342         (warn_if_plugins, plugins_internal_error_function): Declare.
13343         * toplev.c (general_init): Set global_dc->internal_error.
13344         * Makefile.in (diagnostic.o): Update dependencies.
13345
13346 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
13347
13348         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
13349         * config/rs6000/t-darwin64: New.
13350         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
13351         build crt2.
13352
13353 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
13354
13355         PR 44203
13356         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
13357         match the original (and intended) behaviour before r159557.  This
13358         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
13359         in two ways.
13360
13361 2010-05-25  Richard Guenther  <rguenther@suse.de>
13362
13363         * doc/invoke.texi: Document -Ofast.
13364         * target.h (struct gcc_target): Add handle_ofast.
13365         * target-def.h (TARGET_HANDLE_OFAST): Add.
13366         (TARGET_INITIALIZER): Adjust.
13367         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
13368         * common.opt (Ofast): Add.
13369
13370 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13371
13372         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
13373         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
13374
13375 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
13376
13377         PR target/43610
13378         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
13379         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
13380         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
13381         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
13382
13383 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
13384
13385         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
13386         DW_OP_minus with negated offset instead of DW_OP_plus.
13387         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
13388
13389 2010-05-25  Wei Guozhi  <carrot@google.com>
13390
13391         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
13392         tst instruction and a new alternative.
13393         * config/arm/constraints.md (Pu): New constraint.
13394
13395 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
13396
13397         * function.c (assign_stack_local_1): Initialize variable
13398         to avoid warning when bootstrapping at -O3.
13399
13400 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
13401
13402         * configure.ac (all_lang_makefiles): Remove everything related to it.
13403         * configure: Regenerate.
13404         * Makefile.in: Fix reference to ada Make-lang.in.
13405         Remove support for LANG_MAKEFILES.
13406
13407 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
13408             Sandra Loosemore  <sandra@codesourcery.com>
13409
13410         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
13411         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
13412         description.  Add arm_neon_fp16_ok.
13413         (Add Options): Add arm_neon and arm_neon_fp16.
13414
13415 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
13416
13417         * diagnostic.c: Don't include flags.h.
13418         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
13419         context parameters.  Check flags in the context passed as a parameter.
13420         (diagnostic_build_prefix): Add context parameter.  Check
13421         show_column flag in context.
13422         (diagnostic_action_after_output): Check fatal_errors flag in context.
13423         (diagnostic_report_current_module): Check show_column flag in context.
13424         (default_diagnostic_starter): Update call to
13425         diagnostic_build_prefix.
13426         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
13427         (emit_diagnostic): Pass context to permissive_error_kind.
13428         (permerror): Pass context to permissive_error_kind.
13429         * diagnostic.h (struct diagnostic_context): Add show_column,
13430         pedantic_errors, permissive and fatal_errors fields.
13431         (diagnostic_build_prefix): Update prototype.
13432         * langhooks.c
13433         * toplev.c (process_options): Set flags in global_dc from
13434         flag_show_column, flag_pedantic_errors, flag_permissive,
13435         flag_fatal_errors.
13436         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
13437         to diagnostic_build_prefix.
13438         * Makefile.in (diagnostic.o): Update dependencies.
13439
13440 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
13441
13442         * config/i386/ia32intrin.h (__crc32q): Define only if
13443         __SSE4_2__ is defined.
13444
13445 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
13446
13447         PR target/44132
13448         PR middle-end/43602
13449         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
13450         DECL_VISIBILITY_SPECIFIED.
13451         (emutls_decl): Set DECL_PRESERVE_P and copy
13452         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
13453         (emutls_finalize_control_var): New callback.
13454         (emutls_finish): Finalize emutls control variables.
13455         * toplev.c (compile_file): Move the call to emutls_finish ()
13456         before varpool_assemble_pending_decls ().
13457
13458 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
13459
13460         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
13461         added to the preprocessor condition.
13462
13463 2010-05-24  Paul Brook  <paul@codesourcery.com>
13464
13465         * gengtype-lex.l: Add HARD_REG_SET.
13466         * expr.c (expand_expr_real_1): Record writes to hard registers.
13467         * function.c (rtl_data): Add asm_clobbers.
13468         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
13469         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
13470         Use crtl->asm_clobbers.
13471
13472 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13473
13474         * doc/makefile.texi (Makefile): Mention stages 'profile'
13475         and 'feedback' for profiledbootstrap.
13476
13477 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
13478
13479         PR target/44245
13480         * config/i386/i386.c (def_builtin): Properly check
13481         OPTION_MASK_ISA_64BIT.
13482
13483 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
13484
13485         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
13486         typedefs with different but compatible types.  Allow duplicate
13487         typedefs with the same type except for pedantic non-C1X, but give
13488         warning for variably modified types.
13489         * c-typeck.c (tagged_types_tu_compatible_p,
13490         function_types_compatible_p, type_lists_compatible_p,
13491         comptypes_internal): Add parameter different_types_p; set
13492         *different_types_p for different but compatible types.  All
13493         callers changed.
13494         (comptypes_check_different_types): New.
13495         * c-tree.h (comptypes_check_different_types): Declare.
13496
13497 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13498
13499         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
13500         * jump.c: Include basic-block.h.
13501         * profile.c: Likewise.
13502         * tree-profile.c: Likewise.
13503         * coverage.c: Likewise.
13504         * basic-block.h (optimize_function_for_size_p): Move to function.h.
13505         (optimize_function_for_speed_p): Likewise.
13506         * function.h (optimize_function_for_size_p,
13507         optimize_function_for_speed_p): Moved here from basic-block.h.
13508         * Makefile.in: Update dependencies.
13509
13510 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13511
13512         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
13513         before calling make; allow override through $MAKE.
13514         * doc/invoke.texi (Optimize Options): Document override.
13515
13516 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
13517
13518         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
13519         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13520         (rs6000_mode_dependent_address_ptr): Make static.
13521         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13522         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
13523         Remove.
13524
13525 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
13526
13527         PR target/43869
13528         * config/i386/i386.c: Make sure that the correct regparm is passed.
13529
13530 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
13531
13532         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
13533         * sbitmap.c: ...to here to internalize sbitmap element access.
13534         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
13535         Explain why basic-block.h is included.
13536         * function.h: Include tm.h for CUMULATIVE_ARGS.
13537         * Makefile.in: Update dependencies.
13538
13539 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13540
13541         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
13542         New core types.
13543         * sbitmap.h (struct sbitmap_def): Do not typedef here.
13544         * sbitmap.c: Include sbitmap.h.
13545         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
13546         hard-reg-set.h.  Split everything related to regsets out from here...
13547         * regset.h: ...to here.  New file.
13548         * df.h: Include regset.h and sbitmap.h.
13549         * tree-flow.h: Likewise.
13550         * cfgloop.h: Likewise.
13551         * except.h: Do not include sbitmap.h.  Include hashtab.h.
13552         * cgraph.h: Include vec.h and function.h.
13553         * reload.h (struct insn_chain): Change types of live_throughout
13554         and dead_or_set from regset_head to bitmap_head.
13555         (compute_use_by_pseudos): Be defined also if regset.h is not included.
13556         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
13557         spilled_regs from regset_head to bitmap_head to avoid dependency
13558         in regset.h.
13559         * sel-sched-ir.h: Include regset.h.
13560         * reload.c: Include df.h before reload.h.
13561         * caller-save.c: Likewise.
13562         * reload1.c: Likewise.
13563         * ira.c: Likewise.
13564         (mark_elimination): Update type of r to bitmap, consistent with
13565         DF_LR_IN.
13566         * dominance.c: Include bitmap.h.
13567         * modulo-sched.c: Include df.h.
13568         * cfganal.c: Include bitmap.h and sbitmap.h.
13569         * cfgbuild.c: Include sbitmap.h.
13570         * lcm.c: Include sbitmap.h.
13571         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
13572         * domwalk.c: Include sbitmap.h, exclude ggc.h.
13573         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
13574         * cselib.c: Include bitmap.h.
13575         * tree-optimize.c: Include regset.h.
13576         * stmt.c: Include bitmap.h.
13577         * Makefile.in: Update dependencies.
13578
13579 2010-05-22  Jan Hubicka  <jh@suse.cz>
13580
13581         * cgraph.h (struct varpool_node): Add same_comdat_group.
13582         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
13583         pointer.
13584         (output_varpool): Update call of lto_output_varpool_node.
13585         (input_varpool): Read same_comdat_group pointer.
13586         (input_varpool_1): Fixup same_comdat_group pointer.
13587         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
13588         group is needed, all are.
13589         * varpool.c (varpool_remove_node): Remove node from same comdat group
13590         linklist too.
13591         (varpool_analyze_pending_decls): Walk same comdat groups.
13592
13593 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
13594
13595         * rtl.h (union rtunion_def): Remove rt_bit member.
13596         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
13597         * print-rtl (print_rtx): Do not print the member.
13598         * gengtype.c (adjust_field_rtx_def): Do not handle it.
13599         * gengenrtl.c (type_from_format): Likewise.
13600         (accessor_from_format): Likewise.
13601
13602 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
13603
13604         * dbgcnt.c: Include toplev.h instead of errors.h.
13605         * ira-emit.c: Don't include errors.h.
13606         * ira.c: Include toplev.h instead of errors.h.
13607         * lto-compress.c: Include toplev.h instead of errors.h.
13608         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
13609         ira.o, dbgcnt.o): Update dependencies.
13610
13611 2010-05-22  Richard Guenther  <rguenther@suse.de>
13612
13613         * gimple.c (gimple_types_compatible_p): Check type qualifications
13614         before merging pointer to complete and pointer to incomplete type.
13615         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
13616         we use our own resolution algorithm.  The gold linker plugin
13617         doesn't do the job we want it to do here.
13618
13619 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
13620
13621         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13622         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13623         (sparc_mode_dependent_address_p): New function.
13624
13625 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13626
13627         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
13628
13629         * timevar.c: Do not include any core headers.
13630         (timevar_print): De-i18n-ize.
13631         (print_time): Likewise.
13632         * timevar.h (timevar_push, timevar_pop): Make inline functions.
13633
13634 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
13635
13636         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
13637         langhooks-def.h.
13638         (diagnostic_initialize): Initialize x_data not last_function.
13639         (diagnostic_report_current_function): Move to tree-diagnostic.c.
13640         (default_diagnostic_starter): Call
13641         diagnostic_report_current_module not
13642         diagnostic_report_current_function.
13643         (diagnostic_report_diagnostic): Initialize x_data not
13644         abstract_origin.
13645         (verbatim): Likewise.
13646         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
13647         x_data.
13648         (struct diagnostic_context): Change last_function to x_data.
13649         (diagnostic_auxiliary_data): Replace with
13650         diagnostic_context_auxiliary_data and
13651         diagnostic_info_auxiliary_data.
13652         (diagnostic_last_function_changed, diagnostic_set_last_function,
13653         diagnostic_report_current_function): Move to tree-diagnostic.h.
13654         (print_declaration, dump_generic_node, print_generic_stmt,
13655         print_generic_stmt_indented, print_generic_expr,
13656         print_generic_decl, debug_c_tree, dump_omp_clauses,
13657         print_call_name, debug_generic_expr, debug_generic_stmt,
13658         debug_tree_chain, default_tree_printer): Move to
13659         tree-pretty-print.h.
13660         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
13661         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
13662         gimple-pretty-print.h.
13663         * pretty-print.c: Don't include tree.h
13664         (pp_base_format): Don't handle %K here.
13665         (pp_base_tree_identifier): Move to tree-pretty-print.c.
13666         * pretty-print.h (text_info): Change abstract_origin to x_data.
13667         (pp_tree_identifier, pp_unsupported_tree,
13668         pp_base_tree_identifier): Move to tree-pretty-print.h.
13669         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
13670         tree-pretty-print.h: New files.
13671         * tree-pretty-print.c: Include tree-pretty-print.h.
13672         (percent_K_format): New.  Moved from pretty-print.c.
13673         (pp_base_tree_identifier): Move from pretty-print.c.
13674         * c-objc-common.c: Include tree-pretty-print.h.
13675         (c_tree_printer): Handle %K here.
13676         * langhooks.c: Include tree-diagnostic.h.
13677         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
13678         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
13679         (default_tree_printer): Handle %K using percent_K_format.
13680         (general_init): Use default_tree_diagnostic_starter.
13681         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
13682         (free_lang_data): Use default_tree_diagnostic_starter.
13683         * c-pretty-print.c: Include tree-pretty-print.h.
13684         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13685         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13686         * dwarf2out.c: Include tree-pretty-print.h.
13687         * except.c: Include tree-pretty-print.h.
13688         * gimple-pretty-print.c: Include tree-pretty-print.h and
13689         gimple-pretty-print.h.
13690         * gimplify.c: Include tree-pretty-print.h.
13691         * graphite-poly.c: Include tree-pretty-print.h and
13692         gimple-pretty-print.h.
13693         * ipa-cp.c: Include tree-pretty-print.h.
13694         * ipa-inline.c: Include gimple-pretty-print.h.
13695         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13696         * ipa-pure-const.c: Include gimple-pretty-print.h.
13697         * ipa-struct-reorg.c: Include tree-pretty-print.h and
13698         gimple-pretty-print.h.
13699         * ipa-type-escape.c: Include tree-pretty-print.h.
13700         * print-rtl.c: Include tree-pretty-print.h.
13701         * print-tree.c: Include gimple-pretty-print.h.
13702         * sese.c: Include tree-pretty-print.h.
13703         * tree-affine.c: Include tree-pretty-print.h.
13704         * tree-browser.c: Include tree-pretty-print.h.
13705         * tree-call-cdce.c: Include gimple-pretty-print.h.
13706         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
13707         * tree-chrec.c: Include tree-pretty-print.h.
13708         * tree-data-ref.c: Include tree-pretty-print.h and
13709         gimple-pretty-print.h.
13710         * tree-dfa.c: Include tree-pretty-print.h.
13711         * tree-if-conv.c: Include tree-pretty-print.h and
13712         gimple-pretty-print.h.
13713         * tree-inline.c: Include tree-pretty-print.h.
13714         * tree-into-ssa.c: Include tree-pretty-print.h and
13715         gimple-pretty-print.h.
13716         * tree-nrv.c: Include tree-pretty-print.h.
13717         * tree-object-size.c: Include tree-pretty-print.h and
13718         gimple-pretty-print.h.
13719         * tree-outof-ssa.c: Include tree-pretty-print.h and
13720         gimple-pretty-print.h.
13721         * tree-parloops.c: Include tree-pretty-print.h and
13722         gimple-pretty-print.h.
13723         * tree-predcom.c: Include tree-pretty-print.h and
13724         gimple-pretty-print.h.
13725         * tree-scalar-evolution.c: Include tree-pretty-print.h and
13726         gimple-pretty-print.h.
13727         * tree-sra.c: Include tree-pretty-print.h.
13728         * tree-ssa-address.c: Include tree-pretty-print.h.
13729         * tree-ssa-alias.c: Include tree-pretty-print.h.
13730         * tree-ssa-ccp.c: Include tree-pretty-print.h and
13731         gimple-pretty-print.h.
13732         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
13733         * tree-ssa-copy.c: Include tree-pretty-print.h and
13734         gimple-pretty-print.h.
13735         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
13736         * tree-ssa-dce.c: Include tree-pretty-print.h and
13737         gimple-pretty-print.h.
13738         * tree-ssa-dom.c: Include tree-pretty-print.h and
13739         gimple-pretty-print.h.
13740         * tree-ssa-dse.c: Include gimple-pretty-print.h.
13741         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
13742         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
13743         * tree-ssa-live.c: Include tree-pretty-print.h and
13744         gimple-pretty-print.h.
13745         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
13746         gimple-pretty-print.h.
13747         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
13748         gimple-pretty-print.h.
13749         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
13750         gimple-pretty-print.h.
13751         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
13752         gimple-pretty-print.h.
13753         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
13754         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
13755         * tree-ssa-operands.c: Include tree-pretty-print.h and
13756         gimple-pretty-print.h.
13757         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
13758         gimple-pretty-print.h.
13759         * tree-ssa-pre.c: Include tree-pretty-print.h and
13760         gimple-pretty-print.h.
13761         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
13762         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
13763         gimple-pretty-print.h.
13764         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
13765         gimple-pretty-print.h.
13766         * tree-ssa-sink.c: Include gimple-pretty-print.h.
13767         * tree-ssa-ter.c: Include tree-pretty-print.h and
13768         gimple-pretty-print.h.
13769         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
13770         * tree-ssa.c: Include tree-pretty-print.h and
13771         gimple-pretty-print.h.
13772         * tree-stdarg.c: Include gimple-pretty-print.h.
13773         * tree-switch-conversion.c: Include gimple-pretty-print.h.
13774         * tree-tailcall.c: Include tree-pretty-print.h and
13775         gimple-pretty-print.h.
13776         * tree-vect-data-refs.c: Include tree-pretty-print.h and
13777         gimple-pretty-print.h.
13778         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
13779         gimple-pretty-print.h.
13780         * tree-vect-loop.c: Include tree-pretty-print.h and
13781         gimple-pretty-print.h.
13782         * tree-vect-patterns.c: Include gimple-pretty-print.h.
13783         * tree-vect-slp.c: Include tree-pretty-print.h and
13784         gimple-pretty-print.h.
13785         * tree-vect-stmts.c: Include tree-pretty-print.h and
13786         gimple-pretty-print.h.
13787         * tree-vectorizer.c: Include tree-pretty-print.h.
13788         * tree-vrp.c: Include tree-pretty-print.h and
13789         gimple-pretty-print.h.
13790         * value-prof.c: Include tree-pretty-print.h and
13791         gimple-pretty-print.h.
13792         * var-tracking.c: Include tree-pretty-print.h.
13793         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
13794         (tree-diagnostic.o): New dependencies.
13795         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
13796         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
13797         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
13798         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
13799         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
13800         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
13801         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
13802         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
13803         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
13804         tree-ssa-address.o, tree-ssa-loop-niter.o,
13805         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
13806         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
13807         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
13808         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
13809         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
13810         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
13811         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
13812         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
13813         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
13814         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
13815         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
13816         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
13817         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
13818         tree-switch-conversion.o, var-tracking.o, value-prof.o,
13819         cfgexpand.o, pretty-print.o): Update dependencies.
13820
13821 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
13822
13823         * tree-ssa-structalias.c: Remove tm_p.h from include.
13824
13825 2010-05-21  Jeff Law  <law@redhat.com>
13826
13827         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
13828
13829 2010-05-21  Jason Merrill  <jason@redhat.com>
13830
13831         * tree-eh.c (cleanup_is_dead_in): New.
13832         (lower_try_finally): Don't generate a dead cleanup region.
13833         (lower_cleanup): Likewise.
13834
13835 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13836
13837         PR debug/44223
13838         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
13839         unchain each use from the cyclic next_regno_use chain first.
13840
13841 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13842
13843         * real: Do not include gmp.h, mpfr.h, and mpc.h.
13844         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
13845         (real_value_negate, real_value_abs): New prototypes.
13846         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
13847         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
13848         new include file for interface between MPFR and REAL_VALUE_TYPE.
13849         * real.c: Include realmpfr.h.
13850         (real_arithmetic2): Remove legacy function.
13851         (real_value_negate): New.
13852         (real_value_abs): New.
13853         (mfpr_from_real, real_from_mpfr): Move from here...
13854         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
13855         * builtins.c: Include realmpfr.h.
13856         * fold-const.c: Include realmpfr.h.
13857         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
13858         (fold_negate_const): Likewise.
13859         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
13860         * toplev.c: Include realmpfr.h.
13861         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
13862         and real_value_negate.
13863         * fixed-value.c (check_real_for_fixed_mode): Likewise.
13864         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
13865         (vfp3_const_double_index): Likewise.
13866         (arm_print_operand): Likewise.
13867         * Makefile.in: Update dependencies.
13868
13869 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13870
13871         * config/s390/s390.c (override_options): Increase the default
13872         of max-completely-peel-times.
13873
13874 2010-05-21  Julian Brown  <julian@codesourcery.com>
13875             Mark Mitchell  <mark@codesourcery.com>
13876
13877         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
13878         sibling calls for Thumb-1.
13879         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
13880         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
13881         Thumb-2.
13882         (*call_insn, *call_value_insn): Don't use for Thumb-2.
13883         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
13884         for Thumb-2.
13885         (return): New expander.
13886         (*arm_return): New name for ARM return insn.
13887         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
13888
13889 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
13890
13891         * config.gcc (sparc64-*-rtems*): New target.
13892
13893 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13894
13895         * tree.c (build_function_decl_skip_args): Fix grammar.
13896         (build_function_type_list_1): Fix typos, adjust formatting.
13897
13898 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
13899
13900         * tree.h: Include real.h and fixed-value.h as basic datatypes.
13901         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
13902         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
13903         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
13904         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
13905         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
13906         tree-pretty-print.c, tree-loop-distribution.c,
13907         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
13908         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
13909         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
13910         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
13911         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
13912         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
13913         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
13914         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
13915         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
13916         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
13917         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
13918         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
13919         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
13920         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
13921         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
13922         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
13923         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
13924         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
13925         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
13926         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
13927         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
13928         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
13929         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
13930         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
13931         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
13932         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
13933         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
13934         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
13935         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
13936         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
13937         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
13938         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
13939         config/score/score7.c, config/score/score.c, config/arm/arm.c,
13940         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
13941         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
13942         config/bfin/bfin.c: Clean up redundant includes.
13943         * Makefile.in: Update accordingly.
13944
13945 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
13946
13947         PR middle-end/44204
13948         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
13949         statement has no arguments.
13950
13951 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
13952
13953         PR/44139
13954         * varasm.c (emutls_decl): Merge attributes to new decl.
13955
13956 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13957
13958         PR middle-end/44101
13959         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
13960         around the uniquized constructor if its type requires a conversion.
13961
13962 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
13963
13964         PR debug/44205
13965         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
13966         at -O0 goto_locus of any of the incoming edges differs from
13967         goto_locus of outgoing edge, or gimple_location of any of the
13968         labels differs.
13969
13970 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
13971
13972         * ira.c (ira_non_ordered_class_hard_regs): Define.
13973         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
13974         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
13975         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
13976         cost of unaligned hard regs when allocating multi-reg pseudos.
13977
13978 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
13979
13980         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
13981         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
13982         for TARGET_NO_FLOAT.
13983         * config/mips/mips.c (mips_file_start): Expand conditional expression
13984         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
13985         (mips_override_options): Move -mno-float override -msoft-float and
13986         -mhard-float.
13987         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
13988         Condition(TARGET_SUPPORTS_NO_FLOAT).
13989         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
13990         __mips_no_float here.
13991         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
13992         (TARGET_SUPPORTS_NO_FLOAT): Define.
13993         * config/mips/sdemtk.opt: Delete.
13994
13995 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13996
13997         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
13998
13999 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
14000
14001         PR target/43733
14002         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
14003         * configure: Regenerate.
14004         * config.in: Regenerate.
14005         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
14006         instead of sahf only for 64bit targets.
14007
14008 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14009
14010         PR debug/44178
14011         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
14012         setup_ref_regs for DEBUG_INSNs.
14013
14014 2010-05-20  Jan Hubicka  <jh@suse.cz>
14015
14016         PR middle-end/44197
14017         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
14018
14019 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
14020
14021         PR bootstrap/43870
14022         * df-scan.c (df_ref_compare): Stabilize sort.
14023
14024 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
14025
14026         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
14027         argument.  Don't use DW_OP_piece if offset is non-zero,
14028         put offset into second DW_OP_bit_piece argument.
14029         (dw_sra_loc_expr): Adjust callers.  For memory expressions
14030         compute offset.
14031
14032 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
14033
14034         PR target/44202
14035         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
14036         settings for 16-bit-constant "addo" alternative.
14037
14038 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
14039
14040         * config/mips/mips-dsp.md (add<DSPV:mode>3,
14041         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
14042
14043         PR target/43764
14044         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
14045         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
14046         Use it.
14047
14048 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
14049
14050         * diagnostic.c (FLOAT, FFS): Don't undefine.
14051         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
14052         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
14053         include ordering.
14054
14055 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
14056
14057         * combine.c (propagate_for_debug): Call make_compound_operation
14058         on the source value.
14059         (try_combine): When implementing a split chosen by find_split_point,
14060         either copy i2src or set it to null.  Assert that i2src is not null
14061         before substituting into CALL_INSN_FUNCTION_USAGE.
14062
14063 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
14064
14065         * double-int.h (double_int_ior): New function.
14066         * tree.h (build_int_cst_wide_type): Remove.
14067         * tree.c (build_int_cst_wide_type): Remove.
14068         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
14069         of build_int_cst_wide_type.
14070         * stor-layout.c (set_sizetype): (Ditto.).
14071         * dojump.c (do_jump): Use build_int_cstu instead of
14072         build_int_cst_wide_type.
14073
14074 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14075
14076         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
14077         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
14078         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
14079         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
14080         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
14081         propagate the 'data' argument to copy_tree_r.
14082         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
14083         Propagate 'data' argument to walk_tree.
14084         (copy_if_shared): New function.
14085         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
14086         (unmark_visited): New function.
14087         (unshare_body): Call copy_if_shared instead of doing it manually.
14088         (unvisit_body): Call unmark_visited instead of doing it manually.
14089
14090 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
14091
14092         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
14093         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
14094         * hooks.c: Likewise.
14095         * target-def.h (TARGET_FOLD_BUILTIN): Define to
14096         hook_tree_tree_int_treep_bool_null.
14097         * target.h (struct gcc_target): Update signature of fold_builtin
14098         field.
14099         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
14100         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
14101         instead of the call expression.
14102         (fold_builtin_call_array): Pass n and argarray directly.
14103         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
14104         consing a list.
14105         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
14106         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
14107         `i' and use it in place of `arity'.
14108         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
14109         Dereference `args' directly.
14110         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
14111
14112 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14113
14114         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14115         3dnow, sse3, sse2.
14116         (Directives): Document optional dg-require-effective-target
14117         selector.
14118
14119 2010-05-19  Richard Guenther  <rguenther@suse.de>
14120
14121         PR lto/44196
14122         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
14123
14124 2010-05-19  Richard Guenther  <rguenther@suse.de>
14125
14126         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
14127         * common.opt (fwhopr=): New.
14128         * opts.c (common_handle_option): Handle OPT_fwhopr.
14129         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
14130         * collect2.c (main): Match -fwhopr*.
14131         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
14132         Execute ltrans stage in parallel when jobs is bigger than 1.
14133
14134 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14135
14136         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14137         pentiumpro on Solaris 8/x86 with Sun as.
14138         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
14139         hidden alias bug.
14140         (gcc_cv_as_ix86_quad): Check for .quad directive.
14141         * configure: Regenerate.
14142         * config.in: Regenerate.
14143         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
14144
14145 2010-05-19  Martin Jambor  <mjambor@suse.cz>
14146
14147         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
14148         also for indirect edges.  Actual printing moved...
14149         (ipa_print_node_jump_functions_for_edge): ...here.
14150         (ipa_compute_jump_functions): Renamed to
14151         ipa_compute_jump_functions_for_edge and made static.
14152         (ipa_compute_jump_functions): New function.
14153         (make_edge_direct_to_target): Check if the number of arguments on
14154         the newly direct edge is the same as the number of parametrs of
14155         the callee.
14156         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
14157         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
14158         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
14159         analysis functions unconditionally, call the new
14160         ipa_analyze_params_uses on the node instead of every edge.
14161
14162 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
14163
14164         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
14165         to tree.
14166         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
14167         also checks for a constant int vs.  non-constant but
14168         loop-invariant steps.
14169         (find_or_create_group): Change the sort algorithm to only consider
14170         steps that are constant ints.
14171         (idx_analyze_ref): Adopt code to handle a tree instead of a
14172         HOST_WIDE_INT for step.
14173         (gather_memory_references_ref): Handle tree instead of int and be
14174         prepared to see a NULL_TREE.
14175         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
14176         prefetches if the step cannot be calculated at compile time.
14177         (issue_prefetch_ref): Issue prefetches for non-constant but
14178         loop-invariant steps.
14179
14180 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14181
14182         Revert:
14183         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14184
14185         * tree.h (build_call_list): Remove.
14186         * tree.c (build_call_list): Remove.
14187
14188 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
14189
14190         * tree.h (build_call_list): Remove.
14191         * tree.c (build_call_list): Remove.
14192
14193 2010-05-18  Jan Hubicka  <jh@suse.cz>
14194
14195         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
14196
14197 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
14198
14199         PR rtl-optimization/43332
14200         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
14201
14202 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
14203
14204         * tree.h (build_int_cstu): Implement as static inline.
14205         * tree.c (build_int_cstu): Remove function.
14206         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
14207         sign extended.
14208
14209 2010-05-18  Richard Guenther  <rguenther@suse.de>
14210
14211         PR lto/44143
14212         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
14213         (debug): Initialize from -save-temps.
14214         (collect_execute): Print command-line when verbose.
14215         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
14216         for ltrans invocation.  Produce -dumpbase flag again.
14217         (process_args): Remove.
14218         (main): Simplify.
14219         * collect2.c (maybe_run_lto_and_relink): Only pass object
14220         files to lto-wrapper.
14221         * gcc.c (LINK_COMMAND_SPEC): Likewise.
14222
14223 2010-05-18  Jan Hubicka  <jh@suse.cz>
14224
14225         * opts.c (decode_options): Do not disable whopr at ipa_cp.
14226         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
14227
14228 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14229
14230         PR lto/44184
14231         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
14232         in a GIMPLE_ASM.
14233         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
14234         in a GIMPLE_ASM.
14235
14236 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
14237
14238         PR debug/41371
14239         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
14240         rtx_equal_p inline.
14241
14242 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
14243
14244         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
14245         lto-macho as lto_binary_reader.
14246
14247         * darwin.c (darwin_asm_named_section): Do not add assembler comment
14248         after .section directive; just print it before the directive instead.
14249
14250 2010-05-17  Jan Hubicka  <jh@suse.cz>
14251
14252         * cgraph.c (cgraph_create_virtual_clone): Only check
14253         versionable_function_p when not in wpa and checking is enabled.
14254         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
14255         there are no more functions to materialize.
14256
14257 2010-05-17  Jan Hubicka  <jh@suse.cz>
14258
14259         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
14260         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
14261         New functions.
14262         (output_cgraph): Call output_cgraph_opt_summary.
14263         (input_cgrpah): Call input_cgraph_opt_summary.
14264         (output_cgraph_opt_summary_p, output_node_opt_summary,
14265         input_node_opt_summary, input_cgraph_opt_section): New functions.
14266         * lto-section-in.c (lto_section_name): Add cgraphopt.
14267         * tree-inline.c (tree_function_versioning): Handle parm_num.
14268         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
14269         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
14270
14271 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14272
14273         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
14274         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
14275         the insn to prefetch ratio heuristic to loops with known trip count.
14276
14277 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
14278
14279         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
14280         (schedule_prefetches): Do not generate a prefetch if the unroll factor
14281         is far from what is required by the prefetch.
14282
14283 2010-05-17  Jan Hubicka  <jh@suse.cz>
14284
14285         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
14286         (ipcp_estimate_growth): Likewise.
14287         (ipcp_const_param_count): Likewise.
14288         (ipcp_insert_stage): Likewise.
14289         * ipa-prop.c (visit_load_for_mod_analysis): New function.
14290         (visit_store_addr_for_mod_analysis): Set used flag.
14291         (ipa_detect_param_modifications): Set used flag for SSE params;
14292         update use of walk_stmt_load_store_addr_ops.
14293         (ipa_print_node_params): Print used flag.
14294         (ipa_write_node_info): Stream used flag.
14295         (ipa_read_node_info): Likewise.
14296         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
14297         (ipa_is_param_used): New function.
14298         (lto_ipa_fixup_call_notes): Remove unused declaration.
14299
14300 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14301
14302         PR target/44074
14303         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
14304         * configure: Regenerate.
14305         * config.in: Regenerate.
14306         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
14307         !HAVE_AS_IX86_REP_LOCK_PREFIX.
14308         Don't emit whitespace.
14309         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
14310         (*rep_movsi): Likewise.
14311         (*rep_movsi_rex64): Likewise.
14312         (*rep_movqi): Likewise.
14313         (*rep_movqi_rex64): Likewise.
14314         (*rep_stosdi_rex64): Likewise.
14315         (*rep_stossi): Likewise.
14316         (*rep_stossi_rex64): Likewise.
14317         (*rep_stosqi): Likewise.
14318         (*rep_stosqi_rex64): Likewise.
14319         (*cmpstrnqi_nz_1): Use {%;} after repz.
14320         (*cmpstrnqi_nz_rex_1): Likewise.
14321         (*cmpstrnqi_1): Likewise.
14322         (*cmpstrnqi_rex_1): Likewise.
14323         (*strlenqi_1): Use {%;} after repnz.
14324         (*strlenqi_rex_1): Likewise.
14325         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
14326         (*sync_compare_and_swap<mode>): Likewise.
14327         (sync_double_compare_and_swap<mode>): Likewise.
14328         (*sync_double_compare_and_swapdi_pic): Likewise.
14329         (sync_old_add<mode>): Likewise.
14330         (sync_add<mode>): Likewise.
14331         (sync_sub<mode>): Likewise.
14332         (sync_<code><mode>): Likewise.
14333
14334 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14335
14336         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
14337         otr_token and polymorphic.
14338         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
14339         (cgraph_clone_edge): Copy the above fields.
14340         * tree.c (get_binfo_at_offset): New function.
14341         * tree.h (get_binfo_at_offset): Declare.
14342         * ipa-prop.h (enum jump_func_type): Added known_type jump function
14343         type, reordered items, updated comments.
14344         (union jump_func_value): Added base_type field, reordered fields.
14345         (enum ipa_lattice_type): Moved down in the file.
14346         (struct ipa_param_descriptor): New field polymorphic.
14347         (ipa_is_param_polymorphic): New function.
14348         * ipa-prop.c: Include gimple.h and gimple-fold.h.
14349         (ipa_print_node_jump_functions): Print known type jump functions.
14350         (compute_complex_pass_through): Renamed to...
14351         (compute_complex_assign_jump_func): this.
14352         (compute_complex_ancestor_jump_func): New function.
14353         (compute_known_type_jump_func): Likewise.
14354         (compute_scalar_jump_functions): Create known type and complex ancestor
14355         jump functions.
14356         (ipa_note_param_call): New parameter polymorphic, set the corresponding
14357         flag in the call note accordingly.
14358         (ipa_analyze_call_uses): Renamed to...
14359         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
14360         variable var only in the block where it is used.
14361         (ipa_analyze_virtual_call_uses): New function.
14362         (ipa_analyze_call_uses): Likewise.
14363         (combine_known_type_and_ancestor_jfs): Likewise.
14364         (update_jump_functions_after_inlining): Implemented handling of a
14365         number of new jump function types combination.
14366         (print_edge_addition_message): Removed.
14367         (make_edge_direct_to_target): New function.
14368         (try_make_edge_direct_simple_call): Likewise.
14369         (try_make_edge_direct_virtual_call): Likewise.
14370         (update_call_notes_after_inlining): Renamed to...
14371         (update_indirect_edges_after_inlining): this.  Moved edge creation for
14372         indirect calls to try_make_edge_direct_simple_call, also calls
14373         try_make_edge_direct_virtual_call for virtual calls.
14374         (ipa_print_node_params): Changed the header message.
14375         (ipa_write_jump_function): Stream also known type jump functions.
14376         (ipa_read_jump_function): Likewise.
14377         (ipa_write_indirect_edge_info): Stream new fields in
14378         cgraph_indirect_call_info.
14379         (ipa_read_indirect_edge_info): Likewise.
14380         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
14381         GIMPLE_FOLD_H.
14382
14383 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14384
14385         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
14386
14387 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14388
14389         * tree.h (CALL_EXPR_ARGS): Delete.
14390         (call_expr_arglist): Delete.
14391         * tree.c (call_expr_arglist): Delete.
14392         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
14393         targetm.fold_builtin.
14394         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
14395         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
14396         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
14397         arglist parameter.  Use CALL_EXPR_ARG.
14398         (picochip_expand_builtin_3op): Likewise.
14399         (picochip_expand_builtin_2opvoid): Likewise.
14400         (picochip_expand_array_get): Likewise.
14401         (picochip_expand_array_put): Likewise.
14402         (picochip_expand_array_testport): Likewise.
14403         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
14404         rather than arglist.
14405         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
14406         CALL_EXPR_ARGS.
14407         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
14408         than TREE_VALUE and TREE_CHAIN.
14409         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14410         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
14411         the arglist.
14412
14413 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14414
14415         PR bootstrap/42347
14416         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
14417         to have no fallthru edge.
14418
14419         PR middle-end/44102
14420         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
14421         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
14422         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
14423         add BARRIER after previous bb if needed.
14424
14425 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
14426
14427         * tree.c (build_function_type_list_1): Remove bogus assert condition.
14428
14429 2010-05-17  Alan Modra  <amodra@gmail.com>
14430
14431         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
14432         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
14433         with copy_reg rtx param.
14434         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
14435         Correct cases where code for ABI_V4 did not initialise the reg
14436         used to access frame.  Also leave frame_reg_rtx as sp for large
14437         frames that save no regs.
14438
14439 2010-05-17  Martin Jambor  <mjambor@suse.cz>
14440
14441         PR middle-end/44133
14442         * tree-sra.c (create_access_replacement): New parameter rename, mark
14443         the replaement for renaming only when it is true.
14444         (get_access_replacement): Pass true in the rename parameter of
14445         create_access_replacement.
14446         (get_unrenamed_access_replacement): New function.
14447         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
14448         replacement declaration from it.
14449
14450 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
14451
14452         * function.c (try_fit_stack_local, add_frame_space): New static
14453         functions.
14454         (assign_stack_local_1): Use them.  Look for opportunities to use
14455         space previously wasted on alignment.
14456         * function.h (struct frame_space): New.
14457         (struct rtl_data): Add FRAME_SPACE_LIST member.
14458         * reload1.c (something_was_spilled): New static variable.
14459         (alter_reg): Set it.
14460         (reload): Test it in addition to testing if the frame size changed.
14461
14462 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
14463
14464         * config/s390/s390.c: Define sane prefetch settings and activate
14465         flag_prefetch_loop_arrays on -O3.
14466         * config/s390/s390.h: Declare that read can use write prefetch.
14467
14468 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
14469
14470         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
14471         build.
14472
14473 2010-05-16  Jan Hubicka  <jh@suse.cz>
14474
14475         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
14476         function body; do not check stdarg field of struct function.
14477
14478 2010-05-16  Jan Hubicka  <jh@suse.cz>
14479
14480         * cgraph.c (dump_cgraph_node): Dump versionable flag.
14481         * cgraph.h (cgraph_local_info): Add versionable flag.
14482         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
14483         (ipcp_versionable_function_p): Use it.
14484         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
14485         versionable flag.
14486
14487 2010-05-16  Jan Hubicka  <jh@suse.cz>
14488
14489         * cgraph.c (cgraph_clone_node): Take decl argument and insert
14490         clone into hash when it is different from orig.
14491         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
14492         * cgraph.h (cgraph_clone_node): Update prototype.
14493         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
14494         (lto_cgraph_encoder_delete): Delete body map.
14495         (lto_cgraph_encoder_size): Move to header.
14496         (lto_cgraph_encoder_encode_body_p,
14497         lto_set_cgraph_encoder_encode_body): New.
14498         (lto_output_node): Do not take written_decls argument; output clone_of
14499         pointer.
14500         (add_node_to): Add include_body_argument; call
14501         lto_set_cgraph_encoder_encode_body on master of the clone.
14502         (add_references): Update use of add_node_to.
14503         (compute_ltrans_boundary): Likewise.
14504         (output_cgraph): Do not create written_decls bitmap.
14505         (input_node): Take nodes argument; stream in clone_of correctly.
14506         (input_cgraph_1): Update use of input_node.
14507         * lto-streamer-out.c (lto_output): Use encoder info to decide
14508         what bodies to output.
14509         * ipa-inline.c (cgraph_clone_inlined_nodes,
14510         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
14511         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
14512         (lto_cgraph_encoder_size): Define here.
14513         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
14514         Declare.
14515
14516 2010-05-16  Richard Guenther  <rguenther@suse.de>
14517
14518         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
14519         -fipa-type-escape.
14520         * ipa-type-escape.c (gate_type_escape_vars): Run when
14521         -fipa-struct-reorg runs.
14522         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
14523         * common.opt (fipa-type-escape): Remove.
14524
14525 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14526
14527         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
14528         (decode_options): Likewise.
14529         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
14530
14531 2010-05-16  Jan Hubicka  <jh@suse.cz>
14532
14533         * ipa.c (function_and_variable_visibility): Also bring local all
14534         aliases.
14535
14536 2010-05-16  Richard Guenther  <rguenther@suse.de>
14537
14538         * alias.c (nonoverlapping_memrefs_p): Remove use of
14539         IPA type-escape information.
14540
14541 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
14542
14543         * c-common.c (c_common_reswords): Add _Static_assert for C.
14544         * c-parser.c (c_token_starts_declaration,
14545         c_parser_next_token_starts_declaration,
14546         c_parser_static_assert_declaration_no_semi,
14547         c_parser_static_assert_declaration): New.
14548         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
14549         Handle static assertions if static_assert_ok.
14550         (c_parser_external_declaration, c_parser_declaration_or_fndef,
14551         c_parser_compound_statement_nostart, c_parser_label,
14552         c_parser_for_statement, c_parser_objc_methodprotolist,
14553         c_parser_omp_for_loop): All callers of
14554         c_parser_declaration_or_fndef changed.
14555         (c_parser_struct_declaration): Handle static assertions.
14556         (c_parser_compound_statement_nostart): Use
14557         c_parser_next_token_starts_declaration and
14558         c_token_starts_declaration to detect start of declarations.
14559         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
14560         Likewise.
14561
14562 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
14563
14564         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
14565         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14566         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14567         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14568         (mmix_function_outgoing_value): Rename to...
14569         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
14570         (mmix_function_value_regno_p): Make static.
14571         (mmix_libcall_value): New function.
14572         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
14573         mmix_function_value_regno_p): Remove declaration.
14574
14575 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14576
14577         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
14578         BUILT_IN_ALLOCA if stack checking is enabled.
14579
14580 2010-05-16  Richard Guenther  <rguenther@suse.de>
14581
14582         * var-tracking.c (vars_copy_1): Inline ...
14583         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14584         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
14585         (variable_merge_over_cur): Adjust.  Merge asserts.
14586         (variable_merge_over_src): Likewise.
14587         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
14588         (variable_post_merge_new_vals): Merge asserts.
14589         (variable_post_merge_perm_vals): Likewise.
14590         (find_mem_expr_in_1pdv): Likewise.
14591         (dataflow_set_different_value): Remove.
14592         (onepart_variable_different_p): Merge asserts.
14593         (variable_different_p): Likewise.
14594         (dataflow_set_different_1): Inline ...
14595         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
14596         (emit_notes_for_differences_1): Merge asserts.
14597
14598 2010-05-16  Richard Guenther  <rguenther@suse.de>
14599
14600         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
14601         * optabs.c (libfunc_decl_hash): Likewise.
14602         * varasm.c (emutls_decl): Likewise.
14603
14604 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
14605
14606         * c-decl.c: Don't include gimple.h.
14607         (merge_decls): Do not copy gimple_body.
14608
14609 2010-05-15  Jason Merrill  <jason@redhat.com>
14610
14611         * c.opt: Add -fnothrow-opt.
14612
14613 2010-05-15  Jan Hubicka  <jh@suse.cz>
14614
14615         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
14616         analyzed.
14617         * passes.c (ipa_write_summaries): Write all analyzed nodes.
14618
14619 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
14620
14621         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
14622         * Makefile.in: Add it.
14623         Fix all other Makefile dependencies for changes below.
14624         * tree.h: Include it instead of defining VEC primitives here.
14625         * gimple.h: Likewise.
14626         * rtl.h: Likewise.
14627         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
14628         * except.h: Include vecir.h, break dependence on tree.h.
14629
14630         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
14631         Move from here...
14632         * tree-iterator.c: ...to here.
14633         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
14634
14635         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
14636         tm_p.h.
14637         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
14638         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
14639         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
14640         tree-mudflap.h, and target.h.
14641         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
14642         predict.h, tree-inline.h, gimple.h, and langhooks.h.
14643         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
14644         Add FIXME for why gimple.h is still included (should be unnecessary
14645         since GCC 4.5 gimplification unit-at-a-time).
14646         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
14647         * c-pragma.c: Add FIXME for why function.h needs to be included just
14648         for cfun, at front-end level.
14649         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
14650         Do not include ggc.h, but include vecprim.h for VEC(char).
14651         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
14652         Explain why target.h is included.
14653         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
14654         Explain why gimple.h is included.
14655         * c-ppoutput.c: Do not include tm.h.
14656         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
14657         * c-parses.c: Explain why rtl.h is included, and that this (and only
14658         this) is also why tm.h must be included.
14659         Do not include except.h.
14660         * c-lang.c: Do not include ggc.h.
14661
14662 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
14663
14664         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
14665
14666 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
14667
14668         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
14669         unions by default if those structs and unions have no tags.  Do
14670         not condition anonymous struct and unions handling on flag_iso.
14671         Allow anonymous structs and unions for C1X.
14672         (finish_struct): Do not diagnose lack of named fields when
14673         anonymous structs and unions present for C1X.  Accept flexible
14674         array members in structure with anonymous structs or unions but no
14675         directly named fields.
14676         * doc/extend.texi (Unnamed Fields): Update.
14677
14678 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
14679
14680         * gimple.h (compare_field_offset): Rename into...
14681         (gimple_compare_field_offset): ...this.
14682         * gimple.c (compare_field_offset): Rename into...
14683         (gimple_compare_field_offset): ...this.  Compare the full access if
14684         the offset is self-referential.
14685         (gimple_types_compatible_p): Adjust for above renaming.
14686         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
14687         DECL_NONADDRESSABLE_P flag of fields before merging them.
14688
14689 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
14690
14691         * tree.h (ctor_to_list): Delete.
14692         * tree.c (ctor_to_list): Delete.
14693
14694 2010-05-15  Jan Hubicka  <jh@suse.cz>
14695
14696         * ipa-reference.c: Include toplev.h
14697         (is_proper_for_analysis): Only add to all_module_statics
14698         if it is allocated.
14699         (write_node_summary_p, stream_out_bitmap,
14700         ipa_reference_write_optimization_summary,
14701         ipa_reference_read_optimization_summary): New.
14702         (struct ipa_opt_pass_d pass_ipa_reference): Add
14703         optimization summary streaming.
14704         * lto-cgraph.c (referenced_from_this_partition_p,
14705         reachable_from_this_partition_p): New functions.
14706         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
14707         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
14708         * opts.c (decode_options): Enable ipa_reference.
14709         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
14710         * lto-streamer.h (referenced_from_this_partition_p,
14711         reachable_from_this_partition_p): Declare.
14712
14713 2010-05-15  Richard Guenther  <rguenther@suse.de>
14714
14715         PR tree-optimization/44038
14716         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
14717         taking the address of a V_C_E of a constant.
14718
14719 2010-05-14  Jan Hubicka  <jh@suse.cz>
14720
14721         * tree.h (memory_identifier_string): Remove.
14722         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
14723         (ipa_reference_global_vars_info_d): Remove statics_not_read and
14724         statics_not_written.
14725         (ipa_reference_optimization_summary_d): New structure.
14726         (ipa_reference_optimization_summary_t): New type and vector.
14727         (ipa_reference_vars_info_d): Embedd structures instead of using
14728         pointers.
14729         (reference_vars_to_consider): Remove out of GGC space.
14730         (module_statics_escape): Remove.
14731         (global_info_obstack): Rename to ...
14732         (optimization_summary_obstack): ... this one.
14733         (initialization_status_t): Remove.
14734         (memory_identifier_string): Remove.
14735         (get_reference_vars_info): Fix indenting.
14736         (set_reference_vars_info): Likewise.
14737         (get_reference_optimization_summary): New.
14738         (set_reference_optimization_summary): New.
14739         (get_global_reference_vars_info): Remove.
14740         (ipa_reference_get_read_global): Remove.
14741         (ipa_reference_get_written_global): Remove.
14742         (ipa_reference_get_not_read_global): Update.
14743         (ipa_reference_get_not_written_global): Update.
14744         (is_proper_for_analysis): Outlaw addressable.
14745         (propagate_bits): Update for new datastructures.
14746         (analyze_variable): Remove.
14747         (init_function_info): Update for new datastructures.
14748         (clean_function_local_data): Remove.
14749         (clean_function): Remove.
14750         (copy_global_bitmap): Use optimizations_summary_obstack.
14751         (duplicate_node_data): Duplicate optimization summary only.
14752         (remove_node_data): Remove optimization summary only.
14753         (generate_summary): Do not analyze variables; do not compute
14754         module_statics_escape; do not prune solutions by it.
14755         (read_write_all_from_decl): Fix typos in comments.
14756         (propagate): Doscover readonly and nonaddressable first;
14757         update for new datastructures; share global bitmaps.
14758         * ipa-reference.h (ipa_reference_get_read_global,
14759         ipa_reference_get_written_global): Remove.
14760         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
14761         * Makefile.in: Remove ipa-refereference from GT files.
14762
14763 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14764
14765         PR debug/44112
14766         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
14767         for all SYMBOL_REF_DECLs.
14768
14769 2010-05-14  Jan Hubicka  <jh@suse.cz>
14770
14771         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
14772         (varpool_all_refs_explicit_p): New inline function.
14773         * ipa-reference.c: Update comment.
14774         (module_statics_written): Remove.
14775         (get_static_decl): Remove.
14776         (ipa_init): Do not initialize module_statics_written.
14777         (analyze_function): Likewise.
14778         (generate_summary): Likewise; do not compute module_statics_readonly
14779         and do not update variable flags.
14780         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
14781         * ipa.c: Inlucde flags.h
14782         (cgraph_local_node_p): New.
14783         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
14784         promote functions to local.
14785         (ipa_discover_readonly_nonaddressable_vars): New function.
14786         (function_and_variable_visibility): Use cgraph_local_node_p.
14787         * varpool.c (varpool_finalize_decl): Set force_output for
14788         DECL_PRESERVE_P vars.
14789
14790 2010-05-14  Jan Hubicka  <jh@suse.cz>
14791
14792         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
14793
14794 2010-05-14  Richard Guenther  <rguenther@suse.de>
14795
14796         PR tree-optimization/44119
14797         * tree-ssa-pre.c (eliminate): Properly mark replacement of
14798         a PHI node necessary.
14799
14800 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
14801
14802         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
14803
14804 2010-05-14  Jason Merrill  <jason@redhat.com>
14805
14806         PR c++/44127
14807         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
14808         (gimple_call_set_nothrow): New.
14809         * gimple.c (gimple_build_call_from_tree): Call it.
14810         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
14811
14812         PR c++/44127
14813         * gimplify.c (gimplify_seq_add_stmt): No longer static.
14814         * gimple.h: Declare it.
14815         * gimple.c (gimple_build_eh_filter): No ops.
14816
14817 2010-05-14  Jan Hubicka  <jh@suse.cz>
14818
14819         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
14820         nodes already in queue.
14821         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
14822         re-enqueueing node.
14823
14824 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
14825
14826         PR debug/44136
14827         * cfgexpand.c (expand_debug_expr): If non-memory op0
14828         has BLKmode, return NULL.
14829
14830 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
14831
14832         * config.gcc: Add support for --with-cpu option for bdver1.
14833         * config/i386/i386.h (TARGET_BDVER1): New macro.
14834         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
14835         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14836         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
14837         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
14838         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
14839         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
14840         (processor_type): Add PROCESSOR_BDVER1.
14841         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
14842         processor_type in config/i386/i386.h.
14843         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
14844         movaps <reg, reg> instead of movapd <reg, reg> when replacing
14845         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
14846         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
14847         to emit packed xor instead of packed double/packed integer
14848         xor for SSE and AVX when moving a zero value.
14849         * config/i386/sse.md: Add check for
14850         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
14851         movapd/movdqa for SSE and AVX.
14852         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
14853         single logical operations i.e and, or and xor instead of packed double
14854         logical operations for SSE and AVX.
14855         * config/i386/i386-c.c (ix86_target_macros_internal):
14856         Add PROCESSOR_BDVER1.
14857         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
14858         (has_fma4, has_xop): New.
14859         * config/i386/i386.c (bdver1_cost): New variable.
14860         (m_BDVER1): New macro.
14861         (m_AMD_MULTIPLE): Add m_BDVER1.
14862         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
14863         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
14864         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
14865         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
14866         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
14867         x86_tune_sse_partial_reg_dependency,
14868         x86_tune_sse_unaligned_load_optimal,
14869         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
14870         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
14871         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
14872         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
14873         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
14874         Enable/disable for bdver1.
14875         (processor_target_table): Add bdver1_cost.
14876         (cpu_names): Add bdver1.
14877         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
14878          processor_alias_table.
14879         (ix86_expand_vector_move_misalign): Change.
14880         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
14881         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
14882         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
14883         of movupd/movdqu for SSE and AVX.
14884         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
14885         (ix86_tune_adjust_cost): Add code for bdver1.
14886         (standard_sse_constant_opcode): Add check for
14887         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
14888         of packed double xor for SSE and AVX.
14889
14890 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
14891
14892         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
14893         result to unsigned.
14894
14895 2010-05-14  Tristan Gingold  <gingold@adacore.com>
14896
14897         * toplev.c (default_debug_hooks): Remove this variable.
14898         (process_options): Remove assignments to default_debug_hooks.
14899
14900 2010-05-14  Martin Jambor  <mjambor@suse.cz>
14901
14902         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
14903         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
14904         * langhooks.h (struct lang_hooks_for_decls): Removed field
14905         fold_obj_type_ref.
14906         * tree.c (free_lang_data): Remove assignment to
14907         lang_hooks.fold_obj_type_ref.
14908         * tree.def (OBJ_TYPE_REF): Update comment.
14909
14910 2010-05-14  Richard Guenther  <rguenther@suse.de>
14911
14912         PR tree-optimization/44124
14913         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
14914
14915 2010-05-14  Alan Modra  <amodra@gmail.com>
14916
14917         PR target/44075
14918         * config/rs6000/rs6000.c (struct machine_function): Reorder
14919         fields for better packing.  Add lr_save_state.
14920         (rs6000_ra_ever_killed): Return lr_save_state if set.
14921         (rs6000_emit_eh_reg_restore): Set lr_save_state.
14922
14923 2010-05-13  Jan Hubicka  <jh@suse.cz>
14924
14925         * varpool.c (decide_is_variable_needed): Drop code checking
14926         TREE_SYMBOL_REFERENCED.
14927
14928 2010-05-13  Jan Hubicka  <jh@suse.cz>
14929
14930         * final.c (output_addr_const): Do not call mark_decl_referenced.
14931         * cgraphunit.c (process_function_and_variable_attributes): Use
14932         mark_needed_node dirrectly.
14933         (assemble_thunk): Do not call mark_decl_referenced.
14934
14935 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
14936
14937         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
14938
14939 2010-05-13  Jeff Law  <law@redhat.com>
14940
14941         * ira-conflicts.c (print_allocno_conflicts): New function broken out
14942         from...
14943         (print_conflicts): Call print_allocno_conflicts.
14944
14945 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14946
14947         PR debug/44104
14948         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
14949         if it is NULL.
14950
14951 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
14952
14953         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
14954         t-mingw-w64 or t-mingw-w32 for multilib configuration.
14955         * config/i386/t-mingw-w32: New.
14956         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
14957
14958 2010-05-13  Martin Jambor  <mjambor@suse.cz>
14959
14960         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
14961         gimple-fold.c).
14962         * gimple-fold.c (get_base_binfo_for_type): New function.
14963         (gimple_get_relevant_ref_binfo): Likewise.
14964         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14965         (gimple_fold_obj_type_ref): Likewise.
14966         (fold_gimple_call): Simplify condition for folding virtual calls
14967         and call gimple_fold_obj_type_ref.
14968         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
14969         (gimple_fold_obj_type_ref_known_binfo): Likewise.
14970
14971 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
14972
14973         * config/rs6000/rs6000-protos.h
14974         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
14975         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
14976         (rs6000_debug_mode_dependent_address)
14977         (rs6000_mode_dependent_address_ptr): Likewise.
14978
14979 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
14980
14981         PR debug/43983
14982         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
14983         by SRA.
14984         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
14985         * tree-sra.c (create_access_replacement): Call unshare_expr before
14986         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
14987         * dwarf2out.c: Include tree-flow.h.
14988         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
14989         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
14990         Handle DW_OP_bit_piece.
14991         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
14992         construct_piece_list, adjust_piece_list): New functions.
14993         (add_var_loc_to_decl): Handle SRA optimized variables.
14994         Adjust for var_loc_note to loc field renaming.
14995         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
14996         in VAR_LOCATION note.
14997         (new_loc_descr_op_bit_piece): New function.
14998         (dw_sra_loc_expr): New function.
14999         (dw_loc_list): Use it.  Don't handle the last range after the
15000         loop, handle it inside of the loop.  Adjust for var_loc_note
15001         to loc field renaming.
15002         (add_location_or_const_value_attribute): Only special case
15003         single entry loc lists if loc is NOTE_P.  Adjust for
15004         var_loc_note to loc field renaming.
15005         (dwarf2out_var_location): Don't set newloc->var_loc_note
15006         and newloc->next here.
15007
15008 2010-05-12  Jan Hubicka  <jh@suse.cz>
15009
15010         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
15011         flag.
15012         * cgraph.h (cgraph_only_called_directly_p,
15013         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
15014         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
15015         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
15016         (assemble
15017         * ipa.c (cgraph_remove_unreachable_nodes): Use
15018         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
15019         flags.
15020         * tree-inline.c (copy_bb): Check address_taken flag.
15021         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
15022         externally_visible flag.
15023
15024 2010-05-12  Jason Merrill  <jason@redhat.com>
15025
15026         PR bootstrap/44048
15027         PR target/44099
15028         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
15029         * sdbout.c (plain_type_1): Likewise.
15030         * dwarf2out.c (is_base_type): Likewise.
15031         (gen_type_die_with_usage): Likewise.  Generate
15032         DW_TAG_unspecified_type for any LANG_TYPE.
15033
15034 2010-05-12  Jan Hubicka  <jh@suse.cz>
15035
15036         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
15037         indrect edges too.
15038         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
15039         (cgraph_clone_edge): Update.
15040         (cgraph_node_remove_callees): Remove indirect calls too.
15041         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
15042         (cgraph_create_indirect_edge): Update prototype.
15043         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
15044         is_proper_for_analysis.
15045         (add_new_function, visited_nodes, function_insertion_hook_holder,
15046         get_local_reference_vars_info, mark_address_taken, mark_address,
15047         mark_load, mark_store, check_asm_memory_clobber, check_call,
15048         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
15049         (ipa_init): Do not initialize visited_nodes;
15050         function_insertion_hook_holder.
15051         (analyze_variable): Rewrite.
15052         (analyze_function): Rewrite.
15053         (copy_local_bitmap): Remove.
15054         (duplicate_node_dat): Do not duplicate local info.
15055         (generate_summary): Simplify to only walk cgraph.
15056         (write_node_summary_p, ipa_reference_write_summary,
15057         ipa_reference_read_summary): Remove.
15058         (propagate): Do not remove function insertion;
15059         generate summary.
15060         (pass_ipa_reference): NULLify summary handling fields.
15061         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
15062         (input_edge): Input ecf_flags.
15063         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
15064         (update_indirect_edges_after_inlining): Ignore edges with unknown
15065         param.
15066
15067 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
15068
15069         * implicit-zee.c: New file.
15070         * tree-pass.h (pass_implicit_zee): Declare.
15071         * passes.c (init_optimization_passes): Add zee pass.
15072         * common.opt (fzee): New flag.
15073         * timevar.def (TV_ZEE): Define.
15074         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
15075         and beyond.
15076         * Makefile.in (implicit-zee.o): Add new build file.
15077
15078 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15079             Nathan Froyd  <froydnj@codesourcery.com>
15080
15081         * c-common.c (sync_resolve_params): Remove write-only variable.
15082
15083 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
15084
15085         * target.h (struct gcc_target): Add mode_dependent_address_p field.
15086         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15087         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
15088         * targhooks.c (default_mode_dependent_address_p): New function.
15089         * targhooks.h (default_mode_dependent_address_p): Declare function.
15090         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
15091         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
15092         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
15093         target hook. Change return type to bool.
15094         * recog.h (mode_dependent_address_p): Change return type to bool.
15095
15096 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15097             Nathan Froyd  <froydnj@codesourcery.com>
15098
15099         * tree-mudflap.c (build_function_type_0, build_function_type_1,
15100         build_function_type_2, build_function_type_3): Remove.
15101         (mudflap_init): Use build_function_type_list.
15102
15103 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
15104             Nathan Froyd  <froydnj@codesourcery.com>
15105
15106         * coverage.c (build_fn_info_value): Call build_constructor instead of
15107         build_constructor_from_list.
15108         (build_ctr_info_value): Likewise.
15109         (build_gcov_info): Likewise.
15110
15111 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
15112
15113         * tree.c (build_constructor): Compute TREE_CONSTANT for the
15114         resultant constructor.
15115         (build_constructor_single): Don't set TREE_CONSTANT.
15116         (build_constructor_from_list): Don't compute TREE_CONSTANT.
15117
15118 2010-05-12  Jan Hubicka  <jh@suse.cz>
15119
15120         * cgraph.h (struct varpool_node): Add aux.
15121         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
15122         * varpool.c (varpool_remove_node): Do not remove initializer.
15123         (varpool_reset_queue): Export.
15124         (varpool_finalize_decl): Volatile vars are forced to be output.
15125         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
15126         replaced decl.
15127         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
15128         process_references, varpool_can_remove_if_no_refs): New functions.
15129         (cgraph_remove_unreachable_nodes): Handle variables too.
15130
15131 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15132
15133         PR target/44088
15134         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
15135
15136 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
15137
15138         PR middle-end/44085
15139         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
15140         change value of ORT_TASK.
15141         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
15142         (omp_notice_threadprivate_variable): New function.
15143         (omp_notice_variable): Call it for threadprivate variables.
15144         If enclosing ctx is a task, print enclosing task rather than
15145         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
15146         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
15147         if task has untied clause.
15148
15149         PR debug/42278
15150         * dwarf2out.c (base_type_die): Don't add name attribute here.
15151         (modified_type_die): Instead of sizetype use
15152         its underlying original type.  If a DW_TAG_base_type doesn't
15153         have name added, add __unknown__.
15154         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
15155         always call force_type_die instead.
15156
15157 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
15158
15159         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
15160         for __stack_chk_guard.
15161
15162 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15163
15164         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
15165         don't call start_source_file debug hook here...
15166         (finish_options): ... but here, after outputting predefined and
15167         command line defines and undefs.
15168
15169         PR middle-end/44071
15170         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
15171         no fallthru edge.
15172         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
15173         optimizing away empty bb with no successors, move over its
15174         footer chain to fallthru predecessor.
15175         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
15176         (rtl_split_edge): For asm goto call patch_jump_insn even if
15177         splitting fallthru edge.
15178
15179         PR c++/44059
15180         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
15181         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
15182         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
15183         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
15184         on DW.ref.* decls.
15185
15186         PR c++/44062
15187         * c-parser.c (c_parser_expression): Mark LHS of a comma
15188         expression as read if it is a decl, handled component or
15189         COMPOUND_EXPR with that on the RHS.
15190         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
15191         if it is a decl or handled component.
15192
15193 2010-05-11  Jan Hubicka  <jh@suse.cz>
15194
15195         * lto-symtab.c (lto_symtab_free): New function.
15196         * lto-streamer.h (lto_symtab_free): Declare.
15197
15198 2010-05-11  Jan Hubicka  <jh@suse.cz>
15199
15200         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
15201         that if function is needed it is reachable.
15202         (lto_output_node): See if it the function is reachable or referenced.
15203         (output_cgraph): Update call of lto_output_node.
15204         * lto-streamer.h (reachable_from_other_partition_p): Declare.
15205
15206 2010-05-11  Jan Hubicka  <jh@suse.cz>
15207
15208         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
15209         Mark as used.
15210
15211 2010-05-11  Jan Hubicka  <jh@suse.cz>
15212
15213         PR tree-optimize/44063
15214         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
15215         queue.
15216         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
15217         limits.
15218         (estimate_function_body_sizes): Compute sizes even when disregarding.
15219
15220 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
15221
15222         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
15223
15224 2010-05-11  Jan Hubicka  <jh@suse.cz>
15225
15226         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
15227         into every boundary.
15228
15229 2010-05-11  Jan Hubicka  <jh@suse.cz>
15230
15231         * matrix-reorg.c (matrix_reorg): Rebuild edges.
15232
15233 2010-05-11  Jan Hubicka  <jh@suse.cz>
15234
15235         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
15236         lto_streamer_cache_delete): Put nodes into heap.
15237         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
15238         heap.
15239
15240 2010-05-11  Jan Hubicka  <jh@suse.cz>
15241
15242         * cgraphbuild.c (cgraph_rebuild_references): New.
15243         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
15244         out extern inlines.
15245         * cgraph.h (cgraph_rebuild_references): Declare.
15246         * tree-inline.c (tree_function_versioning): Use it.
15247         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
15248
15249 2010-05-11  Jan Hubicka  <jh@suse.cz>
15250
15251         * cgraph.c: Include ipa-utils.h
15252         (cgraph_create_virtual_clone): Update references.
15253         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
15254
15255 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15256
15257         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
15258         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
15259         cache size.
15260
15261 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
15262
15263         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
15264
15265 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
15266
15267         * gcc.c (execute): For -### don't quote arguments that
15268         contain just alphanumerics and _/-. characters.
15269         * doc/invoke.texi: Document that change for -###.
15270
15271         PR debug/44023
15272         * df-problems.c (struct dead_debug): Add to_rescan field.
15273         (dead_debug_init): Clear to_rescan field.
15274         (dead_debug_finish): Rescan all debug insns in to_rescan
15275         bitmap and free the bitmap.
15276         (dead_debug_insert_before): Instead of rescanning debug insns
15277         immediately queue their rescanning until dead_debug_finish.
15278         (df_note_bb_compute): After dead_debug_add do continue instead
15279         of break.
15280
15281 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
15282
15283         PR debug/44028
15284         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
15285         clear also INSN_REG_USE_LIST.
15286
15287 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15288
15289         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
15290
15291 2010-05-10  Jan Hubicka  <jh@suse.cz>
15292
15293         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
15294         commited change.
15295
15296 2010-05-10  Jan Hubicka  <jh@suse.cz>
15297
15298         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
15299         Allocate encoders.
15300         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
15301         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
15302         (lto_streamer_cache_create): Init alloc pool.
15303         (lto_streamer_cache_delete): Free alloc pool.
15304         * lto-streamer.h: Include alloc pool.
15305         (lto_streamer_cache_d): Use alloc pool.
15306         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
15307
15308 2010-05-10  Jan Hubicka  <jh@suse.cz>
15309
15310         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
15311         * cgraphbuild.c: Include except.h
15312         (record_type_list, record_eh_tables): New function.
15313         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
15314
15315 2010-05-10  Jan Hubicka  <jh@suse.cz>
15316
15317         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
15318         __frame_dummy_init_array_entry, force_to_data): Attribute as used
15319         rather than unused.
15320
15321 2010-05-10  Michael Matz  <matz@suse.de>
15322
15323         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
15324         (can_reassociate_p): Use FLOAT_TYPE_P.
15325         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
15326         (vect_force_simple_reduction): ... this.
15327         * tree-parloops.c (gather_scalar_reductions): Use
15328         vect_force_simple_reduction.
15329         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
15330         vect_is_simple_reduction, add modify argument, if true rewrite
15331         "a-b" into "a+(-b)".
15332         (vect_is_simple_reduction, vect_force_simple_reduction): New
15333         functions.
15334         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
15335
15336 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15337             Vladimir Makarov  <vmakarov@redhat.com>
15338
15339         PR rtl-optimization/44012
15340         * ira-build.c (remove_unnecessary_allocnos): Nullify
15341         regno_allocno_map of the removed allocno.
15342
15343 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15344
15345         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
15346         to /dev/null.
15347         * configure: Regenerate.
15348
15349 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15350
15351         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
15352         unused.
15353         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
15354         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
15355         support in Sun ld.
15356         * configure: Regenerate.
15357
15358 2010-05-10  Richard Guenther  <rguenther@suse.de>
15359
15360         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
15361         marked if the entry identifier is marked.
15362
15363 2010-05-10  Richard Guenther  <rguenther@suse.de>
15364
15365         * c-common.c (struct c_common_attributes): Add fnspec attribute.
15366         (handle_fnspec_attribute): New function.
15367         * gimple.h (gimple_call_return_flags): Declare.
15368         (gimple_call_arg_flags): Likewise.
15369         * gimple.c (gimple_call_arg_flags): New function.
15370         (gimple_call_return_flags): Likewise.
15371         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
15372         New argument flags.
15373         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
15374         return value flags.
15375         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
15376         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
15377         main work to ...
15378         (make_heapvar_for): ... this new function.
15379         (handle_rhs_call): Handle fnspec attribute argument specifiers.
15380         (handle_lhs_call): Likewise.
15381         (find_func_aliases): Adjust.
15382
15383 2010-05-10  Richard Guenther  <rguenther@suse.de>
15384
15385         PR tree-optimization/44050
15386         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
15387
15388 2010-05-10  Wei Guozhi  <carrot@google.com>
15389
15390         PR target/42879
15391         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
15392
15393 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15394
15395         PR c/10676
15396         * c-typeck.c (lookup_field): Take a type directly.  Update
15397         recursive calls.
15398         (build_component_ref): Update call to lookup_field.
15399         (set_init_label): Use lookup_field to find initialized field.
15400         Handle returned list of fields like a sequence of designators.
15401
15402 2010-05-09  Richard Guenther  <rguenther@suse.de>
15403
15404         PR middle-end/44024
15405         * fold-const.c (tree_single_nonzero_warnv_p): Properly
15406         handle &FUNCTION_DECL.
15407
15408 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
15409
15410         PR c/4784
15411         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
15412         structures and unions recursively.
15413         (detect_field_duplicates): Move duplicate detection with a hash to
15414         detect_field_duplicates_hash.  Always use a hash if anonymous
15415         structures or unions are present.
15416         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
15417         give errors.
15418
15419 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15420
15421         PR target/44046
15422         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
15423         detect Atom, Core 2 and Core i7.
15424
15425 2010-05-09  Richard Guenther  <rguenther@suse.de>
15426
15427         * gcc.c (store_arg): Handle temporary file deletion for
15428         joined arguments.
15429
15430 2010-05-09  Richard Guenther  <rguenther@suse.de>
15431
15432         PR middle-end/44043
15433         * ipa-inline.c (estimate_function_body_sizes): Return after
15434         disregarding inline limits.
15435
15436 2010-05-09  Richard Guenther  <rguenther@suse.de>
15437
15438         * gcc.c (store_arg): Revert last change.
15439
15440 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
15441
15442         PR middle-end/28685
15443         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
15444         (optimize_ops_list): Call it.
15445
15446 2010-05-08  Richard Guenther  <rguenther@suse.de>
15447
15448         PR tree-optimization/44030
15449         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
15450         NECESSARY flag if we propagate from a inserted expression.
15451
15452 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
15453
15454         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
15455         domain types as equal if they are both PLACEHOLDER_EXPRs.
15456
15457 2010-05-08  Richard Guenther  <rguenther@suse.de>
15458
15459         * lto-wrapper.c (run_gcc): Remove linker output from
15460         command line for LTRANS invocation.
15461
15462 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15463
15464         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15465         lto-macho as lto_binary_reader.
15466         * target.h (struct gcc_target): New hooks lto_start and lto_end.
15467         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
15468         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
15469         in lto_start and lto_end calls.
15470         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
15471         magic numbers.
15472         (scan_prog_file): Update is_elf_or_coff call.
15473         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
15474
15475         * collect2.c (main): Fix enum comparison.
15476
15477         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
15478         Add prototypes.
15479         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
15480         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
15481         and TARGET_ASM_LTO_END.
15482         * darwin.c: Include obstack.h and lto-streamer.h.
15483         (lto_section_names_offset, lto_section_names_obstack,
15484         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
15485         global variables.
15486         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
15487         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
15488         to a temporary file.
15489         (darwin_asm_lto_end): New function.  Restore asm_out_file.
15490         (darwin_asm_named_section): For LTO sections, replace the name with
15491         the offset of the section name in a string table, and build this
15492         table.
15493         (darwin_file_start): Initialize global vars for LTO support.
15494         (darwin_file_end): If output to asm_out_file was redirected, append it
15495         to the proper asm_out_file here.  Add the section names section.
15496
15497 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
15498
15499         * c-pragma.c (pending_weak_d, pending_weak): New.
15500         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
15501         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
15502         handle_pragma_weak): Update the uses of pending_weaks.
15503
15504 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15505
15506         PR documentation/44016
15507         * doc/standards.texi (Standards): Link to unversioned
15508         cxx0x_status.html page.
15509
15510 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
15511
15512         PR target/43708
15513         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
15514         in addition to TREE_USED, to avoid "set but unused" warnings.
15515
15516 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15517
15518         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
15519         (is_loop_prefetching_profitable): Do not insert prefetches
15520         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
15521         times the prefetch ahead distance.
15522
15523 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15524
15525         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
15526         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
15527         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
15528         the unroll_factor.
15529
15530 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
15531
15532         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
15533         a diagnostic info when the insn-to-mem ratio is too small.
15534
15535 2010-05-07  Richard Guenther  <rguenther@suse.de>
15536
15537         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
15538         the linker plugin.
15539         (store_arg): Queue temp_filename for deletion instead of
15540         the whole argument.
15541
15542 2010-05-07  Richard Guenther  <rguenther@suse.de>
15543
15544         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
15545         (run_gcc): Handle LTRANS phase invocation.
15546         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
15547
15548 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
15549
15550         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
15551         this is also meaningful on PARM_DECLs and RESULT_DECLs.
15552
15553 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15554
15555         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
15556
15557 2010-05-07  Richard Guenther  <rguenther@suse.de>
15558
15559         PR tree-optimization/44020
15560         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
15561         code when PRE is not yet initialized.
15562
15563 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15564
15565         * config/mips/dbxmdebug.h: Remove.
15566         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
15567
15568 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
15569
15570         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
15571         with null pointer and also warn about ordered comparison of zero with
15572         pointer if -Wextra.
15573
15574 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15575
15576         * graphite-blocking.c
15577         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
15578         * graphite-clast-to-gimple.c
15579         (clast_to_gcc_expression): Same.
15580         (precision_for_value): Same.
15581         (precision_for_interval): Same.
15582         (gcc_type_for_interval): Same.
15583         (graphite_create_new_guard): Same.
15584         (compute_bounds_for_level): Same.
15585         (graphite_create_new_loop_guard): Same.
15586         * graphite-interchange.c
15587         (build_linearized_memory_access): Same.
15588         (pdr_stride_in_loop): Same.
15589         (memory_strides_in_loop_1): Same.
15590         (memory_strides_in_loop): Same.
15591         (extend_scattering): Same.
15592         (psct_scattering_dim_for_loop_depth): Same.
15593         (pbb_number_of_iterations): Same.
15594         * graphite-poly.h
15595         (debug_iteration_domains): Same.
15596         * graphite-ppl.c
15597         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15598         (ppl_set_inhomogeneous_gmp): Same.
15599         (ppl_strip_loop): Same.
15600         (ppl_lexico_compare_linear_expressions): Same.
15601         (ppl_read_polyhedron_matrix): Same.
15602         (ppl_max_for_le_pointset): Same.
15603         * graphite-ppl.h
15604         (ppl_read_polyhedron_matrix): Same.
15605         (tree_int_to_gmp): Same.
15606         (gmp_cst_to_tree): Same.
15607         (ppl_set_inhomogeneous): Same.
15608         (ppl_set_inhomogeneous_tree): Same.
15609         (ppl_set_coef): Same.
15610         (ppl_set_coef_tree): Same.
15611         * graphite-sese-to-poly.c
15612         (build_pbb_scattering_polyhedrons): Same.
15613         (build_scop_scattering): Same.
15614         (scan_tree_for_params_right_scev): Same.
15615         (scan_tree_for_params): Same.
15616         (find_params_in_bb): Same.
15617         (find_scop_parameters): Same.
15618         (add_upper_bounds_from_estimated_nit): Same.
15619         (build_loop_iteration_domains): Same.
15620         (add_condition_to_domain): Same.
15621         (pdr_add_memory_accesses): Same.
15622
15623 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15624
15625         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
15626         CLooG's value_* macros to their respective mpz_* counterparts.
15627         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
15628         (graphite_create_new_loop_guard): Same.
15629         * graphite-interchange.c (build_linearized_memory_access): Same.
15630         (pdr_stride_in_loop): Same.
15631         (memory_strides_in_loop_1): Same.
15632         (1st_interchange_profitable_p): Same.
15633         * graphite-poly.c (extend_scattering): Same.
15634         (psct_scattering_dim_for_loop_depth): Same.
15635         (pbb_number_of_iterations): Same.
15636         (pbb_number_of_iterations_at_time): Same.
15637         * graphite-poly.h (new_1st_loop): Same.
15638         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
15639         (oppose_constraint): Same.
15640         (insert_constraint_into_matrix): Same.
15641         (ppl_set_inhomogeneous_gmp): Same.
15642         (ppl_set_coef_gmp): Same.
15643         (ppl_strip_loop): Same.
15644         (ppl_lexico_compare_linear_expressions): Same.
15645         (ppl_max_for_le_pointset): Same.
15646         (ppl_min_for_le_pointset): Same.
15647         (ppl_build_realtion): Same.
15648         * graphite-ppl.h (gmp_cst_to_tree): Same.
15649         (ppl_set_inhomogeneous): Same.
15650         (ppl_set_inhomogeneous_tree): Same.
15651         (ppl_set_coef): Same.
15652         (ppl_set_coef_tree): Same.
15653         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
15654         (build_scop_scattering): Same.
15655         (add_value_to_dim): Same.
15656         (scan_tree_for_params_right_scev): Same.
15657         (scan_tree_for_params_int): Same.
15658         (scan_tree_for_params): Same.
15659         (find_params_in_bb): Same.
15660         (find_scop_parameters): Same.
15661         (add_upper_bounds_from_estimated_nit): Same.
15662         (build_loop_iteration_domains): Same.
15663         (create_linear_expr_from_tree): Same.
15664         (add_condition_to_domain): Same.
15665         (pdr_add_memory_accesses): Same.
15666
15667 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
15668             Jason Merrill  <jason@redhat.com>
15669
15670         * c-common.c (c_common_reswords): Add nullptr.
15671         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
15672         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
15673         (gen_type_die_with_usage): Likewise.
15674         * dbxout.c (dbxout_type): Likewise.
15675         * sdbout.c (plain_type_1): Likewise.
15676
15677 2010-05-06  Jason Merrill  <jason@redhat.com>
15678
15679         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
15680         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
15681         ret appropriately.
15682         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
15683
15684         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
15685         stripping WITH_SIZE_EXPR.
15686         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
15687         change.
15688
15689 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15690
15691         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
15692         list of obsolete configurations.
15693         Disabled check for obsolete configurations.
15694         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
15695         Removed support for previous versions.
15696         * config/mips/iris.h: Removed.
15697         * config/mips/iris5.h: Removed.
15698         * config/mips/iris6.h: Merged old iris.h contents.
15699         (TARGET_IRIX): Removed.
15700         (DRIVER_SELF_SPECS): Removed mabi=32.
15701         (IDENT_ASM_OP): Removed undef.
15702         (STARTFILE_SPEC): Removed mabi=32.
15703         (ENDFILE_SPEC): Likewise.
15704         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
15705         (MACHINE_TYPE): Update for IRIX 6.5.
15706         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
15707         TARGET_IRIX by TARGET_IRIX6.
15708         (mips_file_start): Likewise.
15709         (mips_output_external): Remove IRIX 5/6 O32 support.
15710         (mips_output_function_prologue): Likewise.
15711         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
15712         TARGET_IRIX6.
15713         (TARGET_CPU_CPP_BUILTINS): Likewise.
15714         (TARGET_IRIX): Removed.
15715         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
15716         (MULTILIB_DIRNAMES): Removed 32.
15717         (MULTILIB_OSDIRNAMES): Removed ../lib.
15718         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
15719         (Specific, mips-sgi-irix5): Document removal.
15720         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
15721         Remove references to older IRIX 6 releases and the O32 ABI.
15722
15723 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
15724
15725         PR bootstrap/43994
15726         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
15727         instead of DF_REF_REAL_REG.
15728
15729 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
15730
15731         PR target/43888
15732         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
15733         handling to still return true for x64 targets.
15734
15735 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15736
15737         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
15738
15739 2010-05-06  Jan Hubicka  <jh@suse.cz>
15740
15741         PR tree-optimization/43791
15742         * ipa-inline.c (update_caller_keys): Remove bogus
15743         disregard_inline_limits check.
15744
15745 2010-05-06  Michael Matz  <matz@suse.de>
15746
15747         PR tree-optimization/43984
15748         * tree-ssa-pre.c (inserted_phi_names): Remove.
15749         (inserted_exprs): Change to bitmap.
15750         (create_expression_by_pieces): Set bits, don't append to vector.
15751         (insert_into_preds_of_block): Don't handle inserted_phi_names.
15752         (eliminate): Don't look at inserted_phi_names, remove deleted
15753         insns from inserted_exprs.
15754         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
15755         (init_pre, fini_pre): Allocate and free bitmaps.
15756         (execute_pre): Insert insns on edges before elimination.
15757
15758 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
15759
15760         * tree.c (initializer_zerop): Handle STRING_CST.
15761
15762 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15763
15764         PR 40989
15765         * doc/invoke.texi (Wimplicit): Document as C only.
15766         * opts.c (common_handle_option): Add argument kind.
15767         (handle_option): Rename as read_cmdline_option. Factor out code to...
15768         (handle_option): ... here. New.
15769         (handle_options): Rename as read_cmdline_options.
15770         (decode_options): Update call.
15771         (set_option): Use option index instead of option pointer. Classify
15772         diagnostics correctly.
15773         (enable_warning_as_error): Call handle_option.
15774         * opts.h (set_option): Update declaration.
15775         (handle_option): Declare.
15776         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
15777         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
15778         * c-opts.c (set_Wimplicit): Delete.
15779         (c_family_lang_mask): New static constant.
15780         (c_common_handle_option): Add argument kind. Use handle_option
15781         instead of set_Wimplicit.
15782         (c_common_post_options): warn_implicit and warn_implicit_int
15783         are disabled by default.
15784         * c-common.c (warn_implicit): Do not define here.
15785         * c-common.h (warn_implicit): Do not declare here.
15786         (c_common_handle_option): Update declaration.
15787         * lto-opts.c (lto_reissue_options): Update call to set_option.
15788
15789 2010-05-06  Richard Guenther  <rguenther@suse.de>
15790
15791         PR tree-optimization/43571
15792         * domwalk.c (walk_dominator_tree): Walk the dominator
15793         sons in more optimal order.
15794
15795 2010-05-06  Richard Guenther  <rguenther@suse.de>
15796
15797         PR tree-optimization/43934
15798         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
15799         (stmt_cost): Likewise.
15800         (extract_true_false_args_from_phi): New helper.
15801         (determine_max_movement): For PHI nodes verify we can hoist them
15802         and compute their cost.
15803         (determine_invariantness_stmt): Handle PHI nodes.
15804         (move_computations_stmt): Likewise.  Hoist PHI nodes in
15805         if-converted form using COND_EXPRs.
15806         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
15807         (tree_ssa_lim): Likewise.
15808         * tree-flow.h (tree_ssa_lim): Adjust prototype.
15809         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
15810
15811 2010-05-06  Richard Guenther  <rguenther@suse.de>
15812
15813         PR tree-optimization/43987
15814         * tree-ssa-structalias.c (could_have_pointers): For possibly
15815         address-taken variables force pointers to be recorded.
15816         (create_variable_info_for_1): Likewise.
15817         (push_fields_onto_fieldstack): Pass in wheter all fields
15818         must have pointers.
15819         (find_func_aliases): Query types instead of vars whether
15820         they contain pointers where appropriate.
15821
15822 2010-05-06  Jan Hubicka  <jh@suse.cz>
15823
15824         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
15825         (record_reference, mark_address, mark_load, mark_store): Record
15826         references.
15827         (record_references_in_initializer): Update call of record_references.
15828         (rebuild_cgraph_edges): Remove all references before rebuiding.
15829         * cgraph.c (cgraph_create_node): Clear ref list.
15830         (cgraph_remove_node): Remove references.
15831         (dump_cgraph_node): Dump references.
15832         (cgraph_clone_node): Clone references.
15833         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
15834         (struct cgraph_node, varpool_node): Add ref_lst.
15835         * ipa-ref.c: New file.
15836         * ipa-ref.h: New file.
15837         * ipa-ref-inline.h: New file.
15838         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
15839         (referenced_from_other_partition_p): New function.
15840         (lto_output_varpool_node): Take set arugment; call
15841         referenced_from_other_partition.
15842         (lto_output_ref): New.
15843         (add_references): New.
15844         (output_refs): New.
15845         (output_cgraph): Compute boundary based on references; output refs.
15846         (output_varpool): Accept cgraph_node_set argument.
15847         (input_ref): New.
15848         (input_refs): New.
15849         (input_cgraph): Call input_refs.
15850         * lto-section-in.c (lto_section_name): Add refs.
15851         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
15852         (ipa-ref.o): New file.
15853         * varpool.c (varpool_node): Clear ipa ref list.
15854         (varpool_remove_node): Remove references.
15855         (dump_varpool_node): Dump references.
15856         (varpool_assemble_decl): Only compile finalized ones.
15857         (varpool_extra_name_alias): Initialize ref list.
15858         * lto-streamer.c (lto-get_section_name): Add .refs section.
15859         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
15860         (referenced_from_other_partition_p): Declared.
15861
15862 2010-05-06  Ira Rosen  <irar@il.ibm.com>
15863
15864         PR tree-optimization/43901
15865         * tree-vect-stmts.c (vectorizable_call): Assert that vector
15866         type is not NULL if it's transformation phase, and return
15867         FALSE if it's analysis.
15868         (vectorizable_conversion, vectorizable_operation,
15869         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
15870
15871 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
15872
15873         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15874         Delete.
15875         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
15876         New define.
15877         * config/mips/mips-protos.h
15878         (mips_small_register_classes_for_mode_p): Delete prototype.
15879
15880 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
15881
15882         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
15883         * config/arm/arm.c (multiple_operation_profitable_p,
15884         compute_offset_order): New static functions.
15885         (load_multiple_sequence, store_multiple_sequence): Use them.
15886         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
15887         memory offsets, not register numbers.
15888         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
15889
15890 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
15891
15892         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
15893         (get_pending_sizes, put_pending_size, put_pending_sizes):
15894         Update the uses of pending_sizes.
15895         * c-decl.c (store_parm_decls): Likewise.
15896         * c-tree.h (struct c_arg_info): Likewise.
15897         * tree.h: Update the prototype for get_pending_sizes and
15898         put_pending_sizes.
15899
15900 2010-05-05  Jason Merrill  <jason@redhat.com>
15901
15902         PR debug/43370
15903         * c-common.c (handle_aligned_attribute): Respect
15904         ATTR_FLAG_TYPE_IN_PLACE.
15905
15906         PR testsuite/43758
15907         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
15908         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15909         (TARGET_INITIALIZER): Use it.
15910         * c-common.c (attribute_takes_identifier_p): Call it.
15911         * c-common.h: Update prototype.
15912         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
15913         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
15914
15915 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
15916
15917         PR debug/43950
15918         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
15919         DW_ID_down_case for Fortran compilation units.
15920
15921 2010-05-05  Jan Hubicka  <jh@suse.cz>
15922
15923         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
15924         handle aliases.
15925
15926 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
15927
15928         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
15929         a variable-sized RESULT_DECL.
15930
15931 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
15932
15933         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
15934
15935 2010-05-05  Jason Merrill  <jason@redhat.com>
15936
15937         PR c++/43787
15938         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
15939         returns GS_OK.
15940         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
15941
15942 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
15943             Jakub Jelinek  <jakub@redhat.com>
15944
15945         PR debug/43478
15946         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
15947         (dead_debug_init, dead_debug_finish): New functions.
15948         (dead_debug_add, dead_debug_insert_before): Likewise.
15949         (df_note_bb_compute): Initialize a dead_debug object, add dead
15950         debug uses to it, insert debug bind insns before death insns,
15951         reset debug insns that refer to pending uses at the end.
15952         * rtl.h (make_debug_expr_from_rtl): New prototype.
15953         * varasm.c (make_debug_expr_from_rtl): New function.
15954
15955 2010-05-05  Jan Hubicka  <jh@suse.cz>
15956
15957         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
15958         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
15959         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
15960         lto_varpool_encoder_deref, lto_varpool_encoder_size,
15961         lto_varpool_encoder_encode_initializer_p,
15962         lto_set_varpool_encoder_encode_initializer): New functions.
15963         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
15964         call output_varpool.
15965         (input_varpool_node): Do not always set analyzed.
15966         (input_cgraph_1): Return vector of cgraph nodes.
15967         (input_varpool_1): Return vector of varpools.
15968         (input_cgraph): Free the vectors.
15969         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
15970         output only initializers needed.
15971         (lto_output): Only call output_cgraph.
15972         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
15973         * lto-section-out.c (lto_new_out_decl_state): Initialize
15974         state->varpool_node_encoder.
15975         * lto-streamer.h (lto_varpool_encoder_d): New.
15976         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
15977         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
15978         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
15979         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
15980         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
15981         Declare.
15982         (output_varpool, input_varpool): Remove declarations.
15983
15984 2010-05-05  Jan Hubicka  <jh@suse.cz>
15985
15986         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
15987         with body can prevail.
15988
15989 2010-05-05  Jan Hubicka  <jh@suse.cz>
15990
15991         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
15992         size.
15993
15994 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15995
15996         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
15997
15998         * gengtype.h (erro_at_line): Constify pos argument.
15999
16000         * gengtype.c: Include hashtab.h.
16001         (enum gc_used): Document GC_MAYBE_POINTED_TO.
16002         (error_at_line): Constify pos argument.
16003         (do_typedef): Initialize p->opt field.
16004         (get_file_gtfilename): Fix comment typo.
16005         (struct walk_type_data): Constify line field.
16006         (get_output_file_for_structure): New function.
16007         (write_local_func_for_structure): Constify orig_s argument.
16008         Use get_output_file_for_structure.
16009         (write_func_for_structure): Use get_output_file_for_structure.
16010         (INDENT): New define.
16011         (dump_pair, dump_type, dump_type_list, dump_typekind)
16012         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
16013         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
16014         functions.
16015         (seen_types): New variable.
16016         (main): New variable do_dump.  Process "-d" command line option.
16017         Call dump_everything if dump requested.
16018
16019 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
16020
16021         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
16022         in a temporary instead of invoking the macro multiple times.
16023         (track_expr_p): Likewise.
16024
16025 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
16026
16027         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
16028         per new semantics.
16029         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
16030         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
16031         conditions for printing notes.
16032         * common.opt (-Wcoverage-mismatch): Allow negative, default to
16033         true, update documentation.
16034         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
16035
16036 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
16037
16038         PR c/43981
16039         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
16040         on dimen.
16041
16042 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16043
16044         PR target/43799
16045         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
16046         (*sse_prologue_save_insn1): Likewise.
16047         (SSE prologue save splitter): Likewise.
16048
16049 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16050
16051         * tree.c (free_lang_data_in_one_sizepos): New inline function.
16052         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
16053         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
16054         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
16055         all decls.  Call it on DECL_FIELD_OFFSET of fields.
16056         (find_decls_types_r): Follow DECL_VALUE_EXPR.
16057         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
16058
16059 2010-05-04  Martin Jambor  <mjambor@suse.cz>
16060
16061         * tree-sra.c (build_access_from_expr_1): The first parameter type
16062         changed to simple tree.
16063         (build_access_from_expr): Likewise, gsi parameter was eliminated.
16064         (scan_assign_result): Renamed to assignment_mod_result, enum elements
16065         renamed as well.
16066         (build_accesses_from_assign): Removed all parameters except for a
16067         simple gimple statement.  Now returns a simple bool.
16068         (scan_function): All non-analysis parts moved to separate functions
16069         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
16070         parameters and updated both callers.
16071         (sra_modify_expr): Removed parameter data.
16072         (sra_modify_function_body): New function.
16073         (perform_intra_sra): Call sra_modify_function_body to modify the
16074         function body.
16075         (replace_removed_params_ssa_names): Parameter data changed into
16076         adjustments vector.
16077         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
16078         changed the parameter dont_convert to convert with the opposite
16079         meaning.
16080         (sra_ipa_modify_assign): Parameter data changed into adjustments
16081         vector, return value changed to bool.
16082         (ipa_sra_modify_function_body): New function.
16083         (sra_ipa_reset_debug_stmts): Updated a comment.
16084         (modify_function): Use ipa_sra_modify_function_body to modify function
16085         body.
16086
16087 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16088
16089         PR middle-end/43671
16090         * alias.c (true_dependence): Handle the same VALUE in x and mem.
16091         (canon_true_dependence): Likewise.
16092         (write_dependence_p): Likewise.
16093
16094 2010-05-04  Jan Hubicka  <jh@suse.cz>
16095
16096         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
16097         * cgraphbuild.c: Include ipa-utils.h
16098         (record_reference_ctx): New struct.
16099         (record_reference): Simplify to work on initializers; not statements.
16100         (mark_address, mark_load, mark_store): New.
16101         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16102         walk PHI nodes too.
16103         (record_references_in_initializer): Update use of record_reference.
16104         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
16105         walk PHI nodes too.
16106
16107 2010-05-04  Jan Hubicka  <jh@suse.cz>
16108
16109         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
16110         node will be removed anyway.
16111         (lto_varpool_replace_node): Allow also unanalyzed nodes;
16112         relink aliases of node into prevailing node.
16113         * varpool.c (varpool_remove_node): Remove aliases properly;
16114         when removing node, remove all its aliases too; remove DECL_INITIAL
16115         of removed node; ggc_free the varpool node.
16116
16117 2010-05-04  Richard Guenther  <rguenther@suse.de>
16118
16119         PR tree-optimization/43879
16120         * tree-ssa-structalias.c (alias_get_name): Use
16121         DECL_ASSEMBLER_NAME if available.
16122         (create_function_info_for): Return the varinfo node.
16123         (ipa_pta_execute): Associate same-body aliases and extra names
16124         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
16125
16126 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16127
16128         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
16129
16130 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
16131
16132         PR bootstrap/43964
16133         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
16134         only if HONOR_REG_ALLOC_ORDER is not defined.
16135
16136 2010-05-04  Richard Guenther  <rguenther@suse.de>
16137
16138         PR tree-optimization/43949
16139         * tree-vrp.c (extract_range_from_binary_expr): Only handle
16140         TRUNC_MOD_EXPR.
16141
16142 2010-04-26  Jason Merrill  <jason@redhat.com>
16143
16144         * c.opt (-fstrict-enums): New.
16145         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
16146
16147 2010-05-03  David Ung  <davidu@mips.com>
16148             James E. Wilson  <wilson@codesourcery.com>
16149
16150         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
16151         emit the trap instruction before the divide for TUNE_74K.
16152
16153 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
16154
16155         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
16156         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
16157         based on the above, for new target hook.
16158
16159         * hooks.c (hook_bool_mode_true): New generic hook.
16160         * hooks.h (hook_bool_mode_true): Add prototype.
16161
16162         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
16163         target hook.
16164         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
16165         target hook, set to hook_bool_mode_false.
16166         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
16167         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
16168         with targetm.small_register_classes_for_mode_p.
16169         (find_reusable_reload): Likewise.
16170         (combine_reloads): Likewise.
16171         * reload1.c (reload_as_needed): Likewise.
16172         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
16173         * ifcvt.c (noce_process_if_block, check_cond_move_block,
16174         dead_or_predicable): Likewise.
16175         * regmove.c (optimize_reg_copy_1): Likewise.
16176         * calls.c (prepare_call_address): Likewise.
16177         (precompute_register_parameters): Likewise.
16178
16179         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
16180         hook definition.
16181         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
16182         implementation of the hook that considers all register classes
16183         small except for SH64.
16184         (sh_override_options): Use the new hook.
16185         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
16186         Add prototype.
16187
16188         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
16189         hook definition.
16190         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
16191         implementation of the hook that considers all register classes
16192         small for THUMB1.
16193         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
16194         Add prototype.
16195
16196         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
16197         hook definition.
16198         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
16199         implementation of the hook that considers all register classes
16200         small for MIPS16.
16201         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
16202         Add prototype.
16203
16204         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
16205         hook definition.
16206         * config/m32c/m32c.h: Likewise.
16207         * config/pdp11/pdp11.h: Likewise.
16208         * config/avr/avr.h: Likewise.
16209         * config/xtensa/xtensa.h: Likewise.
16210         * config/m68hc11/m68hc11.h: Likewise.
16211         * config/mn10300/mn10300.h: Likewise.
16212         * config/mcore/mcore.h: Likewise.
16213         * config/h8300/h8300.h: Likewise.
16214         * config/bfin/bfin.h: Likewise.
16215
16216         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
16217         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
16218
16219 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
16220
16221         * double-int.h (tree_to_double_int): Remove macro.
16222         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
16223         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16224         (tree_to_double_int): New function.
16225         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
16226         Move ...
16227         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
16228
16229 2010-05-03  Richard Guenther  <rguenther@suse.de>
16230
16231         PR tree-optimization/43971
16232         * tree-ssa-structalias.c (get_constraint_for_1): Fix
16233         constraints in the !flag_delete_null_pointer_checks case.
16234
16235 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
16236
16237         PR debug/43972
16238         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
16239         result mode matches original rtl mode.
16240
16241 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
16242
16243         PR target/43888
16244         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
16245
16246 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16247
16248         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
16249         when processing flag options.
16250
16251 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16252
16253         * gcov-iov.c (main): Change format string placeholder
16254         from %#08x to 0x%08x.
16255         * genchecksum.c (dosum): Change format string placeholder
16256         from %#02x to 0x%02x.
16257
16258 2010-05-02  Richard Guenther  <rguenther@suse.de>
16259
16260         PR tree-optimization/43879
16261         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
16262
16263 2010-05-02  Bruno Haible  <bruno@clisp.org>
16264
16265         * doc/extend.texi (Function Attributes): Fix a typo.
16266
16267 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16268
16269         Revert:
16270         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
16271         placeholder from 0x%x to %#x.
16272         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16273         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
16274         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
16275         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
16276         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
16277         * config/i386/i386.c (ix86_target_string): Ditto.
16278         * config/i386/i386.c (output_pic_addr_const): Ditto.
16279         (print_operand): Ditto.
16280
16281 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
16282
16283         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16284         placeholder from 0x%x to %#x.
16285         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
16286         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
16287         (ASM_OUTPUT_DEBUG_DATA): Ditto.
16288         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
16289         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
16290         * optc-gen.awk: Ditto.
16291         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
16292         (HOST_WIDE_INT_PRINT_HEX): Ditto.
16293         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
16294         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
16295
16296 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16297
16298         * target.h (struct calls): Add function_value_regno_p field.
16299         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
16300         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
16301         * targhooks.c (default_function_value_regno_p): New function.
16302         * targhooks.h (default_function_value_regno_p): Declare function.
16303         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
16304         * builtins.c. (apply_result_size): (Ditto.).
16305         * combine.c. (likely_spilled_retval_p): (Ditto.).
16306         * mode-switching.c. Include 'target.h'.
16307         (create_pre_exit): Use function_value_regno_p hook.
16308         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
16309         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
16310         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
16311
16312         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
16313         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
16314         (ix86_function_value_regno_p): Declare as static, change argument
16315         type to const unsigned int.
16316         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
16317
16318 2010-05-01  Richard Guenther  <rguenther@suse.de>
16319
16320         PR tree-optimization/43949
16321         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
16322         types.
16323         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
16324
16325 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
16326
16327         * rtl.h (CONST_DOUBLE_P): Define.
16328         (rtx_to_double_int): Declare.
16329         * emit-rtl.c (rtx_to_double_int): New function.
16330         * dwarf2out.c (insert_double): New function.
16331         (loc_descriptor, add_const_value_attribute): Clean up, use
16332         rtx_to_double_int and insert_double functions.
16333
16334 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
16335
16336         * doc/extend.texi (Inline): Add missing return keyword to examples.
16337         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
16338         "command-line".
16339
16340 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
16341
16342         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
16343         the variable part of the offset as well.  Use highest_pow2_factor for
16344         all alignment checks.
16345
16346 2010-04-30  Richard Guenther  <rguenther@suse.de>
16347
16348         PR tree-optimization/43879
16349         * tree-ssa-structalias.c (type_could_have_pointers): Functions
16350         can have pointers.
16351
16352 2010-04-30  Jan Hubicka  <jh@suse.cz>
16353
16354         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
16355         varpool.
16356         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
16357
16358 2010-04-30  Jan Hubicka  <jh@suse.cz>
16359
16360         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16361         New.
16362         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
16363         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
16364         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
16365         cgraph_node_set_needs_ltrans_p): Remove.
16366
16367 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16368
16369         * sdbout.c: Include vec.h, do not include varray.h.
16370         (deferred_global_decls, sdbout_global_decl,
16371         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
16372         * toplev.c: Do not include varray.h.
16373         (dump_memory_report): Do not dump VARRAY statistics.
16374         * gengtype.c (open_base_file): Ignore varray.h.
16375         * Makefile.in: Update for abovementioned changes.
16376         Remove all traces of varray.c and varray.h.
16377         * varray.c: Remove file.
16378         * varray.h: Remove file.
16379
16380 2010-04-30  Jan Hubicka  <jh@suse.cz>
16381
16382         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
16383         references.
16384
16385 2010-04-30  Jan Hubicka  <jh@suse.cz>
16386
16387         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
16388         needed.
16389
16390 2010-04-30  Richard Guenther  <rguenther@suse.de>
16391
16392         * tree-ssa-structalias.c (get_constraint_for_1): Generate
16393         constraints for CONSTRUCTOR.
16394
16395 2010-04-30  Richard Guenther  <rguenther@suse.de>
16396
16397         PR lto/43946
16398         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
16399         first after all lowering passes.
16400
16401 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
16402
16403         * toplev.c: Include varray.h for statistics dumping.
16404         * tree.h: Do not declare varray_head_tag.
16405         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
16406         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
16407         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
16408         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
16409         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
16410         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
16411         c-common.c, c-common.h, reg-stack.c, basic-block.h,
16412         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
16413         include varray.h.
16414         * Makefile.in: Update for abovementioned changes.
16415
16416 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
16417
16418         PR debug/43942
16419         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
16420
16421 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
16422
16423         * config/picochip/picochip.c (picochip_legitimize_address): Define.
16424         Use this function to do machine-specific conversion.
16425         (picochip_legitimize_reload_address): Likewise.
16426         (picochip_legitimate_address_p): Check valid base register only if
16427         strict.
16428         (picochip_check_conditional_copy): Check for modw only if opnd is
16429         register.
16430         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
16431         to call the function in c.
16432         * config/picochip/picochip-protos.h
16433         (picochip_legitimize_reload_address): Define.
16434         * config/picochip/picochip.md (supported_compare1): Define.
16435
16436 2010-04-30  Jan Hubicka  <jh@suse.cz>
16437
16438         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
16439         (cgraph_global_info): Remove inlined.
16440         (LTO_cgraph_tag_names): Remove.
16441         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
16442         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
16443         simplify cgraph tags and document.
16444         (lto_output_node): Use only LTO_cgraph_unavail_node and
16445         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
16446         for_functions_valid, global info, process and output flags.
16447         (input_overwrite_node): Initialize estimated stack size and
16448         estimated growth.  Do not read flags we no longer store.
16449         (input_node): Likewise do not read info no longer stored.
16450         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
16451         flag.
16452
16453 2010-04-30  Richard Guenther  <rguenther@suse.de>
16454
16455         PR tree-optimization/43879
16456         * tree-ssa-structalias.c (get_constraint_for_1): Properly
16457         handle non-zero initializers.
16458
16459 2010-04-30  Richard Guenther  <rguenther@suse.de>
16460
16461         * builtins.c (fold_builtin_1): Delete free (0).
16462
16463 2010-04-29  Jan Hubicka  <jh@suse.cz>
16464
16465         * gengtype.c (open_base_files): Add lto-streamer.h
16466         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
16467         (pass_ipa_cp): GGC collect.
16468         * toplev. (compile_file): Do not output symbols.
16469         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
16470         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
16471         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
16472         * lto-section-in.c: Include ggc.h
16473         (lto_new_in_decl_state): Alloc in GGC.
16474         (lto_delete_in_decl_state): Likewise.
16475         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
16476         Collect.
16477
16478 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16479
16480         PR target/42895
16481         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
16482         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
16483         (HONOR_REG_ALLOC_ORDER): Describe new macro.
16484         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
16485         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
16486         account only if HONOR_REG_ALLOC_ORDER is not defined.
16487         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
16488         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
16489
16490 2010-04-29  Jon Grant  <04@jguk.org>
16491
16492         * collect2.c (vflag): Change type from int to bool.
16493         (debug): Likewise.
16494         (helpflag): New global bool.
16495         (main): Set vflag and debug with boolean, not integer truth values.
16496         Accept new "--help" option and output usage text if found.
16497         * collect2.h (vflag): Update prototype.
16498         (debug): Likewise.
16499
16500 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16501
16502         PR bootstrap/43936
16503         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
16504
16505 2010-04-29  Richard Guenther  <rguenther@suse.de>
16506
16507         PR bootstrap/43935
16508         * plugin.h (invoke_plugin_callbacks): Annotate arguments
16509         with ATTRIBUTE_UNUSED.
16510
16511 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
16512
16513         PR target/43921
16514         * config/i386/i386.c (get_some_local_dynamic_name): Replace
16515         INSN_P with NONDEBUG_INSN_P.
16516         (distance_non_agu_define): Likewise.
16517         (distance_agu_use): Likewise.
16518
16519 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
16520
16521         From Dominique d'Humieres  <dominiq@lps.ens.fr>
16522         PR bootstrap/43858
16523         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
16524         test_set.
16525
16526 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
16527
16528         * plugin.h (invoke_plugin_callbacks): New inline function.
16529         * plugin.c (flag_plugin_added): New global flag.
16530         (add_new_plugin): Initialize above flag.
16531         (invoke_plugin_callbacks): Rename to ...
16532         (invoke_plugin_callbacks_full): ... this.
16533
16534 2010-04-28  Jan Hubicka  <jh@suse.cz>
16535
16536         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
16537         (lto_varpool_replace_node): New.
16538         (lto_symtab_resolve_symbols): Resolve varpool nodes.
16539         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
16540         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
16541         * cgraph.h (varpool_node_ptr): New type.
16542         (varpool_node_ptr): New vector.
16543         (varpool_node_set_def): New structure.
16544         (varpool_node_set): New type.
16545         (varpool_node_set): New vector.
16546         (varpool_node_set_element_def): New structure.
16547         (varpool_node_set_element, const_varpool_node_set_element): New types.
16548         (varpool_node_set_iterator): New type.
16549         (varpool_node): Add prev pointers, add used_from_other_partition,
16550         in_other_partition.
16551         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
16552         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
16553         varpool_get_node, varpool_remove_node): Declare.
16554         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
16555         varpool_node_set_size): New inlines.
16556         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
16557         * tree-pass.h (varpool_node_set_def): Forward declare.
16558         (ipa_opt_pass_d): Summary writting takes vnode sets too.
16559         (ipa_write_optimization_summaries): Update prototype.
16560         * ipa-cp.c (ipcp_write_summary): Update.
16561         * ipa-reference.c (ipa_reference_write_summary): Update.
16562         * lto-cgraph.c (lto_output_varpool_node): New static function.
16563         (output_varpool): New function.
16564         (input_varpool_node): New static function.
16565         (input_varpool_1): New function.
16566         (input_cgraph): Input varpool.
16567         * ipa-pure-const.c (pure_const_write_summary): Update.
16568         * lto-streamer-out.c (lto_output): Update, output varpool too.
16569         (write_global_stream): Kill WPA hack.
16570         (produce_asm_for_decls): Update.
16571         (output_alias_pair_p): Handle variables.
16572         (output_unreferenced_globals): Output only needed partition of varpool.
16573         * ipa-inline.c (inline_write_summary): Update.
16574         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
16575         cgraph.
16576         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
16577         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
16578         varpool_node_set_new, varpool_node_set_add,
16579         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
16580         debug_varpool_node_set): New functions.
16581         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
16582         (execute_one_pass): Process new decls too.
16583         (ipa_write_summaries_2): Pass around vsets.
16584         (ipa_write_summaries_1): Likewise.
16585         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
16586         to add.
16587         (ipa_write_optimization_summaries_1): Pass around vsets.
16588         (ipa_write_optimization_summaries): Likewise.
16589         * varpool.c (varpool_get_node): New.
16590         (varpool_node): Update doubly linked lists.
16591         (varpool_remove_node): New.
16592         (dump_varpool_node): More dumping.
16593         (varpool_enqueue_needed_node): Update doubly linked lists.
16594         (decide_is_variable_needed): Kill ltrans hack.
16595         (varpool_finalize_decl): Kill lto hack.
16596         (varpool_assemble_decl): Skip decls in other partitions.
16597         (varpool_assemble_pending_decls): Update doubly linkes lists.
16598         (varpool_empty_needed_queue): Likewise.
16599         (varpool_extra_name_alias): Likewise.
16600         * lto-streamer.c (lto_get_section_name): Add vars section.
16601         * lto-streamer.h (lto_section_type): Update.
16602         (output_varpool, input_varpool): Declare.
16603
16604 2010-04-28  Mike Stump  <mikestump@comcast.net>
16605
16606         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
16607
16608 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16609
16610         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
16611         record or union type with RECORD_OR_UNION_TYPE_P predicate.
16612         (lto_input_ts_type_tree_pointers): Likewise.
16613         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
16614         (lto_output_ts_type_tree_pointers): Likewise.
16615
16616 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16617
16618         Uniquization of constants at the Tree level
16619         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
16620         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
16621         bit to the end.
16622         (tree_output_constant_def): Declare.
16623         * gimplify.c (gimplify_init_constructor): When using block copy, first
16624         uniquize the constant constructor on the RHS.
16625         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
16626         DECL_IN_CONSTANT_POOL flag.
16627         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
16628         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
16629         constant pool.
16630         (assemble_variable): Deal with symbols belonging to the tree constant
16631         pool.
16632         (get_constant_section): Add ALIGN parameter and simplify.
16633         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
16634         (assemble_constant_contents): Use the expression of the VAR_DECL.
16635         (output_constant_def_contents): Use the alignment of the VAR_DECL.
16636         (tree_output_constant_def): New global function.
16637         (mark_constant): Use the expression of the VAR_DECL.
16638         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
16639         its expression.
16640         (output_object_block): Likewise and assemble the expression.
16641
16642 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
16643
16644         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
16645         hash_tree, eq_tree): New tree hash table.
16646         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
16647         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
16648         lto_orig_address_remove): Reimplement.
16649
16650 2010-04-28  Xinliang David Li  <davidxl@google.com>
16651
16652         PR c/42643
16653         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
16654         (compute_uninit_opnds_pos): New function.
16655         (is_non_loop_exit_postdominating): New function.
16656         (compute_control_dep_chain): New function.
16657         (find_pdom): New function.
16658         (convert_control_dep_chain_into_preds): New function.
16659         (find_predicates): New function.
16660         (find_control_equiv_block): New function.
16661         (collect_phi_def_edges): New function.
16662         (find_def_preds): New function.
16663         (find_dom): New function.
16664         (dump_predicates): New function.
16665         (get_cmp_code): New function.
16666         (is_value_included_in): New function.
16667         (find_matching_predicate_in_rest_chains): New function.
16668         (use_pred_not_overlap_with_undef_path_pred): New function.
16669         (is_use_properly_guarded): New function.
16670         (normalize_cond_1): New function.
16671         (is_and_or_or): New function.
16672         (normalize_cond): New function.
16673         (is_gcond_subset_of): New function.
16674         (is_subset_of_any): New function.
16675         (is_or_set_subset_of): New function.
16676         (is_and_set_subset_of): New function.
16677         (is_norm_cond_subset_of): New function.
16678         (is_pred_expr_subset_of): New function.
16679         (is_pred_chain_subset_of): New function.
16680         (is_included_in): New function.
16681         (is_superset_of): New function.
16682         (find_uninit_use): New function.
16683         (warn_uninitialized_phi): New function.
16684         (compute_possibly_undefined_names): New function.
16685         (ssa_undefined_value_p): New function.
16686         (execute_late_warn_uninitialized): New function.
16687         * tree-ssa.c (ssa_undefined_value_p): Removed.
16688         (warn_uninit): Changed to extern.
16689         (warn_uninitialized_phi): Removed.
16690         (warn_uninitialized_vars): Changed to extern.
16691         (execute_late_warn_uninitialized): Removed
16692         * tree-flow.h: Add new prototypes.
16693         * timevar.def: Add new time variable.
16694         * Makefile.in: Add new build file.
16695
16696 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
16697
16698         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
16699         type if available.
16700
16701 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16702
16703         PR target/22224
16704         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
16705
16706 2010-04-28  Martin Jambor  <mjambor@suse.cz>
16707
16708         * cgraph.h (struct cgraph_node): New field indirect_calls.
16709         (struct cgraph_indirect_call_info): New type.
16710         (struct cgraph_edge): Removed field indirect_call. New fields
16711         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
16712         (cgraph_create_indirect_edge): Declare.
16713         (cgraph_make_edge_direct): Likewise.
16714         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
16715         * ipa-prop.h (struct ipa_param_call_note): Removed.
16716         (struct ipa_node_params): Removed field param_calls.
16717         (ipa_create_all_structures_for_iinln): Declare.
16718         * cgraph.c: Described indirect edges and uids in initial comment.
16719         (cgraph_add_edge_to_call_site_hash): New function.
16720         (cgraph_edge): Search also among the indirect edges, use
16721         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
16722         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
16723         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
16724         site hash.
16725         (initialize_inline_failed): Assign a reason to indirect edges.
16726         (cgraph_create_edge_1): New function.
16727         (cgraph_create_edge): Moved some functionality to
16728         cgraph_create_edge_1.
16729         (cgraph_create_indirect_edge): New function.
16730         (cgraph_edge_remove_callee): Add an assert checking for
16731         non-indirectness.
16732         (cgraph_edge_remove_caller): Special-case indirect edges.
16733         (cgraph_remove_edge): Likewise.
16734         (cgraph_set_edge_callee): New function.
16735         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
16736         (cgraph_make_edge_direct): New function.
16737         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
16738         the declaration of the call statement matches.
16739         (cgraph_node_remove_callees): Special-case indirect edges.
16740         (cgraph_clone_edge): Likewise.
16741         (cgraph_clone_node): Clone also the indirect edges.
16742         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
16743         indirect_call, dump count of indirect_calls edges.
16744         * ipa-prop.c (iinlining_processed_edges): New variable.
16745         (ipa_note_param_call): Create indirect edges instead of
16746         creating notes.  New parameter node.
16747         (ipa_analyze_call_uses): New parameter node, pass it on to
16748         ipa_note_param_call.
16749         (ipa_analyze_stmt_uses): Likewise.
16750         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
16751         (print_edge_addition_message): Work on edges rather than on notes.
16752         (update_call_notes_after_inlining): Likewise, renamed to
16753         update_indirect_edges_after_inlining.
16754         (ipa_create_all_structures_for_iinln): New function.
16755         (ipa_free_node_params_substructures): Do not free notes.
16756         (ipa_edge_duplication_hook): Propagate bits within
16757         iinlining_processed_edges bitmap.
16758         (ipa_node_duplication_hook): Do not duplicate notes.
16759         (free_all_ipa_structures_after_ipa_cp): Renamed to
16760         ipa_free_all_structures_after_ipa_cp.
16761         (free_all_ipa_structures_after_iinln): Renamed to
16762         ipa_free_all_structures_after_iinln.
16763         (ipa_write_param_call_note): Removed.
16764         (ipa_read_param_call_note): Removed.
16765         (ipa_write_indirect_edge_info): New function.
16766         (ipa_read_indirect_edge_info): Likewise.
16767         (ipa_write_node_info): Do not stream notes, do stream information
16768         in indirect edges.
16769         (ipa_read_node_info): Likewise.
16770         (lto_ipa_fixup_call_notes): Removed.
16771         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
16772         * ipa-inline.c (pass_ipa_inline): Likewise.
16773         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
16774         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
16775         * tree-inline.c (copy_bb): Removed an unnecessary double check for
16776         is_gimple_call.
16777         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
16778         edges.
16779         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
16780         (output_cgraph): Stream also indirect edges.
16781         (lto_output_edge): Added capability to stream indirect edges.
16782         (input_edge): Likewise.
16783         (input_cgraph_1): Likewise.
16784         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
16785         of indirect edges.
16786
16787 2010-04-28  Richard Guenther  <rguenther@suse.de>
16788
16789         PR tree-optimization/43879
16790         PR tree-optimization/43909
16791         * tree-ssa-structalias.c (struct variable_info): Add
16792         only_restrict_pointers flag.
16793         (new_var_info): Initialize it.  Increment stats.total_vars here.
16794         (create_function_info_for): Do not increment stats.total_vars here.
16795         (get_function_part_constraint): Fix build with C++.
16796         (insert_into_field_list): Remove.
16797         (push_fields_onto_fieldstack): Properly merge fields.
16798         (create_variable_info_for): Split and simplify.
16799         (create_variable_info_for_1): New piece.
16800         (intra_create_variable_infos): Properly make restrict constraints
16801         from parameters.
16802
16803 2010-04-28  Richard Guenther  <rguenther@suse.de>
16804
16805         PR c++/43880
16806         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
16807
16808 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16809             Jan Hubicka  <hubicka@ucw.cz>
16810
16811         * doc/invoke.texi (-Wsuggest-attribute=const,
16812         -Wsuggest-attribute=pure): Document.
16813         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
16814         (function_always_visible_to_compiler_p,
16815         suggest_attribute, warn_function_pure, warn_function_const):
16816         New functions.
16817         (check_call): Improve debug info.
16818         (analyze_function): Do not check availability.
16819         (add_new_function): Check availability.
16820         (propagate): Output warnings.
16821         (skip_function_for_local_pure_const): New function.
16822         (local_pure_const): Use it; output warnings.
16823         * common.opt (Wsuggest-attribute=const,
16824         Wsuggest-attribute=pure): New.
16825
16826 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16827
16828         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
16829         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
16830         or DW_CFA_def_cfa_offset{,_sf}.
16831
16832 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16833
16834         * tree.h: Fix truncated long macros.
16835
16836 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
16837
16838         * collect2.c (TARGET_64BIT): Redefine to target's default.
16839         * tlink.c: Likewise.
16840         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
16841         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
16842         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
16843         for underscoring __USER_LABEL_PREFIX__.
16844         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
16845         (SUB_LINK_ENTRY32): New.
16846         (SUB_LINK_ENTRY64): New.
16847         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
16848         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
16849         (SUB_LINK_ENTRY64): New.
16850         (SUB_LINK_ENTRY): New.
16851         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
16852         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
16853         x64 target is choosen.
16854         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
16855         * configure: Regenerated.
16856         * configure.ac (leading-mingw64-underscores): Option added.
16857
16858 2010-04-27  Jan Hubicka  <jh@suse.cz>
16859
16860         * doc/invoke.texi (-fipa-profile): Document.
16861         * opts.c (decode_options): Enable ipa-profile at -O1.
16862         * timevar.def (TV_IPA_PROFILE): Define.
16863         * common.opt (fipa-profile): Add.
16864         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
16865         flag for clones.
16866         (cgraph_propagate_frequency): Handle only local ones.
16867         * tree-pass.h (pass_ipa_profile): Declare.
16868         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
16869         (pass_ipa_profile): Use TV_IPA_PROFILE.
16870         * ipa.c (ipa_profile): New function.
16871         (gate_ipa_profile): Likewise.
16872         (pass_ipa_profile): New global variable.
16873         * passes.c (pass_ipa_profile): New.
16874
16875 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
16876
16877         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
16878
16879 2010-04-27  Martin Jambor  <mjambor@suse.cz>
16880
16881         PR middle-end/43812
16882         * ipa.c (dissolve_same_comdat_group_list): New function.
16883         (function_and_variable_visibility): Call
16884         dissolve_same_comdat_group_list when comdat group contains external or
16885         newly local nodes.
16886         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
16887         lists are circular and that they contain only DECL_ONE_ONLY nodes.
16888
16889 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16890
16891         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
16892         (const_hash_1) <VECTOR_CST>: New case.
16893         (compare_constant) <VECTOR_CST>: Likewise.
16894         <ADDR_EXPR>: Deal with LABEL_REFs.
16895         (copy_constant) <VECTOR_CST>: New case.
16896
16897 2010-04-27  Jan Hubicka  <jh@suse.cz>
16898
16899         * cgraph.c (cgraph_propagate_frequency): New function.
16900         * cgraph.h (cgraph_propagate_frequency): Declare.
16901         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
16902         cgraph_propagate_frequency.
16903
16904 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
16905
16906         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
16907
16908 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
16909
16910         PR target/40657
16911         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
16912         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
16913         here to determine which regs to push and how much stack to reserve.
16914
16915 2010-04-27  Jie Zhang  <jie@codesourcery.com>
16916
16917         * doc/gimple.texi (gimple_statement_with_ops): Remove
16918         addresses_taken field.
16919         (gimple_statement_with_memory_ops): Likewise.
16920
16921 2010-04-27  Jan Hubicka  <jh@suse.cz>
16922
16923         * tree-inline.c (eni_inlining_weights): Remove.
16924         (estimate_num_insns): Special case more builtins.
16925
16926 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
16927
16928         PR c/32207
16929         * c-typeck.c (build_binary_op): Move forward check for comparison
16930         pointer with null pointer constant and adjust the diagnostic message.
16931
16932 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
16933
16934         PR lto/42776
16935         * configure.ac (gcc_cv_as_section_has_align): Set if installed
16936         binutils supports extended .section directive needed by LTO, or
16937         warn if older binutils found.
16938         (LTO_BINARY_READER): New AC_SUBST'd variable.
16939         (LTO_USE_LIBELF): Likewise.
16940         * gcc/config.gcc (lto_binary_reader): New target-specific configure
16941         variable.
16942         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
16943         (LTO_USE_LIBELF): Likewise.
16944         * configure: Regenerate.
16945
16946         * collect2.c (is_elf): Rename from this ...
16947         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
16948          object files in addition to ELF-formatted ones.
16949         (scan_prog_file): Caller updated.  Also allow for LTO info marker
16950         symbol to be prefixed or not by an extra underscore.
16951
16952         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
16953         * config/i386/winnt.c: Also #include lto-streamer.h
16954         (i386_pe_asm_named_section): Specify 1-byte section alignment for
16955         LTO named sections.
16956         (i386_pe_asm_output_aligned_decl_common): Add comment.
16957         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
16958
16959 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
16960
16961         PR target/43889
16962         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
16963         Add missing earlyclobber for second alternative.
16964
16965 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
16966
16967         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
16968         bits for artificial defs at the top of the block.
16969         * fwprop.c (single_def_use_enter_block): Don't call it.
16970
16971 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
16972
16973         PR 43715
16974         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
16975         instead of "$gcc_cv_objdump -T".
16976         Use "-undefined dynamic_lookup" on darwin.
16977         * gcc/configure: Regenerate.
16978
16979 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
16980
16981         PR c/43893
16982         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
16983
16984 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16985
16986         * c-parser.c (struct c_token): Move location field up.
16987         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
16988         (struct c_declspecs): Convert typespec_word, storage_class, and
16989         default_int_p into bitfields.
16990         (struct c_declarator): Move loc field up.
16991
16992 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
16993
16994         * cfgloop.h (struct loop): Move can_be_parallel field up.
16995         * ipa-prop.h (struct ip_node_params): Move bitfields up.
16996         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
16997         down.
16998         (struct iv_cand): Convert pos field into a bitfield.
16999         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
17000         field up.
17001         (struct _stmt_vec_info): Shuffle fields for better packing.
17002
17003 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17004
17005         * varasm.c (IN_NAMED_SECTION): Remove guard.
17006         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
17007         (IN_NAMED_SECTION_P): ...this.
17008         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
17009         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17010
17011 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
17012
17013         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
17014         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
17015         of shadowing it.  Fix comments.
17016
17017 2010-04-26  Jan Hubicka  <jh@suse.cz>
17018
17019         * cgraph.c (cgraph_create_node): Set node frequency to normal.
17020         (cgraph_clone_node): Copy function frequency.
17021         * cgraph.h (node_frequency): New enum
17022         (struct cgraph_node): Add.
17023         * final.c (rest_of_clean_state): Update.
17024         * lto-cgraph.c (lto_output_node): Output node frequency.
17025         (input_overwrite_node): Input node frequency.
17026         * tre-ssa-loop-ivopts (computation_cost): Update.
17027         * lto-streamer-out.c (output_function): Do not output function
17028         frequency.
17029         * predict.c (maybe_hot_frequency_p): Update and handle functions
17030         executed once.
17031         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
17032         attribute lookup.
17033         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
17034         (compute_function_frequency): Set noreturn functions to be executed
17035         once.
17036         (choose_function_section): Update.
17037         * lto-streamer-in.c (input_function): Do not input function frequency.
17038         * function.c (allocate_struct_function): Do not initialize function
17039         frequency.
17040         * function.h (function_frequency): Remove.
17041         (struct function): Remove function frequency.
17042         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
17043         (try_update): Update.
17044         * tree-inline.c (initialize_cfun): Do not update function frequency.
17045         * passes.c (pass_init_dump_file): Update.
17046         * i386.c (ix86_compute_frame_layout): Update.
17047         (ix86_pad_returns): Update.
17048
17049 2010-04-26  Jie Zhang  <jie@codesourcery.com>
17050
17051         PR tree-optimization/43833
17052         * tree-vrp.c (range_int_cst_p): New.
17053         (range_int_cst_singleton_p): New.
17054         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
17055         when both operands are constants.  Use range_int_cst_p in
17056         BIT_IOR_EXPR case.
17057
17058 2010-04-26  Jan Hubicka  <jh@suse.cz>
17059
17060         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
17061
17062 2010-04-26  Richard Guenther  <rguenther@suse.de>
17063
17064         PR lto/43080
17065         * gimple.c (gimple_decl_printable_name): Deal gracefully
17066         with a NULL DECL_NAME.
17067
17068 2010-04-26  Richard Guenther  <rguenther@suse.de>
17069
17070         PR lto/42425
17071         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
17072         if emitting debug information and it is either a function
17073         or a namespace decl.
17074
17075 2010-04-26  Ira Rosen  <irar@il.ibm.com>
17076
17077         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
17078         determine if the statement is vectorizable, and a macro to access it.
17079         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17080         Skip statements that can't be vectorized. If the analysis fails,
17081         mark the statement as unvectorizable if vectorizing basic block.
17082         (vect_compute_data_refs_alignment): Likewise.
17083         (vect_verify_datarefs_alignment): Skip statements marked as
17084         unvectorizable. Add print.
17085         (vect_analyze_group_access): Skip statements that can't be
17086         vectorized. If the analysis fails, mark the statement as
17087         unvectorizable if vectorizing basic block.
17088         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
17089         * tree-vect-stmts.c (vectorizable_store): Fix the number of
17090         generated stmts for SLP.
17091         (new_stmt_vec_info): Initialize the new field.
17092         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
17093         statements marked as unvectorizable.
17094
17095 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
17096
17097         * c-common.c (flag_isoc1x): New.
17098         (flag_isoc99): Update comment.
17099         * c-common.h (flag_isoc1x): New.
17100         (flag_isoc99): Update comment.
17101         * c-cppbuiltin.c (builtin_define_float_constants): Also define
17102         __<type>_DECIMAL_DIG__.
17103         * c-opts.c (set_std_c1x): New.
17104         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
17105         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
17106         * c.opt (-std=c1x, -std=gnu1x): New options.
17107         * doc/cpp.texi: Mention -std=c1x.
17108         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
17109         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
17110         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
17111         * doc/standards.texi: Mention C1X.
17112         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
17113         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
17114         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
17115         Define for C1X.
17116
17117 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
17118
17119         * config/i386/gmon-sol2.c (_mcleanup): Change format string
17120         placeholder from 0x%x to %#x.
17121         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
17122         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
17123         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
17124         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
17125         * config/i386/i386.c (ix86_target_string): Ditto.
17126         (output_pic_addr_const): Ditto.
17127         (print_operand): Ditto.
17128
17129 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
17130
17131         * combine.c (find_split_point): Add third argument.  Use it
17132         to find nested multiply-accumulate instructions.  Adjust calls.
17133         (try_combine): Adjust call to find_split_point.
17134
17135 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
17136
17137         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
17138
17139 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
17140
17141         PR tree-optimization/41442
17142         * fold-const.c (merge_truthop_with_opposite_arm): New function.
17143         (fold_binary_loc): Call it.
17144
17145 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17146
17147         * toplev.c (general_init): Set default for fdiagnostics-show-option.
17148         * opts.c (common_handle_option): Allow disabling it.
17149         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
17150
17151 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
17152
17153         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
17154         between modes if both types are integral.
17155
17156 2010-04-23  Richard Guenther  <rguenther@suse.de>
17157
17158         PR tree-optimization/43572
17159         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
17160
17161 2010-04-23  Richard Guenther  <rguenther@suse.de>
17162
17163         PR lto/43455
17164         * tree-inline.c (tree_can_inline_p): Also check compatibility
17165         of return types.
17166
17167 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17168
17169         PR tree-optimization/43846
17170         * tree-sra.c (struct access): New flag grp_assignment_read.
17171         (build_accesses_from_assign): Set grp_assignment_read.
17172         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
17173         (enum mark_read_status): New type.
17174         (analyze_access_subtree): Propagate grp_assignment_read, create
17175         accesses also if both direct_read and root->grp_assignment_read.
17176
17177 2010-04-23  Martin Jambor  <mjambor@suse.cz>
17178
17179         PR middle-end/43835
17180         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
17181         function does not have type attributes.
17182
17183 2010-04-23  Richard Guenther  <rguenther@suse.de>
17184
17185         PR lto/42653
17186         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
17187         of FUNCTION_DECLs.
17188
17189 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17190
17191         * sese.h (create_if_region_on_edge): Remove.
17192
17193         * sese.c (create_if_region_on_edge): Make static.
17194
17195         * tree-inline.c: Do not include ggc.h.
17196
17197         * expr.c: Do not include ggc.h.
17198
17199         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
17200         dependencies.
17201
17202 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
17203
17204         PR target/43744
17205         * config/sh/sh.c (find_barrier): Don't emit a constant pool
17206         in the middle of insns for casesi_worker_2.
17207
17208 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
17209
17210         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
17211
17212 2010-04-22  Ira Rosen  <irar@il.ibm.com>
17213
17214         PR tree-optimization/43842
17215         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
17216         loop unrolling in update of exit phis. Fix comment.
17217         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
17218         least two reduction statements in the loop before starting SLP
17219         analysis.
17220
17221 2010-04-22  Nick Clifton  <nickc@redhat.com>
17222
17223         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
17224
17225 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
17226
17227         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
17228         to simplify a + ~a.
17229
17230 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17231
17232         * tree-parloops.c (loop_parallel_p): New argument
17233         parloop_obstack.  Pass it down.
17234         (parallelize_loops): New variable parloop_obstack.  Initialize it,
17235         pass it down, free it.
17236
17237         * tree-loop-linear.c (linear_transform_loops): Pass down
17238         lambda_obstack.
17239
17240         * tree-data-ref.h (lambda_compute_access_matrices): New argument
17241         of type struct obstack *.
17242
17243         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
17244         scratch_obstack.  Initialize it, pass down, free it.
17245
17246         * lambda.h (lambda_loop_new): Remove.
17247         (lambda_matrix_new, lambda_matrix_inverse)
17248         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
17249         argument of type struct obstack *.
17250
17251         * lambda-trans.c (lambda_trans_matrix_new): New argument
17252         lambda_obstack.  Pass it down, use obstack allocation for ret.
17253         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
17254         it down.
17255
17256         * lambda-mat.c (lambda_matrix_get_column)
17257         (lambda_matrix_project_to_null): Remove.
17258         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
17259         allocation for mat.
17260         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
17261         lambda_obstack.
17262
17263         * lambda-code.c (lambda_loop_new): New function.
17264         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
17265         (lambda_compute_auxillary_space, lambda_compute_target_space)
17266         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
17267         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
17268         (build_access_matrix): New argument lambda_obstack.  Use obstack
17269         allocation for am.
17270         (lambda_compute_step_signs, lambda_compute_access_matrices): New
17271         argument lambda_obstack.  Pass it down.
17272
17273 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17274
17275         * optabs.h (expand_widening_mult): Declare.
17276
17277 2010-04-22  Richard Guenther  <rguenther@suse.de>
17278
17279         PR tree-optimization/43845
17280         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
17281         lookup the CALL_EXPR function and arguments.
17282
17283 2010-04-22  Nick Clifton  <nickc@redhat.com>
17284
17285         * config/stormy16/stormy16.c
17286         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
17287         * config/stormy16/stormy16.h: Tidy up formatting.
17288         (DONT_USE_BUILTIN_SETJMP): Remove definition.
17289         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
17290         (ineqbranchsi): Delete pattern.
17291         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
17292         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
17293         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
17294         stormy16-lib2-ucmpsi2.c.
17295
17296 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17297
17298         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
17299         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
17300         extra set merge_set_noclobber, and use it to relax the final test
17301         slightly.
17302         * df.h (df_simulate_find_noclobber_defs): Declare.
17303         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
17304         conditional defs.
17305         (df_simulate_find_noclobber_defs): New function.
17306
17307 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
17308
17309         * config/i386/i386.md: Use {} around multi-line preparation statements.
17310
17311 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
17312
17313         * c-tree.h (push_init_level, pop_init_level, set_init_index)
17314         (process_init_element): New argument of type struct obstack *.
17315
17316         * c-typeck.c (push_init_level, pop_init_level, set_designator)
17317         (set_init_index, set_init_label, set_nonincremental_init)
17318         (set_nonincremental_init_from_string, find_init_member)
17319         (output_init_element, output_pending_init_elements)
17320         (process_init_element): New argument braced_init_obstack.  Pass it
17321         down.
17322         (push_range_stack, add_pending_init): New argument
17323         braced_init_obstack.  Use obstack allocation.
17324
17325         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
17326         braced_init_obstack.  Pass it down.
17327         (c_parser_braced_init): New variables ret, braced_init_obstack.
17328         Initialize obstack, pass it down and finally free it.
17329
17330 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
17331
17332         PR middle-end/29274
17333         * tree-pass.h (pass_optimize_widening_mul): Declare.
17334         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
17335         gate_optimize_widening_mul): New static functions.
17336         (pass_optimize_widening_mul): New.
17337         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
17338         <case MULT_EXPR>: Remove support for widening multiplies.
17339         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
17340         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
17341         simplify_gen_unary rather than directly building extensions.
17342         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
17343         WIDEN_MULT_EXPR.
17344         * expmed.c (expand_widening_mult): New function.
17345         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
17346
17347 2010-04-21  Jan Hubicka  <jh@suse.cz>
17348
17349         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
17350         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
17351         * lto-wpa-fixup.c: Remove.
17352         * Makefile.in (lto-wpa-fixup.o): Remove.
17353         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
17354         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
17355         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
17356
17357 2010-04-21  Jan Hubicka  <jh@suse.cz>
17358
17359         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
17360         add write_optimization_summary, read_optimization_summary.
17361         (ipa_write_summaries_of_cgraph_node_set): Remove.
17362         (ipa_write_optimization_summaries): Declare.
17363         (ipa_read_optimization_summaries): Declare.
17364         * ipa-cp.c (pass_ipa_cp): Update.
17365         * ipa-reference.c (pass_ipa_reference): Update.
17366         * ipa-pure-const.c (pass_ipa_pure_const): Update.
17367         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
17368         Update.
17369         * ipa-inline.c (pass_ipa_inline): Update.
17370         * ipa.c (pass_ipa_whole_program): Update.
17371         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
17372         * passes.c (ipa_write_summaries_1): Do not test wpa.
17373         (ipa_write_optimization_summaries_1): New.
17374         (ipa_write_optimization_summaries): New.
17375         (ipa_read_summaries): Do not test ltrans.
17376         (ipa_read_optimization_summaries_1): New.
17377         (ipa_read_optimization_summaries): New.
17378
17379 2010-04-21  Jan Hubicka  <jh@suse.cz>
17380
17381         * lto-cgraph.c (lto_output_node): Do not output comdat groups
17382         for boundary nodes.
17383         (output_cgraph): Do not arrange comdat groups for boundary nodes.
17384
17385 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17386
17387         PR debug/40040
17388         * dwarf2out.c (add_name_and_src_coords_attributes): Add
17389         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
17390
17391 2010-04-21  Jan Hubicka  <jh@suse.cz>
17392
17393         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
17394
17395 2010-04-21  Jan Hubicka  <jh@suse.cz>
17396
17397         * varpool.c (decide_is_variable_needed): Variable is always needed
17398         during ltrans.
17399
17400 2010-04-21  Jan Hubicka  <jh@suse.cz>
17401
17402         * opts.c (decode_options): Enable pure-const pass for whopr.
17403
17404 2010-04-21  Jan Hubicka  <jh@suse.cz>
17405
17406         * cgraph.c (dump_cgraph_node): Dump also assembler name.
17407         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
17408         at WPA dumping.
17409         (cgraph_decide_inlining): Do not expect callee to be removed in all
17410         cases.
17411
17412 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
17413
17414         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
17415
17416 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17417
17418         * config/i386/i386.md (x86_shrd): Add athlon_decode and
17419         amdfam10_decode attributes.
17420
17421 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17422
17423         PR middle-end/43570
17424         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
17425         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
17426         (lower_copyprivate_clauses): Use private var in outer
17427         context instead of original var.  Make sure the types
17428         are correct for VLAs.
17429
17430 2010-04-21  Richard Guenther  <rguenther@suse.de>
17431
17432         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
17433         to non-pointer objects.
17434
17435 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
17436
17437         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
17438         last chain entry if it starts with the still current label.
17439         (add_location_or_const_value_attribute): Check that
17440         loc_list->first->next is NULL instead of comparing ->first with ->last.
17441         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
17442         to add_var_loc_to_decl.
17443
17444         * dwarf2out.c (output_call_frame_info): For dw_cie_version
17445         >= 4 add also address size and segment size fields into CIE header.
17446
17447         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
17448         long as address size is the same as sizeof (void *) and
17449         segment size is 0.
17450         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
17451         address size or segment size is unexpected, return DW_EH_PE_omit.
17452         (classify_object_over_fdes): If get_cie_encoding returned
17453         DW_EH_PE_omit, return -1.
17454         (init_object): If classify_object_over_fdes returned -1,
17455         pretend there were no FDEs at all.
17456
17457 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
17458
17459         * config/i386/i386.md (bswap<mode>2): Macroize expander from
17460         bswap{si,di}2 using SWI48 mode iterator.
17461         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
17462         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
17463         set modrm attribute of bswap insn to 0 and remove length attribute.
17464         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
17465         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
17466         set mode attribute to <MODE> and remove length attribute.
17467
17468 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
17469
17470         PR rtl-optimization/43520
17471         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
17472         zero available registers.
17473
17474 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17475
17476         * builtins.c (fold_builtin_cproj): Fold more cases.
17477
17478 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17479
17480         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
17481         (fold_builtin_1): Fold builtin cproj.
17482         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
17483         Use ATTR_CONST_NOTHROW_LIST.
17484
17485 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
17486
17487         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
17488         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
17489         ffsi2_no_cmove for !TARGET_CMOVE.
17490         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
17491         (ffssi2): Remove expander.
17492         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
17493         mode iterator.
17494         (ctz<mode>2): Ditto from ctz{si,di}2.
17495         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
17496         mode iterator.
17497         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
17498         mode iterator.
17499
17500 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17501
17502         * dwarf2out.c (AT_linkage_name): Define.
17503         (clone_as_declaration): Handle DW_AT_linkage_name.
17504         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
17505         of DW_AT_MIPS_linkage_name.
17506         (move_linkage_attr): Likewise.
17507         (dwarf2out_finish): Likewise.
17508
17509 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
17510
17511         PR middle-end/41952
17512         * fold-const.c (fold_comparison): New folding rule.
17513
17514 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
17515
17516         * double-int.h (double_int_setbit): Declare.
17517         * double-int.c (double_int_setbit): New function.
17518         * rtl.h (immed_double_int_const): Declare.
17519         * emit-rtl.c (immed_double_int_const): New function.
17520         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
17521         and immed_double_int_const functions.
17522         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
17523         expand_copysign_bit): (Ditto.).
17524         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
17525         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
17526         * dojump.c (prefer_and_bit_test): (Ditto.).
17527         * expr.c (convert_modes, reduce_to_bit_field_precision,
17528         const_vector_from_tree): (Ditto.).
17529         * expmed.c (mask_rtx, lshift_value): (Ditto.).
17530
17531 2010-04-20  Jan Hubicka  <jh@suse.cz>
17532
17533         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
17534         (dump_cgraph_node): Dump new flags.
17535         * cgraph.h (struct cgraph_node): Add flags
17536         reachable_from_other_partition and in_other_partition.
17537         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
17538         other partition can not be removed.
17539         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
17540         the other partition must be output; silence sanity checking on
17541         leaking functions bodies from other paritition.
17542         * lto-cgraph.c (reachable_from_other_partition_p): New function.
17543         (lto_output_node): Output new flags; do not sanity check that inline
17544         clones are output; drop lto_forced_extern_inline_p code; do not mock
17545         visibility flags at partition boundaries.
17546         (add_node_to): New function.
17547         (output_cgraph): Use it to sort functions so masters appear before
17548         clones.
17549         (input_overwrite_node): Input new flags.
17550         * passes.c (ipa_write_summaries): Do not call
17551         lto_new_extern_inline_states.
17552         * lto-section-out.c (forced_extern_inline,
17553         lto_new_extern_inline_states lto_delete_extern_inline_states,
17554         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
17555         * lto-streamer.h (lto_new_extern_inline_states,
17556         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
17557         lto_forced_extern_inline_p): Kill.
17558
17559 2010-04-20  Richard Guenther  <rguenther@suse.de>
17560
17561         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
17562         from vars that can have pointers.
17563         (process_constraint): Dump useless constraints.
17564
17565 2010-04-20  Richard Guenther  <rguenther@suse.de>
17566
17567         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
17568         (dump_sa_points_to_info): Remove asserts.
17569         (init_base_vars): nothing_id isn't an escape point nor does it
17570         have pointers.
17571
17572 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
17573
17574         * tree.h (TYPE_REF_IS_RVALUE): Define.
17575         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
17576         should_move_die_to_comdat, prune_unused_types_walk): Handle
17577         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
17578         (modified_type_die, gen_reference_type_die): Emit
17579         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
17580         if TYPE_REF_IS_RVALUE and -gdwarf-4.
17581
17582 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17583
17584         PR target/43635
17585         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
17586         calls for -fpic -m31 if they have been sibcall optimized.
17587
17588 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
17589
17590         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
17591         ar.lc fixed and call-used.
17592
17593         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
17594
17595 2010-04-19  Jan Hubicka  <jh@suse.cz>
17596
17597         * opts.c (decode_options): Disable whpr incompatible passes.
17598         * lto/lto.c (lto_1_to_1_map): Skip clones.
17599         (read_cgraph_and_symbols): Do not mark everything as needed.
17600         (do_whole_program_analysis): Do map only after optimizing;
17601         set proper cgraph_state; use passmanager.
17602
17603 2010-04-19  DJ Delorie  <dj@redhat.com>
17604
17605         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
17606         POINTER_PLUS_EXPR and fix them.
17607
17608 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
17609
17610         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
17611         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
17612         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
17613         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
17614         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
17615         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
17616         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
17617         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
17618         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
17619         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
17620         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
17621
17622 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
17623
17624         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
17625         (check_cond_move_block): Likewise.
17626         (cond_move_process_if_block): Likewise.
17627         (noce_find_if_block): Improve formatting.
17628         (find_if_header): Pass 0 to memset and tweak conditions.
17629         (cond_exec_find_if_block): Fix long lines and tweak conditions.
17630
17631 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17632
17633         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
17634         for -gdwarf-4.
17635
17636         PR middle-end/43337
17637         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
17638         with non-local decl doesn't need chain.
17639
17640 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
17641
17642         * ira-color.c (allocno_reload_assign): Avoid accumulating
17643         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
17644
17645 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17646
17647         * gimple.h (create_tmp_reg): Declare.
17648         * gimplify.c (create_tmp_reg): New function.
17649         (gimplify_return_expr): Use create_tmp_reg.
17650         (gimplify_omp_atomic): Likewise.
17651         (gimple_regimplify_operands): Likewise.
17652         * tree-dfa.c (make_rename_temp): Likewise.
17653         * tree-predcom.c (predcom_tmp_var): Likewise.
17654         (reassociate_to_the_same_stmt): Likewise.
17655         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
17656         (get_replaced_param_substitute): Likewise.
17657         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17658         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17659         * tree-ssa-pre.c (get_representative_for): Likewise.
17660         (create_expression_by_pieces): Likewise.
17661         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
17662         (create_tailcall_accumulator): Likewise.
17663
17664 2010-04-19  Martin Jambor  <mjambor@suse.cz>
17665
17666         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
17667         new_stmt.
17668         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
17669
17670 2010-04-19  Richard Guenther  <rguenther@suse.de>
17671
17672         PR tree-optimization/43796
17673         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
17674         from SCEV in the lattice.
17675         (vrp_visit_phi_node): Dump change.
17676
17677 2010-04-19  Richard Guenther  <rguenther@suse.de>
17678
17679         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
17680         * configure: Re-generated.
17681
17682 2010-04-19  Richard Guenther  <rguenther@suse.de>
17683
17684         PR tree-optimization/43783
17685         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
17686         constant ARRAY_REF operands two and three if possible.
17687
17688 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
17689
17690         PR target/43766
17691         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
17692
17693 2010-04-19  Jie Zhang  <jie@codesourcery.com>
17694
17695         PR target/43662
17696         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
17697
17698 2010-04-19  Ira Rosen  <irar@il.ibm.com>
17699
17700         PR tree-optimization/37027
17701         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
17702         and macro to access it.
17703         (vectorizable_reduction): Add argument.
17704         (vect_get_slp_defs): Likewise.
17705         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
17706         statements for possible use in SLP.
17707         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
17708         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
17709         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
17710         add new argument.
17711         (vectorizable_reduction): Likewise.
17712         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
17713         vect_get_slp_defs.
17714         (vectorizable_type_demotion, vectorizable_type_promotion,
17715         vectorizable_store): Likewise.
17716         (vect_analyze_stmt): Update call to vectorizable_reduction.
17717         (vect_transform_stmt): Likewise.
17718         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
17719         (vect_build_slp_tree): Fix indentation. Check that there are no loads
17720         from different interleaving chains in same node.
17721         (vect_slp_rearrange_stmts): New function.
17722         (vect_supported_load_permutation_p): Allow load permutations for
17723         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
17724         inside SLP nodes if necessary.
17725         (vect_analyze_slp_instance): Handle reductions.
17726         (vect_analyze_slp): Try to build SLP instances originating from groups
17727         of reductions.
17728         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
17729         (vect_get_constant_vectors): Create initial vectors for reductions
17730         according to reduction code. Add new argument.
17731         (vect_get_slp_defs): Add new argument, pass it to
17732         vect_get_constant_vectors.
17733         (vect_schedule_slp_instance): Remove SLP tree root statements.
17734
17735 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
17736
17737         * tree.h (ENUM_IS_SCOPED): Define.
17738         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
17739         for ENUM_IS_SCOPED enums.
17740
17741 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17742
17743         * fold-const.c (fold_comparison): Use ssizetype.
17744         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
17745         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
17746         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
17747         * tree-object-size.c (compute_object_sizes): Use size_type_node.
17748
17749         * tree.h (initialize_sizetypes): Remove parameter.
17750         (build_common_tree_nodes): Remove second parameter.
17751         * stor-layout.c (initialize_sizetypes): Remove parameter.
17752         Always create an unsigned type.
17753         (set_sizetype): Assert that the passed type is unsigned and simplify.
17754         * tree.c (build_common_tree_nodes): Remove second parameter.
17755         Adjust call to initialize_sizetypes.
17756         * c-decl.c (c_init_decl_processing): Remove second argument in call to
17757         build_common_tree_nodes.
17758
17759 2010-04-18  Matthias Klose  <doko@ubuntu.com>
17760
17761         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
17762
17763 2010-04-18  Ira Rosen  <irar@il.ibm.com>
17764
17765         PR tree-optimization/43771
17766         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
17767         load permutation doesn't have gaps.
17768
17769 2010-04-18  Jan Hubicka  <jh@suse.cz>
17770
17771         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
17772         (sse_prologue_save_insn expander): Use new pattern.
17773         (sse_prologue_save_insn1): New pattern and splitter.
17774         (sse_prologue_save_insn): Update to deal also with 64bit aligned
17775         blocks.
17776         * i386.c (setup_incoming_varargs_64): Do not compute jump
17777         destination here.
17778         (ix86_gimplify_va_arg): Update alignment needed.
17779         (ix86_local_alignment): Do not align all local arrays to 128bit.
17780
17781 2010-04-17  Jan Hubicka  <jh@suse.cz>
17782
17783         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
17784
17785 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17786
17787         * arm.md (negdi2): Remove redundant code to force values into a
17788         register.
17789
17790 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17791
17792         * arm/bpabi.S: Add EABI alignment attributes to objects.
17793         * arm/bpabi-v6m.S: Likewise.
17794         * arm/crti.asm: Likewise.
17795         * arm/crtn.asm: Likewise.
17796         * arm/lib1funcs.asm: Likewise.
17797         * arm/libunwind.S: Likewise.
17798
17799 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
17800
17801         * arm-protos.h (tune_params): New structure.
17802         * arm.c (current_tune): New variable.
17803         (arm_constant_limit): Delete.
17804         (struct processors): Add pointer to the tune parameters.
17805         (arm_slowmul_tune): New tuning option.
17806         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
17807         (all_cores): Adjust to pick up the tuning model.
17808         (arm_constant_limit): New function.
17809         (arm_override_options): Select the appropriate tuning model.  Delete
17810         initialization of arm_const_limit.
17811         (arm_split_constant): Use the new constant-limit model.
17812         (arm_rtx_costs): Pick up the current tuning model.
17813         * arm.md (is_strongarm, is_xscale): Delete.
17814         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
17815         for Xscale variant architectures.
17816         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
17817
17818 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17819
17820         * config/arm/arm.c (arm_gen_constant): Remove unused variable
17821         can_shift.
17822         (arm_rtx_costs_1): Remove unused variable extra_cost.
17823         (arm_unwind_emit_set): Use variable offset.
17824         (thumb1_output_casesi): Remove unused variable flags.
17825
17826 2010-04-16  Jeff Law  <law@redhat.com>
17827
17828         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
17829         needing assignment rather than doing a two-phase assignment.  Remove
17830         unused variable 'm'.
17831
17832 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17833
17834         PR bootstrap/43767
17835         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
17836
17837 2010-04-16  Doug Kwan  <dougkwan@google.com>
17838
17839         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
17840         (next_operand_entry_id): New static variable.
17841         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
17842         (add_to_ops_vec): Assigned unique ID to operand entry.
17843         (struct oecount_s): New field ID.
17844         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
17845         (undistribute_ops_list): Assign unique IDs to oecounts.
17846         (init_reassoc): reset next_operand_entry_id.
17847
17848 2010-04-16  Doug Kwan  <dougkwan@google.com>
17849
17850         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
17851         missing left parenthesis.
17852
17853 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
17854
17855         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
17856         *btdi_rex64 using SWI48 mode iterator.
17857         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
17858         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
17859         *jcc_btdi_mask_rex64.
17860
17861 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
17862
17863         * double-int.h (tree_to_double_int): Convert to macro.
17864         * double-int.c (tree_to_double_int): Remove.
17865
17866 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17867
17868         PR debug/43762
17869         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
17870         with want_address 2 and in case a single element list might be
17871         possible, call it again with want_address 0.
17872
17873 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17874
17875         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
17876         case 'W' print operands for HI mode.
17877         * config/h8300/h8300.h (Y0, Y2) : New constraints.
17878         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
17879         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
17880         * config/h8300/predicate.md (bit_register_indirect_operand): New.
17881
17882         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
17883
17884         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
17885         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
17886         #xx:3 and #xx:4 mode.
17887
17888         * config/h8300/h8300.md (inverted load with HImode dest): Add
17889         support for H8300SX.
17890
17891         * config/h8300/predicate.md (bit_operand): Allow immediate values that
17892         satisfy 'U' constraint.
17893
17894 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17895
17896         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
17897         * configure: Regenerate.
17898         * config.in: Regenerate.
17899         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
17900         works.
17901
17902 2010-04-16  Richard Guenther  <rguenther@suse.de>
17903
17904         * tree.h (struct tree_decl_minimal): Move pt_uid ...
17905         (struct tree_decl_common): ... here.
17906         (DECL_PT_UID): Adjust.
17907         (SET_DECL_PT_UID): Likewise.
17908         (DECL_PT_UID_SET_P): Likewise.
17909
17910 2010-04-16  Richard Guenther  <rguenther@suse.de>
17911
17912         PR tree-optimization/43572
17913         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
17914         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
17915         * tree-flow.h (is_call_clobbered): Remove.
17916         * tree-flow-inline.h (is_call_clobbered): Likewise.
17917         * tree-dfa.c (dump_variable): Do not dump call clobber state.
17918         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
17919         (execute_return_slot_opt): Adjust.
17920         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
17921         check for call clobbered vars here.
17922         (find_tail_calls): Move tailcall verification to the
17923         proper place.
17924
17925 2010-04-16  Diego Novillo  <dnovillo@google.com>
17926
17927         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
17928
17929 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17930
17931         PR target/40603
17932         * config/arm/arm.md (cbranchqi4): New pattern.
17933         * config/arm/predicates.md (const0_operand,
17934         cbranchqi4_comparison_operator): New predicates.
17935
17936 2010-04-16  Richard Guenther  <rguenther@suse.de>
17937
17938         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
17939         (dump_gimple_stmt): Likewise.
17940
17941 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
17942
17943         * recog.h (struct recog_data): New field is_operator.
17944         (struct insn_operand_data): New field is_operator.
17945         * recog.c (extract_insn): Set recog_data.is_operator.
17946         * genoutput.c (output_operand_data): Emit code to set the
17947         is_operator field.
17948         * reload.c (find_reloads): Use it rather than testing for an
17949         empty constraint string.
17950
17951         PR target/41514
17952         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
17953         If the previous insn is a cbranchsi4_insn with the same arguments,
17954         omit the compare instruction.
17955
17956         * config/arm/arm.md (addsi3_cbranch): If destination is a high
17957         register, inputs must be low registers and we need a low register
17958         scratch.  Handle alternative 2 like alternative 3.
17959
17960 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
17961
17962         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
17963         don't call get_addr on both.  If one expression is a VALUE and
17964         the other a REG, check VALUE's locs if the REG isn't among them.
17965
17966 2010-04-16  Christian Bruel  <christian.bruel@st.com>
17967
17968         * config/sh/sh.h (sh_frame_pointer_required): New function.
17969         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
17970         (flag_omit_frame_pointer) Set.
17971         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
17972         (rounded_frame_size): Adjust size with outgoing_args_size.
17973         (sh_set_return_address): Must return from stack pointer.
17974         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
17975         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
17976         (ACCUMULATE_OUTGOING_ARGS): Define.
17977         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
17978         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
17979
17980 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
17981
17982         PR target/43471
17983         * config/sh/sh.c (sh_legitimize_reload_address): Use
17984         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
17985         Remove a unneeded check for offset_base.
17986
17987 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
17988
17989         * configure: Regenerated.
17990
17991 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17992
17993         * config/s390/s390.c (s390_call_save_register_used): Switch back
17994         to HARD_REGNO_NREGS.
17995
17996 2010-04-15  Richard Guenther  <rguenther@suse.de>
17997
17998         * alias.c (alias_set_subset_of): Handle alias-set zero
17999         child properly.
18000
18001 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
18002             Julian Brown  <julian@codesourcery.com>
18003
18004         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
18005         alternatives according to use of high and low regs.
18006         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18007         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
18008         optimizing for size on Thumb-2.
18009
18010 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
18011
18012         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
18013
18014 2010-04-15  Richard Guenther  <rguenther@suse.de>
18015
18016         * tree-ssa-structalias.c (struct variable_info): Add
18017         is_fn_info flag.
18018         (new_var_info): Initialize it.
18019         (dump_constraints): Support printing last added constraints.
18020         (debug_constraints): Adjust.
18021         (dump_constraint_graph): Likewise.
18022         (make_heapvar_for): Check for NULL cfun.
18023         (get_function_part_constraint): New function.
18024         (get_fi_for_callee): Likewise.
18025         (find_func_aliases): Properly implement IPA PTA constraints.
18026         (process_ipa_clobber): New function.
18027         (find_func_clobbers): Likewise.
18028         (insert_into_field_list_sorted): Remove.
18029         (create_function_info_for): Properly allocate vars for IPA mode.
18030         Do not use insert_into_field_list_sorted.
18031         (create_variable_info_for): Properly generate constraints for
18032         global vars in IPA mode.
18033         (dump_solution_for_var): Always dump the solution.
18034         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
18035         (find_what_var_points_to): Adjust.
18036         (pt_solution_set): Change.
18037         (pt_solution_ior_into): New function.
18038         (pt_solution_empty_p): Export.
18039         (pt_solution_includes_global): Adjust.
18040         (pt_solution_includes_1): Likewise.
18041         (pt_solutions_intersect_1): Likewise.
18042         (dump_sa_points_to_info): Check some invariants.
18043         (solve_constraints): Move constraint dumping ...
18044         (compute_points_to_sets): ... here.
18045         (ipa_pta_execute): ... and here.
18046         (compute_may_aliases): Do not re-compute points-to info
18047         locally if IPA info is available.
18048         (ipa_escaped_pt): New global var.
18049         (ipa_pta_execute): Properly implement IPA PTA.
18050         * tree-into-ssa.c (dump_decl_set): Support dumping
18051         decls not in referenced-vars.
18052         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
18053         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
18054         (dump_points_to_solution): Likewise.
18055         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
18056         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
18057         (remap_gimple_stmt): Reset call clobber/use information if necessary.
18058         (copy_decl_to_var): Copy DECL_PT_UID.
18059         (copy_result_decl_to_var): Likewise.
18060         * tree.c (make_node_stat): Initialize DECL_PT_UID.
18061         (copy_node_stat): Copy it.
18062         * tree.h (DECL_PT_UID): New macro.
18063         (SET_DECL_PT_UID): Likewise.
18064         (DECL_PT_UID_SET_P): Likewise.
18065         (struct tree_decl_minimal): Add pt_uid member.
18066         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
18067         (pt_solution_empty_p): Declare.
18068         (pt_solution_set): Adjust.
18069         (ipa_escaped_pt): Declare.
18070         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
18071         * gimple-pretty-print.c (pp_points_to_solution): New function.
18072         (dump_gimple_call): Dump call clobber/use information.
18073         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
18074         * tree-pass.h (TDF_ALIAS): New dump option.
18075         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
18076         * doc/invoke.texi (-fipa-pta): Update documentation.
18077
18078 2010-04-15  Richard Guenther  <rguenther@suse.de>
18079
18080         * Makefile.in (OBJS-common): Add gimple-fold.o.
18081         (gimple-fold.o): New rule.
18082         * tree.h (maybe_fold_offset_to_reference,
18083         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
18084         prototypes ...
18085         * gimple.h: ... here.
18086         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
18087         may_propagate_address_into_dereference): Move prototypes ...
18088         * gimple.h: ... here.
18089         * tree-ssa-ccp.c (get_symbol_constant_value,
18090         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
18091         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
18092         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
18093         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
18094         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
18095         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
18096         gimplify_and_update_call_from_tree): Move ...
18097         * gimple-fold.c: ... here.  New file.
18098         (ccp_fold_builtin): Rename to ...
18099         (gimple_fold_builtin): ... this.
18100         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
18101
18102 2010-04-15  Richard Guenther  <rguenther@suse.de>
18103
18104         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
18105         fit_double_type, force_fit_type_double, add_double_with_sign,
18106         neg_double, mul_double_with_sign, lshift_double, rshift_double,
18107         lrotate_double, rrotate_double, div_and_round_double): Move ...
18108         * double-int.c: ... here.
18109         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
18110         add_double, neg_double, mul_double_with_sign, mul_double,
18111         lshift_double, rshift_double, lrotate_double, rrotate_double,
18112         div_and_round_double): Move prototypes ...
18113         * double-int.h: ... here.
18114
18115 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
18116
18117         PR target/43742
18118         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
18119         matching constraints to ensure inputs match the output.
18120
18121 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
18122
18123         PR target/43742
18124         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
18125         in an input-only operand.
18126
18127 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
18128
18129         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
18130         (double_int_not, double_int_lshift, double_int_rshift): Declare.
18131         (double_int_negative_p): Convert to static inline function.
18132         * double-int.c (double_int_lshift, double_int_lshift): New functions.
18133         (double_int_negative_p): Remove.
18134         * tree.h (lshift_double, rshift_double):
18135         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
18136         * fold-const.c (fold_convert_const_int_from_real,
18137         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
18138         (lshift_double): Change type of arith argument to bool.
18139         (rshift_double): Change type of arith argument to bool. Correct
18140         comment.
18141         * expmed.c (mask_rtx, lshift_value): (Ditto.).
18142
18143 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
18144
18145         PR target/21803
18146         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
18147         at the start and end of the then/else blocks, and omit them from the
18148         conversion.
18149         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
18150         argument; all callers changed.  Pass zero to old_insns_match_p instead.
18151         (flow_find_head_matching_sequence): New function.
18152         (old_insns_match_p): Check REG_EH_REGION notes for calls.
18153         * basic-block.h (flow_find_cross_jump,
18154         flow_find_head_matching_sequence): Declare functions.
18155
18156 2010-04-14  Jason Merrill  <jason@redhat.com>
18157
18158         PR c++/36625
18159         * c-common.c (attribute_takes_identifier_p): New fn.
18160         * c-common.h: Declare it.
18161
18162 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18163
18164         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
18165         splitter condition.
18166         (*udivmod<mode>4): Ditto.
18167
18168 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18169
18170         * config/i386/i386.md (maxmin_int): Rename code attribute from
18171         maxminiprefix and update all users.
18172         (maxmin_float): Ditto from maxminfprefix.
18173         (logic): Ditto from logicprefix.
18174         (absneg_mnemonic): Ditto from absnegprefix.
18175         * config/i386/mmx.md: Update all users of maxminiprefix,
18176         maxminfprefix and logicprefix for rename.
18177         * config/i386/sse.md: Ditto.
18178         * config/i386/sync.md (sync_<code><mode>): Update for
18179         logicprefix rename.
18180
18181 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18182
18183         PR 42966
18184         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
18185         warnings converted to errors.
18186
18187 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18188
18189         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
18190         used insn_type variable.
18191         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
18192         to avoid set-but-not-used warning.
18193
18194 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18195
18196         * df-core.c (df_ref_debug): Change format string placeholder
18197         from 0x%x to %#x.
18198         * dwarf2asm.c (dw2_asm_output_data_raw,
18199         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
18200         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
18201         * dwarf2out.c (output_cfi, output_cfi_directive,
18202         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
18203         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
18204         Ditto.
18205         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
18206         * print-rtl.c (print_rtx): Ditto.
18207
18208 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18209
18210         PR middle-end/42694
18211         * builtins.c (expand_builtin_pow_root): New function to expand pow
18212         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
18213         series of sqrt and cbrt calls under -ffast-math.
18214         (expand_builtin_pow): Call it.
18215
18216 2010-04-14  Michael Matz  <matz@suse.de>
18217
18218         PR tree-optimization/42963
18219         * tree-cfg.c (touched_switch_bbs): New static variable.
18220         (group_case_labels_stmt): New function broken out from ...
18221         (group_case_labels): ... here, use the above.
18222         (start_recording_case_labels): Allocate touched_switch_bbs.
18223         (end_recording_case_labels): Deallocate it, call
18224         group_case_labels_stmt.
18225         (gimple_redirect_edge_and_branch): Remember index of affected BB.
18226
18227 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18228
18229         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
18230         from insn template.
18231
18232 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
18233
18234         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
18235
18236 2010-04-13  Jan Hubicka  <jh@suse.cz>
18237
18238         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
18239         of optimized out static functions.
18240         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
18241         cost computation.  Also sanity check for overflows.
18242         (update_caller_keys): Update cgraph_edge_badness call; properly
18243         update fibheap and sanity check that it is up to date.
18244         (add_new_edges_to_heap): Update cgraph_edge_badness.
18245         (cgraph_decide_inlining_of_small_function): Likewise;
18246         add sanity checking that badness in heap is up to date;
18247         improve dumping of reason; Update badness of calls to the
18248         offline copy of function currently inlined; dump badness
18249         of functions not inlined because of unit growth limits.
18250
18251 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18252
18253         PR middle-end/32628
18254         * c-common.c (pointer_int_sum): Disregard overflow that occured only
18255         because of sign-extension change when converting to sizetype here...
18256         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
18257
18258         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
18259         the folding to constants.  Remove redundant final conversion.
18260         (fold_binary) <associate>: Do not associate if the re-association of
18261         constants alone overflows.
18262         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
18263         to the end of the list.
18264         (multiple_of_p) <COND_EXPR>: New case.
18265
18266 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18267
18268         * opt-functions.awk (opt_sanitized_name): New.
18269         (opt_enum): New.
18270         * optc-gen.awk: Use it
18271         * opth-gen.awk: Use it.
18272
18273 2010-04-13  Martin Jambor  <mjambor@suse.cz>
18274
18275         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
18276         (sra_modify_assign): Delete stmts loading dead data even if racc has no
18277         children.  Call replace_uses_with_default_def_ssa_name to handle
18278         SSA_NAES on lhs.
18279
18280 2010-04-13  Michael Matz  <matz@suse.de>
18281
18282         PR middle-end/43730
18283         * builtins.c (expand_builtin_interclass_mathfn): Also create
18284         a register if the predicate doesn't match.
18285
18286 2010-04-13  Diego Novillo  <dnovillo@google.com>
18287
18288         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
18289         * c-pch.c: Include timevar.h.
18290         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
18291         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
18292         * ggc-common.c: Include timevar.h.
18293         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
18294         * timevar.def (TV_PCH_SAVE): Define.
18295         (TV_PCH_CPP_SAVE): Define.
18296         (TV_PCH_PTR_REALLOC): Define.
18297         (TV_PCH_PTR_SORT): Define.
18298         (TV_PCH_RESTORE): Define.
18299         (TV_PCH_CPP_RESTORE): Define.
18300
18301 2010-04-13  Michael Matz  <matz@suse.de>
18302
18303         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
18304         into MINUS_EXPRs.
18305         (can_reassociate_p): New function.
18306         (break_up_subtract_bb, reassociate_bb): Use it.
18307
18308 2010-04-13  Richard Guenther  <rguenther@suse.de>
18309
18310         PR bootstrap/43737
18311         * builtins.c (c_readstr): Fix assert.
18312
18313 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
18314
18315         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
18316         when generating cltd insn.
18317
18318         (*ashl<mode>3_1): Remove special handling for register operand 2.
18319         (*ashlsi3_1_zext): Ditto.
18320         (*ashlhi3_1): Ditto.
18321         (*ashlhi3_1_lea): Ditto.
18322         (*ashlqi3_1): Ditto.
18323         (*ashlqi3_1_lea): Ditto.
18324         (*<shiftrt_insn><mode>3_1): Ditto.
18325         (*<shiftrt_insn>si3_1_zext): Ditto.
18326         (*<shiftrt_insn>qi3_1_slp): Ditto.
18327         (*<rotate_insn><mode>3_1): Ditto.
18328         (*<rotate_insn>si3_1_zext): Ditto.
18329         (*<rotate_insn>qi3_1_slp): Ditto.
18330
18331 2010-04-13  Richard Guenther  <rguenther@suse.de>
18332
18333         * tree-ssa-structalias.c (callused_id): Remove.
18334         (call_stmt_vars): New.
18335         (get_call_vi): Likewise.
18336         (lookup_call_use_vi): Likewise.
18337         (lookup_call_clobber_vi): Likewise.
18338         (get_call_use_vi): Likewise.
18339         (get_call_clobber_vi): Likewise.
18340         (make_transitive_closure_constraints): Likewise.
18341         (handle_const_call): Adjust to do per-call call-used handling.
18342         (handle_pure_call): Likewise.
18343         (find_what_var_points_to): Remove general callused handling.
18344         (init_base_vars): Likewise.
18345         (init_alias_vars): Initialize call_stmt_vars.
18346         (compute_points_to_sets): Process call-used and call-clobbered
18347         vars for call statements.
18348         (delete_points_to_sets): Free call_stmt_vars.
18349
18350 2010-04-13  Richard Guenther  <rguenther@suse.de>
18351
18352         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18353         Only add RW dependence for dependence distance zero.
18354         Adjust maximal vectorization factor according to dependences.
18355         Move alignment handling ...
18356         (vect_find_same_alignment_drs): ... here.  New function.
18357         (vect_analyze_data_ref_dependences): Adjust.
18358         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
18359         (vect_analyze_data_refs): Adjust minimal vectorization factor
18360         according to data references.
18361         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
18362         dependences before determining the vectorization factor.
18363         Analyze alignment after determining the vectorization factor.
18364         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
18365         dependences before alignment.
18366         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
18367         Adjust prototype.
18368         (vect_analyze_data_refs): Likewise.
18369         (MAX_VECTORIZATION_FACTOR): New define.
18370
18371 2010-04-13  Duncan Sands  <baldrick@free.fr>
18372
18373         * except.h (lang_eh_type_covers): Remove.
18374         * except.c (lang_eh_type_covers): Likewise.
18375
18376 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18377             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18378
18379         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
18380         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
18381         UNITS_PER_LONG where it is ABI relevant.
18382         (s390_return_addr_rtx): Likewise.
18383         (s390_back_chain_rtx): Likewise.
18384         (s390_frame_area): Likewise.
18385         (s390_frame_info): Likewise.
18386         (s390_initial_elimination_offset): Likewise.
18387         (save_gprs): Likewise.
18388         (s390_emit_prologue): Likewise.
18389         (s390_emit_epilogue): Likewise.
18390         (s390_function_arg_advance): Likewise.
18391         (s390_function_arg): Likewise.
18392         (s390_va_start): Likewise.
18393         (s390_gimplify_va_arg): Likewise.
18394         (s390_function_profiler): Likewise.
18395         (s390_optimize_prologue): Likewise.
18396         (s390_rtx_costs): Likewise.
18397         (s390_secondary_reload): Likewise.
18398         (s390_promote_function_mode): Likewise.
18399         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
18400         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
18401         registers available.
18402         (s390_unwind_word_mode): New function.
18403         (s390_function_value): Split 64 bit values into register pair if
18404         used as return value.
18405         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
18406         function call parameters.  Handle parallels.
18407         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
18408         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
18409         (DWARF_CIE_DATA_ALIGNMENT): New macro.
18410         (s390_expand_setmem): Remove unused variable src_addr.
18411         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
18412         deal with 64 bit registers.
18413         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
18414         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
18415         (UNITS_PER_LONG): New macro.
18416         * libjava/include/s390-signal.h: Define extended ucontext
18417         structure containing the upper halfs of the 64 bit registers.
18418
18419 2010-04-13  Simon Baldwin  <simonb@google.com>
18420
18421         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
18422
18423 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
18424
18425         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
18426         rvalue on the RHS if the LHS is of a non-renamable type.
18427         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
18428
18429 2010-04-13  Matthias Klose  <doko@ubuntu.com>
18430
18431         * gcc.c (cc1_options): Handle -iplugindir before processing
18432         the cc1 spec. Only add -iplugindir once.
18433         (cpp_unique_options): Add -iplugindir option if -fplugin* options
18434         found.
18435         * common.opt (iplugindir): Remove `Separate' property, initialize.
18436         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
18437         option.
18438         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
18439         (distclean): Remove plugin dir.
18440         * doc/invoke.texi: Document -iplugindir.
18441
18442 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
18443
18444         * doc/plugins.texi (Loading Plugins): Document short
18445         -fplugin=foo option.
18446         (Plugin API): Mention default_plugin_dir_name function.
18447
18448         * gcc.c (find_file_spec_function): Add new declaration.
18449         (static_spec_func): Use it for "find-file".
18450         (find_file_spec_function): Add new function.
18451         (cc1_options): Add -iplugindir option if -fplugin* options found.
18452
18453         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
18454
18455         * plugin.c (add_new_plugin): Updated comment, and handle short
18456         plugin name.
18457         (default_plugin_dir_name): Added new function.
18458
18459         * common.opt (iplugindir): New option to set the plugin directory.
18460
18461 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
18462
18463         * config/i386/i386.md (any_rotate): New code iterator.
18464         (rotate_insn): New code attribute.
18465         (rotate): Ditto.
18466         (SWIM124): New mode iterator.
18467         (<rotate_insn>ti3): New expander.
18468         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
18469         any_rotate code iterator.
18470         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
18471         using any_rotate code iterator and SWIM124 mode iterator.
18472         (ix86_rotlti3): New insn_and_split pattern.
18473         (ix86_rotrti3): Ditto.
18474         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
18475         ix86_rotl{di,ti}3 patterns.
18476         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
18477         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
18478         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
18479         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
18480         code iterator and SWI mode iterator.
18481         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
18482         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
18483         code iterator.
18484         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
18485         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
18486         (bswap rotatert splitter): Add splitter.
18487         (bswap splitter): Macroize splitter using any_rotate code iterator.
18488         Add insn predicate to split only for TARGET_USE_XCHGB or when
18489         optimizing function for size.
18490
18491 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18492
18493         * config/pa/pa.c (emit_move_sequence): Remove use of
18494         deleted variable flag_argument_noalias.
18495
18496 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18497
18498         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
18499         configurations.
18500         Add to unsupported targets list.
18501         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
18502         sparc*-sun-solaris2.[567]* from target lists.
18503         * configure: Regenerate.
18504         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
18505         removal.
18506         Remove Solaris 7 patch references.
18507         (Specific, sparc-sun-solaris2.7): Removed.
18508         (sparc-sun-solaris2*): Update Solaris 7 example.
18509         (sparc64-*-solaris2*): Likewise.
18510
18511 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18512
18513         * config.build (alpha*-dec-osf4*): Remove.
18514         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
18515         of obsolete configurations.
18516         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
18517         support.
18518         * config/alpha/t-osf4: Renamed to ...
18519         * config/alpha/t-osf5: ... this.
18520         * config/alpha/osf.h: Renamed to ...
18521         * config/alpha/osf5.h: ... this.
18522         Merged old osf5.h contents.
18523         Update comments.
18524         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
18525         (EXTRA_SPECS): Removed.
18526         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
18527         reflect removal of Tru64 UNIX V4.0/V5.0 support.
18528         Document that.
18529
18530 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18531
18532         * doc/contrib.texi (Contributors, Rainer Orth): Update.
18533
18534 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
18535
18536         PR/43702
18537         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
18538         __thiscall convention.
18539
18540 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18541
18542         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
18543         orig_base.
18544         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
18545
18546 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
18547
18548         * function.c (assign_parms_initialize_all): Add unused attribute
18549         to fntype.
18550
18551 2010-04-12  Richard Guenther  <rguenther@suse.de>
18552
18553         * gsstruct.def (GSS_CALL): New.
18554         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
18555         * gimple.h: Include tree-ssa-alias.h.
18556         (struct gimple_statement_call): New.
18557         (union gimple_statement_struct_d): Add gimple_call member.
18558         (gimple_call_reset_alias_info): Declare.
18559         (gimple_call_use_set): New function.
18560         (gimple_call_clobber_set): Likewise.
18561         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
18562         * gimple.c (gimple_call_reset_alias_info): New function.
18563         (gimple_build_call_1): Call it.
18564         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18565         * tree-inline.c (remap_gimple_stmt): Likewise.
18566         (expand_call_inline): Remove callused handling.
18567         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
18568         * tree-dfa.c (dump_variable): Likewise.
18569         * tree-parloops.c (parallelize_loops): Likewise.
18570         * tree-ssa.c (init_tree_ssa): Likewise.
18571         (delete_tree_ssa): Likewise.
18572         * tree-flow-inline.h (is_call_used): Remove.
18573         * tree-flow.h (struct gimple_df): Remove callused member.
18574         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
18575         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
18576         (ref_maybe_used_by_call_p_1): Simplify.
18577         (call_may_clobber_ref_p_1): Likewise.
18578         * tree-ssa-structalias.c (compute_points_to_sets): Set
18579         the call stmt used and clobbered sets.
18580         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
18581         (find_tail_calls): Verify the tail call.
18582
18583 2010-04-12  Richard Guenther  <rguenther@suse.de>
18584
18585         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
18586         single-iteration always-inline inlining.
18587         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
18588         (cgraph_decide_inlining): Do not handle always-inline specially.
18589         (try_inline): Remove always-inline cycle detection special case.
18590         Do not recurse on always-inlines.
18591         (cgraph_early_inlining): Do not iterate if not optimizing.
18592         (cgraph_gate_early_inlining): remove.
18593         (pass_early_inline): Run unconditionally.
18594         (gate_cgraph_decide_inlining): New function.
18595         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
18596         not inlining or optimizing.
18597         (cgraph_decide_inlining_of_small_functions): Also consider
18598         always-inline functions.
18599         (cgraph_default_inline_p): Return true for nodes which should
18600         disregard inline limits.
18601         (estimate_function_body_sizes): Assume zero size and time for
18602         nodes which are marked as disregarding inline limits.
18603         (cgraph_decide_recursive_inlining): Do not perform recursive
18604         inlining on always-inline nodes.
18605
18606 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
18607
18608         PR bootstrap/43699
18609         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
18610         for exprs satisfying handled_component_p.
18611
18612 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18613
18614         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
18615         non-constant aggregate elements.
18616
18617         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
18618         is a real initialization.
18619
18620 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
18621
18622         PR c/36774
18623         * c-decl.c (start_function): Move forward check for nested function.
18624
18625 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18626
18627         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
18628         * config/sh/sh.c: Include reload.h.
18629         (sh_legitimize_reload_address): New.
18630         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
18631         sh_legitimize_reload_address.
18632
18633 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
18634
18635         * config/sh/sh.md (*movqi_pop): New insn pattern.
18636         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
18637
18638 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18639
18640         * config/i386/i386.md (any_shiftrt): New code iterator.
18641         (shiftrt_insn): New code attribute.
18642         (shiftrt): Ditto.
18643         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
18644         using any_shiftrt code iterator.
18645         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
18646         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
18647         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
18648         pattern from corresponding peephole2 patterns.
18649         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
18650         using any_shiftrt code iterator.
18651         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
18652         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
18653         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
18654         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
18655         *{ashr,lshr}<mode>3_cmp_zext.
18656         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
18657
18658 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18659
18660         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
18661         scratch register.
18662         (*lshr<mode>3_cconly): Ditto.
18663
18664 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
18665
18666         * config/i386/i386.md (lshr<mode>3): Macroize expander from
18667         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18668         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18669         pattern from *lshr{di,ti}3_1 and corresponding splitters using
18670         DWI mode iterator.
18671         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18672         from corresponding peephole2 patterns.
18673         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
18674         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
18675         and *lshrdi3_1_rex64 using SWI mode iterator.
18676         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
18677         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
18678         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
18679         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
18680         and *lshrdi3_cmp_rex64 using SWI mode iterator.
18681         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
18682         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
18683         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
18684         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
18685         SWI mode iterator.
18686
18687 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
18688
18689         * config/i386/i386.md (ashr<mode>3): Macroize expander from
18690         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
18691         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18692         pattern from *ashr{di,ti}3_1 and corresponding splitters using
18693         DWI mode iterator.
18694         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
18695         from corresponding peephole2 patterns.
18696         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
18697         (ashrsi3_cvt): Rename from ashrsi3_31.
18698         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
18699         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
18700         and x86_64_shift_adj_3 using SWI48 mode iterator.
18701         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
18702         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
18703         and *ashrdi3_1_rex64 using SWI mode iterator.
18704         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
18705         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
18706         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
18707         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
18708         and *ashrdi3_cmp_rex64 using SWI mode iterator.
18709         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
18710         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
18711         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
18712         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
18713         SWI mode iterator.
18714         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
18715         * config/i386/i386.c (ix86_split_ashr): Update for renamed
18716         x86_shift<mode>_adj_3 expanders.
18717
18718 2010-04-10  Wei Guozhi  <carrot@google.com>
18719
18720         PR target/42601
18721         * config/arm/arm.c (arm_pic_static_addr): New function.
18722         (legitimize_pic_address): Call arm_pic_static_addr when it detects
18723         a static symbol.
18724         (arm_output_addr_const_extra): Output expression for new pattern.
18725         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
18726
18727 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
18728
18729         * ira-costs.c (record_reg_classes): Ignore alternatives that are
18730         not enabled.
18731
18732         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
18733         * web.c: Include "insn-config.h" and "recog.h".
18734         (union_match_dups): New function.
18735         (web_main): Call it.
18736         (union_defs): Don't try to recognize match_dups.
18737
18738         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
18739         if doing so would replace the entire pattern.
18740
18741 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18742
18743         PR target/43707
18744         PR target/43709
18745         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
18746         and splitter pattern.  Change splitter operand 1 predicate to
18747         nonmemory_operand.
18748
18749 2010-04-09  Martin Jambor  <mjambor@suse.cz>
18750
18751         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
18752         lattices are addresses of CONST_DECLs with the same initial value.
18753         (ipcp_print_all_lattices): Print values of CONST_DECLs.
18754         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
18755
18756 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
18757             Bernd Schmidt  <bernds@codesourcery.com>
18758
18759         * loop-invariant.c (replace_uses): New static function.
18760         (move_invariant_reg): Use it to ensure we can replace the uses.
18761
18762 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
18763
18764         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
18765         function template.
18766         (picochip_override_options): Enable section anchors only above -O1.
18767         (picochip_reorg): Fixed a couple of build warnings.
18768
18769 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18770
18771         * configure.ac (plugin -rdynamic test): Log result.
18772         * configure: Regenerate.
18773         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
18774         (RDYNAMIC_SPEC): Define.
18775         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
18776
18777 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18778
18779         * configure.ac: Determine Sun ld version numbers.
18780         (comdat_group): Restrict GNU ld version checks to gld.
18781         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
18782         (enable_comdat): Support --enable-comdat.
18783         * configure: Regenerate.
18784         * doc/install.texi (Configuration): Document --enable-comdat.
18785
18786 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18787
18788         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
18789         * config/sol2-gld.h: ... here.
18790         * config.gcc (sparc*-*-solaris2*): Reflect this.
18791         (i[34567]86-*-solaris2*): Use it.
18792
18793 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
18794
18795         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
18796         setup_clocks_p.
18797         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
18798
18799 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18800
18801         PR 42965
18802         * diagnostic.c (diagnostic_initialize): Initialize
18803         some_warnings_are_errors.
18804         (diagnostic_finish): New.
18805         (diagnostic_action_after_output): Call it before exiting.
18806         (diagnostic_report_diagnostic): Do not print message here. Set
18807         some_warnings_are_errors.
18808         * diagnostic.h (diagnostic_context): Delete
18809         issue_warnings_are_errors_message. Add some_warnings_are_errors.
18810         (diagnostic_finish): Declare.
18811         * toplev.c (toplev_main): Call it before exit.
18812
18813 2010-04-09  Jason Merrill  <jason@redhat.com>
18814
18815         PR c++/42623
18816         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
18817         for incomplete type.
18818
18819         PR c++/41788
18820         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
18821         based on a warning flag.
18822
18823 2010-04-09  Richard Guenther  <rguenther@suse.de>
18824
18825         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
18826
18827 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
18828
18829         PR bootstrap/43684
18830         * varasm.c (default_assemble_visibility): Wrap vars that are
18831         set, but unused, by targets without GAS.
18832         * config/rs6000/rs6000.c (paired_emit_vector_compare):
18833         Remove set, but unused, vars.
18834         (rs6000_legitimize_tls_address): Likewise.
18835         (altivec_expand_dst_builtin): Likewise.
18836         * config/darwin.c (machopic_classify_symbol): Likewise.
18837         (machopic_indirection_name): Likewise.
18838
18839 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
18840
18841         * config/i386/i386.md (DWI): New mode iterator.
18842         (S): New mode attribute.
18843         (shift_operand): Ditto.
18844         (shift_immediate_operand): Ditto.
18845         (ashl_input_operand): Ditto.
18846         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
18847         using SDWIM mode iterator.
18848         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
18849         pattern from *ashl{di,ti}3_1 and corresponding splitters using
18850         DWI mode iterator.
18851         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
18852         from corresponding peephole2 patterns.
18853         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
18854         and x86_64_shift_adj_1 using SWI48 mode iterator.
18855         (x86_shift<mode>_adj_2): Ditto.
18856         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
18857         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
18858         using SWI48 mode iterator.
18859         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
18860         *ashldi3_cmp_rex64 using SWI mode iterator.
18861         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
18862         *ashldi3_cconly_rex64 using SWI mode iterator.
18863         * config/i386/i386.c (ix86_split_ashl): Update for renamed
18864         x86_shift<mode>_adj_{1,2}.
18865         (ix86_split_ashr): Ditto.
18866         (ix86_split_lshr): Ditto.
18867
18868 2010-04-09  Richard Guenther  <rguenther@suse.de>
18869
18870         * target.h (builtin_conversion): Pass in input and output types.
18871         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
18872         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
18873         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
18874         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
18875
18876         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
18877         Handle AVX modes.
18878         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
18879
18880 2010-04-09  Richard Guenther  <rguenther@suse.de>
18881
18882         PR target/43152
18883         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
18884
18885 2010-04-09  Richard Guenther  <rguenther@suse.de>
18886
18887         * tree-vectorizer.h (struct _stmt_vec_info): Document
18888         that vectype is the type of the LHS.
18889         (supportable_widening_operation, supportable_narrowing_operation):
18890         Get both input and output vector types as arguments.
18891         (vect_is_simple_use_1): Declare.
18892         (get_same_sized_vectype): Likewise.
18893         * tree-vect-loop.c (vect_determine_vectorization_factor):
18894         Set STMT_VINFO_VECTYPE to the vector type of the def.
18895         (vectorizable_reduction): Adjust.
18896         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
18897         Adjust.  Specify the output vector type.
18898         (vect_pattern_recog_1): Adjust.
18899         * tree-vect-stmts.c (get_same_sized_vectype): New function.
18900         (vectorizable_call): Adjust.
18901         (vectorizable_conversion): Likewise.
18902         (vectorizable_operation): Likewise.
18903         (vectorizable_type_demotion): Likewise.
18904         (vectorizable_type_promotion): Likewise.
18905         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
18906         the def.
18907         (vect_is_simple_use_1): New function.
18908         (supportable_widening_operation): Get both input and output
18909         vector types.
18910         (supportable_narrowing_operation): Likewise.
18911         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
18912
18913 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
18914
18915         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
18916         __thiscall and _thiscall as predefined macros.
18917         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
18918         thiscall attribute handling.
18919         (ix86_comp_type_attributes): Likewise.
18920         (ix86_function_regparm): Likewise.
18921         (ix86_return_pops_args): Likewise.
18922         (init_cumulative_args): Likewise.
18923         (find_drap_reg): Likewise.
18924         (ix86_static_chain): Likewise.
18925         (x86_this_parameter): Likewise.
18926         (x86_output_mi_thunk): Likewise.
18927         (ix86_attribute_table): Add description for thiscall attribute.
18928         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
18929         * doc/extend.texi: Add documentation for thiscall.
18930
18931 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18932
18933         PR c++/28584
18934         * c.opt (Wint-to-pointer-cast): Available in C++.
18935         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
18936
18937 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
18938
18939         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
18940         * calls.c (expand_call): Pass the function type to aggregate_value_p.
18941         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
18942         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
18943         function type instead.  Reorder and simplify checks.
18944
18945         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
18946
18947 2010-04-08  Jing Yu  <jingyu@google.com>
18948             Zdenek Dvorak  <ook@ucw.cz>
18949
18950         PR tree-optimization/42720
18951         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
18952         loop unswitch conditions here from ...
18953         (tree_unswitch_single_loop): ... here.
18954
18955 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18956
18957         * tree-if-conv.c: Fix comments and simplify logic.
18958
18959 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
18960
18961         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
18962         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
18963         (main_tree_if_conversion): Update call to tree_if_conversion.
18964
18965 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18966
18967         PR 42485
18968         * doc/invoke.texi (-b,-V): Delete.
18969         * doc/tm.texi: Do not mention -b.
18970         * gcc.c (display_help): Delete -b and -V.
18971         (process_command): Delete -b and -V.
18972         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
18973
18974 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
18975             Wolfgang Gellerich  <gellerich@de.ibm.com>
18976
18977         Implement target hook for loop unrolling
18978         * target.h (loop_unroll_adjust): Add a new target hook function.
18979         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
18980         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
18981         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
18982         (s390_loop_unroll_adjust): Implement the new target hook for s390.
18983         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
18984         target hook.
18985         (decide_unroll_stupid): Likewise.
18986
18987 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18988
18989         PR target/43643
18990         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
18991
18992 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18993
18994         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
18995         (Specific, *-*-solaris2*): Likewise.
18996         Don't prefer Sun as over GNU as.
18997
18998 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
18999
19000         * config/s390/s390.c (override_options): Adjust the z10 defaults
19001         for max-unroll-times, max-completely-peeled-insns
19002         and max-completely-peel-times.
19003
19004 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19005
19006         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
19007         instructions for z10.
19008         (s390_expand_setmem): Likewise.
19009         (s390_expand_cmpmem): Likewise.
19010
19011 2010-04-08  Richard Guenther  <rguenther@suse.de>
19012
19013         PR tree-optimization/43679
19014         * tree-ssa-pre.c (eliminate): Only propagate copies.
19015
19016 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19017
19018         PR bootstrap/43681
19019         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
19020         set but not used variable warning.
19021
19022 2010-04-08  Wei Guozhi  <carrot@google.com>
19023
19024         PR target/41653
19025         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
19026         (arm_size_rtx_costs): Call the new function when optimized for size.
19027
19028 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
19029
19030         PR debug/43670
19031         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
19032         op0 is not a MEM, just return NULL instead of assertion
19033         failure.
19034         (discover_nonconstant_array_refs): Don't walk debug stmts.
19035
19036 2010-04-08  Doug Kwan  <dougkwan@google.com>
19037
19038         * configure.ac: Recognize gold and do not use its version number
19039         to test ld features.
19040         * configure: Regenerate.
19041
19042 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
19043
19044         PR middle-end/40815
19045         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
19046         (negate_value): Move code to push elements to broken_up_substracts ...
19047         (eliminate_plus_minus_pair): ... here.  Push operands that have no
19048         negative pair to plus_negates.
19049         (repropagate_negates, init_reassoc, fini_reassoc): Update.
19050
19051 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19052
19053         * doc/install.texi (Configuration): Move description of
19054         --enable-lto, --with-libelf*, --enable-gold from Java section to
19055         general section.
19056
19057         * doc/generic.texi (Working with declarations)
19058         (Function Properties, C and C++ Trees): Fix typos.
19059         * doc/sourcebuild.texi (Top Level): Likewise.
19060
19061 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19062
19063         PR c/18624
19064         * tree.h (DECL_READ_P): Define.
19065         (struct tree_decl_common): Add decl_read_flag.
19066         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
19067         a set but not used warning.
19068         (merge_decls): Merge DECL_READ_P flag.
19069         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
19070         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
19071         * c-common.c (handle_used_attribute, handle_unused_attribute):
19072         Likewise.
19073         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
19074         New prototypes.
19075         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
19076         New functions.
19077         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
19078         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
19079         c_parser_binary_expression, c_parser_cast_expression,
19080         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
19081         Call default_function_array_read_conversion instead of
19082         default_function_array_conversion where needed.
19083         (c_parser_unary_expression, c_parser_conditional_expression,
19084         c_parser_postfix_expression_after_primary, c_parser_initelt):
19085         Likewise.  Call mark_exp_read where needed.
19086         (c_parser_statement_after_labels, c_parser_asm_operands,
19087         c_parser_typeof_specifier, c_parser_sizeof_expression,
19088         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
19089         where needed.
19090         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
19091         New.
19092         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
19093         (warn_unused_but_set_parameter): Default to warn_unused
19094         && extra_warnings.
19095         * doc/invoke.texi: Document -Wunused-but-set-variable and
19096         -Wunused-but-set-parameter.
19097
19098         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
19099         used count variable.
19100         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
19101         when operandN variables aren't used in the body of the expander
19102         or splitter.
19103         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
19104         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
19105         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
19106         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
19107         FOR_EACH_IMM_USE_ON_STMT): Likewise.
19108         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
19109         * tree.c (PROCESS_ARG): Likewise.
19110
19111 2010-04-07  Simon Baldwin  <simonb@google.com>
19112
19113         * diagnostic.h (diagnostic_override_option_index): New macro to
19114         set a diagnostic's option_index.
19115         * c-tree.h (c_cpp_error): Add warning reason argument.
19116         * opts.c (_warning_as_error_callback): New.
19117         (register_warning_as_error_callback): Store callback for
19118         warnings enabled via enable_warning_as_error.
19119         (enable_warning_as_error): Call callback, minor code tidy.
19120         * opts.h (register_warning_as_error_callback): Declare.
19121         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
19122         response to -Werror=.
19123         (c_common_init_options): Register warning_as_error_callback in opts.c.
19124         * common.opt: Add -Wno-cpp option.
19125         * c-common.c (struct reason_option_codes_t): Map cpp warning
19126         reason codes to gcc option indexes.
19127         * (c_option_controlling_cpp_error): New function, lookup the gcc
19128         option index for a cpp warning reason code.
19129         * (c_cpp_error): Add warning reason argument, call
19130         c_option_controlling_cpp_error for diagnostic_override_option_index.
19131         * doc/invoke.texi: Document -Wno-cpp.
19132
19133 2010-04-07  Richard Guenther  <rguenther@suse.de>
19134
19135         * ipa-reference.c (mark_load): Use get_base_address.
19136         (mark_store): Likewise.
19137
19138         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
19139         inserting GIMPLE_NOPs into the IL.
19140         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19141         Explicitly strip handled components and indirect references.
19142
19143         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
19144         folding address expressions.
19145         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
19146         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
19147         operand_equal_p to compare decls.
19148         (ptr_deref_may_alias_decl_p): Likewise.
19149         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
19150         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
19151         Handle reversed comparison ops.
19152         * tree-sra.c (asm_visit_addr): Use get_base_address.
19153         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
19154         * ipa-reference.c (mark_address): Use get_base_address.
19155
19156 2010-04-07  Richard Guenther  <rguenther@suse.de>
19157
19158         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
19159         Propagate constants everywhere.
19160
19161 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
19162
19163         PR debug/43516
19164         * tree.c (MAX_INT_CACHED_PREC): Define.
19165         (nonstandard_integer_type_cache): New array.
19166         (build_nonstandard_integer_type): Cache results for precision
19167         <= MAX_INT_CACHED_PREC.
19168
19169 2010-04-07  Richard Guenther  <rguenther@suse.de>
19170
19171         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
19172         -fargument-noalias-global, -fargument-noalias-anything): Remove.
19173         * common.opt: Likewise.
19174         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
19175         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
19176         (nonoverlapping_memrefs_p): Likewise.
19177         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19178         * opts.c (common_handle_option): Handle OPT_fargument_alias,
19179         OPT_fargument_noalias, OPT_fargument_noalias_anything and
19180         OPT_fargument_noalias_global for backward compatibility.
19181
19182 2010-04-07  Richard Guenther  <rguenther@suse.de>
19183
19184         PR tree-optimization/43270
19185         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
19186         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
19187         * tree-ssa-pre.c (phi_translate_1): Adjust.
19188         (fully_constant_expression): Split out vn_reference handling to ...
19189         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
19190         Fold reads from constant strings.
19191         (vn_reference_lookup): Handle fully constant references.
19192         (vn_reference_lookup_pieces): Likewise.
19193         * Makefile.in (expmed.o-warn): Add -Wno-error.
19194
19195 2010-04-07  Martin Jambor  <mjambor@suse.cz>
19196
19197         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
19198
19199 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
19200
19201         PR driver/41594
19202         * gcc.c: Add -static-libstdc++ to list of recognized options.
19203
19204 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19205
19206         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
19207
19208 2010-04-07  Richard Guenther  <rguenther@suse.de>
19209
19210         PR middle-end/42617
19211         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
19212         bases build simple mem attributes to retain points-to information.
19213
19214 2010-04-07  Richard Guenther  <rguenther@suse.de>
19215
19216         PR middle-end/42617
19217         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
19218         preserve points-to related information.
19219
19220 2010-04-07  Richard Guenther  <rguenther@suse.de>
19221
19222         PR middle-end/42617
19223         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
19224         discard plain indirect references.
19225         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
19226         * tree.c (tree_nop_conversion): Likewise.
19227
19228 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
19229
19230         PR debug/43628
19231         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
19232
19233 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
19234
19235         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
19236         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
19237
19238 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19239
19240         * tree-if-conv.c: Fix indentation and comments.
19241
19242 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19243
19244         * tree-if-conv.c: Sort static functions in topological order.
19245
19246 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
19247
19248         * tree-if-conv.c: Fix indentation and comments.
19249
19250 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19251
19252         PR middle-end/43519
19253         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
19254         lang_hooks.types.type_for_size instead of
19255         build_nonstandard_integer_type.
19256         When converting an unsigned type to signed, double its precision.
19257         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
19258         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
19259         (graphite_create_new_loop_guard): When ub + 1 wraps around,
19260         use lb <= ub.
19261
19262 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19263
19264         PR middle-end/43519
19265         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19266         POINTER_PLUS_EXPR for pointer types.
19267
19268 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19269
19270         PR middle-end/43519
19271         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
19272         * graphite-clast-to-gimple.c: Include langhooks.h.
19273         (max_signed_precision_type): New.
19274         (max_precision_type): Takes two types as arguments.
19275         (precision_for_value): New.
19276         (precision_for_interval): New.
19277         (gcc_type_for_interval): New.
19278         (gcc_type_for_value): New.
19279         (gcc_type_for_clast_term): New.
19280         (gcc_type_for_clast_red): New.
19281         (gcc_type_for_clast_bin): New.
19282         (gcc_type_for_clast_expr): Split up into several functions.
19283         (gcc_type_for_clast_eq): Rewritten.
19284         (compute_bounds_for_level): New.
19285         (compute_type_for_level_1): New.
19286         (compute_type_for_level): New.
19287         (gcc_type_for_cloog_iv): Removed.
19288         (gcc_type_for_iv_of_clast_loop): Rewritten.
19289         (graphite_create_new_loop): Compute the lower and upper bound types
19290         with gcc_type_for_clast_expr.
19291         (graphite_create_new_loop_guard): Same.
19292         (find_cloog_iv_in_expr): Removed.
19293         (compute_cloog_iv_types_1): Removed.
19294         (compute_cloog_iv_types): Removed.
19295         (gloog): Do not call compute_cloog_iv_types.
19296         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
19297         GBB_CLOOG_IV_TYPES.
19298         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
19299         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
19300         (GBB_CLOOG_IV_TYPES): Removed.
19301
19302 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19303
19304         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
19305         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
19306         (detect_commutative_reduction): Same.
19307
19308 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19309
19310         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
19311         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
19312         argument.
19313         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
19314         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
19315         (rewrite_commutative_reductions_out_of_ssa): Same.
19316         * passes.c (execute_function_todo): Call verify_ssa for every pass
19317         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
19318         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
19319         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
19320         with an extra argument.
19321         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
19322         verify_ssa only when the extra argument is true.
19323         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
19324         with an extra argument.
19325         (tree_transform_and_unroll_loop): Same.
19326
19327 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
19328
19329         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
19330         for all the passes of the LNO having LOOP_CLOSED_SSA.
19331         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
19332         * tree-loop-distribution.c (pass_loop_distribution): Same.
19333         * tree-pass.h (TODO_verify_loops): Removed.
19334         * tree-ssa-loop.c (pass_tree_loop_init): Same.
19335         (pass_lim): Same.
19336         (pass_tree_unswitch): Same.
19337         (pass_predcom): Same.
19338         (pass_vectorize): Same.
19339         (pass_linear_transform): Same.
19340         (pass_graphite_transforms): Same.
19341         (pass_iv_canon): Same.
19342         (pass_complete_unroll): Same.
19343         (pass_complete_unrolli): Same.
19344         (pass_parallelize_loops): Same.
19345         (pass_loop_prefetch): Same.
19346         (pass_iv_optimize): Same.
19347
19348 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
19349
19350         PR middle-end/32824
19351         * passes.c (init_optimization_passes): Move pass_lim before
19352         pass_copy_prop and pass_dce_loop.
19353
19354 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19355
19356         PR target/43667
19357         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
19358         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
19359         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
19360         MULTI_* defines for 4 argument vpermil2p* builtins.
19361
19362 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19363
19364         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
19365         * config/i386/i386.c (x86_maybe_negate_const_int): New.
19366         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
19367         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
19368         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
19369         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
19370         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
19371         Use x86_maybe_negate_const_int to output insn mnemonic.
19372         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
19373         check from instruction predicate.  Update comments.
19374         * config/i386/sync.md (sync_add<mode>): Use
19375         x86_maybe_negate_const_int to output insn mnemonic.
19376
19377 2010-04-06  Jan Hubicka  <jh@suse.cz>
19378
19379         PR tree-optimization/42906
19380         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
19381         IGNORE_SELF argument.  Set visited_control_parents for fully
19382         processed BBs.
19383         (find_obviously_necessary_stmts): Update call of
19384         mark_control_dependent_edges_necessary.
19385         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
19386
19387 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
19388
19389         * config/i386/i386.md: Remove comment about 'e' and 'E'
19390         operand modifier.
19391
19392 2010-04-06  Richard Guenther  <rguenther@suse.de>
19393
19394         PR tree-optimization/43627
19395         * tree-vrp.c (extract_range_from_unary_expr): Widenings
19396         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
19397         not varying.
19398
19399 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
19400
19401         * BASE-VER: Change to 4.6.0.
19402
19403         PR target/43638
19404         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
19405         handling.
19406
19407 2010-04-06  Richard Guenther  <rguenther@suse.de>
19408
19409         PR middle-end/43661
19410         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
19411
19412 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19413
19414         * doc/invoke.texi (Optimize Options): Document that LTO
19415         won't remove object access purely due to incompatible
19416         declarations.
19417
19418 2010-04-04  Matthias Klose  <doko@ubuntu.com>
19419
19420         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
19421         Initialize variable.
19422
19423 2010-04-03  Richard Guenther  <rguenther@suse.de>
19424
19425         PR middle-end/42509
19426         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
19427         require a non-NULL MEM_OFFSET.
19428
19429 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
19430
19431         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
19432         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
19433         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
19434         config/alpha/predicates.md, config/arm/arm.md,
19435         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
19436         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
19437         config/darwin9.h, config/darwin.c, config/darwin.h,
19438         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
19439         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
19440         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
19441         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
19442         config/mips/mips.md, config/mn10300/mn10300.c,
19443         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
19444         config/rs6000/aix.h, config/rs6000/dfp.md,
19445         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
19446         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
19447         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
19448         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
19449         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
19450         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
19451         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
19452         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
19453         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
19454         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
19455         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
19456         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
19457         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
19458         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
19459         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
19460         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
19461         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
19462         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
19463         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
19464         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
19465         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
19466         opt-functions.awk, opth-gen.awk, params.def, passes.c,
19467         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
19468         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
19469         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
19470         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
19471         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
19472         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19473         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
19474         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
19475         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
19476         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
19477         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
19478         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
19479         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
19480         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
19481
19482 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19483
19484         PR other/43620
19485         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
19486         * aclocal.m4: Regenerate.
19487
19488 2010-04-02  Richard Guenther  <rguenther@suse.de>
19489
19490         PR tree-optimization/43629
19491         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
19492         if we have seen a constant value.
19493
19494 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
19495
19496         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
19497
19498 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
19499
19500         PR target/43469
19501         * arm.c (legitimize_tls_address): Adjust call to
19502         gen_tls_load_dot_plus_four.
19503         (arm_note_pic_base): New function.
19504         (arm_cannot_copy_insn_p): Use it.
19505         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
19506         constraint.
19507
19508 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19509
19510         PR bootstrap/43531
19511
19512         Revert:
19513         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19514
19515         * Makefile.in ($(out_object_file)): Depend on
19516         gt-$(basename $(notdir $(out_file))).h.
19517
19518 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
19519
19520         * config.gcc (lm32-*-rtems*): Add t-lm32.
19521
19522 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
19523
19524         * config.gcc: Add lm32-*-rtems*.
19525         * config/lm32/rtems.h: New file.
19526
19527 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
19528
19529         PR target/42609
19530         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
19531
19532 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
19533
19534         * dwarf2out.c (output_compilation_unit_header): For
19535         -gdwarf-4 use version 4 instead of version 3.
19536         (output_line_info): For version 4 and above emit additional
19537         maximum ops per insn header field.
19538         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
19539
19540         * dwarf2out.c (is_c_family, is_java): Remove.
19541         (lower_bound_default): New function.
19542         (add_bound_info, gen_descr_array_type_die): Use it.
19543
19544 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
19545
19546         PR debug/43325
19547         * dwarf2out.c (gen_variable_die): Allow debug info for variable
19548         re-declaration when it happens in a function.
19549
19550 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
19551
19552         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
19553         (cgraph_remove_function_insertion_hook): Same.
19554         (cgraph_call_function_insertion_hooks): Same.
19555
19556 2010-04-01  Richard Guenther  <rguenther@suse.de>
19557
19558         PR middle-end/43614
19559         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
19560         and TREE_THIS_VOLATILE.
19561         (copy_ref_info): Likewise.
19562         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
19563         * tree.c (build6_stat): Ignore side-effects of all but arg5
19564         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
19565         TARGET_MEM_REF.
19566
19567 2010-04-01  Richard Guenther  <rguenther@suse.de>
19568
19569         PR tree-optimization/43607
19570         * ipa-type-escape.c (check_call): Do not access non-existing
19571         arguments.
19572
19573 2010-04-01  Richard Guenther  <rguenther@suse.de>
19574
19575         PR middle-end/43602
19576         Revert
19577         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19578                     Jack Howarth  <howarth@bromo.med.uc.edu>
19579
19580         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19581         variables TLS.
19582
19583 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19584
19585         * doc/install.texi (Prerequisites): Document libelf usability on
19586         IRIX 5/6 and Solaris 2.
19587         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
19588         Update GNU as, GNU ld requirements.
19589         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
19590         Document Sun Studio compiler download.
19591         Update and simplify as, ld recommendations.
19592         (Specific, *-*-solaris2.7): Note obsoletion, removal.
19593
19594 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19595
19596         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
19597         with_tune_32 to pentium4.
19598
19599 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
19600
19601         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
19602
19603 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19604
19605         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
19606         obsoletion, removal.
19607         Update IDO URL.
19608         Document GNU as requirement.
19609         Update configure requirements.
19610         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
19611         Recomment IRIX 6.5.18+.
19612         Document IDF/IDL requirement.
19613         Document GNU as requirement.
19614         Document GNU ld bootstrap failure.
19615         Remove freeware.sgi.com reference.
19616
19617 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19618
19619         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
19620         UNIX V4.0, V5.0 obsoletion, removal.
19621         Remove --with-gc=simple reference.
19622         Update VM requirements during bootstrap.
19623         Remove -oldas bootstrap description.
19624         Update binutils reference.
19625         Remove comparison failure note.
19626
19627 2010-03-31  Richard Guenther  <rguenther@suse.de>
19628             Zdenek Dvorak  <ook@ucw.cz>
19629             Sebastian Pop  <sebastian.pop@amd.com>
19630
19631         PR middle-end/43464
19632         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
19633         with multiple arguments.
19634         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
19635
19636 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19637
19638         * graphite-dependences.c (print_pddr): Call print_pdr with an
19639         extra argument.
19640         * graphite-poly.c (debug_pdr): Add an extra argument for the
19641         verbosity level.
19642         (print_pdr): Same.
19643         (print_pbb_domain): Same.
19644         (print_pbb): Same.
19645         (print_scop_context): Same.
19646         (print_scop): Same.
19647         (print_cloog): Same.
19648         (debug_pbb_domain): Same.
19649         (debug_pbb): Same.
19650         (print_pdrs): Same.
19651         (debug_pdrs): Same.
19652         (debug_scop_context): Same.
19653         (debug_scop): Same.
19654         (debug_cloog): Same.
19655         (print_scop_params): Same.
19656         (debug_scop_params): Same.
19657         (print_iteration_domain): Same.
19658         (print_iteration_domains): Same.
19659         (debug_iteration_domain): Same.
19660         (debug_iteration_domains): Same.
19661         (print_scattering_function): Same.
19662         (print_scattering_functions): Same.
19663         (debug_scattering_function): Same.
19664         (debug_scattering_functions): Same.
19665         * graphite-poly.h (debug_pdr): Update declaration.
19666         (print_pdr): Same.
19667         (print_pbb_domain): Same.
19668         (print_pbb): Same.
19669         (print_scop_context): Same.
19670         (print_scop): Same.
19671         (print_cloog): Same.
19672         (debug_pbb_domain): Same.
19673         (debug_pbb): Same.
19674         (print_pdrs): Same.
19675         (debug_pdrs): Same.
19676         (debug_scop_context): Same.
19677         (debug_scop): Same.
19678         (debug_cloog): Same.
19679         (print_scop_params): Same.
19680         (debug_scop_params): Same.
19681         (print_iteration_domain): Same.
19682         (print_iteration_domains): Same.
19683         (debug_iteration_domain): Same.
19684         (debug_iteration_domains): Same.
19685         (print_scattering_function): Same.
19686         (print_scattering_functions): Same.
19687         (debug_scattering_function): Same.
19688         (debug_scattering_functions): Same.
19689
19690 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19691
19692         * graphite-poly.c (print_scattering_function_1): New.
19693         (print_scattering_function): Call it.
19694         (print_scop_params): Remove spaces at the end of lines.
19695         (print_cloog): New.
19696         (debug_cloog): New.
19697         * graphite-poly.h (print_cloog): Declared.
19698         (debug_cloog): Declared.
19699
19700 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19701
19702         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
19703         in loop->header.
19704         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
19705         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
19706         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
19707         to switch between adding the IV bump in loop->latch or in loop->header.
19708
19709 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
19710
19711         * graphite-poly.c (print_scattering_function): Pretty print following
19712         the scoplib format.
19713         (print_pdr): Same.
19714         (print_pbb_domain): Same.
19715         (dump_gbb_cases): Same.
19716         (dump_gbb_conditions): Same.
19717         (print_pdrs): Same.
19718         (print_pbb): Same.
19719         (print_scop_params): Same.
19720         (print_scop_context): Same.
19721         (print_scop): Same.
19722         (print_pbb_body): New.
19723         (lst_indent_to): New.
19724         (print_lst): Start new lines with a #.
19725         * graphite-poly.h (pbb_bb): New.
19726         (pbb_index): Use pbb_bb.
19727         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
19728         disjuncts.
19729         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
19730
19731 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19732
19733         * dwarf2out.c (size_of_die): For -gdwarf-4 use
19734         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
19735         and 0 instead of 1 for dw_val_class_flag.
19736         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
19737         dw_val_class_range_list, dw_val_class_loc_list,
19738         dw_val_class_lineptr and dw_val_class_macptr, use
19739         DW_FORM_flag_present for dw_val_class_flag and
19740         DW_FORM_exprloc for dw_val_class_loc.
19741         (output_die): For -gdwarf-4 print dw_val_class_loc
19742         size as uleb128 instead of 1 or 2 bytes and don't print
19743         anything for dw_val_class_flag.
19744
19745         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
19746         instead of cselib_lookup following by tweaking locs->setting_insn.
19747
19748         PR bootstrap/43596
19749         * cselib.c (cselib_process_insn): Clear cselib_current_insn
19750         even before returning from label, setjmp call or volatile asm
19751         handling.
19752
19753 2010-03-31  Richard Guenther  <rguenther@suse.de>
19754
19755         PR middle-end/43600
19756         * cgraphunit.c (cgraph_output_in_order): Do not allocate
19757         temporary data on stack.
19758
19759 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19760
19761         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
19762         (PUSHSECTION_ASM_OP): Remove.
19763         (POPSECTION_ASM_OP): Remove.
19764         (PUSHSECTION_FORMAT): Remove.
19765         * config/sol2.h (PUSHSECTION_FORMAT): Define.
19766         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
19767         * config/sol2.c (solaris_output_init_fini): Use it.
19768
19769 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19770
19771         PR 43574
19772         * opt-functions.awk (var_type_struct): Use signed char type
19773         for simple variables.
19774
19775 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19776
19777         * config/sol2.c: Include output.h.
19778         (solaris_assemble_visibility): New function.
19779         * config/t-sol2 (sol2.o): Add output.h dependency.
19780         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
19781         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
19782         Redefine.
19783
19784 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
19785
19786         PR target/43580
19787         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
19788         V2SImode or XFmode on PRE_DEC.
19789
19790         PR debug/43557
19791         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
19792         BLKmode.
19793
19794 2010-03-31  Jie Zhang  <jie@codesourcery.com>
19795
19796         PR 43562
19797         * reload.h (caller_save_initialized_p): Declare.
19798         * toplev.c (backend_init_target): Don't call
19799         init_caller_save but set caller_save_initialized_p to false.
19800         * caller-save.c (caller_save_initialized_p): Define.
19801         (init_caller_save): Check caller_save_initialized_p.
19802         * ira.c (ira): Call init_caller_save if flag_caller_saves.
19803
19804 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19805
19806         PR target/39048
19807         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
19808         and soft-fp/t-softfp to tmake_file.
19809         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
19810         (LIBGCC2_TF_CEXT): Define.
19811         (TF_SIZE): Define.
19812
19813 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
19814
19815         PR debug/42977
19816         * cselib.c (n_useless_values): Document handling of debug locs.
19817         (n_useless_debug_values, n_debug_values): New variables.
19818         (new_elt_loc_list): Don't add to debug values, keep count.
19819         (promote_debug_loc): New.
19820         (cselib_reset_table): Zero new variables.
19821         (entry_and_rtx_equal_p): Promote debug locs.
19822         (discard_useless_locs): Increment n_useless_debug_values for
19823         debug values.
19824         (remove_useless_values): Adjust n_useless_values and n_debug_values
19825         with n_useless_debug_values.
19826         (add_mem_for_addr): Promote debug locs.
19827         (cselib_lookup_mem): Likewise.
19828         (cselib_lookup_addr): Renamed to...
19829         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
19830         (cselib_log_lookup): ... this.  Turn into...
19831         (cselib_lookup_addr): ... new wrapper.
19832         (cselib_lookup_from_insn): New.
19833         (cselib_invalidate_regno): Increment n_useless_debug_values for
19834         debug values.
19835         (cselib_invalidate_mem): Likewise.
19836         (cselib_process_insn): Take n_deleted and n_debug_values into
19837         account to guard remove_useless_value call.
19838         (cselib_finish): Zero n_useless_debug_values.
19839         * cselib.h (cselib_lookup_from_insn): Declare.
19840         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
19841         (sched_analyze_2): Likewise.
19842
19843 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
19844
19845         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
19846         functions.
19847         (adjust_mems): Replace narrowing SUBREG of expression containing
19848         just PLUS, MINUS, MULT and ASHIFT of registers and constants
19849         with operations in the narrower mode.
19850
19851         PR debug/43593
19852         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
19853         regs_invalidated_by_call instead all call_used_reg_set registers.
19854
19855 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
19856
19857         PR middle-end/43430
19858         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
19859         pointer comparisons with types_compatible_p.
19860         * tree-vect-stmts.c (vectorizable_call): Same.
19861         (vectorizable_condition): Same.
19862
19863 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19864
19865         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
19866         stack check if the mask would be zero.
19867
19868 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
19869             Jack Howarth  <howarth@bromo.med.uc.edu>
19870
19871         * tree-profile.c (tree_init_ic_make_global_vars): Make static
19872         variables TLS.
19873
19874 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
19875
19876         PR other/25232
19877         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
19878         and __unordtf2.
19879         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
19880         Include ___unordxf2 and ___unordtf2.
19881         * config/i386/libgcc-glibc.ver: Do not define inheritance from
19882         GCC_4.4.0 here.
19883
19884 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
19885
19886         * config/lm32/t-lm32: New file.
19887         * config.gcc: Use the above file when targetting lm32.
19888
19889 2010-03-28  Duncan Sands  <baldrick@free.fr>
19890
19891         * Makefile.in (PLUGIN_HEADERS): Add except.h.
19892
19893 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19894
19895         PR middle-end/43431
19896         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
19897         Improve vectorization cost model diagnostic.
19898
19899 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
19900
19901         PR middle-end/43436
19902         * tree-vect-data-refs.c (vect_analyze_data_refs): When
19903         compute_data_dependences_for_loop returns false, early exit
19904         and output an extra diagnostic for the failed data reference
19905         analysis.
19906
19907 2010-03-29  Richard Guenther  <rguenther@suse.de>
19908
19909         PR tree-optimization/43560
19910         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
19911         (can_sm_ref_p): Treat stores to readonly locations as trapping.
19912
19913 2010-03-29  Jie Zhang  <jie@codesourcery.com>
19914
19915         PR 43564
19916         * toplev.c (process_options): Set optimization_default_node
19917         and optimization_current_node.
19918         * opts.c (decode_options): Don't set optimization_default_node
19919         and optimization_current_node.
19920
19921 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
19922
19923         * config/rtems.h: Abandon -qrtems_debug.
19924
19925 2010-03-28  Jan Hubicka  <jh@suse.cz>
19926
19927         PR tree-optimization/43505
19928         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
19929         map should not be copied.
19930
19931 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19932
19933         PR middle-end/41674
19934         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
19935         cdtors, set DECL_PRESERVE_P.
19936         * ipa.c (cgraph_externally_visible_p): Return true if declaration
19937         should be preseved.
19938
19939 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
19940
19941         PR tree-optimization/43528
19942         * stor-layout.c (place_field): Check that constant fits into
19943         unsigned HWI when skipping calculation of MS bitfield layout.
19944
19945 2010-03-27  Jan Hubicka  <jh@suse.cz>
19946
19947         PR middle-end/43391
19948         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
19949         notice_global_symbol work.
19950
19951 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
19952
19953         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
19954         instead of dwarf2out_decl.
19955         (struct var_loc_node): Remove section_label field.
19956         (dwarf2out_function_decl): New function.
19957         (dwarf2out_var_location): Don't set section_label field.
19958         (dwarf2out_begin_function): Don't empty decl_loc_table here.
19959
19960 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
19961
19962         PR tree-optimization/43544
19963         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
19964         First argument for builtin vectorized function hook is now a
19965         tree to be able to distinguish between machine specific and
19966         standard builtins.
19967         * targhooks.c (default_builtin_vectorized_function): Ditto.
19968         * targhooks.h (default_builtin_vectorized_function): Ditto.
19969         * target.h (struct gcc_target): Ditto.
19970         * tree-vect-stmts.c (vectorizable_function): Ditto.
19971         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
19972         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
19973         Ditto.
19974
19975 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
19976
19977         PR c/43381
19978         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
19979         nested binding iff it is a FUNCTION_DECL.
19980         (store_parm_decls_newstyle): Pass nested=true to bind for
19981         FUNCTION_DECLs amongst parameters.
19982
19983 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
19984
19985         * var-tracking.c (vt_expand_loc_callback): Don't run
19986         cselib_expand_value_rtx_cb in dummy mode if
19987         cselib_dummy_expand_value_rtx_cb returned false.
19988
19989         * var-tracking.c (emit_note_insn_var_location): For one part
19990         notes with offset 0, don't add EXPR_LIST around the location.
19991         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
19992         add_location_or_const_value_attribute): Adjust for that change.
19993
19994         PR debug/43540
19995         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
19996         into first operand and location into second.
19997         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
19998         dw_cfi_oprnd_loc for DW_CFA_expression.
19999         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
20000         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
20001         assume first argument is regnum and second argument is location.
20002
20003 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20004
20005         PR target/42113
20006         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
20007         of scratch register to DImode.  Split to DImode comparison operator.
20008         Use SImode subreg of scratch register in the multiplication.
20009         (*cmp_sadd_sidi): Ditto.
20010         (*cmp_ssub_si): Ditto.
20011         (*cmp_ssub_sidi): Ditto.
20012
20013 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
20014
20015         PR target/43524
20016         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
20017         Remove invalid assert and wrong comment.
20018
20019 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
20020
20021         PR debug/43516
20022         * flags.h (final_insns_dump_p): New extern.
20023         * final.c (final_insns_dump_p): New variable.
20024         (rest_of_clean_state): Set it before -fdump-final-insns=
20025         dumping, clear afterwards.
20026         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
20027         MEM_ALIAS_SET on MEMs.
20028
20029 2010-03-26  David S. Miller  <davem@davemloft.net>
20030
20031         * configure.ac: Fix sparc GOTDATA_OP bug check.
20032         * configure: Rebuild.
20033
20034 2010-03-26  Alan Modra  <amodra@gmail.com>
20035
20036         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
20037
20038 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20039
20040         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
20041         TLS_SECTION_ASM_FLAG.
20042
20043 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
20044
20045         PR bootstrap/43511
20046         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
20047         Clear first_function_block_is_cold.
20048
20049         PR c/43385
20050         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
20051         argument if the argument is truth_value_p.
20052
20053 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
20054
20055         * config/rs6000/constraints.md: Update copyright year for my changes.
20056
20057         PR target/43484
20058         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
20059         used in reg+reg addressing, swap registers.
20060
20061 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20062
20063         PR debug/43293
20064         * target.h (struct gcc_target): Add code_end hook.
20065         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
20066         if not yet defined.
20067         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
20068         * toplev.c (compile_file): Call targetm.asm_out.code_end
20069         hook before unwind info/debug info output.
20070         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
20071         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
20072         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20073         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
20074         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
20075         * config/i386/i386.c (ix86_file_end): Renamed to...
20076         (ix86_code_end): ... this.  Make static.  Don't call
20077         file_end_indicate_exec_stack.  Emit unwind info using
20078         final_start_function/final_end_function.
20079         (darwin_x86_file_end): Remove.
20080         (TARGET_ASM_CODE_END): Define.
20081         * config/i386/i386.h (TARGET_ASM_FILE_END,
20082         NEED_INDICATE_EXEC_STACK): Don't define.
20083         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
20084         (TARGET_ASM_FILE_END): Define to darwin_file_end.
20085         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
20086         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
20087
20088         PR target/43498
20089         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
20090         at the beginning and final_end_function at the end.
20091         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
20092
20093 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20094
20095         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
20096         and Sun as TLS syntax.
20097         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
20098         * configure: Regenerate.
20099         * config.in: Regenerate.
20100         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
20101         (default_elf_asm_named_section): Use it.
20102         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
20103         (i386_output_dwarf_dtprel): Likewise.
20104         (output_addr_const_extra): Likewise.
20105         (output_pic_addr_const): Lowercase @GOTTPOFF.
20106         (output_addr_const_extra): Likewise.
20107         (output_pic_addr_const): Lowercase @GOTNTPOFF.
20108         (output_addr_const_extra): Likewise.
20109         (output_pic_addr_const): Lowercase @INDNTPOFF.
20110         (output_addr_const_extra): Likewise.
20111         (output_pic_addr_const): Lowercase @NTPOFF.
20112         (output_addr_const_extra): Likewise.
20113         (output_pic_addr_const): Lowercase @TPOFF.
20114         (output_addr_const_extra): Likewise.
20115         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
20116         (*tls_global_dynamic_64): Likewise.
20117         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
20118         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
20119
20120         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
20121         (ASM_OUTPUT_TLS_COMMON): Use it.
20122         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
20123
20124         PR target/38118
20125         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
20126         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
20127         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
20128         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
20129         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20130         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
20131
20132 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20133
20134         * config/i386/i386.c (override_options): Don't accept
20135         -mtls-dialect=sun any longer.
20136         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
20137         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
20138         (*tls_local_dynamic_base_32_sun): Likewise.
20139         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
20140
20141 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
20142
20143         PR debug/43508
20144         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
20145         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
20146
20147         PR debug/43479
20148         * ira.c (adjust_cleared_regs): New function.
20149         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
20150
20151         PR debug/19192
20152         PR debug/43479
20153         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
20154         from gimple_block.
20155         * expr.c (expand_expr_real): Restore previous
20156         curr_insn_source_location and curr_insn_block after
20157         expand_expr_real_1 call.
20158         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
20159         instead of expand_expr_real_1.
20160
20161 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
20162
20163         PR rtl-optimization/43413
20164         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
20165         hard regs too.
20166
20167 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
20168
20169         PR target/43348
20170         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
20171         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
20172
20173 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
20174
20175         * config/i386/i386.c (ix86_target_string): Add -mfma.
20176         Fix a typo in comment.
20177
20178 2010-03-22  Mike Stump  <mikestump@comcast.net>
20179
20180         PR target/23071
20181         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
20182         Don't overly align based upon packed packed fields.
20183
20184 2010-03-22  Jason Merrill  <jason@redhat.com>
20185
20186         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
20187         Use () rather than [], and move before the element type.
20188
20189 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20190
20191         * doc/configfiles.texi (Configuration Files): Removed
20192         fixinc/Makefile*, intl/Makefile.*.
20193         * doc/makefile.texi: Fixed markup. Abstract from version
20194         control system used.
20195         (Makefile): Removed obsolete gcc/java/parse.y example.
20196         * doc/sourcebuild.texi: Likewise.
20197         (Top Level): Added config, gnattools, libdecnumber, libgcc,
20198         libgomp, libssp.  Removed fastjar.
20199         (Miscellaneous Docs): Clarify location.
20200         Added COPYING3, COPYING3.LIB.
20201         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
20202
20203 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20204
20205         PR target/38085
20206         * config/i386/i386.c (x86_function_profiler)
20207         [!NO_PROFILE_COUNTERS]: Fix typo.
20208         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
20209         instead of callq.
20210
20211 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
20212             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20213
20214         * doc/sourcebuild.texi (Test Directives): Split into six
20215         subsections, with most of the current text in new subsections
20216         Directives, Selectors, and Final Actions.
20217         (Directives): Split list of test directives into multiple
20218         subsubsections.
20219         (Selectors): Describe use and syntax of selectors.
20220         (Effective-Target Keywords): Describe all existing keywords.
20221         (Add Options): Describe features for dg-add-options.
20222         (Require Support): Describe variants of dg-require-support.
20223         (Final Actions): Describe commands to use in dg-final.
20224
20225 2010-03-22  Michael Matz  <matz@suse.de>
20226
20227         PR middle-end/43475
20228         * recog.c (validate_replace_rtx_group): Replace also in
20229         REG_EQUAL and REG_EQUIV notes.
20230
20231 2010-03-22  Richard Guenther  <rguenther@suse.de>
20232
20233         PR tree-optimization/43390
20234         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
20235         sure vector extracts are type correct.
20236
20237 2010-03-22  Richard Guenther  <rguenther@suse.de>
20238
20239         PR middle-end/40106
20240         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
20241         x * sqrt (x) even when optimizing for size if the target
20242         has native support for sqrt.
20243
20244 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
20245
20246         * varasm.c (make_decl_rtl_for_debug): Also clear
20247         flag_mudflap for the duration of make_decl_rtl call.
20248
20249         PR debug/43443
20250         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
20251         locs from preserved VALUEs.
20252
20253 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20254
20255         PR middle-end/42718
20256         * pa.md (movmemsi): Set align to one if zero.
20257         (movmemdi): Likewise.
20258
20259 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
20260
20261         PR target/42321
20262         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
20263         with their corresponding prologue pushes.
20264
20265 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
20266
20267         PR target/43156
20268         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
20269         at the begining or end.
20270         (spu_expand_epilogue): Likewise.
20271
20272 2010-03-20  Richard Guenther  <rguenther@suse.de>
20273
20274         PR rtl-optimization/43438
20275         * combine.c (make_extraction): Properly zero-/sign-extend an
20276         extraction of the low part of a CONST_INT.  Also handle
20277         CONST_DOUBLE.
20278
20279 2010-03-19  Mike Stump  <mikestump@comcast.net>
20280
20281         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
20282         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
20283         (override_options): Use SUBTARGET32_DEFAULT_CPU.
20284
20285 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
20286
20287         PR c/43211
20288         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
20289         an error.
20290
20291 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
20292
20293         PR rtl-optimization/42258
20294         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
20295         use that may match DEF.
20296
20297         PR target/40697
20298         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
20299         the cost of loading the constant rather than assuming
20300         COSTS_N_INSNS (1).
20301         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
20302         outer code is AND, do the same tests as the andsi3 expander and
20303         return COSTS_N_INSNS (1) if and is cheap.
20304
20305         * optabs.c (avoid_expensive_constant): Fix formatting.
20306
20307 2010-03-19  Michael Matz  <matz@suse.de>
20308
20309         PR c++/43116
20310         * attribs.c (decl_attributes): When rebuilding a function pointer
20311         type use the same qualifiers as the original pointer type.
20312
20313 2010-03-19  Martin Jambor  <mjambor@suse.cz>
20314
20315         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
20316         and is_gimple_ip_invariant_address.
20317
20318 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20319
20320         Revert
20321         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20322
20323         * config/arm/arm.c (arm_override_options): Turn off
20324         flag_dwarf2_cfi_asm for AAPCS variants.
20325
20326 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20327
20328         PR target/43399
20329         * config/arm/arm.c (emit_multi_reg_push): Update comments.
20330         Use PRE_MODIFY instead of PRE_DEC.
20331         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
20332         (vfp_emit_fstmd): Likewise.
20333
20334 2010-03-19  Michael Matz  <matz@suse.de>
20335
20336         PR target/43305
20337         * builtins.c (expand_builtin_interclass_mathfn,
20338         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
20339         if that fails.
20340
20341 2010-03-19  Richard Guenther  <rguenther@suse.de>
20342
20343         PR tree-optimization/43415
20344         * tree-ssa-pre.c (phi_translate): Split out worker to ...
20345         (phi_translate_1): ... this.
20346         (phi_translate): Move all caching here.  Cache all NARY
20347         and REFERENCE translations.
20348
20349 2010-03-19  David S. Miller  <davem@davemloft.net>
20350
20351         With help from Eric Botcazou.
20352         * config/sparc/sparc.c: Include dwarf2out.h.
20353         (emit_pic_helper): Delete.
20354         (pic_helper_symbol_name): Delete.
20355         (pic_helper_emitted_p): Delete.
20356         (pic_helper_needed): New.
20357         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
20358         (get_pc_thunk_name): New.
20359         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
20360         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
20361         Set pic_helper_needed to true.  Don't call emit_pic_helper.
20362         (sparc_expand_prologue): Update load_pic_register call.
20363         (sparc_output_mi_thunk): Likewise.
20364         (sparc_file_end): Emit a hidden comdat symbol for the PIC
20365         thunk if possible.  Output CFI information as needed.
20366
20367 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
20368             Jack Howarth  <howarth@bromo.med.uc.edu>
20369
20370         PR target/36399
20371         * config/i386/i386.h: Fix ABI on darwin x86-32.
20372
20373 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
20374
20375         * tree.h: Declare make_decl_rtl_for_debug.
20376         * varasm.c (make_decl_rtl_for_debug): New.
20377         * dwarf2out.c (rtl_for_decl_location): Call it.
20378         * cfgexpand.c (expand_debug_expr): Call it.
20379
20380 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20381
20382         PR bootstrap/43399
20383         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
20384         mem_mode.
20385
20386         PR bootstrap/43403
20387         * var-tracking.c (vt_init_cfa_base): Do nothing if
20388         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
20389
20390 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
20391
20392         PR debug/42873
20393         * var-tracking.c (canonicalize_vars_star): New.
20394         (dataflow_post_merge_adjust): Use it.
20395
20396 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
20397
20398         PR debug/43058
20399         * var-tracking.c (non_suitable_const): New function.
20400         (add_uses): For DEBUG_INSNs with constants, don't record any
20401         value, instead just the constant value itself.
20402         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
20403         is not VAR_LOC_UNKNOWN_P, set var to the constant.
20404         (emit_notes_in_bb): Likewise.
20405         (emit_note_insn_var_location): For onepart variables if
20406         cur_loc is a VOIDmode constant, use DECL_MODE.
20407
20408 2010-03-18  Martin Jambor  <mjambor@suse.cz>
20409
20410         PR middle-end/42450
20411         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
20412         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
20413         all non-clones.  Moved call redirection...
20414         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
20415         (cgraph_materialize_all_clones): Dispose of all
20416         combined_args_to_skip bitmaps.
20417         (verify_cgraph_node): Do not check for edges pointing to wrong
20418         nodes in inline clones.
20419         * tree-inline.c (copy_bb): Call
20420         cgraph_redirect_edge_call_stmt_to_callee.
20421         * ipa.c (cgraph_remove_unreachable_nodes): Call
20422         cgraph_node_remove_callees even when there are used clones.
20423
20424 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20425
20426         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
20427
20428 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
20429
20430         PR target/43383
20431         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
20432         for 32bit.
20433
20434 2010-03-18  Michael Matz  <matz@suse.de>
20435
20436         PR middle-end/43419
20437         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
20438         into sqrt(x) if we need to preserve signed zeros.
20439
20440 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
20441             Eric Botcazou  <ebotcazou@adacore.com>
20442
20443         PR rtl-optimization/43360
20444         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
20445         note if we don't know its invariant status.
20446
20447 2010-03-18  Michael Matz  <matz@suse.de>
20448
20449         PR tree-optimization/43402
20450         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
20451         PHI chains of ssa names registered for update.
20452
20453 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
20454
20455         PR target/42427
20456         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
20457         non-offsettable and pre_modify update addressing.
20458         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
20459         and "2" alternatives "#".
20460         (*movdd_softfloat32): Make all alternatives "#";
20461         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
20462         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
20463         (*movdf_softfloat32): Make all alternatives "#";
20464         (movdi): Use the new DIFD mode iterator to create a common splitter
20465         for movdi, movdf and movdd patterns.
20466
20467 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
20468
20469         * common.opt (dumpdir): Remove redundant tab.
20470
20471 2010-03-17  Martin Jambor  <mjambor@suse.cz>
20472
20473         PR tree-optimization/43347
20474         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
20475         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
20476
20477 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
20478
20479         PR rtl-optimization/42216
20480         * regrename.c (create_new_chain): New function, broken out from...
20481         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
20482         appending a use to an empty chain.
20483         (build_def_use): Remove previous changes that convert OP_INOUT to
20484         OP_OUT operands; instead detect the case where an OP_INOUT operand
20485         uses a previously untracked register and create an empty chain for it.
20486
20487 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20488
20489         * doc/extend.texi (Function Attributes): Rewrite unfinished
20490         sentence in ms_abi documentation.
20491
20492 2010-03-17  Alan Modra  <amodra@gmail.com>
20493
20494         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
20495         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
20496         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
20497         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
20498
20499 2010-03-16  Richard Henderson  <rth@redhat.com>
20500
20501         PR middle-end/43365
20502         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
20503         (lower_try_finally): Save and restore eh_seq around the expansion
20504         of the try-finally.
20505
20506 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20507
20508         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
20509         statements before splitting block.
20510
20511 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20512
20513         * doc/sourcebuild.texi (Testsuites): Fix markup.
20514         Use pathnames relative to gcc/testsuite.
20515         (Test Directives): Move description of how timeout is determined.
20516         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
20517         (C Tests): Correct gcc.misc-tests directory.
20518         Framework tests now live in gcc.test-framework.
20519
20520 2010-03-16  Richard Guenther  <rguenther@suse.de>
20521
20522         PR middle-end/43379
20523         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
20524         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
20525
20526 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
20527             Alexandre Oliva  <aoliva@redhat.com>
20528
20529         PR tree-optimization/42917
20530         * lambda-code.c (remove_iv): Skip debug statements.
20531         (lambda_loopnest_to_gcc_loopnest): Likewise.
20532         (not_interesting_stmt): Debug statements are not interesting.
20533
20534 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
20535
20536         PR debug/43051
20537         PR debug/43092
20538         * cselib.c (cselib_preserve_constants,
20539         cfa_base_preserved_val): New static variables.
20540         (preserve_only_constants): New function.
20541         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
20542         clear its REG_VALUES.  If cselib_preserve_constants, don't
20543         empty the whole hash table, but preserve there VALUEs with constants,
20544         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
20545         (cselib_preserve_cfa_base_value): New function.
20546         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
20547         (cselib_init): Change argument to int bitfield.  Set
20548         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
20549         is in it.
20550         (cselib_finish): Clear cselib_preserve_constants and
20551         cfa_base_preserved_val.
20552         * cselib.h (enum cselib_record_what): New enum.
20553         (cselib_init): Change argument to int.
20554         (cselib_preserve_cfa_base_value): New prototype.
20555         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
20556         * dse.c (dse_step1): Likewise.
20557         * cfgcleanup.c (thread_jump): Likewise.
20558         * sched-deps.c (sched_analyze): Likewise.
20559         * gcse.c (local_cprop_pass): Likewise.
20560         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
20561         If FN is non-NULL, call the callback always and whenever it returns
20562         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
20563         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
20564         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
20565         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
20566         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
20567         * var-tracking.c: Include recog.h.
20568         (bb_stack_adjust_offset): Remove.
20569         (vt_stack_adjustments): Don't call it, instead just gather the
20570         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
20571         (adjust_stack_reference): Remove.
20572         (compute_cfa_pointer): New function.
20573         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
20574         (struct adjust_mem_data): New type.
20575         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
20576         functions.
20577         (get_address_mode): New function.
20578         (replace_expr_with_values): Use it.
20579         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
20580         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
20581         (adjust_sets): Remove.
20582         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
20583         Use get_address_mode.
20584         (get_adjusted_src): Remove.
20585         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
20586         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
20587         (add_with_sets): Don't call adjust_sets.
20588         (fp_setter, vt_init_cfa_base): New functions.
20589         (vt_initialize): Change return type to bool.  Move most of pool etc.
20590         initialization to the beginning of the function from end.  Pass
20591         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
20592         If !frame_pointer_needed, call vt_stack_adjustment before mos
20593         vector is filled, call vt_init_cfa_base if argp/framep has been
20594         eliminated to sp.  If frame_pointer_needed and argp/framep has
20595         been eliminated to hard frame pointer, set
20596         hard_frame_pointer_adjustment and call vt_init_cfa_base after
20597         encountering fp setter in the prologue.  For MO_ADJUST, call
20598         log_op_type before pusing the op into mos vector, not afterwards.
20599         Call adjust_insn before cselib_process_insn/add_with_sets,
20600         call cancel_changes (0) afterwards.
20601         (variable_tracking_main_1): Adjust for vt_initialize calling
20602         vt_stack_adjustments and returning whether it succeeded or not.
20603
20604 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
20605
20606         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
20607         debug statements.
20608
20609 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
20610
20611         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
20612         has been set.
20613         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
20614         drap_reg has not been set.
20615
20616 2010-03-15  Michael Matz  <matz@suse.de>
20617
20618         PR middle-end/43300
20619         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
20620         use it to expand block copies.
20621         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
20622         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
20623         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
20624
20625 2010-03-15  Richard Guenther  <rguenther@suse.de>
20626
20627         PR tree-optimization/43367
20628         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
20629         elimination check.
20630
20631 2010-03-15  Richard Guenther  <rguenther@suse.de>
20632
20633         PR tree-optimization/43317
20634         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
20635
20636 2010-03-15  Martin Jambor  <mjambor@suse.cz>
20637
20638         PR tree-optimization/43141
20639         * tree-sra.c (create_abstract_origin): New function.
20640         (modify_function): Call create_abstract_origin.
20641
20642 2010-03-15  Chris Demetriou  <cgd@google.com>
20643
20644         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
20645         wasn't copied.
20646
20647 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20648
20649         PR middle-end/43354
20650         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
20651         call insert_out_of_ssa_copy for default definitions.
20652
20653 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20654
20655         * graphite-clast-to-gimple.c (my_long_long): Defined.
20656         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
20657         * graphite-sese-to-poly.c (my_long_long): Defined.
20658         (scop_ivs_can_be_represented): Use it.
20659
20660 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20661
20662         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
20663         graphite-max-bbs-per-function, and loop-block-tile-size.
20664         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
20665         with "maximum".
20666         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
20667
20668 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20669
20670         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
20671         forward declaration.
20672         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
20673         (add_upper_bounds_from_estimated_nit): New.
20674         (build_loop_iteration_domains): Use it.
20675
20676 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20677
20678         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
20679
20680 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20681
20682         PR middle-end/43306
20683         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
20684         should be an INTEGER_CST.  Also handle CASE_CONVERT.
20685
20686 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20687
20688         * graphite.c (graphite_initialize): To bound the number of bbs per
20689         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
20690         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
20691         * doc/invoke.texi: Document it.
20692
20693 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20694
20695         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
20696         * graphite-sese-to-poly.h (build_poly_scop): Same.
20697
20698 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
20699
20700         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
20701         the number of parameters in the scop.  Use as an upper bound
20702         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
20703         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
20704         * doc/invoke.texi: Document it.
20705
20706 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
20707
20708         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
20709         * doc/c-tree.texi: Remove.
20710         * doc/generic.texi: Merge c-tree.texi here.
20711         * doc/gccint.texi (Trees): Remove menu entry.
20712         (c-tree.texi): Remove @include.
20713         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
20714         * doc/languages.texi (Reading RTL): Ditto.
20715
20716 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
20717
20718         PR target/42869
20719         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
20720
20721 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
20722
20723         PR middle-end/42431
20724         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
20725         code added to work around reload clobbering CONST insns.
20726
20727 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
20728
20729         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
20730         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
20731         (cselib_preserve_only_values): Remove retain argument, don't
20732         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
20733         * cselib.h (cselib_preserve_only_values): Remove retain argument.
20734         * var-tracking.c (micro_operation): Move insn field before union.
20735         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
20736         (struct variable_tracking_info_def): Remove n_mos field, change
20737         mos into a vector of micro_operations.
20738         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
20739         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
20740         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
20741         changing into a vector.
20742         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
20743         come before all other uops generated by add_stores.
20744         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
20745         argument removal.
20746         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
20747         a vector.  Run just one pass over the bbs instead of separate counting
20748         and computation phase.
20749         (vt_finalize): Free VTI (bb)->mos vector instead of array.
20750
20751         PR debug/43329
20752         * tree-inline.c (remap_decls): Put old_var rather than origin_var
20753         into *nonlocalized_list vector.
20754         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
20755         even if origin is non-NULL.
20756         (gen_variable_die): Likewise.
20757         (process_scope_var): Don't change origin.
20758         (gen_decl_die): Likewise.
20759         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
20760         before adding new edges instead of after it, fix moving over
20761         debug stmts.
20762
20763 2010-03-11  David S. Miller  <davem@davemloft.net>
20764
20765         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
20766         of four.
20767         * configure: Rebuild.
20768
20769 2010-03-11  Martin Jambor  <mjambor@suse.cz>
20770
20771         PR tree-optimization/43257
20772         * tree.c (assign_assembler_name_if_neeeded): New function.
20773         (free_lang_data_in_cgraph): Assembler name assignment moved to the
20774         above new function.
20775         * tree.h (assign_assembler_name_if_neeeded): Declare.
20776         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
20777         the function if needed.
20778
20779 2010-03-11  Chris Demetriou  <cgd@google.com>
20780
20781         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
20782         include/stdint-gcc.h, and include/stdint.h world-readable.
20783
20784 2010-03-11  Richard Guenther  <rguenther@suse.de>
20785
20786         PR tree-optimization/43255
20787         * tree-vrp.c (process_assert_insertions_for): Do not insert
20788         asserts for trivial conditions.
20789
20790 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20791
20792         PR tree-optimization/43280
20793         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
20794         generation.  Move calculation of size out of the if branch.
20795         (find_bswap): Modify compare number generation.
20796
20797 2010-03-11  Richard Guenther  <rguenther@suse.de>
20798
20799         PR lto/43200
20800         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
20801         (input_gimple_stmt): Fixup handled component types during
20802         operand read.  Also fix up decls in ADDR_EXPRs.
20803
20804 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
20805
20806         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
20807         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
20808
20809 2010-03-10  Jan Hubicka  <jh@suse.cz>
20810
20811         PR c/43288
20812         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
20813         * varasm.c (get_variable_section): Don't do that here...
20814         (make_decl_rtl): ... and here.
20815         (do_assemble_alias): Produce decl RTL.
20816         (assemble_alias): Likewise.
20817
20818 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20819
20820         PR debug/43290
20821         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
20822         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
20823         of fde->vdrap_reg.
20824         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
20825         (based_loc_descr): Only express drap or vdrap regno based expressions
20826         using DW_OP_fbreg when not optimizing.
20827         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
20828         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
20829         REG_CFA_SET_VDRAP note.
20830
20831 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
20832
20833         PR tree-optimization/43236
20834         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
20835         error in calculation of base address in reverse iteration case.
20836         (generate_builtin): Take number of latch executions if the statement
20837         is in the latch.
20838
20839 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
20840
20841         PR middle-end/42859
20842         * tree-eh.c: Include pointer-set.h.
20843         (lower_eh_dispatch): Filter out duplicate case labels and
20844         remove the unneeded edge when the label is unused.  Return
20845         true when some edges are removed.
20846         (execute_lower_eh_dispatch): When any lowering resulted in
20847         removing an edge, also delete unreachable blocks.
20848
20849 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
20850
20851         PR bootstrap/43287
20852         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20853         UNSPEC_MACHOPIC_OFFSET.
20854
20855 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
20856
20857         PR target/43294
20858         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
20859         (m68k_delegitimize_address): New function.
20860
20861 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
20862
20863         PR debug/43299
20864         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
20865
20866         PR debug/43299
20867         * var-tracking.c (adjust_sets): New function.
20868         (count_with_sets, add_with_sets): Use it.
20869         (get_adjusted_src): New inline function.
20870         (add_stores): Use it.
20871
20872         PR debug/43304
20873         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
20874         call cselib_dummy_expand_value_rtx_cb instead of
20875         cselib_expand_value_rtx_cb.
20876
20877         PR debug/43293
20878         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
20879         * config/i386/i386.c: Include debug.h and dwarf2out.h.
20880         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
20881         and .cfi_endproc around the pic thunks.
20882         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
20883         all queued unwind info register saves are saved before the call.
20884         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
20885         considered as sp-=4 for unwind info and the pop as sp+=4 which
20886         also clobbers dest, but doesn't actually restore it.
20887
20888         PR debug/43290
20889         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
20890         RTX_FRAME_RELATED_P.
20891
20892 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20893
20894         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
20895         whitespaces in output template.
20896
20897 2010-03-09  Jie Zhang  <jie@codesourcery.com>
20898
20899         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
20900         out array boundary.
20901
20902 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20903
20904         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
20905         builtins.exp in a separate job.
20906
20907 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20908
20909         * graphite-sese-to-poly.c (add_param_constraints): Use
20910         lower_bound_in_type and upper_bound_in_type.
20911
20912 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20913
20914         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
20915         instead of unsigned_type_node.
20916
20917 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20918             Reza Yazdani  <reza.yazdani@amd.com>
20919
20920         PR middle-end/43065
20921         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
20922         on pointer type parameters.
20923
20924 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20925
20926         PR middle-end/42644
20927         PR middle-end/42130
20928         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
20929         handle conversions from pointer to integers.
20930         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
20931         induction variable, to be able to work with code generated by CLooG.
20932         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
20933         (build_poly_scop): Bail out if we cannot codegen a loop.
20934
20935 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
20936
20937         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
20938         code generation with gloog_error.
20939
20940 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20941
20942         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
20943         Call fold_convert on all the returned values.
20944         (expand_scalar_variables_expr): Pass to
20945         expand_scalar_variables_ssa_name the type of the resulting expression.
20946
20947 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20948
20949         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
20950         ppl_min_for_le_pointset.
20951         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
20952         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
20953
20954 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20955
20956         * graphite-dependences.c (map_into_dep_poly): Removed.
20957         (dependence_polyhedron_1): Use combine_context_id_scat.
20958
20959 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20960
20961         * graphite-poly.h (struct poly_scattering): Add layout documentation.
20962         (struct poly_bb): Same.
20963         (combine_context_id_scat): New.
20964
20965 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20966
20967         PR middle-end/42326
20968         * sese.c (name_defined_in_loop_p): Return false for default
20969         definitions.
20970
20971 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20972
20973         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
20974         and clean up the logic.
20975
20976 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
20977
20978         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
20979         early return.
20980
20981 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
20982
20983         * var-tracking.c (remove_cselib_value_chains): Define only for
20984         ENABLE_CHECKING.
20985         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
20986         delete_slot_part, emit_notes_for_differences_1): Don't call
20987         remove_cselib_value_chains here.
20988         (set_slot_part, emit_notes_for_differences_2): Don't call
20989         add_cselib_value_chains here.
20990         (preserved_values): New vector.
20991         (preserve_value): New function.
20992         (add_uses, add_stores, vt_add_function_parameters): Use it
20993         instead of cselib_preserve_value.
20994         (changed_values_stack): New vector.
20995         (check_changed_vars_0): New function.
20996         (check_changed_vars_1, check_changed_vars_2): Use it.
20997         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
20998         changed_values_stack VALUEs.
20999         (vt_emit_notes): For all preserved_values call
21000         add_cselib_value_chains.  If ENABLE_CHECKING call
21001         remove_cselib_value_chains before verifying value_chains is empty.
21002         Initialize and free changed_values_stack.
21003         (vt_initialize): Initialize preserved_values.
21004         (vt_finalize): Free preserved_values.
21005
21006 2010-03-08  Richard Guenther  <rguenther@suse.de>
21007
21008         PR tree-optimization/43269
21009         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
21010         region detection.
21011
21012 2010-03-08  Martin Jambor  <mjambor@suse.cz>
21013
21014         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
21015         (ipa_is_param_called): Removed.
21016         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
21017         (ipa_print_node_params): Do not print the called flag.
21018         (ipa_write_node_info): Do not stream the called flag.
21019         (ipa_read_node_info): Likewise.
21020
21021 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
21022
21023         PR debug/43176
21024         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
21025         * cselib.c (struct expand_value_data): Add dummy field.
21026         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
21027         dummy to false.
21028         (cselib_dummy_expand_value_rtx_cb): New function.
21029         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
21030         any rtl.
21031         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
21032         * var-tracking.c: Include pointer-set.h.
21033         (variable): Change n_var_parts to char from int.  Add
21034         cur_loc_changed and in_changed_variables fields.
21035         (variable_canonicalize): Remove.
21036         (shared_var_p): New inline function.
21037         (unshare_variable): Maintain cur_loc_changed and
21038         in_changed_variables fields.  If var was in changed_variables,
21039         replace it there with new_var.  Just copy cur_loc instead of
21040         resetting it to something else.
21041         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
21042         (dataflow_set_union): Don't call variable_canonicalize.
21043         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
21044         of their DEBUG_EXPR_TREE_DECLs.
21045         (canonicalize_loc_order_check): Verify that cur_loc is NULL
21046         and in_changed_variables and cur_loc_changed is false.
21047         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
21048         and cur_loc_changed.  Don't update cur_loc here.
21049         (variable_merge_over_src): Don't call variable_canonicalize.
21050         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
21051         removing loc that is equal to cur_loc, clear cur_loc,
21052         set cur_loc_changed and ensure variable_was_changed is called.
21053         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
21054         compare pointers in cur_loc check, if it is equal to loc,
21055         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
21056         (variable_different_p): Remove compare_current_location argument,
21057         don't compare cur_loc.
21058         (dataflow_set_different_1): Adjust variable_different_p caller.
21059         (variable_was_changed): If dv had some var in changed_variables
21060         already, reset in_changed_variables flag for it and propagate
21061         cur_loc_changed over to the new variable.  On empty var
21062         always set cur_loc_changed.  Set in_changed_variables on whatever
21063         var is added to changed_variables.
21064         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
21065         Use shared_var_p.  When removing loc that is equal to cur_loc,
21066         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
21067         end, don't set it to something else, just call variable_was_changed.
21068         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
21069         loc being removed, clear cur_loc and set cur_loc_changed.
21070         Set cur_loc_changed if all locations have been removed.
21071         (struct expand_loc_callback_data): New type.
21072         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
21073         allocated.  Always create SUBREGs if simplify_subreg failed.
21074         Prefer to use cur_loc, when that fails and still in
21075         changed_variables (and seen first time) recompute it.  Set
21076         cur_loc_changed of variables which had to change cur_loc and
21077         compute elcd->cur_loc_changed if any of the subexpressions used
21078         had to change cur_loc.
21079         (vt_expand_loc): Adjust to pass arguments in
21080         expand_loc_callback_data structure.
21081         (vt_expand_loc_dummy): New function.
21082         (emitted_notes): New variable.
21083         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
21084         that weren't used for any other decl in current
21085         emit_notes_for_changes call call vt_expand_loc_dummy to update
21086         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
21087         first loc_chain location if NULL before.  Always use just
21088         cur_loc instead of first loc_chain location.  When cur_loc_changed
21089         is false, when not --enable-checking=rtl just don't emit any note.
21090         When rtl checking, compute the note and assert it is the same
21091         as previous note.  Clear cur_loc_changed and in_changed_variables
21092         at the end before removing from changed_variables.
21093         (check_changed_vars_3): New function.
21094         (emit_notes_for_changes): Traverse changed_vars to call
21095         check_changed_vars_3 on each changed var.
21096         (emit_notes_for_differences_1): Clear cur_loc_changed and
21097         in_changed_variables.  Recompute cur_loc of new_var.
21098         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
21099         (vt_emit_notes): Initialize and destroy emitted_notes.
21100
21101 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
21102
21103         PR rtl-optimization/42220
21104         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
21105         Use verify_reg_tracked to determine if we should use OP_OUT rather
21106         than OP_INOUT.
21107         (build_def_use): If we see an in-out operand for a register that we
21108         know nothing about, treat is an output if possible, fail the block if
21109         not.
21110
21111 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21112
21113         PR debug/42897
21114         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
21115         permanently.
21116
21117 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21118
21119         PR debug/42897
21120         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
21121         uses of relevant DEFs that are dead outside the loop too.
21122
21123 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
21124
21125         * var-tracking.c (dataflow_set_merge): Swap src and src2.
21126         Reverted:
21127         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21128         PR debug/41371
21129         * var-tracking.c (values_to_unmark): New variable.
21130         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21131         values_to_unmark vector.  Moved body to...
21132         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21133         instead queue it into values_to_unmark vector.
21134         (vt_find_locations): Free values_to_unmark vector.
21135
21136 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
21137
21138         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
21139         (site.exp): Export them when plugins are enabled.
21140
21141 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
21142
21143         PR middle-end/42326
21144         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
21145         that contain scevs.
21146         (chrec_fold_multiply): Same.
21147
21148 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
21149
21150         PR c/43248
21151         * c-decl.c (build_compound_literal): Return early if init is
21152         an error_mark_node.
21153
21154 2010-03-04  Martin Jambor  <mjambor@suse.cz>
21155
21156         PR tree-optimization/43164
21157         PR tree-optimization/43191
21158         * tree-sra.c (type_consists_of_records_p): Reject records with
21159         zero-size bit-fields at the end.
21160
21161 2010-03-04  Mike Stump  <mikestump@comcast.net>
21162
21163         * Makefile.in (TAGS): Remove *.y.
21164
21165 2010-03-04  Richard Guenther  <rguenther@suse.de>
21166
21167         PR tree-optimization/40761
21168         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
21169         in reverse order.
21170         (my_rev_post_order_compute): New function.
21171         (init_pre): Call it.
21172
21173 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
21174
21175         PR middle-end/43209
21176         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
21177         decrease the cost of an IV candidate when the cost is infinite.
21178
21179 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21180
21181         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
21182         Use '3DNow!' for the extension of that name, ensure normal space
21183         after the string.
21184         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
21185
21186 2010-03-03  Jeff Law  <law@redhat.com>
21187
21188         * PR middle-end/32693
21189         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
21190         than gen_rtx_SUBREG.
21191         (extract_bit_field_1): Likewise.
21192
21193 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
21194
21195         * doc/sourcebuild.texi (Test directives): Document that arguments
21196         include-opts and exclude-opts are now optional for dg-skip-if,
21197         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
21198
21199 2010-03-03  Jason Merrill  <jason@redhat.com>
21200
21201         PR c++/12909
21202         * cgraph.h (varpool_node): Add extra_name field.
21203         * varpool.c (varpool_extra_name_alias): New.
21204         (varpool_assemble_decl): Emit extra name aliases.
21205         (varpool_mark_needed_node): Look past an extra name alias.
21206         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
21207         * lto-streamer-in.c (lto_input_tree): Read it.
21208         * lto-streamer-out.c (output_unreferenced_globals): Write it.
21209
21210 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
21211
21212         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
21213         (sparc*-*-solaris2*): ...this.
21214
21215 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
21216
21217         PR debug/43229
21218         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
21219         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
21220         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
21221         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
21222
21223         PR debug/43237
21224         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
21225         fallthrough to default handling, just with want_address 0 instead of 2.
21226         For single element lists, add_AT_loc directly, otherwise create an
21227         artificial variable DIE and stick location list to it.
21228
21229         PR debug/43177
21230         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
21231         (VAL_EXPR_HAS_REVERSE): Define.
21232         (reverse_op): New function.
21233         (add_stores): For reversible operations add an extra MO_VAL_USE.
21234
21235 2010-03-02  Jason Merrill  <jason@redhat.com>
21236
21237         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
21238
21239 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
21240
21241         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
21242         (sparc64-*-linux*): Likewise.
21243         (sparc64-*-solaris2*): Include assembler files before linker ones.
21244         (sparc-*-solaris2*): Simplify and reorder to match previous case.
21245         * config/sparc/gas.h: Delete.
21246         * config/sparc/sol2-64.h: Add copyright notice.
21247         * config/sparc/sol2-gas-bi.h: Likewise.
21248         * config/sparc/sol2-gld.h: Likewise.
21249         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
21250         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
21251         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
21252         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
21253         (sparc_elf_asm_named_section): Rename into...
21254         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
21255
21256 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
21257
21258         * config/alpha/alpha.c (override_options): Fix -mtune error message.
21259
21260 2010-03-02  Jeff Law  <law@redhat.com>
21261
21262         PR middle-end/42431
21263         * reload1.c (rtx_p, substitute_stack): Declare.
21264         (substitute): Record addresses of changed rtxs.
21265         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
21266         Restore the original rtx when complete.
21267         (reload): Free subsitute_stack when complete.
21268
21269 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
21270
21271         * doc/gccint.texi (menu): Add Testsuites as a chapter.
21272         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
21273         new chapter.
21274         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
21275         LTO Testing, gcov Testing, profopt Testing, compat Testing,
21276         Torture Tests): Change from subsection to section.
21277
21278 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
21279             Steven Bosscher  <steven@gcc.gnu.org>
21280
21281         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
21282         instead of bb.
21283
21284 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
21285
21286         PR middle-end/42640
21287         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
21288         the assignment from the new induction variable to the assignment
21289         of the value from the original loop PHI function.
21290
21291 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
21292             Daniel Jacobowitz  <dan@codesourcery.com>
21293
21294         * doc/sourcebuild.texi (Test directives): Clarify options to
21295         dg-skip-if.
21296
21297 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21298
21299         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
21300         Disable cfi directives unless GCC and gas agree on using read-only
21301         .eh_frame sections for 64-bit.
21302         * configure: Regenerate.
21303
21304 2010-03-01  Richard Guenther  <rguenther@suse.de>
21305
21306         PR tree-optimization/43220
21307         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
21308         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
21309
21310 2010-03-01  Richard Guenther  <rguenther@suse.de>
21311             Martin Jambor  <mjambor@suse.cz>
21312
21313         PR middle-end/41250
21314         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
21315         gimplified parameters.
21316
21317 2010-03-01  Christian Bruel  <christian.bruel@st.com>
21318
21319         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
21320
21321 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
21322
21323         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
21324
21325 2010-03-01  Richard Guenther  <rguenther@suse.de>
21326
21327         PR middle-end/43213
21328         * expr.c (expand_assignment): Use the alias-oracle to tell
21329         if the rhs aliases the result decl.
21330
21331 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21332
21333         PR pch/14940
21334         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
21335         to sol_gt_pch_get_address.
21336         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
21337         64-bit, SPARC and x86.
21338         (sol_gt_pch_get_address): New function.
21339
21340 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
21341
21342         * toplev.h (inform_n, error_n): Declare.
21343         * diagnostic.c (inform_n, error_n): New function.
21344
21345 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
21346
21347         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
21348         has no rtl yet when processing local_decls, queue it and recheck
21349         if deferred stack allocation hasn't assigned it rtl.
21350
21351 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
21352
21353         * config/sh/sh.c (unspec_bbr_uid): New.
21354         (gen_block_redirect): Use it instead of INSN_UID.
21355         (gen_far_branch): Likewise.
21356
21357 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21358
21359         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
21360         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
21361
21362 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21363
21364         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
21365         (Warning Options): -Wno-conversion-null is valid for
21366         Objective-C++ as well.
21367         * doc/tm.texi (Named Address Spaces): Likewise.
21368         * doc/plugins.texi (Plugins): Replace TABs with spaces.
21369         * doc/tree-ssa.texi (Tree SSA): Likewise.
21370
21371 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21372
21373         PR bootstrap/43202
21374         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
21375         by default.  Don't set the default arch for
21376         i[34567]86-*-darwin*|x86_64-*-darwin*.
21377
21378 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21379
21380         PR bootstrap/43202
21381         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
21382         default.  Set the default 32bit/64bit archs with $with_arch
21383         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
21384
21385 2010-02-27  Richard Guenther  <rguenther@suse.de>
21386
21387         PR tree-optimization/43186
21388         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
21389         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
21390         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
21391         unroller iterations.
21392
21393 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
21394
21395         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
21396         required and i[34567]86-*-* targets don't support 64bit ISA.
21397
21398 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21399
21400         PR ada/43096
21401         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
21402         the same alias set.
21403
21404 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21405
21406         * config.gcc: Set the default arch at least to Prescott for
21407         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
21408         if SSE math is enabled.
21409
21410 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21411
21412         * diagnostic.c (diagnostic_initialize): Update.
21413         (diagnostic_report_diagnostic): Test inhibit_notes_p for
21414         informative notes.
21415         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
21416         (diagnostic_inhibit_notes): New.
21417         * toplev.c (process_options): inhibit notes with -fcompare-debug.
21418
21419 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21420
21421         PR c/20631
21422         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
21423         * doc/standards.texi: Likewise.
21424         * doc/extend.texi: Likewise.
21425         * doc/trouble.texi: Likewise.
21426         * doc/cppopts.texi: Likewise.
21427         * doc/install.texi: Likewise.
21428         * c.opt (std=c90,std=gnu90): New options.
21429         * c-opts.c (c_common_handle_option): Handle them.
21430
21431 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21432
21433         PR c/24577
21434         * c-decl.c (undeclared_variable): Use an informative note.
21435
21436 2010-02-26  Richard Guenther  <rguenther@suse.de>
21437
21438         PR tree-optimization/43186
21439         * gimple.h (gimple_fold): Remove.
21440         * gimple.c (gimple_fold): Remove.  Inline into single user ...
21441         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
21442         Try harder for conditions.
21443
21444 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21445
21446         PR debug/43190
21447         * function.c (used_types_insert): Don't skip through named pointer
21448         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
21449         and it is different from the main variant's type.
21450
21451 2010-02-26  Nick Clifton  <nickc@redhat.com>
21452
21453         * config/rx/rx.md (sminsi3): Remove bogus alternative.
21454
21455 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
21456
21457         * config.gcc: Support --with-fpmath=sse for x86.
21458
21459         * config/i386/ssemath.h: New.
21460
21461         * doc/install.texi (--with-fpmath=sse): Documented.
21462
21463 2010-02-26  Richard Guenther  <rguenther@suse.de>
21464
21465         PR tree-optimization/43188
21466         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
21467         vector types of over-aligned element type.
21468
21469 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
21470
21471         PR target/43175
21472         * config/i386/i386.c (expand_vec_perm_blend): Use correct
21473         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
21474
21475 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
21476
21477         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
21478
21479 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
21480
21481         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
21482         * var-tracking.c: Include diagnostic.h.
21483         (debug_dv): New function.
21484         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
21485
21486         PR debug/43160
21487         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
21488         (add_value_chain, add_value_chains, remove_value_chain,
21489         remove_value_chains): Handle DEBUG_EXPRs.
21490         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
21491
21492         PR debug/43161
21493         * regcprop.c (struct queued_debug_insn_change): New type.
21494         (struct value_data_entry): Add debug_insn_changes field.
21495         (struct value_data): Add n_debug_insn_changes field.
21496         (debug_insn_changes_pool): New variable.
21497         (free_debug_insn_changes, apply_debug_insn_changes,
21498         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
21499         (kill_value_one_regno): Call free_debug_insn_changes if needed.
21500         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
21501         fields.
21502         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
21503         changes for them.
21504         (copyprop_hardreg_forward_1): Don't call apply_change_group for
21505         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
21506         changes, call cprop_find_used_regs via note_stores.
21507         (copyprop_hardreg_forward): When copying vd from predecessor
21508         which has any queued DEBUG_INSN changes, make sure the pointers are
21509         cleared.  At the end call df_analyze and then if there are any
21510         DEBUG_INSN changes queued at the end of some basic block for still
21511         live registers, apply them.
21512         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
21513
21514 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
21515
21516         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
21517         (arm*-*-*): Ditto.
21518
21519 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
21520
21521         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
21522         targets.  Set the default with_cpu/with_arch from arch/cpu.
21523         Allow x86-64 and native for with_cpu/with_arch.
21524
21525 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
21526
21527         * ebitmap.c: Change calls to verify_popcount with calls to
21528         sbitmap_verify_popcount.
21529         (ebitmap_clear_bit): Fixed map->cacheindex test and
21530         map>cache update when bit clearing results in an empty
21531         element.
21532
21533 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
21534
21535         PR target/43154
21536         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
21537         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
21538         and support both V2DF and V2DI modes.
21539         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
21540         support both V2DF and V2DI modes.
21541         (general): Delete trailing whitespace from a few patterns.
21542
21543         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21544         V2DF/V2DI interleave high/low builtins.
21545
21546         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
21547         new VSX builtins.
21548
21549         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
21550         interleave high/low functions.
21551
21552 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
21553
21554         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
21555         #pragma extern_prefix.
21556
21557 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
21558
21559         PR debug/43166
21560         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
21561         BLKmode, assert op0 is a MEM and just adjust its mode.
21562
21563         PR debug/43165
21564         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
21565         if bitpos isn't multiple of mode's bitsize.
21566
21567 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21568
21569         * c.opt (-ftemplate-depth=): New.
21570         (-ftemplate-depth-): Deprecate.
21571         * optc-gen.awk: Handle -ftemplate-depth=.
21572         * opth-gen.awk: Likewise.
21573         * c-opts.c (c_common_handle_option): Likewise.
21574         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
21575
21576 2010-02-24  Jason Merrill  <jason@redhat.com>
21577
21578         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
21579
21580 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21581
21582         * cfg.c (alloc_aux_for_block): Remove inline.
21583         (alloc_aux_for_edge): Likewise.
21584
21585 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21586
21587         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
21588
21589 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21590
21591         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
21592         * config/i386/sol2-gas.h: New file.
21593         * config.gcc (i[34567]86-*-solaris2*): Use it.
21594
21595 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21596
21597         PR c/43128
21598         * c-typeck.c (ep_convert_and_check): New.
21599         (build_conditional_expr): Use it.
21600         (build_binary_op): Likewise.
21601
21602 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
21603
21604         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
21605
21606         PR debug/43150
21607         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
21608         bounds even for -O+.
21609         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
21610         expr needs to have DECL_NAME set.
21611
21612 2010-02-24  Nick Clifton  <nickc@redhat.com>
21613
21614         * config/mep/mep.c: Include gimple.h.
21615         (mep_function_uses_sp): Delete unused function.
21616         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
21617         parameters.  Use unsigned integers to count args.  Return a
21618         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
21619
21620 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21621
21622         PR target/43107
21623         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
21624         greater or equal to nelt instead of 2 * nelt.
21625         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
21626         with nelt - 1.
21627
21628 2010-02-23  Jason Merrill  <jason@redhat.com>
21629
21630         PR debug/42800
21631         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
21632         in cfun->local_decls even if they have register types.
21633
21634         PR c++/42837
21635         * stor-layout.c (place_field): Don't warn about unnecessary
21636         DECL_PACKED if the type is packed.
21637
21638 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
21639
21640         PR target/43139
21641         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
21642         GOTOFF relocs, even when the base reg isn't pic pointer.
21643
21644 2010-02-23  Michael Matz  <matz@suse.de>
21645
21646         PR debug/43077
21647         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
21648         (expand_gimple_basic_block): Generate and use debug temps if there
21649         are debug uses left after the last real use of TERed ssa names.
21650         Unlink debug immediate uses when they are expanded.
21651
21652 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21653
21654         PR 43123
21655         * config/i386/i386.c (override_options): Reorganise to provide
21656         better error messages.
21657
21658 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21659
21660         PR middle-end/43083
21661         * graphite-scop-detection.c (create_single_exit_edge): Move
21662         the call to find_single_exit_edge to....
21663         (create_sese_edges): ...here.  Don't handle multiple edges
21664         exiting the function.
21665         (build_graphite_scops): Don't handle multiple edges
21666         exiting the function.
21667
21668 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21669
21670         PR middle-end/43097
21671         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
21672         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
21673
21674 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21675
21676         PR middle-end/43026
21677         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
21678
21679 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21680
21681         PR c++/43126
21682         * c-typeck.c (convert_arguments): Print declaration location.
21683         * c-common.c (validate_nargs): Rename as
21684         builtin_function_validate_nargs.
21685         (check_builtin_function_arguments): Update.
21686
21687 2010-02-22  Richard Guenther  <rguenther@suse.de>
21688
21689         PR lto/43045
21690         * tree-inline.c (declare_return_variable): Use the type of
21691         the call stmt lhs if available.
21692
21693 2010-02-22  Duncan Sands  <baldrick@free.fr>
21694
21695         * passes.c (register_pass): Always consider all pass lists when
21696         ref_pass_instance_number is zero.
21697
21698 2010-02-22  Richard Guenther  <rguenther@suse.de>
21699
21700         PR tree-optimization/42749
21701         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
21702         parameter.  Do arithmetic in the original type.
21703         (update_accumulator_with_ops): Likewise.
21704         (adjust_accumulator_values): Adjust.
21705
21706 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21707
21708         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
21709         (QI to BLKmode splitter): New splitter.
21710
21711 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21712
21713         * config/i386/i386.c (initial_ix86_tune_features): Turn on
21714         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
21715
21716 2010-02-22  Richard Guenther  <rguenther@suse.de>
21717
21718         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
21719
21720 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
21721
21722         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
21723         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
21724         ($(T)crti.o, $(T)crtn.o): Remove rules.
21725
21726 2010-02-21  Tobias Burnus  <burnus@net-b.de>
21727
21728         PR fortran/35259
21729         * doc/invoke.texi (-fassociative-math): Document that this
21730         option is automatically enabled for Fortran.
21731
21732 2010-02-20  David S. Miller  <davem@davemloft.net>
21733
21734         * configure.ac: Test if linker and assembler properly support
21735         GOTDATA_OP relocations.
21736         * configure: Rebuild.
21737         * config.in: Likewise.
21738         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
21739         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
21740         (movsi_high_pic): Likewise.
21741         (movdi_lo_sum_pic): Likewise.
21742         (movdi_high_pic): Likewise.
21743         (movsi_pic_gotdata_op): New pattern.
21744         (movdi_pic_gotdata_op): Likewise.
21745         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
21746         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
21747
21748 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
21749
21750         PR target/43067
21751         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
21752         attribute to ssemul.
21753         (xop_mulv2div2di3_high): Ditto.
21754
21755 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21756
21757         PR c++/35669
21758         * c.opt (Wconversion-null): New option.
21759         * doc/invoke.texi (Wconversion-null): Document.
21760
21761 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21762
21763         * common.opt (Wlarger-than-): Add Undocumented.
21764
21765 2010-02-19  Mike Stump  <mikestump@comcast.net>
21766
21767         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
21768
21769 2010-02-19  Jason Merrill  <jason@redhat.com>
21770
21771         PR target/40332
21772         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
21773         * configure: Likewise.
21774
21775 2010-02-20  Alan Modra  <amodra@gmail.com>
21776
21777         PR middle-end/42344
21778         * cgraph.h (cgraph_make_decl_local): Declare.
21779         * cgraph.c (cgraph_make_decl_local): New function.
21780         (cgraph_make_node_local): Use it.
21781         * cgraphunit.c (cgraph_function_versioning): Likewise.
21782         * ipa.c (function_and_variable_visibility): Likewise.
21783
21784 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21785
21786         PR bootstrap/43121
21787         * except.c (sjlj_emit_function_enter): Don't call
21788         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
21789         directly.
21790         * rtl.h (add_reg_br_prob_note): Remove prototype.
21791
21792 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21793
21794         PR 41779
21795         * c-common.c (conversion_warning): Remove widening conversions
21796         before checking the conversion of integers to reals.
21797
21798 2010-02-19  Mike Stump  <mikestump@comcast.net>
21799
21800         PR middle-end/43125
21801         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
21802
21803         PR objc/43061
21804         * cgraphunit.c (process_function_and_variable_attributes): Check
21805         DECL_PRESERVE_P instead of looking up attribute "used".
21806         * ipa-pure-const.c (check_decl): Likewise.
21807         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
21808         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
21809         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
21810         instead of attribute "used".
21811         * config/sol2-c.c (solaris_pragma_init): Likewise.
21812         (solaris_pragma_fini): Likewise.
21813
21814 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21815
21816         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
21817         Use XCNEW instead of xcalloc.
21818         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
21819         XNEW instead of xmalloc.
21820         (get_fields): Use XNEWVEC instead of xmalloc.
21821
21822         PR debug/43084
21823         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
21824         populate vars array.
21825         (create_new_general_access): For debug stmts just reset value.
21826         (get_stmt_accesses): For accesses within debug stmts just record them
21827         using add_access_to_acc_sites instead of preventing the peeling or
21828         counting them as accesses.
21829
21830         PR middle-end/42233
21831         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
21832
21833 2010-02-19  Richard Guenther  <rguenther@suse.de>
21834
21835         PR tree-optimization/42916
21836         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
21837         instructions.
21838
21839 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
21840
21841         * configure.ac: Replace all uses of changequote in macro arguments
21842         with proper quoting.
21843
21844 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21845
21846         PR middle-end/42233
21847         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
21848
21849 2010-02-19  Richard Guenther  <rguenther@suse.de>
21850
21851         PR tree-optimization/42944
21852         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
21853         test for aliasing with errno.
21854
21855 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
21856
21857         PR middle-end/42233
21858         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
21859         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
21860         * dojump.c: Include output.h.
21861         (inv): New inline function.
21862         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
21863         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
21864         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
21865         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
21866         argument, pass it down to other calls.
21867         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
21868         add REG_BR_PROB note to the conditional jump.
21869         * cfgexpand.c (add_reg_br_prob_note): Removed.
21870         (expand_gimple_cond): Don't call it, add the probability
21871         as last argument to jumpif_1/jumpifnot_1.
21872         * Makefile.in (dojump.o): Depend on output.h.
21873         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
21874         callers.
21875         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
21876         * stmt.c (do_jump_if_equal): Likewise.
21877         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
21878         * loop-unswitch.c (compare_and_jump_seq): Likewise.
21879         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
21880         Likewise.
21881         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
21882         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
21883         jumpifnot_1 callers.
21884         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
21885         callers.
21886         (store_expr): Adjust jumpifnot caller.
21887         (store_constructor): Adjust jumpif caller.
21888
21889         PR middle-end/42233
21890         * gimplify.c (gimple_boolify): For __builtin_expect call
21891         gimple_boolify also on its first argument.
21892
21893 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
21894
21895         * configure.ac (gnu-unique-object): Wrap regexps using [] in
21896         changequote block.
21897         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
21898         * configure: Regenerated.
21899
21900 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21901
21902         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
21903         lang_hooks.types_compatible_p instead of comptypes.
21904
21905 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
21906
21907         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
21908         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
21909         if __prefer_thumb__ is defined.
21910
21911 2010-02-18  Martin Jambor  <mjambor@suse.cz>
21912
21913         PR tree-optimization/43066
21914         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
21915         array with zero-sized element type.
21916
21917 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
21918
21919         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
21920         rtx, allocate struct var_loc_node here and return it to the
21921         caller, and only if it is actually needed.
21922         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
21923         move it earlier and return immediately if it returns NULL.
21924
21925 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
21926
21927         * config/sparc/gas.h: New file.  Restore
21928         TARGET_ASM_NAMED_SECTION to its ELF default.
21929         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
21930         check !HAVE_GNU_AS.
21931         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21932         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
21933         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
21934         after sparc/sysv4.h.
21935
21936 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
21937
21938         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
21939
21940 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
21941
21942         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
21943         patterns from predicated pattern.
21944
21945 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
21946
21947         PR target/43103
21948         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
21949         for insn mnemonic suffix.
21950
21951 2010-02-17  Richard Guenther  <rguenther@suse.de>
21952
21953         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
21954         to loop PHI nodes.
21955
21956 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
21957
21958         PR debug/42918
21959         * caller-save.c (save_call_clobbered_regs): If BB ends with
21960         a DEBUG_INSN, move any notes in between last real insn and the last
21961         DEBUG_INSN after the last DEBUG_INSN.
21962
21963 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
21964
21965         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
21966         Fix return type.  Fix argument type.  Explain meaning of return value.
21967
21968 2010-02-16  Richard Guenther  <rguenther@suse.de>
21969
21970         PR tree-optimization/41043
21971         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
21972         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
21973         statements ...
21974         (vrp_visit_phi_node): ... but only for loop PHI nodes.
21975
21976 2010-02-16  Ira Rosen  <irar@il.ibm.com>
21977
21978         PR tree-optimization/43074
21979         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
21980         * tree-vect-loop.c (vect_analyze_loop_operations): Add
21981         vectorizable cycles in hybrid SLP check.
21982         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
21983
21984 2010-02-16  Richard Guenther  <rguenther@suse.de>
21985
21986         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
21987         (true_dependence): If memrefs_conflict_p computes must-alias
21988         trust it.  Move TBAA check after offset-based disambiguation.
21989         (canon_true_dependence): Likewise.
21990
21991 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
21992
21993         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
21994         * doc/invoke.texi: Document it.
21995         * var-tracking.c: Include toplev.h and params.h.
21996         (vt_find_locations): Return bool indicating success.  Compute
21997         hash sizes unconditionally.  Check new parameter, report.
21998         (variable_tracking_main_1): Check vt_find_locations results and
21999         retry.  Renamed from...
22000         (variable_tracking_main): ... this.  New wrapper to preserve
22001         flag_var_tracking_assignments.
22002         * Makefile.in (var-tracking.o): Adjust dependencies.
22003
22004 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
22005             Jakub Jelinek  <jakub@redhat.com>
22006
22007         PR target/42854
22008         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
22009         if weak_import attribute is present.
22010         * config/darwin.c (machopic_select_section): Likewise.
22011
22012 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
22013
22014         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
22015         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
22016         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
22017         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
22018
22019         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
22020         types.
22021
22022         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22023         Fix argument types.
22024
22025         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
22026         Rewrite text to refer to the names.
22027
22028 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
22029
22030         * config/i386/i386-builtin-types.def
22031         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
22032         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
22033         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
22034         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
22035         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
22036         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
22037         IX86_BUILTIN_VPERMIL2PS256.
22038         (MULTI_ARG_4_DF2_DI_I): Defined.
22039         (MULTI_ARG_4_DF2_DI_I1): Defined.
22040         (MULTI_ARG_4_SF2_SI_I): Defined.
22041         (MULTI_ARG_4_SF2_SI_I1): Defined.
22042         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
22043         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
22044         __builtin_ia32_vpermil2ps256.
22045         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22046         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22047         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
22048         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
22049         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
22050         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
22051         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
22052         CODE_FOR_xop_vpermil2v8sf3.
22053         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
22054         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
22055         * config/i386/xopintrin.h (_mm_permute2_pd): New.
22056         (_mm256_permute2_pd): New.
22057         (_mm_permute2_ps): New.
22058         (_mm256_permute2_ps): New.
22059
22060 2010-02-15  Nick Clifton  <nickc@redhat.com>
22061
22062         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
22063         boolean parameters.  Use emit_jump_insn when emitting a pop
22064         instruction containing a return insn.
22065         (push): Use 'true' rather than '1' as second parameter to F.
22066         (h8300_expand_prologue): Likewise.
22067         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
22068         (h8300_expand_epilogue): Likewise.
22069
22070 2010-02-15  Richard Guenther  <rguenther@suse.de>
22071
22072         PR middle-end/43068
22073         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
22074         if that is zero.
22075
22076 2010-02-15  Nick Clifton  <nickc@redhat.com>
22077
22078         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
22079         delta.
22080
22081 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
22082
22083         * intl.c (fake_ngettext): New function.
22084         * intl.h (fake_ngettext): Declare.
22085         (ngettext): Define macro.
22086         * collect2.c (notice_translated): New function.
22087         (main): Use notice_translated and ngettext.
22088         * collect2.h (notice_translated): Declare.
22089
22090 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
22091
22092         * reorg.c (delete_computation): Comment fixes.
22093         * caller-save.c (setup_save_areas): Idem.
22094         * sel-sched-dump.c (dump_lv_set): Idem.
22095         * rtl.def: Idem.
22096
22097 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22098
22099         * config/s390/s390.c (s390_sched_init): New function.
22100         (TARGET_SCHED_INIT): Target hook defined.
22101
22102 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
22103             Jack Howarth  <howarth@bromo.med.uc.edu>
22104             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
22105
22106         PR target/42982
22107         Partial revert of unintended change in fix for PR41605.
22108         * config/darwin.h: Fix typo.
22109         * config/darwin9.h: Same.
22110
22111 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22112
22113         * c-pch.c (pch_init): Clear v.
22114
22115 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22116
22117         PR middle-end/42930
22118         * graphite-scop-detection.c (graphite_can_represent_scev): Call
22119         graphite_can_represent_init for MULT_EXPR.
22120
22121 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22122
22123         PR middle-end/42914
22124         PR middle-end/42530
22125         * graphite-sese-to-poly.c (remove_phi): New.
22126         (translate_scalar_reduction_to_array): Call remove_phi.
22127
22128 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22129
22130         PR middle-end/42771
22131         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
22132         * graphite-clast-to-gimple.h (gloog): Update declaration.
22133         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
22134         * graphite-poly.h (struct poly_bb): Add missing comments.
22135         (struct scop): Add poly_scop_p field.
22136         (POLY_SCOP_P): New.
22137         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
22138         * graphite.c (graphite_transform_loops): Build the polyhedral
22139         representation for each scop before code generation.
22140         * sese.c (rename_variables_in_operand): Removed.
22141         (rename_variables_in_expr): Return the renamed expression.
22142         (rename_sese_parameters): New.
22143         * sese.h (rename_sese_parameters): Declared.
22144
22145 2010-02-11  Richard Guenther  <rguenther@suse.de>
22146
22147         PR tree-optimization/42998
22148         * tree-ssa-pre.c (create_expression_by_pieces): Treat
22149         POINTER_PLUS_EXPR properly.
22150
22151 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
22152             Changpeng Fang  <changpeng.fang@amd.com>
22153
22154         PR middle-end/40886
22155         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
22156         the cost of an IV candidate when the IV is used in a test against zero.
22157
22158         * gcc.dg/tree-ssa/ivopts-3.c: New.
22159
22160 2010-02-11  Richard Guenther  <rguenther@suse.de>
22161
22162         PR lto/41664
22163         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
22164         pointer-vs-decl case by swapping refs.  Handle some cases
22165         of pointer-vs-decl disambiguations more conservatively.
22166         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
22167         to false after expanding.
22168
22169 2010-02-11  Richard Guenther  <rguenther@suse.de>
22170
22171         PR driver/43021
22172         * gcc.c (process_command): Handle LTO file@offset case more
22173         appropriately.
22174
22175 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
22176
22177         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
22178         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
22179         of DEBUG_INSNs.
22180         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
22181
22182         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
22183         if MEM's mode size isn't DWARF2_ADDR_SIZE.
22184         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
22185         Optimize eq/ne comparisons when both arguments are known to be
22186         zero-extended.
22187         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
22188         Don't mask operands unnecessarily if they are known to be already
22189         zero-extended.
22190
22191 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22192
22193         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
22194         instead of loop.
22195
22196 2010-02-10  Richard Guenther  <rguenther@suse.de>
22197
22198         PR tree-optimization/43017
22199         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
22200         for wrapping signed arithmetic.
22201
22202 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22203
22204         PR debug/43010
22205         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
22206         if no debug info should be emitted for it.
22207
22208 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
22209
22210         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
22211         note when flag_exceptions is set.
22212
22213 2010-02-10  Duncan Sands  <baldrick@free.fr>
22214
22215         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
22216
22217 2010-02-10  Richard Guenther  <rguenther@suse.de>
22218
22219         PR c/43007
22220         * tree.c (get_unwidened): Handle constants.
22221         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
22222
22223 2010-02-10  Martin Jambor  <mjambor@suse.cz>
22224
22225         PR lto/42985
22226         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
22227         check for variable argument counts independently.
22228
22229 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22230
22231         PR target/42841
22232         * config/sh/sh.c (find_barrier): Increase length for non delayed
22233         conditional branches.
22234
22235 2010-02-10  Christian Bruel  <christian.bruel@st.com>
22236
22237         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
22238
22239 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
22240
22241         * builtins.c (set_builtin_user_assembler_name): Also handle
22242         ffs if int is smaller than word.
22243
22244 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
22245
22246         PR middle-end/42973
22247         * ira-conflicts.c (get_dup): Remove.
22248         (process_reg_shuffles): Add new parameter.  Use it as an
22249         additional guard for copy generation.
22250         (add_insn_allocno_copies): Rewrite.
22251
22252 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
22253
22254         * common.opt (fsched2-use-traces): Preserved for backward
22255         compatibility.
22256         * doc/invoke.texi: Remove the documentation about option
22257         -fsched2-use-traces.
22258         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
22259         flag_sched2_use_traces.
22260         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
22261         the backward compatibility flag section.
22262
22263 2010-02-09  Richard Guenther  <rguenther@suse.de>
22264
22265         PR tree-optimization/43008
22266         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
22267         make HEAP variables initialized from global memory if they
22268         are not known builtin functions.
22269         (find_func_aliases): Adjust.
22270
22271 2010-02-09  Richard Guenther  <rguenther@suse.de>
22272
22273         PR tree-optimization/43000
22274         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
22275         arithmetic manually.
22276
22277 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
22278
22279         PR tree-optimization/42931
22280         * tree-loop-linear.c (try_interchange_loops): Don't call
22281         double_int_mul if estimated_loop_iterations failed.
22282
22283 2010-02-08  Martin Jambor  <mjambor@suse.cz>
22284
22285         PR middle-end/42898
22286         * tree-sra.c (build_accesses_from_assign): Do not mark in
22287         should_scalarize_away_bitmap if stmt has volatile ops.
22288         (sra_modify_assign): Do not process assigns piecemeal if if stmt
22289         has volatile ops.
22290
22291 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
22292
22293         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
22294
22295 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
22296
22297         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
22298         before the pattern.
22299
22300 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
22301
22302         PR middle-end/42946
22303         * df-core.c (df_finish_pass): Change type of saved_flags to int.
22304
22305 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22306
22307         PR middle-end/42988
22308         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
22309         to unknown_dependence.
22310         (graphite_legal_transform_dr): Handle the unknown_dependence.
22311         (graphite_carried_dependence_level_k): Same.
22312
22313 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
22314
22315         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
22316
22317 2010-02-07  Richard Guenther  <rguenther@suse.de>
22318
22319         PR middle-end/42991
22320         * expr.c (get_inner_reference): Always initialize *pbitsize.
22321
22322 2010-02-07  Richard Guenther  <rguenther@suse.de>
22323
22324         PR middle-end/42956
22325         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
22326         new ARRAY_REFs on variable size element or minimal index arrays.
22327         Complete.
22328         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
22329         gimple_fold_indirect_ref.
22330
22331 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
22332
22333         PR target/42957
22334         * arm.c (arm_override_options): Just return if the user has specified
22335         an invalid fpu name.
22336
22337 2010-02-03  Jason Merrill  <jason@redhat.com>
22338
22339         PR c++/42870
22340         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
22341         i386_pe_maybe_record_exported_symbol.
22342
22343 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
22344
22345         PR target/42924
22346         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22347         (pa_delegitimize_address): New function.
22348
22349 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
22350
22351         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
22352         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
22353
22354 2010-02-05  Richard Guenther  <rguenther@suse.de>
22355
22356         PR lto/42762
22357         * lto-streamer-in.c (get_resolution): Deal with references
22358         to undefined functions.
22359
22360 2010-02-05  Richard Guenther  <rguenther@suse.de>
22361
22362         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
22363         (fold_const_aggregate_ref): Likewise.
22364         (ccp_fold_stmt): Substitute loads.
22365         (maybe_fold_reference): Verify types before substituting.
22366         Unshare properly.
22367         (fold_gimple_assign): Unshare properly.
22368         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
22369
22370 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
22371
22372         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
22373         for rs6000_gen_cell_microcode.
22374
22375 2010-02-04  Richard Guenther  <rguenther@suse.de>
22376
22377         PR rtl-optimization/42952
22378         * dse.c (const_or_frame_p): Remove MEM handling.
22379
22380 2010-02-04  Nick Clifton  <nickc@redhat.com>
22381
22382         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
22383         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
22384         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
22385         (mn10300_asm_output_mi_thunk): New function.
22386         (mn10300_can_output_mu_thunk): New function.
22387         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
22388         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
22389         (FUNCTION_ARG): Delete incorrect comment.
22390
22391 2010-02-03  Jason Merrill  <jason@redhat.com>
22392
22393         PR c++/40138
22394         * fold-const.c (operand_equal_p): Handle erroneous types.
22395
22396 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
22397
22398         * config/h8300/h8300.md (can_delay): Fix attibute condition.
22399
22400 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22401
22402         PR rtl-optimization/42941
22403         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
22404         of xmalloc.
22405
22406 2010-02-03  Jason Merrill  <jason@redhat.com>
22407
22408         PR c++/35652
22409         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
22410
22411 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
22412
22413         PR debug/42896
22414         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
22415         (cselib_reset_table): Renamed from...
22416         (cselib_reset_table_with_next_value): ... this.
22417         (cselib_get_next_uid): Renamed from...
22418         (cselib_get_next_unknown_value): ... this.
22419         * cselib.c (next_uid): Renamed from...
22420         (next_unknown_value): ... this.
22421         (cselib_clear_table): Adjust.
22422         (cselib_reset_table): Adjust.  Renamed from...
22423         (cselib_reset_table_with_next_value): ... this.
22424         (cselib_get_next_uid): Adjust.  Renamed from...
22425         (cselib_get_next_unknown_value): ... this.
22426         (get_value_hash): Use hash.
22427         (cselib_hash_rtx): Likewise.
22428         (new_cselib_val): Adjust.  Set and dump uid.
22429         (cselib_lookup_mem): Pass next_uid as hash.
22430         (cselib_subst_to_values): Likewise.
22431         (cselib_log_lookup): Dump uid.
22432         (cselib_lookup): Pass next_uid as hash.  Adjust.
22433         (cselib_process_insn): Adjust.
22434         (cselib_init): Initialize next_uid.
22435         (cselib_finish): Adjust.
22436         (dump_cselib_table): Likewise.
22437         * dse.c (canon_address): Dump value uid.
22438         * print-rtl.c (print_rtx): Print value uid.
22439         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
22440         (dvuid): New type.
22441         (dv_uid): New function, sort of renamed from...
22442         (dv_htab_hash): ... this, reimplemented in terms of it and...
22443         (dv_uid2hash): ... this.  New.
22444         (variable_htab_eq): Drop excess assertions.
22445         (tie_break_pointers): Removed.
22446         (canon_value_cmp): Compare uids.
22447         (variable_post_merge_New_vals): Print uids.
22448         (vt_add_function_parameters): Adjust.
22449         (vt_initialize): Reset table.  Adjust.
22450
22451 2010-02-03  Richard Guenther  <rguenther@suse.de>
22452
22453         PR tree-optimization/42944
22454         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
22455         (call_may_clobber_ref_p_1): Likewise.  Properly handle
22456         malloc and calloc clobbering errno.
22457
22458 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
22459
22460         * doc/invoke.texi: Fix name of sched1 dump.
22461
22462         * opts.c (decode_options): Set flag_tree_switch_conversion
22463         only conditionally on optimize >= 2.
22464
22465         * gcse.c: Assorted comment fixes in pass description.
22466
22467 2010-02-03  Anthony Green  <green@moxielogic.com>
22468
22469         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
22470         nop padding in order to maintain alignment of storage location of
22471         target function address.
22472         (moxie_trampoline_init): Store target function address at newly
22473         aligned location.
22474         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
22475         to 32.
22476         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
22477
22478 2010-02-03  Richard Guenther  <rguenther@suse.de>
22479
22480         PR middle-end/42927
22481         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
22482
22483 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22484
22485         * config.gcc: Reenable check for obsolete targets.
22486         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
22487         mips-sgi-irix6.[0-4]*.
22488
22489 2010-02-02  Nick Clifton  <nickc@redhat.com>
22490
22491         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
22492         constant size of 4 as being the same as 0.
22493         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
22494         can take values in the range 0..4.
22495
22496 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
22497
22498         PR java/41991
22499         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
22500         as _darwin10_Unwind_FindEnclosingFunction().
22501         * libgcc-libsystem.ver: New.
22502
22503 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
22504
22505         PR target/41399
22506         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
22507         implicitly set registers.
22508
22509 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
22510
22511         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
22512         (arm_override_options): Allow automatic selection of the thread
22513         pointer register if thumb2.
22514         (legitimize_pic_address): Improve code sequences for Thumb2.
22515         (arm_call_tls_get_addr): Likewise.
22516         (legitimize_tls_address): Likewise.
22517         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
22518         (pic_load_addr_32bit): ... this.  New named pattern.
22519         * thumb2.md (pic_load_addr_thumb2): Delete.
22520         (pic_load_dot_plus_four): Delete.
22521         (tls_load_dot_plus_four): New named pattern.
22522
22523 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22524
22525         PR libgomp/29986
22526         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
22527         Document fix for TLS bug.
22528
22529 2010-01-31  Richard Guenther  <rguenther@suse.de>
22530
22531         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
22532         conservatively correct.
22533
22534 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22535
22536         PR target/42850
22537         Revert:
22538         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22539
22540         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22541
22542 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22543
22544         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
22545
22546 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
22547
22548         * config.gcc: Adjust order of makefile fragments for mingw targets.
22549
22550 2010-01-31  Richard Guenther  <rguenther@suse.de>
22551
22552         PR middle-end/42898
22553         * gimplify.c (gimplify_init_constructor): For volatile LHS
22554         initialize a temporary.
22555
22556 2010-01-31  Matthias Klose  <doko@ubuntu.com>
22557
22558         * configure.ac: Fix __stack_chk_fail check for cross builds configured
22559         --with-headers
22560         * configure: Regenerate.
22561
22562 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
22563
22564         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
22565         the same alias set and their sizes different constantness.
22566         (aliasing_component_refs_p): Revert 2009-10-24 change.
22567
22568 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22569
22570         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
22571         unused.
22572
22573 2010-01-29  Richard Guenther  <rguenther@suse.de>
22574
22575         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
22576         Assert we successfully updated the call.
22577
22578 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
22579
22580         PR rtl-optimization/42889
22581         * df.h (df_set_bb_dirty_nonlr): New prototype.
22582         * df-core.c (df_set_bb_dirty_nonlr): New function.
22583         * df-scan.c (df_insn_rescan): Call it instead of
22584         df_set_bb_dirty for DEBUG_INSNs.
22585
22586 2010-01-29  Richard Guenther  <rguenther@suse.de>
22587
22588         PR middle-end/37448
22589         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
22590         quadratic behavior in most cases.
22591
22592 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
22593
22594         PR target/42891
22595         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
22596         in the call to gen_x86_movsicc_0_m1.
22597
22598 2010-01-28  Richard Guenther  <rguenther@suse.de>
22599
22600         PR tree-optimization/42871
22601         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
22602
22603 2010-01-28  Richard Guenther  <rguenther@suse.de>
22604
22605         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
22606         into call arguments.
22607
22608 2010-01-28  Richard Guenther  <rguenther@suse.de>
22609
22610         PR middle-end/42883
22611         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
22612         the forwarder if the destination is an EH landing pad.
22613
22614 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
22615
22616         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
22617         block list passed to gimple_duplicate_sese_tail.
22618         (parallelize_loops): Avoid parallelization when the function
22619         has_nonlocal_label.
22620         Avoid parallelization when the preheader is IRREDUCIBLE.
22621         Try to optimize when estimated_loop_iterations_int is unresolved.
22622         Add the loop's location to the dump file.
22623         * tree-cfg.c (add_phi_args_after_redirect): Remove.
22624         (gimple_duplicate_sese_tail): Remove the check for the latch.
22625         Redirect nexits to the exit block.
22626         Remove handling of the incoming edges to the latch.
22627         Redirect the backedge from the copied latch to the exit bb.
22628
22629 2010-01-28  Michael Matz  <matz@suse.de>
22630
22631         PR target/42881
22632         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
22633         Wrap force_reg into a sequence, emit it before user.
22634
22635 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
22636
22637         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
22638         (arm_rev): New.
22639         (arm_legacy_rev): Likewise.
22640         (thumb_legacy_rev): Likewise.
22641
22642 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22643
22644         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
22645         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
22646         on MEM's address failed, try avoid_constant_pool_reference and
22647         recurse if it returned something different.
22648         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
22649         address, try avoid_constant_pool_reference and recurse if it
22650         returned something different.
22651         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
22652         address and avoid_constant_pool_reference returned something
22653         different, don't set have_address.
22654
22655 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
22656
22657         PR debug/42861
22658         * var-tracking.c (val_store): Add modified argument, obey it.
22659         Adjust callers.
22660         (count_uses): Move down logging of main.
22661         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
22662         don't need resolution.
22663         (emit_notes_in_bb): Likewise.
22664
22665 2010-01-27  Richard Guenther  <rguenther@suse.de>
22666
22667         PR middle-end/42878
22668         * tree-inline.c (remap_decl): Delay remapping of SSA name
22669         default definitions until we need them.
22670
22671 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
22672
22673         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
22674         (rs6000_delegitimize_address): New function.
22675
22676         * config/s390/s390.c (s390_delegitimize_address): Call
22677         delegitimize_mem_from_attrs.
22678
22679         PR middle-end/42874
22680         * tree-inline.c (cannot_copy_type_1): Removed.
22681         (copy_forbidden): Don't forbid copying of functions containing
22682         records/unions with variable length fields.
22683
22684 2010-01-27  Christian Bruel  <christian.bruel@st.com>
22685
22686         Revert:
22687         PR target/42841
22688         * config/sh/sh.c (find_barrier): Increase length for non delayed
22689         conditional branches.
22690
22691 2010-01-27  Matthias Klose  <doko@ubuntu.com>
22692
22693         * configure.ac (gnu-unique-object): Fix ldd version check.
22694         * configure: Regenerate.
22695
22696 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22697
22698         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
22699         HAVE_GNU_AS value.
22700         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
22701         Test for HAVE_GNU_AS value.
22702
22703 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22704
22705         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
22706         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
22707         INT64_TYPE): Define.
22708         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
22709         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
22710         INT_LEAST64_TYPE): Define.
22711         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
22712         UINT_LEAST64_TYPE): Define.
22713         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
22714         INT_FAST64_TYPE): Define.
22715         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
22716         UINT_FAST64_TYPE): Define.
22717         (INTMAX_TYPE, UINTMAX_TYPE): Define.
22718         (INTPTR_TYPE, UINTPTR_TYPE): Define.
22719         (SIG_ATOMIC_TYPE): Define.
22720
22721 2010-01-26  Richard Guenther  <rguenther@suse.de>
22722
22723         * df-scan.c (df_scan_set_bb_info): Remove assert.
22724         (df_insn_rescan_debug_internal): Merge asserts.
22725         (df_install_ref): Likewise.
22726         (df_mark_reg): Use bitmap_set_range.
22727         (df_hard_reg_used_p): Remove assert.
22728         (df_hard_reg_used_count): Likewise.
22729
22730 2010-01-26  Richard Guenther  <rguenther@suse.de>
22731
22732         PR rtl-optimization/42685
22733         * web.c (web_main): Ignore DEBUG_INSNs.
22734
22735 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
22736
22737         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
22738
22739         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
22740         Fix types of fndecl and arglist parameters.
22741
22742 2010-01-26  Richard Guenther  <rguenther@suse.de>
22743
22744         PR middle-end/42806
22745         * tree-eh.c (unsplit_eh): Skip debug insns.
22746
22747 2010-01-26  Richard Guenther  <rguenther@suse.de>
22748
22749         PR tree-optimization/42250
22750         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
22751
22752 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
22753
22754         PR fortran/42866
22755         * omp-low.c (expand_omp_sections): Only use single_pred if
22756         l2_bb is single_pred_p.
22757
22758 2010-01-25  Christian Bruel  <christian.bruel@st.com>
22759
22760         PR target/42841
22761         * config/sh/sh.c (find_barrier): Increase length for non delayed
22762         conditional branches.
22763         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
22764
22765 2010-01-24  David S. Miller  <davem@davemloft.net>
22766
22767         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
22768         define if not using GAS.
22769         * config/sparc/sparc.c (sparc_elf_asm_named_section):
22770         Likewise.  Delete SECTION_MERGE code, which is only applicable
22771         when using GAS.
22772
22773 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
22774
22775         PR c++/42748
22776         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
22777         mangling of va_list in system headers.
22778
22779 2010-01-23  Toon Moene  <toon@moene.org>
22780
22781         * tree-predcom.c (combine_chains): Return NULL, not false.
22782
22783 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
22784
22785         * tree-loop-distribution.c (distribute_loop): Fix declaration and
22786         initialization of variable res to agree with return type.
22787
22788 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
22789
22790         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
22791         * tree-sra.c: Add include of expr.h.
22792
22793 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
22794
22795         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
22796         insert the debug stmt on the single non-EH edge from the stmt.
22797
22798 2010-01-22  Richard Henderson  <rth@redhat.com>
22799
22800         PR tree-opt/42833
22801         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
22802         the RHS until after generate_subtree_copies has insertted its
22803         code before the current statement.
22804
22805 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
22806
22807         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
22808
22809         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
22810
22811 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22812
22813         PR tree-optimization/42585
22814         * tree-sra.c (struct access): New field grp_total_scalarization.
22815         (dump_access): Dump the new field.
22816         (should_scalarize_away_bitmap): New variable.
22817         (cannot_scalarize_away_bitmap): Likewise.
22818         (sra_initialize): Allocate new bitmaps.
22819         (sra_deinitialize): Free new bitmaps.
22820         (create_access_1): New function.
22821         (create_access): Parts moved to create_access_1.
22822         (type_consists_of_records_p): New function.
22823         (completely_scalarize_record): Likewise.
22824         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
22825         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
22826         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
22827         access.
22828         (analyze_all_variable_accesses): Completely scalarize small eligible
22829         records.
22830
22831 2010-01-21  Martin Jambor  <mjambor@suse.cz>
22832
22833         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
22834
22835 2010-01-21  Andrew Haley  <aph@redhat.com>
22836
22837         * gcc.c (process_command): Move lang_specific_driver before
22838         setting cc_libexec_prefix.
22839
22840 2010-01-21  Richard Guenther  <rguenther@suse.de>
22841
22842         PR middle-end/19988
22843         * fold-const.c (negate_expr_p): Pretend only negative
22844         real constants are easily negatable.
22845
22846 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
22847             Jason Merrill  <jason@redhat.com>
22848
22849         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
22850         (TYPE_TRANSPARENT_AGGR): this, for union and record.
22851         * calls.c (initialize argument_information): Handle it.
22852         * c-common.c (handle_transparent_union_attribute): Use new name.
22853         * c-decl.c (finish_struct): Ditto.
22854         * c-typeck.c (type_lists_compatible_p): Ditto.
22855         (convert_for_assignment): Use new name and also handle record.
22856         * function.c (aggregate_value_p): Handle it.
22857         (pass_by_reference): Ditto.
22858         (assign_parm_data_types): Ditto.
22859         * print-tree.c (print_node): Ditto.
22860         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
22861         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
22862         * tree.c (first_field): New fn.
22863
22864 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
22865
22866         PR target/42818
22867         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
22868         even when linking statically, for now.
22869
22870 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22871
22872         PR debug/42715
22873         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
22874         without a cselib val.
22875         (count_uses): Accept MO_VAL_SET with no val on stores.
22876         (add_stores): Likewise.
22877
22878 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22879
22880         * var-tracking.c (check_value_val): Add a compile time assertion.
22881         (dv_is_decl_p): Simplify.
22882         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
22883         gcc_assert if ENABLE_CHECKING.
22884
22885 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
22886
22887         PR debug/42782
22888         * var-tracking.c: Include tree-flow.h.
22889         (mem_dies_at_call): New.
22890         (dataflow_set_preserve_mem_locs): Use it.
22891         (dataflow_set_remove_mem_locs): Likewise.
22892         (dump_var): Renamed from dump_variable.  Adjust all callers.
22893         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
22894         * Makefile.in (var-tracking.o): Adjust deps.
22895
22896 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
22897
22898         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
22899
22900 2010-01-20  Richard Guenther  <rguenther@suse.de>
22901
22902         PR tree-optimization/42717
22903         * tree-ssa-dce.c (get_live_post_dom): Remove.
22904         (forward_edge_to_pdom): Take an arbitrary edge to copy
22905         degenerate PHI args from.
22906         (remove_dead_stmt): Use the first post-dominator even if it
22907         does not contain live statements as redirection destination.
22908
22909 2010-01-20  Richard Guenther  <rguenther@suse.de>
22910
22911         * tree-inline.c (estimate_num_insns): Handle EH builtins.
22912
22913 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22914
22915         * sel-sched.c (create_speculation_check): Remove set but not used
22916         variable twin.
22917         (try_transformation_cache): Remove set but not used variable ds.
22918         (calculate_privileged_insns): Remove set but not used variables
22919         cur_insn and min_spec_insn.
22920         (find_best_expr): Remove set but not used variable avail_n.
22921         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
22922         variable e.
22923         * cgraphunit.c (assemble_thunk): Remove set but not used variable
22924         false_label.
22925         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
22926         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
22927         new_scop_exit_edge.
22928
22929 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
22930
22931         PR bootstrap/42786
22932         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
22933         cpu types.  Add support for *-sse3 cpu types.
22934         (x86_64-*-*): Ditto.
22935
22936 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22937
22938         PR middle-end/42803
22939         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
22940         argument, call initializer_constant_valid_p_1 instead of
22941         initializer_constant_valid_p, pass CACHE to it, return NULL
22942         immediately if first call returns NULL.
22943         (initializer_constant_valid_p_1): New function.
22944         (initializer_constant_valid_p): Use it.
22945
22946 2010-01-20  Thomas Quinot  <quinot@adacore.com>
22947
22948         * tree.def (PLACEHOLDER_EXPR): Fix comment.
22949
22950 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
22951
22952         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
22953         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
22954         (loc_list_from_tree): Don't handle unsigned division.  Handle
22955         signed modulo using DW_OP_{over,over,div,mul,minus}.
22956         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
22957         modulo instead of signed.
22958
22959 2010-01-20  DJ Delorie  <dj@redhat.com>
22960
22961         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
22962         (Fpa): Pass it
22963         (h8300_emit_stack_adjustment): Propogate it.
22964         (push): Pass it.
22965         (h8300_expand_prologue): Likewise.
22966         (h8300_expand_epilogue): Likewise.
22967
22968 2010-01-19  Michael Matz  <matz@suse.de>
22969
22970         PR tree-optimization/41783
22971         * tree-data-ref.c (toplevel): Include flags.h.
22972         (dump_data_dependence_relation):  Also dump the inputs if the
22973         result will be unknown.
22974         (split_constant_offset_1): Look through some conversions.
22975         * tree-predcom.c (determine_roots_comp): Restart a new chain if
22976         the offset from last element is too large.
22977         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
22978         (reassociate_to_the_same_stmt): Handle vector registers.
22979         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
22980         (e.g. conversions).
22981         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
22982         wide_prolog_niters argument, emit widening instructions.
22983         (vect_do_peeling_for_alignment): Adjust caller, use widened
22984         variant of the iteration cound.
22985         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
22986
22987 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22988
22989         PR target/38697
22990         * config/arm/neon-testgen.m (emit_automatics): New parameter
22991         features. Adjust for Fixed_return_reg feature.
22992         (test_intrinsic): Call emit_automatics with new feature.
22993         * config/arm/neon.ml: Update copyright years.
22994         (features): New Fixed_return_reg feature.
22995         (ops): Update feature for Vget_low.
22996
22997 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
22998
22999         PR tree-optimization/42719
23000         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
23001         stmt uses.
23002
23003         PR debug/42728
23004         * fwprop.c (all_uses_available_at): Return false if def_set dest
23005         is a REG that is used in def_insn.
23006
23007 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
23008
23009         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
23010
23011         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
23012         Add argument names.
23013
23014         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
23015
23016         * target.h (struct gcc_target) <secondary_reload>: Change type
23017         of last argument to secondary_reload_info *.
23018
23019 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
23020
23021         PR target/42774
23022         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
23023         memory references with unaligned offsets.  Remove CQImode handling.
23024         (unaligned_memory_operand): Return 1 for memory references with
23025         unaligned offsets.  Remove CQImode handling.
23026
23027 2010-01-18  Richard Guenther  <rguenther@suse.de>
23028
23029         PR middle-end/39954
23030         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
23031         builtin calls.
23032
23033 2010-01-18  Richard Guenther  <rguenther@suse.de>
23034
23035         PR tree-optimization/42781
23036         * tree-ssa-structalias.c (find_what_var_points_to): Skip
23037         restrict processing only if the original variable was artificial.
23038
23039 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
23040
23041         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
23042         find number of popped argument bytes.
23043
23044         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
23045         Fix the text that describes the return value for invalid insns.
23046
23047         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
23048
23049         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
23050         Clarify what 'cost of the -dependence' is.  Fix quoting.
23051
23052         * toplev.c (default_get_pch_validity): Rename argument to "sz".
23053         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
23054
23055 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
23056
23057         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
23058         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
23059
23060 2010-01-17  Richard Guenther  <rguenther@suse.de>
23061
23062         PR middle-end/42248
23063         * function.c (split_complex_args): Take a VEC to modify.
23064         (assign_parms_augmented_arg_list): Build a VEC instead of
23065         a chain of PARM_DECLs.
23066         (assign_parms_unsplit_complex): Take a VEC of arguments.
23067         Do not fixup unmodified parms.
23068         (assign_parms): Deal with the VEC.
23069         (gimplify_parameters): Likewise.
23070
23071 2010-01-17  Richard Guenther  <rguenther@suse.de>
23072
23073         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
23074         node existence check.
23075         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
23076         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
23077         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
23078         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
23079         (gimple_execute_on_growing_pred): Likewise.
23080
23081 2010-01-17  Richard Guenther  <rguenther@suse.de>
23082
23083         PR tree-optimization/42773
23084         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
23085         (compute_antic_aux): Likewise.
23086         (compute_partial_antic_aux): Likewise.
23087
23088 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
23089
23090         PR debug/42767
23091         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
23092         and US_TRUNCATE.
23093
23094 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
23095
23096         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
23097         appearance.
23098
23099         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
23100         Fix markup for strict argument.
23101
23102         (TARGET_SCHED_REORDER2): Fix argument types.
23103
23104         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
23105         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
23106
23107         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
23108         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
23109
23110         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
23111         Add argument name.
23112
23113         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
23114         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
23115         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
23116         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
23117         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
23118
23119         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
23120
23121         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
23122
23123         (TARGET_ASM_RELOC_RW_MASK): Add return type.
23124         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
23125
23126         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
23127
23128         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
23129         Use prototype.
23130
23131         (TARGET_ASM_NAMED_SECTION): Fix argument list.
23132
23133         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
23134         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
23135
23136         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
23137
23138         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
23139
23140         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
23141         referring to it.  Fix language.
23142
23143         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
23144
23145         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
23146
23147         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
23148
23149         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
23150
23151         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
23152         '@var{stream}.  Remove stray 'and'.
23153
23154         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
23155
23156         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
23157
23158         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
23159
23160         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
23161         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
23162
23163         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
23164         Fix description of return value.
23165         Rename argument "sz" to "len."
23166
23167         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
23168         Clarify meaning of 'true' return value.
23169
23170         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
23171
23172         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
23173         rep_mode versus mode_rep.
23174
23175         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
23176
23177         (TARGET_BUILTIN_DECL): Fix name.
23178
23179         (TARGET_COMMUTATIVE_P): Fix type of first argument.
23180
23181         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
23182
23183         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
23184
23185         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
23186
23187         (TARGET_RELAXED_ORDERING): Use @deftypevr.
23188
23189         (TARGET_GET_DRAP_RTX): Note that this is a hook.
23190         Clarify language.
23191
23192         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
23193         Rename argument tm_fn to md_fn.
23194
23195         (TARGET_OPTION_PRINT): Fix argument list.
23196
23197 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
23198
23199         PR target/42664
23200         * config/i386/i386.c (ix86_fixup_binary_operands):
23201         Revert FMA4 fixup of operands.
23202
23203 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23204
23205         PR gcc/42525
23206         * Makefile.in (write_entries_to_file, install-plugin):
23207         Use \012 instead of \n with tr.
23208
23209 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
23210
23211         * configure.ac (HAVE_AS_REF): New C macro.
23212         * configure: Regenerate.
23213         * config.in: Likewise.
23214         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
23215         if HAVE_AS_REF.
23216         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
23217         if HAVE_AS_REF.
23218
23219 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
23220
23221         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
23222
23223         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
23224
23225         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
23226
23227         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
23228
23229         (TARGET_IN_SMALL_DATA_P): Fix argument type.
23230
23231         (TARGET_BINDS_LOCAL_P): Fix argument type.
23232
23233         (TARGET_ASM_FILE_END): Use prototype.
23234
23235         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
23236
23237         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
23238
23239         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
23240
23241         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
23242
23243         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
23244         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
23245
23246         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
23247         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
23248
23249         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
23250         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
23251         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
23252         (TARGET_ADDR_SPACE_CONVERT): Likewise.
23253
23254         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
23255
23256         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
23257
23258         (TARGET_INIT_BUILTINS): Use prototype.
23259
23260         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
23261         Put 'const char *' in braces.  Fix parameter types.
23262         (TARGET_INVALID_CONVERSION): Fix parameter types.
23263         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
23264         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
23265
23266         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
23267         Fix argument type.
23268
23269         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
23270
23271         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
23272
23273 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
23274
23275         * doc/tm.texi (TARGET_HELP): Fix return type.
23276
23277         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
23278         in braces.  Fix argument types.
23279
23280         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
23281
23282         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
23283
23284         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
23285
23286         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
23287         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
23288
23289         (TARGET_MANGLE_TYPE): Fix argument types.
23290
23291         (TARGET_IRA_COVER_CLASSES): Use prototype.
23292
23293         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
23294
23295         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
23296
23297         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
23298
23299         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
23300
23301         (TARGET_CALLEE_COPIES): Fix argument types.
23302
23303         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
23304
23305         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
23306
23307         (TARGET_FUNCTION_VALUE): Fix argument types.
23308
23309         (TARGET_RETURN_IN_MSB): Fix argument type.
23310
23311         (TARGET_RETURN_IN_MEMORY): Fix argument types.
23312
23313         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
23314
23315         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
23316
23317         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
23318         agree with return type.
23319
23320         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
23321
23322 2010-01-15  Jing Yu  <jingyu@google.com>
23323
23324         PR rtl-optimization/42691
23325         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
23326         a pseudo to a constant and are merged, and adjust comments.
23327
23328 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23329
23330         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
23331
23332 2010-01-15  Richard Guenther  <rguenther@suse.de>
23333
23334         PR middle-end/42739
23335         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
23336         labels of computed or non-local gotos to the destination.
23337         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
23338         landing pad label is the first label.
23339
23340 2010-01-15  Richard Guenther  <rguenther@suse.de>
23341
23342         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
23343
23344 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23345
23346         PR target/42747
23347         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
23348         to allow generation of the xssqrtdp instruction on power7.
23349         (sqrtdf2_fpr): Ditto.
23350
23351 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23352
23353         PR middle-end/42674
23354         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
23355         functions with noreturn attribute.
23356
23357         PR c++/42608
23358         * varasm.c (declare_weak): Add weak attribute to decl if it
23359         doesn't have one already.
23360         (assemble_external): Only add decls to weak_decls if they also
23361         have weak attribute.
23362
23363 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
23364
23365         * var-tracking.c (var_reg_delete): Don't delete the association
23366         between REGs and values or one-part variables if the register
23367         isn't clobbered.
23368
23369 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23370
23371         PR debug/42657
23372         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
23373         because its first operand is a non-localized variable.
23374
23375 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23376
23377         PR tree-optimization/42706
23378         * tree-sra.c (encountered_recursive_call): New variable.
23379         (encountered_unchangable_recursive_call): Likewise.
23380         (sra_initialize): Initialize both new variables.
23381         (callsite_has_enough_arguments_p): New function.
23382         (scan_function): Call decl and flags check only for IPA-SRA, check
23383         whether there is a recursive call and whether it has enough arguments.
23384         (all_callers_have_enough_arguments_p): New function.
23385         (convert_callers): Look for recursive calls only when
23386         encountered_recursive_call is set.
23387         (ipa_early_sra): Bail out either if
23388         !all_callers_have_enough_arguments_p or
23389         encountered_unchangable_recursive_call.
23390
23391 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23392
23393         * sel-sched.c: Add 2010 to copyright years.
23394         * sel-sched-ir.c: Likewise.
23395         * sel-sched-ir.h: Likewise.
23396
23397 2010-01-14  Martin Jambor  <mjambor@suse.cz>
23398
23399         PR tree-optimization/42714
23400         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
23401         constructors specially.
23402
23403 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23404
23405         * config/i386/drivers-i386.c (detect_caches_intel):
23406         Add l2sizekb parameter and fill in.
23407         (host_detect_local_cpu): Add l2sizekb, fill in.
23408         Add Atom small cache heuristic.
23409
23410 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23411
23412         * config/i386/drivers-i386.c (detect_caches_cpuid4):
23413         Add level3 parameter and fill in.
23414         (detect_caches_intel): Handle level3 cache.
23415
23416 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23417
23418         * config/i386/drivers-i386.c (host_detect_local_cpu):
23419         Fix core duo detection.
23420
23421 2010-01-14  Andi Kleen  <ak@linux.intel.com>
23422
23423         * config/i386/drivers-i386.c (host_detect_local_cpu):
23424         Fix Atom detection.
23425
23426 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23427
23428         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
23429         (rs6000_variable_issue_1): this.  Use...
23430         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
23431
23432 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23433
23434         * sel-sched-ir.c (sel_restore_other_notes): Rename to
23435         sel_restore_notes.  Update all callers.  Call reemit_notes
23436         for all insns.
23437
23438 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23439
23440         PR rtl-optimization/42246
23441         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
23442         loops.
23443
23444 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23445
23446         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
23447         all successors is the same as number of successors in current region.
23448
23449 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23450
23451         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
23452         to rename is not separable.  Otherwise check that its LHS is not NULL.
23453
23454 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23455
23456         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
23457
23458 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23459
23460         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
23461         available registers when failed to discover LHS register class.
23462         Fix indentation.  Update comment.
23463
23464 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23465             Alexander Monakov  <amonakov@ispras.ru>
23466
23467         PR rtl-optimization/42389
23468         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
23469         to can_issue_more.
23470         (advance_state_on_fence): Likewise.
23471         (sel_target_adjust_priority): Print debug output only when
23472         sched_verbose >= 4, not 2.
23473         (get_expr_cost): Do not issue all unique insns on the next cycle.
23474         (fill_insns): Initialize can_issue_more from the value saved
23475         with the fence.
23476         * sel-sched-ir.c (flist_add): New parameter issue_more.
23477         Init FENCE_ISSUE_MORE with it.
23478         (merge_fences): Likewise.
23479         (init_fences): Update call to flist_add.
23480         (add_to_fences, add_clean_fence_to_fences)
23481         (add_dirty_fence_to_fences): Likewise.
23482         (move_fence_to_fences): Update call to merge_fences.
23483         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
23484         sched groups.
23485         * sel-sched-ir.h (struct _fence): New field issue_more.
23486         (FENCE_ISSUE_MORE): New accessor macro.
23487
23488 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23489
23490         PR rtl-optimization/42388
23491         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
23492         that have no predecessors nor successors.  Do not call move_bb_info
23493         for empty blocks outside of current region.
23494
23495 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23496
23497         PR rtl-optimization/42294
23498         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
23499         * sel-sched.c (move_exprs_to_boundary): Transitively add all
23500         originators' originators.
23501
23502 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
23503
23504         PR rtl-optimization/39453
23505         PR rtl-optimization/42246
23506         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
23507         for pipelining_p.
23508         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
23509
23510 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23511             Alexander Monakov  <amonakov@ispras.ru>
23512
23513         PR middle-end/42245
23514         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
23515         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
23516         argument.  Update all callers.
23517         (tidy_control_flow): ... and here.  Recompute topological order
23518         of basic blocks in region if necessary.
23519         (sel_redirect_edge_and_branch): Change return type.  Return true
23520         if topological order might have been invalidated.
23521         (purge_empty_blocks): Export and move from...
23522         * sel-sched.c (purge_empty_blocks): ... here.
23523         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
23524         (maybe_tidy_empty_bb): Delete prototype.
23525         (purge_empty_blocks): Declare.
23526
23527 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
23528
23529         PR rtl-optimization/42249
23530         * sel-sched.c (try_replace_dest_reg): When chosen register
23531         and original register is the same, do not bail out early, but
23532         still check all original insns for validity of replacing destination
23533         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
23534         in this case.
23535
23536 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
23537
23538         PR c/42721
23539         Port from no-undefined-overflow branch:
23540         2009-03-09  Richard Guenther  <rguenther@suse.de>
23541
23542         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
23543
23544 2010-01-14  Richard Guenther  <rguenther@suse.de>
23545
23546         PR lto/42665
23547         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
23548
23549 2010-01-14  Ira Rosen  <irar@il.ibm.com>
23550
23551         PR tree-optimization/42709
23552         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
23553         as scalar type in creation of constant vector operand.
23554
23555 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23556
23557         PR testsuite/42414
23558         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
23559         (check-parallel-%): Match `testsuite' directory component only
23560         at the end.
23561
23562 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
23563
23564         PR translation/39521
23565         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
23566         strings with _().
23567
23568 2010-01-13  Richard Guenther  <rguenther@suse.de>
23569
23570         PR tree-optimization/42730
23571         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
23572         offset zero.
23573
23574 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
23575
23576         PR target/pr42542
23577         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
23578         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
23579         them signed.
23580
23581 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
23582
23583         * config/bfin/libgcc-bfin.ver: Regenerate based on current
23584         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
23585         ___umulsi3_highpart.
23586
23587         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
23588         rather than schedule_insns if the pass is enabled.
23589
23590 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23591
23592         PR tree-optimization/42704
23593         * tree-sra.c (sra_modify_assign): Do not delete assignments to
23594         SSA_NAMEs.
23595
23596 2010-01-13  Martin Jambor  <mjambor@suse.cz>
23597
23598         PR tree-optimization/42703
23599         * tree-sra.c (analyze_access_subtree): Check that we can build a
23600         reference to the original data within the aggregate.
23601
23602 2010-01-13  Richard Guenther  <rguenther@suse.de>
23603
23604         PR tree-optimization/42705
23605         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
23606
23607 2010-01-13  Richard Guenther  <rguenther@suse.de>
23608
23609         PR middle-end/42716
23610         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
23611
23612 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23613
23614         PR debug/41371
23615         * var-tracking.c (values_to_unmark): New variable.
23616         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23617         values_to_unmark vector.  Moved body to...
23618         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23619         instead queue it into values_to_unmark vector.
23620         (vt_find_locations): Free values_to_unmark vector.
23621
23622 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
23623
23624         * config/s390/s390.c (override_options): Set
23625         default of max-pending-list-length to 256
23626
23627 2010-01-13  Richard Guenther  <rguenther@suse.de>
23628
23629         PR lto/42678
23630         * tree-pass.h (PROP_gimple_lcx): New.
23631         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
23632         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
23633         before the final cleanup_eh.
23634         (dump_properties): Dump PROP_gimple_lcx.
23635         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
23636         (tree_lower_complex_O0): Remove.
23637         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
23638         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
23639         tree_lower_complex, schedule TODO_update_ssa.
23640         * lto-streamer-out.c (output_function): Stream the functions
23641         properties.
23642         * lto-streamer-in.c (input_function): Likewise.
23643         (lto_read_body): Do not override them here.
23644
23645 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
23646
23647         PR c/42708
23648         * c-typeck.c (build_c_cast): Fold value cast to union type before
23649         wrapping it in a CONSTRUCTOR.
23650
23651 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23652
23653         PR rtl-optimization/42699
23654         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
23655         involved.
23656
23657 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23658
23659         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23660         SUBTARGET_WARN_UNUSED_SPEC): Move ...
23661         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
23662         SUBTARGET_WARN_UNUSED_SPEC): ... here
23663         * config/mips/iris5.h (LIBGCC_SPEC): Define.
23664
23665 2010-01-12  Julian Brown  <julian@codesourcery.com>
23666
23667         * config/arm/neon-schedgen.ml (Utils): Don't try to
23668         open missing module.
23669         (find_with_result): New.
23670
23671 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
23672
23673         PR debug/42662
23674         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
23675         sharing when canonicalizing ({lt,ge}u (plus a b) b).
23676
23677         PR tree-optimization/42645
23678         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
23679         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
23680         decl_map, set processing_debug_stmt to -1 and return name without
23681         any remapping.
23682
23683 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
23684
23685         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
23686         binutils version, and reword target configuration description.
23687
23688 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23689
23690         * config/avr/avr.h (LINKER_NAME): Remove.
23691
23692 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
23693
23694         PR target/42416
23695         * config/rs6000/rs6000.c (rs6000_override_options): On targets
23696         that support VSX, warn for -mno-altivec if vsx is not disabled,
23697         and disable vsx.
23698
23699 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
23700             Shujing Zhao  <pearly.zhao@oracle.com>
23701
23702         PR translation/42469
23703         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
23704         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
23705         character between option name and help text.
23706         * c.opt (imultilib): Likewise.
23707
23708 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
23709
23710         * lto-streamer-out.c (output_unreferenced_globals): Output static
23711         variables.
23712
23713 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
23714
23715         PR rtl-optimization/42621
23716         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
23717         optimizing for size.
23718         (duplicate_computed_gotos): Remove now-redundant check.
23719
23720 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
23721
23722         PR target/37454
23723         * configure.ac: Save and restore LDFLAGS and LIBS
23724         * configure: Regenerate.
23725
23726 2010-01-10  Richard Guenther  <rguenther@suse.de>
23727
23728         PR middle-end/42667
23729         * builtins.c (fold_builtin_strlen): Add type argument and
23730         convert the resulting length to it.
23731         (fold_builtin_1): Adjust.
23732
23733 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23734
23735         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
23736         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
23737         1 insn.
23738         (num_insns_constant_wide): Adjust for that change.
23739
23740 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23741
23742         PR debug/42631
23743         * web.c (union_defs): Add used argument, to combine uses of
23744         uninitialized regs.
23745         (entry_register): Adjust type and tests of used argument.
23746         (web_main): Widen used for new use.  Pass it to union_defs.
23747         * df.h (union_defs): Adjust prototype.
23748
23749 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23750
23751         PR debug/42630
23752         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
23753         uses in new incoming argument.  Free body.
23754         (reset_debug_uses_in_loop): New.
23755         (analyze_insn_to_expand_var): Call the latter if the former found
23756         anything.  Fix whitespace.  Reject invalid dest overlaps before
23757         going through all insns in the loop.
23758
23759 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23760
23761         PR debug/42629
23762         * haifa-sched.c (dying_use_p): Debug insns don't count.
23763
23764 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23765
23766         PR middle-end/42363
23767         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
23768         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
23769         (verify_gimple_call): Reject LHS in noreturn calls.
23770
23771 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23772
23773         PR debug/42604
23774         PR debug/42395
23775         * tree-vect-loop-manip.c (adjust_info): New type.
23776         (adjust_vec): New pointer to vector.
23777         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
23778         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
23779         (slpeel_update_phis_for_duplicate_loop): Use them.
23780         (slpeel_update_phi_nodes_for_guard1): Likewise.
23781         (slpeel_update_phi_nodes_for_guard2): Likewise.
23782         (slpeel_tree_peel_loop_to_edge): Likewise.
23783         (vect_update_ivs_after_vectorizer): Likewise.
23784
23785 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23786
23787         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
23788         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
23789
23790 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
23791
23792         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
23793         bogus uninitialized warning.
23794
23795 2010-01-09  Richard Guenther  <rguenther@suse.de>
23796
23797         PR middle-end/42512
23798         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
23799         the evolution is compatible with the initial condition.
23800
23801 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
23802
23803         * gcc.c (process_command): Update copyright notice dates.
23804         * gcov.c (print_version): Likewise.
23805         * gcov-dump.c (print_version): Likewise.
23806         * mips-tfile.c (main): Likewise.
23807         * mips-tdump.c (main): Likewise.
23808
23809 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
23810
23811         PR target/41885
23812         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
23813         (rotlhi3): Delete.
23814         (rotlhi3_8): Delete.
23815         (rotlsi3): Delete.
23816         (rotlsi3_8): Delete.
23817         (rotlsi3_16): Delete.
23818         (rotlsi3_24): Delete.
23819         (rotl<mode>3): New.
23820         (*rotw<mode>3): New.
23821         (*rotb<mode>3): New.
23822         * config/avr/avr.c (avr_rotate_bytes): New function.
23823         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
23824
23825 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
23826
23827         PR target/37454
23828         * configure.ac: Modify -rdynamic check.
23829         * configure: Regenerate.
23830
23831 2010-01-08  DJ Delorie  <dj@redhat.com>
23832
23833         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
23834         register popping order.
23835
23836 2010-01-08  Richard Guenther  <rguenther@suse.de>
23837
23838         PR lto/42528
23839         * c.opt (fsigned-char): Also let LTO handle this option.
23840         (funsigned-char): Likewise.
23841
23842 2010-01-07  Richard Guenther  <rguenther@suse.de>
23843
23844         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
23845         (gimple_op): Likewise.
23846         (gimple_op_ptr): Likewise.
23847         (gimple_assign_set_lhs): Remove gcc_assert.
23848         (gimple_assign_set_rhs1): Likewise.
23849         (gimple_assign_set_rhs2): Likewise.
23850         (gimple_call_set_lhs): Likewise.
23851         (gimple_call_set_fn): Likewise.
23852         (gimple_call_set_fndecl): Likewise.
23853         (gimple_call_fndecl): Likewise.
23854         (gimple_call_return_type): Likewise.
23855         (gimple_call_set_chain): Likewise.
23856         (gimple_call_num_args): Likewise.
23857         (gimple_call_set_arg): Likewise.
23858         (gimple_cond_set_code): Likewise.
23859         (gimple_cond_set_lhs): Likewise.
23860         (gimple_cond_set_rhs): Likewise.
23861         (gimple_cond_set_true_label): Likewise.
23862         (gimple_cond_set_false_label): Likewise.
23863         (gimple_label_set_label): Likewise.
23864         (gimple_goto_set_dest): Likewise.
23865         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
23866         (gimple_debug_bind_get_value): Likewise.
23867         (gimple_debug_bind_get_value_ptr): Likewise.
23868         (gimple_debug_bind_set_var): Likewise.
23869         (gimple_debug_bind_set_value): Likewise.
23870         (gimple_debug_bind_reset_value): Likewise.
23871         (gimple_debug_bind_has_value_p): Likewise.
23872         (gimple_return_retval_ptr): Remove gcc_assert.
23873         (gimple_return_retval): Likewise.
23874         (gimple_return_set_retval): Likewise.
23875         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
23876         (safe_referenced_var_iterator): Remove.
23877         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
23878         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
23879         (fill_referenced_var_vec): Remove.
23880         (first_readonly_imm_use): Remove redundant gcc_assert.
23881         (phi_arg_index_from_use): Combine gcc_asserts.
23882         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
23883         (first_imm_use_stmt): Remove redundant gcc_assert.
23884         * tree-cfg.c (verify_gimple_call): Verify function and chain
23885         operands.  Verify arguments.
23886         (verify_types_in_gimple_stmt): Verify condition code and labels.
23887
23888 2010-01-07  Richard Guenther  <rguenther@suse.de>
23889
23890         PR tree-optimization/42641
23891         * sese.c (rename_map_elt_info): Use the SSA name version, do
23892         not hash pointers.
23893
23894 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
23895
23896         PR tree-optimization/42625
23897         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
23898         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
23899
23900 2010-01-07  Duncan Sands  <baldrick@free.fr>
23901
23902         * Makefile.in (PLUGIN_HEADERS): Add version.h.
23903
23904 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
23905
23906         PR target/42511
23907         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
23908         note itself is not function_invariant_p.
23909
23910 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
23911
23912         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
23913         Do not add the DF_NOTE problem.
23914         * store-motion.c (execute_rtl_store_motion): Likewise.
23915
23916 2010-01-07  Martin Jambor  <mjambor@suse.cz>
23917
23918         PR tree-optimization/42157
23919         * tree-sra.c (compare_access_positions): Stabilize sort if both
23920         accesses have integer types, return zero immediately if they are the
23921         same.
23922
23923 2010-01-06  Richard Henderson  <rth@redhat.com>
23924
23925         PR middle-end/41883
23926         * haifa-sched.c (add_to_note_list): Merge into ...
23927         (concat_note_lists): ... here, and ...
23928         (unlink_other_notes, rm_other_notes): Merge into...
23929         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
23930         NOTE_INSN_EPILOGUE_BEG.
23931
23932 2010-01-06  Richard Guenther  <rguenther@suse.de>
23933
23934         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
23935         not inline regular functions into always-inline functions.
23936
23937 2010-01-06  Nick Clifton  <nickc@redhat.com>
23938
23939         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
23940         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
23941         used together.
23942         (OVERRIDE_OPTIONS): Delete.
23943         (OPTIMIZATION_OPTIONS): Define.
23944         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
23945         * config/rx/rx.c (rx_handle_option): Issue an error message if
23946         -mcpu=rx200 and -fpu are used together.
23947         (rx_set_optimization_options): New function.  Issue an error
23948         message if an optimization attribute attempts to reset the FPU/
23949         math optimization pairing.
23950         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
23951         * config/rx/rx.opt: Set the default to 32-bit doubles.
23952         * config/rx/t-rx: Add multilibs for -nofpu option.
23953         * doc/invoke.texi: Update documentation of RX options.
23954
23955 2010-01-06  Richard Guenther  <rguenther@suse.de>
23956
23957         * tree-ssa-pre.c (name_to_id): New global.
23958         (alloc_expression_id): Simplify SSA name handling.
23959         (lookup_expression_id): Likewise.
23960         (init_pre): Zero name_to_id.
23961         (fini_pre): Free it.
23962
23963 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
23964
23965         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
23966
23967 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
23968
23969         PR target/42542
23970         * config/i386/sse.md (smaxv2di3): New.
23971         (umaxv2di3): Likewise.
23972         (sminv2di3): Likewise.
23973         (uminv2di3): Likewise.
23974
23975 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
23976
23977         PR target/42564
23978         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
23979         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
23980         (legitimize_tls_address): Likewise.
23981         (sparc_tls_referenced_p): Likewise.
23982         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
23983         and adjust calls to legitimize_pic_address.
23984         (legitimate_constant_p) Use sparc_tls_referenced_p.
23985         (legitimate_pic_operand_p): Likewise.
23986         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
23987         (sparc_tls_symbol_ref_1): Delete.
23988         (sparc_tls_referenced_p): Make static, recognize specific patterns.
23989         (legitimize_tls_address): Make static, handle CONST patterns.
23990         (legitimize_pic_address): Make static, remove unused parameter and
23991         adjust recursive calls.
23992         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
23993         and adjust call to legitimize_pic_address.
23994         (sparc_output_mi_thunk): Likewise.
23995
23996 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
23997             H.J. Lu  <hongjiu.lu@intel.com>
23998
23999         PR target/42542
24000         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
24001         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
24002         operands to make them signed.
24003
24004         Revert:
24005         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24006
24007         PR target/42542
24008         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24009         GTU to GT for V4SI and V2DI.
24010
24011         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24012         (umin<mode>3): Removed.
24013         (uminv8hi3): New.
24014         (uminv4si3): Likewise.
24015
24016 2010-01-05  Martin Jambor  <mjambor@suse.cz>
24017
24018         PR tree-optimization/42462
24019         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
24020         current_function_decl to helper functions and macros.
24021
24022 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24023
24024         PR bootstrap/41771
24025         * flags.h: Don't include real.h.
24026         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
24027         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
24028         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
24029         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
24030         * dominance.c: Update copyright.
24031         * gimple.c (walk_gimple_op): Remove inline.
24032         * tree-ssa-reassoc.c: Include real.h.
24033         * Makefile.in (FLAGS_H): Remove $(REAL_H).
24034         (tree-ssa-reassoc.o): Depend on $(REAL_H).
24035
24036 2010-01-05  Nick Clifton  <nickc@redhat.com>
24037
24038         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
24039         register to push into the stack frame when the accumulator has to
24040         be saved during interrupts.
24041
24042 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
24043
24044         * doc/invoke.texi: Remove the documentation about option
24045         -Wunreachable-code.
24046         * common.opt (Wunreachable-code):  Preserved for backward
24047         compatibility.
24048         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
24049         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
24050         the backward compatibility flag section.
24051
24052 2010-01-05  Richard Guenther  <rguenther@suse.de>
24053
24054         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
24055
24056 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
24057
24058         PR other/42611
24059         * cfgexpand.c (expand_one_var): Diagnose too large variables.
24060
24061         PR tree-optimization/42508
24062         * tree-sra.c (convert_callers): Check for recursive call
24063         by comparing cgraph nodes instead of decls.
24064         (modify_function): Call ipa_modify_formal_parameters also
24065         on all same_body aliases.
24066
24067         * cgraphunit.c (cgraph_materialize_all_clones): Compare
24068         cgraph nodes when checking for same_body aliases.
24069
24070 2010-01-05  Richard Guenther  <rguenther@suse.de>
24071
24072         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
24073         allocation and lookup.
24074         (get_or_alloc_expr_for_constant): Likewise.
24075         (phi_translate): Sink allocation.
24076
24077 2010-01-04  Richard Guenther  <rguenther@suse.de>
24078
24079         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
24080         a new entry only if needed.
24081         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
24082         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
24083         hashtable lookup.
24084         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
24085         the result array.
24086         (phi_translate): Handle CONSTANTs early.
24087
24088 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24089
24090         PR tree-optimization/42398
24091         * tree-sra.c (struct access): Removed flag grp_different_types.
24092         (dump_access): Do not dump the removed flag.
24093         (sort_and_splice_var_accesses): Do not set the removed flag.
24094         (sra_modify_expr): Check for type compatibility directly.
24095
24096 2010-01-04  Martin Jambor  <mjambor@suse.cz>
24097
24098         PR tree-optimization/42366
24099         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
24100         edges with variable number of parameters.
24101         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
24102         flag instead of asserting it.
24103         (ipa_read_node_info): Read uses_analysis_done flag.
24104
24105 2010-01-04  Richard Guenther  <rguenther@suse.de>
24106
24107         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
24108         iterative_hash_* as intended.
24109         (vn_reference_compute_hash): Likewise.  Simplify hashing
24110         SSA names.
24111         (vn_reference_lookup_2): Likewise.
24112         (vn_nary_op_compute_hash): Likewise.
24113         (vn_phi_compute_hash): Likewise.
24114         (expressions_equal_p): Remove strange code.
24115         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
24116         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
24117         (bitmap_insert_into_set_1): Take value-id as parameter.
24118         (add_to_value): Pass it.
24119         (bitmap_insert_into_set): Likewise.
24120         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
24121
24122 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
24123
24124         PR driver/42442
24125         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
24126         (do_self_spec): For switches with SWITCH_IGNORE set set also
24127         SWITCH_IGNORE_PERMANENTLY.
24128         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
24129         of SWITCH_IGNORE.
24130
24131 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
24132
24133         * lto-streamer-out.c (output_unreferenced_globals): Output the full
24134         tree of an unreferenced global var.
24135
24136 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24137
24138         PR target/42542
24139         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
24140         GTU to GT for V4SI and V2DI.
24141
24142         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
24143         (umin<mode>3): Removed.
24144         (uminv8hi3): New.
24145         (uminv4si3): Likewise.
24146
24147 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24148
24149         PR lto/42581
24150         * collect2.c (main): Turn on trace in collect2 if -v is passed
24151         to gcc with LTO.
24152
24153 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
24154
24155         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
24156         description of expression operand.
24157
24158 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
24159
24160         * configure.ac: Add install-html to target_list for Make-hooks.
24161         * configure: Regenerate.
24162         * fortran/Make-lang.in (F95_HTMLFILES): New.
24163         (fortran.html): Use it.
24164         (fortran.install-html): New.
24165         * Makefile.in (install-html): Add lang.install-html.
24166         * java/Make-lang.in (JAVA_HTMLFILES): New.
24167         (java.html): Use it.
24168         (java.install-html): New.
24169         * objc/Make-lang.in (objc.install-html): New.
24170         * objcp/Make-lang.in (obj-c++.install-html): New.
24171         * cp/Make-lang.in (c++.install-html): New.
24172         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
24173         * lto/Make-lang.in (lto.install-html): New.
24174
24175 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24176
24177         PR lto/42520
24178         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
24179
24180 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24181
24182         PR rtl-optimization/41862
24183         * store-motion.c (store_killed_in_insn, compute_store_table,
24184         remove_reachable_equiv_notes, replace_store_insn,
24185         build_store_vectors): Ignore all DEBUG_INSNs.
24186
24187 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24188
24189         PR lto/41564
24190         * common.opt: Add dumpdir.
24191
24192         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
24193         isn't specified.
24194         (option_map): Add --dumpdir.
24195
24196         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
24197
24198         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
24199
24200         * opts.c (decode_options): Try dump_dir_name first if
24201         dump_base_name isn't an absolute path.
24202         (common_handle_option): Handle OPT_dumpdir.
24203
24204         * toplev.c (dump_dir_name): New.
24205         (print_switch_values): Also ignore -dumpdir.
24206
24207         * toplev.h (dump_dir_name): New.
24208
24209 2010-01-03  Richard Guenther  <rguenther@suse.de>
24210
24211         PR tree-optimization/42589
24212         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
24213         double-word expansion of bswap32.
24214
24215 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
24216
24217         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
24218         with BLOCK_FOR_INSN.
24219         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
24220         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
24221         noce_process_if_block): Likewise.
24222         * gcse.c (compute_local_properties, insert_expr_in_table,
24223         insert_set_in_table, canon_list_insert, find_avail_set,
24224         pre_insert_copy_insn): Likewise.
24225
24226         * basic-block.h (BLOCK_NUM): Move from here...
24227         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
24228
24229 2010-01-03  Richard Guenther  <rguenther@suse.de>
24230
24231         PR tree-optimization/42438
24232         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
24233         contains_may_not_return_call flag.
24234         (BB_MAY_NOTRETURN): New.
24235         (valid_in_sets): Trapping nary operations are not valid
24236         in blocks that may not return.
24237         (insert_into_preds_of_block): Remove check for trapping expressions.
24238         (compute_avail): Compute also BB_MAY_NOTRETURN.
24239
24240 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
24241
24242         * doc/invoke.texi: Add 2010 to copyright years.
24243
24244 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24245
24246         * config/sparc/sparc.c: Fix formatting nits.
24247
24248 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
24249             Alexander Monakov  <amonakov@ispras.ru>
24250
24251         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
24252
24253 2010-01-02  Richard Guenther  <rguenther@suse.de>
24254
24255         PR middle-end/42577
24256         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
24257         (simplify_switch_using_ranges): Mark to be removed edges
24258         as non-executable.
24259
24260 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24261
24262         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24263
24264         * collect2.c (scan_libraries): Add missing argument in call to
24265         scan_prog_file.
24266
24267 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
24268
24269         PR target/42448
24270         * config/alpha/predicates.md (aligned_memory_operand): Return false
24271         for CQImode.
24272         (unaligned_memory_operand): Return true for CQImode.
24273         * config/alpha/alpha.c (get_aligned_mem): Assert that location
24274         doesn not cross aligned SImode word boundary.
24275
24276 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
24277
24278         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
24279         Remove.
24280         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
24281         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
24282
24283 2010-01-02  Richard Guenther  <rguenther@suse.de>
24284
24285         PR lto/41597
24286         * toplev.c (compile_file): Emit LTO marker properly.  Change
24287         it to __gnu_lto_v1.
24288         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
24289
24290 2010-01-01  Richard Guenther  <rguenther@suse.de>
24291
24292         PR debug/42455
24293         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
24294
24295 2010-01-01  Richard Guenther  <rguenther@suse.de>
24296
24297         PR c/42570
24298         * c-decl.c (grokdeclarator): For zero-size arrays force
24299         structural equality checks as layout_type does.
24300
24301 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24302
24303         * builtins.c: Update copyright to 2010.
24304
24305 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
24306
24307         PR lto/42531
24308         * lto-streamer-out.c (produce_asm): Revert the last change.
24309         (copy_function): Likewise.
24310
24311         * lto-streamer.c (lto_get_section_name): Skip any leading
24312         asterisk in name.
24313
24314 2010-01-01  Richard Guenther  <rguenther@suse.de>
24315
24316         PR middle-end/42559
24317         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
24318         for LABEL_DECLs.
24319
24320 \f
24321 Copyright (C) 2010 Free Software Foundation, Inc.
24322
24323 Copying and distribution of this file, with or without modification,
24324 are permitted in any medium without royalty provided the copyright
24325 notice and this notice are preserved.