OSDN Git Service

fbe61e348a4ae861b39cee36380a066a83b5fe11
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-30  Nathan Froyd  <froydnj@codesourcery.com>
2
3         PR target/44606
4         * reload1.c (choose_reload_regs): Don't look for equivalences for
5         output reloads of constant loads.
6
7 2010-12-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8
9         * emit-rtl.c (set_mem_attributes_minus_bitpos): Explicitly derive
10         default values from MEM mode if no memory attributes are present.
11         Do not use mode alignment, even on STRICT_ALIGNMENT targets, when
12         called with an expression (not a type).
13
14 2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
15
16         * config/i386/i386.c (upper_128bits_state): Remove comments.
17         (block_info_def): Add unchanged.
18         (move_or_delete_vzeroupper_2): Short circuit if upper 128bits
19         are unchanged in the block.
20
21 2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22
23         PR target/46519
24         * config/i386/i386.c (block_info_def): Remove referenced, count
25         and rescanned.
26         (move_or_delete_vzeroupper_2): Updated.
27         (move_or_delete_vzeroupper_1): Rewritten to avoid recursive call.
28         (rescan_move_or_delete_vzeroupper): Removed.
29         (move_or_delete_vzeroupper): Repeat processing all basic blocks
30         until no basic block state is changed to used at exit.
31
32 2010-12-30  Paul Koning  <ni1d@arrl.net>
33
34         * config/pdp11/pdp11.md (movmemhi, movmemhi1): Correct
35         constraints. 
36         * config/pdp11/pdp11.c (output_block_move): Rewrite.
37
38 2010-12-30  Jakub Jelinek  <jakub@redhat.com>
39
40         PR tree-optimization/47060
41         * tree-parloops.c (reduction_phi): Return NULL if PHI is NULL.
42
43 2010-12-29  Paul Koning  <ni1d@arrl.net>
44
45         * config/pdp11/pdp11-protos.h (pdp11_asm_output_var): Declare.
46         * config/pdp11/pdp11.c (pdp11_asm_output_var): New function.
47         * config/pdp11/pdp11.h (ASM_OUTPUT_ALIGNED_COMMON,
48         ASM_OUTPUT_ALIGNED_LOCAL): New macros.
49         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
50
51 2010-12-30  Joern Rennecke  <amylaar@spamcop.net>
52
53         PR target/47129
54         * config/ia64/ia64.c: Include "dwarf2out.h" .
55
56         PR target/47063
57         * config/alpha/vms.h (MALLOC_ALIGNMENT): Don't undef / define.
58         (MALLOC_ABI_ALIGNMENT): Undef / define.
59
60         PR target/47101
61         * vmsdbgout.c (vmsdbgout_init): Rename main_input_filename to filename.
62         (vmsdbgout_finish): Likewise.
63
64 2010-12-29  Jakub Jelinek  <jakub@redhat.com>
65
66         PR tree-optimization/47074
67         * gimple-fold.c (gimplify_and_update_call_from_tree): Call
68         pop_gimplify_context if returning early.
69
70 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
71
72         * Makefile.in (graphite.o): Depends on DIAGNOSTIC_CORE_H.
73         (graphite-clast-to-gimple.o): Same.
74         (graphite-poly.o): Same.
75         * graphite-clast-to-gimple.c: Include diagnostic-core.h.
76         * graphite-poly.c: Same.
77         * graphite.c: Same.
78
79 2010-12-28  Richard Guenther  <rguenther@suse.de>
80
81         PR debug/46931
82         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
83         SSA before removing dead stmts.
84
85 2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
86             Uros Bizjak  <ubizjak@gmail.com>
87
88         * config/i386/i386-builtin-types.def (PUSHORT): New.
89         (INT_FTYPE_PUSHORT): Likewise.
90         (INT_FTYPE_PUNSIGNED): Likewise.
91         (INT_FTYPE_PULONGLONG): Likewise.
92         Remove "DEF_FUNCTION_TYPE (UINT16)".
93
94         * config/i386/i386.c (ix86_builtins): Remove
95         IX86_BUILTIN_RDRAND16, IX86_BUILTIN_RDRAND32 and
96         IX86_BUILTIN_RDRAND64.  Add IX86_BUILTIN_RDRAND16_STEP,
97         IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
98         (bdesc_special_args): Remove IX86_BUILTIN_RDRAND16,
99         IX86_BUILTIN_RDRAND32 and IX86_BUILTIN_RDRAND64.
100         (ix86_init_mmx_sse_builtins): Handle IX86_BUILTIN_RDRAND16_STEP,
101         IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
102         (ix86_expand_builtin): Likewise.
103         (ix86_expand_special_args_builtin): Remove UINT16_FTYPE_VOID.
104
105         * config/i386/i386.md (UNSPEC_RDRAND): New.
106         (UNSPECV_RDRAND): Removed.
107         (rdrand<mode>): Likewise.
108         (rdrand<mode>_1): Also set FLAGS_REG.  Replace UNSPECV_RDRAND
109         with UNSPEC_RDRAND.
110
111         * config/i386/immintrin.h (_rdrand_u16): Removed.
112         (_rdrand_u32): Likewise.
113         (_rdrand_u64): Likewise.
114         (_rdrand16_step): New.
115         (_rdrand32_step): Likewise.
116         (_rdrand64_step): Likewise.
117
118         * doc/extend.texi (__builtin_ia32_rdrand16): Removed.
119         (__builtin_ia32_rdrand32): Likewise.
120         (__builtin_ia32_rdrand64): Likewise.
121         (__builtin_ia32_rdrand16_step): New.
122         (__builtin_ia32_rdrand32_step): Likewise.
123         (__builtin_ia32_rdrand64_step): Likewise.
124
125 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
126
127         * Makefile.in (graphite.o): Add dependence on DIAGNOSTIC_H.
128         * graphite.c: Include diagnostic.h.
129
130 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
131
132         * Makefile.in (TREE_VECTORIZER_H): Removed duplicate definition.
133         (tree-browser.o): Update dependences.
134         (omega.o): Same.
135         (tree-chrec.o): Same.
136         (tree-scalar-evolution.o): Same.
137         (tree-data-ref.o): Same.
138         (sese.o): Same.
139         (graphite.o): Same.
140         (graphite-blocking.o): Same.
141         (graphite-clast-to-gimple.o): Same.
142         (graphite-cloog-util.o): Same.
143         (graphite-dependences.o): Same.
144         (graphite-flattening.o): Same.
145         (graphite-interchange.o): Same.
146         (graphite-poly.o): Same.
147         (graphite-ppl.o): Same.
148         (graphite-scop-detection.o): Same.
149         (graphite-sese-to-poly.o): Same.
150         (tree-loop-linear.o): Same.
151         (tree-loop-distribution.o): Same.
152         (tree-parloops.o): Same.
153         (lambda-mat.o): Same.
154         (lambda-trans.o): Same.
155         (lambda-code.o): Same.
156         * tree-browser.o: Do not include unnecessary .h files.
157         * omega.o: Same.
158         * tree-chrec.o: Same.
159         * tree-scalar-evolution.o: Same.
160         * tree-data-ref.o: Same.
161         * sese.o: Same.
162         * graphite.o: Same.
163         * graphite-blocking.o: Same.
164         * graphite-clast-to-gimple.o: Same.
165         * graphite-cloog-util.o: Same.
166         * graphite-dependences.o: Same.
167         * graphite-flattening.o: Same.
168         * graphite-interchange.o: Same.
169         * graphite-poly.o: Same.
170         * graphite-ppl.o: Same.
171         * graphite-scop-detection.o: Same.
172         * graphite-sese-to-poly.o: Same.
173         * tree-loop-linear.o: Same.
174         * tree-loop-distribution.o: Same.
175         * tree-parloops.o: Same.
176         * lambda-mat.o: Same.
177         * lambda-trans.o: Same.
178         * lambda-code.o: Same.
179         * graphite.h: Removed.
180
181 2010-12-28  Paul Koning  <ni1d@arrl.net>
182
183         * config/pdp11/pdp11.md: Correct length attribute for float
184         literal case.
185
186 2010-12-28  Jie Zhang  <jie@codesourcery.com>
187
188         * builtins.c (SLOW_UNALIGNED_ACCESS): Remove.
189
190 2010-12-27  Joseph Myers  <joseph@codesourcery.com>
191
192         * config/freebsd.opt (assert=, defsym=, profile, pthread,
193         rpath-link=, rpath=, soname=): New Driver options.
194
195 2010-12-26  Martin Jambor  <mjambor@suse.cz>
196
197         * tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
198         compare TYPE_MAIN_VARIANTs of types.
199
200 2010-12-26  Andreas Schwab  <schwab@linux-m68k.org>
201
202         * config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
203
204 2010-12-24  Alexander Monakov  <amonakov@ispras.ru>
205
206         PR rtl-optimization/47036
207         * sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for
208         unconditional jumps.
209         * sel-sched.c (moveup_expr): Ditto.
210
211 2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
212             Richard Guenther  <rguenther@suse.de>
213
214         PR tree-optimization/46758
215         * graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
216         tree_int_to_gmp instead of int_cst_value.
217         (scan_tree_for_params_int): Same.
218         (scan_tree_for_params): Same.
219         (pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.
220
221 2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
222
223         PR tree-optimization/47002
224         * tree-data-ref.c (compute_data_dependences_for_loop): Pass in a
225         pointer to the loop_nest.
226         (analyze_all_data_dependences): Initialize and free the loop_nest.
227         (free_dependence_relations): Do not free loop_nest.
228         (build_rdg): Pass in the loop_nest, datarefs, and dependence_relations.
229         (free_rdg): Also free the data on edges.
230         * tree-data-ref.h (build_rdg): Update declaration.
231         (compute_data_dependences_for_loop): Same.
232         * tree-if-conv.c (if_convertible_loop_p_1): Pass in the loop_nest.
233         (if_convertible_loop_p): Allocate and free loop_nest.
234         * tree-loop-distribution.c (rdg_flag_loop_exits): Free conds.
235         (free_rdg_components): VEC_free components.
236         (distribute_loop): Update call to build_rdg.  Allocate and free
237         loop_nest, datarefs, and dependence_relations.
238         * tree-loop-linear.c (linear_transform_loops): Allocate and free
239         loop_nest.
240         * tree-parloops.c (loop_parallel_p): Same.
241         * tree-predcom.c (tree_predictive_commoning_loop): Same.
242         * tree-vect-data-refs.c (vect_analyze_data_refs): Pass to
243         compute_data_dependences_for_loop a pointer to LOOP_VINFO_LOOP_NEST.
244         * tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_LOOP_NEST.
245         (destroy_loop_vec_info): Free LOOP_VINFO_MAY_ALIAS_DDRS and
246         LOOP_VINFO_LOOP_NEST.
247         * tree-vect-slp.c (destroy_bb_vec_info): Call free_data_refs and
248         free_dependence_relations.
249         * tree-vectorizer.h (struct _loop_vec_info): Add a field loop_nest.
250         (LOOP_VINFO_LOOP_NEST): New.
251
252 2010-12-23  Martin Jambor  <mjambor@suse.cz>
253
254         * ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
255         when not checking.
256
257 2010-12-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
258
259         * configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
260         --eh-frame-hdr.  Check for working Sun ld version.
261         (HAVE_LD_EH_FRAME_HDR): Adapt comment.
262         (glibc_header_dir): Set only once.  Rename to ...
263         (target_header_dir): ... this.  Adapt users.
264         (gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
265         (TARGET_DL_ITERATE_PHDR): Define if present.
266         * configure: Regenerate.
267         * config.in: Likewise.
268         * config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
269         * crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
270         with linker support and dl_iterate_phdr.
271         * unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
272         (_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
273         PT_SUNW_UNWIND .eh_frame_hdr sections.
274         [CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
275         load_base to data->dbase.
276         [CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
277         64-bit Solaris 10+/x86.
278         * config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
279         (LINK_EH_SPEC): Define.
280
281 2010-12-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
282
283         * doc/extend.texi (Function Attributes, Volatiles): Fix typos.
284         * doc/install.texi (Prerequisites, Specific): Likewise.
285         * doc/invoke.texi (C Dialect Options, Debugging Options)
286         (Optimize Options, MicroBlaze Options)
287         (RS/6000 and PowerPC Options, RX Options, Code Gen Options): Likewise.
288         * doc/objc.texi (Method signatures)
289         (Fast enumeration protocol): Likewise.
290         * doc/tm.texi.in (Run-time Target, Register Arguments)
291         (Scheduling, Macros for Initialization, Misc): Likewise.
292         * doc/tm.texi: Renerate.
293
294 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
295
296         * doc/objc.texi (Modern GNU Objective-C runtime API): Mention that
297         reference documentation for functions in the API is in the header
298         files.
299         (Messaging with the GNU Objective-C runtime, Dynamically
300         registering methods, Forwarding hook): New sections.
301
302 2010-12-22  Sebastian Pop  <sebastian.pop@amd.com>
303
304         PR tree-optimization/47019
305         * sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.
306
307 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
308
309         * c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
310         * c-decl.c (diagnose_arglist_conflict): Likewise.
311         (diagnose_mismatched_decls, merge_decls): Likewise.
312         (c_builtin_function, c_builtin_function_ext_scope): Likewise.
313         (start_decl, start_function): Likewise.
314         * c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
315         * config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
316         * config/mep/mep.c (mep_validate_interrupt): Likewise.
317         * config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
318         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
319         * config/sh/sh.c (sh_init_cumulative_args): Likewise.
320         * config/sparc/sparc.c (init_cumulative_args): Likewise.
321         * dwarf2out.c (add_prototyped_attribute): Likewise.
322         (gen_subprogram_die): Likewise.
323         * ipa-type-escape.c (check_function_parameter_and_return_types):
324         Likewise.
325         (check_call): Likewise.
326         * tree-ssa.c (useless_type_conversion_p): Likewise.
327
328 2010-12-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
329
330         * config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
331         predicate for destination operand.
332         * config/spu/spu.c (spu_expand_mov): If move destination is an
333         invalid subreg, perform move in the subreg's inner mode instead.
334
335 2010-12-22  Martin Jambor  <mjambor@suse.cz>
336
337         PR tree-optimization/45934
338         PR tree-optimization/46302
339         PR tree-optimization/46987
340         * gimple-fold.c (get_base_binfo_for_type): Removed.
341         (gimple_get_relevant_ref_binfo): Likewise.
342         (gimple_fold_obj_type_ref_call): Dumb down to 4.5 functionality,
343         removed parameter inplace, updated the caller.
344         * gimple.h (gimple_get_relevant_ref_binfo): Remove declaration.
345         * ipa-cp.c (ipcp_propagate_types): Do not derive types from constants.
346         (ipcp_discover_new_direct_edges): Do not do devirtualization based on
347         constants.
348         * ipa-prop.c (compute_known_type_jump_func): Use
349         get_ref_base_and_extent and get_binfo_at_offset instead of
350         gimple_get_relevant_ref_binfo.
351         (compute_known_type_jump_func): Likewise.
352         (update_jump_functions_after_inlining): Do not derive types from
353         constants.
354         (try_make_edge_direct_virtual_call): Likewise.
355         * tree.c (get_binfo_at_offset): Get type from non-artificial fields.
356
357 2010-12-22  Joseph Myers  <joseph@codesourcery.com>
358
359         * config/svr4.h: Remove.
360         * system.h (USING_SVR4_H, SVR4_ASM_SPEC): Poison.
361         * config.gcc, config/bfin/bfin.h, config/cris/cris.h,
362         config/fr30/fr30.h, config/frv/frv.h, config/i386/openbsdelf.h,
363         config/i386/vx-common.h, config/ia64/elf.h, config/ia64/ia64.h,
364         config/ia64/sysv4.h, config/iq2000/iq2000.h, config/m68k/linux.h,
365         config/m68k/m68kelf.h, config/mips/mips.h, config/mips/vxworks.h,
366         config/moxie/moxie.h, config/netbsd-aout.h, config/openbsd.h,
367         config/rs6000/sysv4.h, config/sh/elf.h, config/sh/sh.h,
368         config/sol2.h, config/sparc/sysv4.h, config/stormy16/stormy16.h,
369         config/v850/v850.h, config/vxworks.h: Remove or update comments
370         referring to svr4.h.
371
372 2010-12-22  Andrey Belevantsev  <abel@ispras.ru>
373
374         PR rtl-optimization/45352
375         PR rtl-optimization/46521
376         PR rtl-optimization/46522
377         * sel-sched.c (reset_sched_cycles_in_current_ebb): Recheck the
378         DFA state on the last iteration of the advancing loop.
379         (sel_sched_region_1): Propagate the rescheduling bit to the next
380         block also for empty blocks.
381
382 2010-12-22  Alexandre Oliva  <aoliva@redhat.com>
383
384         PR debug/46724
385         * function.c (assign_parms_augmented_arg_list): Name and mark
386         DECL of result address as NAMELESS rather than IGNORED.
387         (assign_parms): Set DECL_VALUE_EXPR for indirect result.
388         * tree.h (tree_decl_common::decl_flag_2): Document RESULT_DECL.
389         (DECL_HAS_VALUE_EXPR_P): Accept RESULT_DECL.
390         * dwarf2out.c (loc_list_from_tree) <RESULT_DECL>: Use
391         DECL_VALUE_EXPR.
392         * dbxout.c (dbxout_expand_expr) <RESULT_DECL>: Likewise.
393         * var-tracking.c (vt_add_function_parameter): New, split out of...
394         (vt_add_function_parameters): ... this.  Handle incoming
395         pointer to hold result.
396
397 2010-12-22  Jie Zhang  <jie@codesourcery.com>
398
399         * config/arm/arm.c (output_move_double): Update the comment
400         above the function to reflect the current implementation.
401
402 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
403
404         De-hookize profile infrastructure.
405         * value-prof.c (value_prof_hooks): Remove.
406         (struct value_prof_hooks): Remove.
407         (gimple_value_prof_hooks): Remove.
408         (gimple_register_value_prof_hooks): Remove.
409         (find_values_to_profile): Remove.
410         (value_profile_transformations): Remove.
411         (gimple_value_profile_transformations): No longer static.
412         (gimple_find_values_to_profile): Likewise.
413         * value-prof.h (gimple_register_value_prof_hooks): Remove prototype.
414         (find_values_to_profile): Likewise.
415         (value_profile_transformations): Likewise.
416         (tree_register_profile_hooks): Likewise.
417         (struct profile_hooks): Remove.
418         (tree_profile_hooks): Remove.
419         (gimple_find_values_to_profile): New protoype.
420         (gimple_value_profile_transformations): Likewise.
421         (gimple_init_edge_profiler): Likewise.
422         (gimple_gen_edge_profiler): Likewise.
423         (gimple_gen_interval_profiler): Likewise.
424         (gimple_gen_pow2_profiler): Likewise.
425         (gimple_gen_one_value_profiler): Likewise.
426         (gimple_gen_ic_profiler): Likewise.
427         (gimple_gen_ic_func_profiler): Likewise.
428         (gimple_gen_const_delta_profiler): Likewise.
429         (gimple_gen_average_profiler): Likewise.
430         (gimple_gen_ior_profiler): Likewise.
431         * profile.c (profile_hooks): Remove.
432         (instrument_edges): Call profiling functions directly instead
433         of through removed profile_hooks.
434         (instrument_values): Likewise.
435         (branch_prob): Call gimple_find_values_to_profile instead of
436         removed find_values_to_profile.
437         Call gimple_init_edge_profiler instead of removed hook.
438         (tree_register_profile_hooks): Remove.
439         * tree-profile.c (tree_init_ic_make_global_vars): Rename to
440         init_ic_make_global_vars.
441         (tree_init_edge_profiler): Rename to gimple_init_edge_profiler
442         and no longer static.
443         (tree_gen_edge_profiler, tree_gen_interval_profiler,
444         tree_gen_pow2_profiler, tree_gen_one_value_profiler,
445         tree_gen_ic_profiler, tree_gen_ic_func_profiler,
446         tree_gen_const_delta_profiler, tree_gen_average_profiler,
447         tree_gen_ior_profiler): Similarly renamed and no longer static.
448         (tree_profiling): Do not initialize tree profiling hooks.
449         (tree_profile_hooks): Remove.
450
451 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
452
453         PR target/46880
454         * config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
455         operand.
456
457 2010-12-21  Ira Rosen  <irar@il.ibm.com>
458
459         PR tree-optimization/47001
460         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
461         the loads in reduction are different and there are no gaps between
462         them.
463
464 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
465
466         PR middle-end/45310
467         * tree-ssa-phiprop.c (propagate_with_phi): Remove statement
468         completely from the function, including EH traces.
469
470 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
471
472         PR rtl-optimization/46755
473         * ira.c (ira): If some dead edges were removed, find and delete
474         any blocks that might have become unreachable.
475
476 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
477
478         PR rtl-optimization/47008
479         * postreload.c (reload_combine_note_store): Also handle
480         PRE_MODIFY and POST_MODIFY.
481
482 2010-12-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
483
484         * config/arm/arm.c (require_pic_register): Set INSN_LOCATOR for all
485         instructions injected into the prologue to prologue_locator.
486
487 2010-12-21  Jan Hubicka   <jh@suse.cz>
488
489         PR middle-end/47000
490         * tree-inline.c (estimate_operator_cost): Handle VIEW_CONVERT_EXPR.
491
492 2010-12-21  Jie Zhang  <jie@codesourcery.com>
493
494         * config/arm/arm-ldmstm.ml: Fix a typo in comment.
495
496 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
497
498         PR middle-end/45852
499         * expr.c (store_expr): Ignore alt_rtl if equal to target,
500         but has side-effects.
501
502 2010-12-21  Anatoly Sokolov  <aesok@post.ru>
503
504         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Remove.
505         * config/sh/sh-protos.h (secondary_reload_info, sh_secondary_reload):
506         Remove forward declaration.
507         * config/sh/sh.c (sh_preferred_reload_class): New function.
508         (sh_secondary_reload): Make static.
509         (TARGET_PREFERRED_RELOAD_CLASS): Define.
510
511 2010-12-20  Joseph Myers  <joseph@codesourcery.com>
512
513         * config/alpha/linux.h (OPTION_GLIBC): Define differently if
514         SINGLE_LIBC.
515         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
516         Define differently if SINGLE_LIBC.
517         * config/rs6000/linux.h (OPTION_GLIBC): Define differently if
518         SINGLE_LIBC.
519         * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
520         SINGLE_LIBC.
521         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
522         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
523         SINGLE_LIBC instead of OPTION_GLIBC.
524         (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
525         (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
526         DEFAULT_LIBC or use linux.opt.
527
528 2010-12-20  Richard Henderson  <rth@redhat.com>
529
530         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Generate
531         UNSPEC patterns by hand, with the proper mode; use gen_const_mem.
532         * config/mn10300/mn10300.md (call, call_value): Generate UNSPEC_PLT
533         by hand, with the proper mode.
534         (symGOT2reg, symGOT2reg_i, symGOTOFF2reg): Remove.
535         (symGOTOFF2reg_i, sym2PIC, sym2PLT): Remove.
536
537 2010-12-20  Sanjin Liu  <scliu@faraday-tech.com>
538             Mingfeng Wu  <mingfeng@faraday-tech.com>
539
540         * config/arm/arm-cores.def: Add Faraday CPU support -
541         fa526/fa626/fa606te/fa626te/fmp626/fa726te.
542         * config/arm/arm-tune.md: Regenerate.
543         * config/arm/arm.c (arm_fa726te_tune): New tune_params for fa726te
544         (fa726te_sched_adjust_cost): New cost function for fa726te.
545         (arm_issue_rate): Add fa726te.
546         * config/arm/arm.md (generic_sched): Add Faraday cores to generic_sched
547         and include machine description files.
548         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Add fa526 and fa626.
549         * config/arm/t-arm (MD_INCLUDES): Include machine description files for
550         Faraday cores.
551         * config/arm/t-arm-elf: Add multilib option for Faraday cores.
552         * config/arm/t-linux-eabi: Add multilib option for Faraday cores except
553         fa526 and fa626.
554         * doc/invoke.texi: Document -mcpu for Faraday cores.
555         * config/arm/fa526.md: New file.
556         * config/arm/fa606te.md: New file.
557         * config/arm/fa626te.md: New file.
558         * config/arm/fmp626.md: New file.
559         * config/arm/fa726te.md: New file.
560
561 2010-12-20  Yvan Roux  <yvan.roux@st.com>
562
563         * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
564         condition on IT instruction for early termination.
565
566 2010-12-20  Joseph Myers  <joseph@codesourcery.com>
567
568         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
569         (DBX_REGISTER_NUMBER): Define.
570         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
571         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
572         * config/rs6000/sysv4.h (SIZE_TYPE): Define.
573         (ASM_SPEC): Define without using SVR4_ASM_SPEC.
574         (DBX_REGISTER_NUMBER): Undefine.
575         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
576         powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
577         powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
578         powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
579         powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
580         powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
581         powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
582
583 2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
584             Jan Hubicka  <jh@suse.cz>
585
586         PR middle-end/46916
587         * opts.c (finish_options): Enable -freorder-functions
588         when -freorder-blocks-and-partition is active.
589
590 2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
591
592         PR c++/46904
593         PR middle-end/46916
594         PR target/46950
595         * config/darwin.c (generating_for_darwin_version): New var.
596         (darwin_text_section): Remove.
597         (darwin_rodata_section): Do not check function section here.
598         (darwin_emit_unwind_label): Do not emit for Darwin >= 9.
599         Emit distinct labels for successive calls for the same decl.
600         (darwin_override_options): Set generating_for_darwin_version.
601         Add FIXME and disable -freorder-blocks-and-partition.
602         Suppress automatic asynchronous unwind tables for m32.
603         Switch off -freorder-blocks-and-partition when unwind tables
604         will be generated.  Update to use generating_for_darwin_version.
605         (darwin_function_section): Check for cases that need to be placed
606         in coalesced sections.
607         * config/darwin-sections.def: Define hot, cold, startup and
608         exit sections for both coalesced and regular code.
609         * config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete.
610         * config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete.
611
612 2010-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
613
614         * doc/cppopts.texi: Use @var when appropriate.
615         * doc/extend.texi (Structure-Packing Pragmas): Likewise.
616         * doc/gimple.texi (Logical Operators)
617         (Adding a new GIMPLE statement code): Likewise.
618         * doc/invoke.texi (Target Options, Precompiled Headers): Likewise.
619         * doc/plugins.texi (Plugins): Likewise.
620
621         * doc/install.texi (Configuration, Building, Testing, Specific):
622         Remove leading whitespace from examples.
623
624 2010-12-19  Andi Kleen  <ak@linux.intel.com>
625
626         PR lto/46905
627         * collect2.c (main): Handle -fno-lto.
628         * opts.c (common_handle_option): Handle -fno-lto.
629
630 2010-12-19  Eric Botcazou  <ebotcazou@adacore.com>
631
632         PR target/46729
633         * config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
634         (PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
635         * config/sparc/sparc.c (pic_helper_needed): Delete.
636         (global_offset_table): Likewise.
637         (pic_helper_symbol): Rename to...
638         (got_helper_rtx): ...this.
639         (global_offset_table_rtx): New global variable.
640         (sparc_got_symbol): Likewise.
641         (sparc_got): New static function.
642         (check_pic): Use local variable and call sparc_got.
643         (sparc_tls_symbol): Initialize to NULL_RTX.
644         (sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
645         and 32-bit ABI and copy the GOT symbol to a new register otherwise.
646         (get_pc_thunk_name): Rename local variable.
647         (gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
648         (load_pic_register): Rename to...
649         (load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
650         (sparc_expand_prologue): Do not test flag_pic.
651         (sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
652         (sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
653         Rename local variable and do not call get_pc_thunk_name again.
654         * config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
655
656 2010-12-19  Dave Korn  <dave.korn.cygwin@gmail.com>
657
658         PR middle-end/46674
659         PR middle-end/46221
660         * varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
661         wrapper class.
662         (symbol_alias_set_create): New wrapper function.
663         (symbol_alias_set_destroy): Likewise.
664         (symbol_alias_set_contains): Likewise.
665         (symbol_alias_set_insert): Likewise.
666         (compute_visible_aliases): Use the above and return symbol_alias_set_t,
667         not a pointer_set.
668         (remove_unreachable_alias_pairs): Adjust likewise to match.
669         (finish_aliases_1): Likewise.
670
671 2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
672
673         * config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
674         index range case. Change to SF/DFmode tests to avoid capturing HFmode.
675         (thumb2_legitimate_index_p): Same.
676
677 2010-12-18  Jakub Jelinek  <jakub@redhat.com>
678
679         PR tree-optimization/46969
680         * tree-parloops.c (struct reduction_info): Add reduc_version.
681         (reduction_info_hash): Return reduc_version field.
682         (reduction_phi): Set reduc_version to gimple_uid (phi).
683         (build_new_reduction): Set reduc_version to SSA_NAME_VERSION of
684         phi result.
685         (set_reduc_phi_uids): New function.
686         (gather_scalar_reductions): Call it at the end through htab_traverse.
687
688 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
689
690         * c-parser.c (c_parser_objc_try_catch_finally_statement): Call
691         objc_maybe_warn_exceptions.
692         (c_parser_objc_synchronized_statement): Call
693         objc_maybe_warn_exceptions.
694
695 2010-12-18  Jakub Jelinek  <jakub@redhat.com>
696
697         PR tree-optimization/46985
698         * tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
699         return it immediately.
700
701 2010-12-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
702
703         PR target/46915
704         * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
705         of next_real_insn.  Search forward checking for both ASM_INPUT and
706         ASM_OPERANDS asms until exit condition is found.
707         (branch_needs_nop_p): Likewise.
708         (use_skip_p): New function.
709         (output_cbranch): Use use_skip_p.
710         (output_bb, output_bvb): Likewise.
711
712 2010-12-18  Kai Tietz  <kai.tietz@onevision.com>
713
714         PR target/36834
715         * config/i386/i386.c (ix86_keep_aggregate_return_pointer):
716         New local function.
717         (ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer
718         function instead of KEEP_AGGREGATE_RETURN_POINTER.
719         (ix86_handle_callee_pop_aggregate_return): New handler.
720         (ix86_attribute_table): Add new attribute
721         callee_pop_aggregate_return.
722         * doc/extend.texi (callee_pop_aggregate_return): Add
723         attribute documentation.
724
725 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
726
727         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
728         Only set sjlj exceptions for NeXT/m32.
729
730 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
731
732         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION):
733         Only expose when not building for target.
734
735 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
736
737         * config/netbsd.opt, config/netbsd-elf.opt: New files.
738         * config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*,
739         i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*,
740         m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*,
741         sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*,
742         vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files.
743
744 2010-12-17  Richard Henderson  <rth@redhat.com>
745
746         * regcprop.c (find_oldest_value_reg): Continue search instead of
747         failing if an element in the copy chain is of the wrong regclass.
748
749 2010-12-17  Paolo Bonzini  <bonzini@gnu.org>
750
751         PR c/20385
752         * function.c (used_types_insert): Handle ERROR_MARK.
753         * c-decl.c (grokdeclarator): Handle ERROR_MARK.
754         (declspecs_add_type): Leave error_mark_node in specs->type.
755         (finish_declspecs): Change it to integer_type_node here.
756         * c-parser.c (c_parser_peek_2nd_token): Move earlier.
757         (enum c_lookahead_kind): New.
758         (c_parser_next_token_starts_typename): New name of
759         c_parser_next_tokens_start_typename.  Accept lookahead enum
760         and handle it here instead of...
761         (c_parser_next_tokens_start_declaration): ... here.  Call it.
762         (c_parser_declspecs): Accept another argument.  Do not exit
763         on C_ID_ID if it is guessed to be an unknown typename.
764         (c_parser_parms_declarator): Use 2nd token to distinguish a K&R
765         declaration from an ANSI declaration starting with an unknown
766         typename.
767         (c_parser_struct_declaration, c_parser_objc_type_name,
768         c_parser_typeof_specifier, c_parser_declarator,
769         c_parser_direct_declarator_inner): Adjust calls.
770         (c_parser_parameter_declaration): Likewise.
771         (c_parser_type_name): Pass back an error_mark_node to the caller.
772         (c_parser_postfix_expression): Do error recovery when
773         c_parser_type_name returns NULL.
774
775 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
776
777         * config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE): Define.
778         * config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
779         (DBX_REGISTER_NUMBER): Undefine.
780         * config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
781         * config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
782         Define.
783         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
784         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
785         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
786         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
787         i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
788         i[34567]86-*-solaris2*,
789         i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.
790
791 2010-12-17  H.J. Lu  <hongjiu.lu@intel.com>
792
793         * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
794         "BB [%i]" with "[bb %i]" in dump.
795         (move_or_delete_vzeroupper_1): Likewise.
796         (rescan_move_or_delete_vzeroupper): Likewise.  Always dump
797         upper 128bit state at exit.
798
799 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
800
801         * config/interix.opt: New.
802         * config/interix.h (LINK_SPEC): Don't handle -soname*.
803         * config.gcc (i[34567]86-*-interix3*): Use interix.opt.
804
805 2010-12-17  Andrew Stubbs  <ams@codesourcery.com>
806
807         * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
808         operand order for plus.
809         Drop redundant % from constraints.
810
811 2010-12-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
812
813         * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
814         _floatunstisf.
815         * config/spu/spu.md ("floattisf2"): New expander.
816         ("floatunstisf2"): New insn pattern and splitter.
817         ("cgt_ti_m1"): New insn pattern.
818
819 2010-12-17  Bernd Schmidt  <bernds@codesourcery.com>
820
821         * config/arm/arm.c (arm_select_cc_mode): Before calling
822         arm_select_dominance_cc_mode for AND or IOR operations, ensure
823         that op is NE or EQ.
824
825 2010-12-17  Alexander Monakov  <amonakov@ispras.ru>
826
827         PR middle-end/46761
828         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
829         to use unadjusted UB.
830
831 2010-12-17  Dodji Seketeli  <dodji@redhat.com>
832
833         * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
834         info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
835         that underlying type instead.
836
837 2010-12-16  Jan Hubicka  <jh@suse.cz>
838
839         PR middle-end/44563
840         * ipa-inline.c: Update doplevel comment.
841         (cgraph_estimate_size_after_inlining): Remove times attribute.
842         (cgraph_mark_inline_edge): Update.
843         (cgraph_mark_inline): Remove.
844         (cgraph_estimate_growth): Update.
845         (cgraph_check_inline_limits): Remove one only argument.
846         (cgraph_edge_badness): Update.
847         (cgraph_decide_recursive_inlining): Update.
848         (cgraph_decide_inlining_of_small_function): Fix handling of
849         tree_can_inline_p  and call_stmt_cannot_inline_p.
850         (cgraph_flatten): Likewise.
851         (cgraph_decide_inlining): Update.
852         (cgraph_decide_inlining_incrementally): Fix handling of
853         call_stmt_cannot_inline_p.
854
855 2010-12-16  Joseph Myers  <joseph@codesourcery.com>
856
857         * config/darwin.opt (dylinker, headerpad_max_install_names,
858         keep_private_externs, nofixprebinding, nomultidefs, noprebind,
859         noseglinkedit, object, prebind, prebind_all_twolevel_modules,
860         preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
861         twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
862         Driver options.
863         * config/darwin.h (LINK_SPEC): Remove '*' after
864         headerpad_max_install_names.
865
866 2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
867
868         PR tree-optimization/46924
869         * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
870         detect reductions outside the current SESE region.
871         * sese.h (stmt_in_sese_p): New.
872         (defined_in_sese_p): Call stmt_in_sese_p.
873
874 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
875
876         PR tree-optimization/46966
877         * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
878         for bbs that are removed from SCOP_BBS vector.
879
880 2010-12-16  Eric Botcazou  <ebotcazou@adacore.com>
881
882         * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
883         get_ref_base_and_extent returns -1 as the max size.
884
885 2010-12-16  Konrad Eisele  <konrad@gaisler.com>
886             Eric Botcazou  <ebotcazou@adacore.com>
887
888         Support for LEON processor
889         * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
890         (sparc-*-linux*): Likewise.
891         (sparc-*-rtems*): Remove Solaris left-overs.
892         (sparc*-*-*): Remove obsolete sparc86x setting.
893         (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
894         * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
895         * config/sparc/sparc.h (TARGET_CPU_leon): Define.
896         (TARGET_CPU_sparc86x): Delete.
897         (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
898         (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
899         (TARGET_CPU_f934): Likewise.
900         (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
901         (CPP_CPU_SPEC): Add entry for -mcpu=leon.
902         (enum processor_type): Add PROCESSOR_LEON.  Reorganize.
903         * config/sparc/sparc.c (leon_costs): New cost array.
904         (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
905         Initialize cost array to leon_costs if -mtune=leon.
906         * config/sparc/sparc.md (cpu attribute): Add leon.  Reorganize.
907         Include leon.md scheduling description.
908         * config/sparc/leon.md: New file.
909         * config/sparc/t-elf: Do not assemble Solaris startup files.
910         * config/sparc/t-leon: New file.
911         * config/sparc/t-leon3: Likewise.
912
913 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
914
915         PR tree-optimization/43655
916         * tree-ssa-ter.c (is_replaceable_p): Don't use
917         gimple_references_memory_p for -O0, instead check for load
918         by looking at rhs.
919
920 2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
921
922         PR tree-optimization/46404
923         * graphite-clast-to-gimple.c (gloog): Call scev_reset.
924
925 2010-12-16  Anatoly Sokolov  <aesok@post.ru>
926
927         * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
928         * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
929         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
930
931 2010-12-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
932
933         * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
934         * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
935         (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
936
937 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
938
939         PR debug/46893
940         * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
941         use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
942
943 2010-12-16  Chung-Lin Tang  <cltang@codesourcery.com>
944
945         PR target/46883
946         * config/arm/arm.md
947         (zero_extendhisi2 for register input splitter): Change
948         "register_operand" to "s_register_operand".
949         (zero_extendqisi2 for register input splitter): Same.
950
951 2010-12-16  Jan Hubicka  <jh@suse.cz>
952
953         PR middle-end/46939
954         * predic.c (predict_paths_leading_to_edge): New function.
955         (apply_return_prediction): Use it.
956         (predict_paths_for_bb): Do not special case abnormals.
957
958 2010-12-16  Joseph Myers  <joseph@codesourcery.com>
959
960         * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
961         extra_options twice.
962
963 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
964
965         * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
966         * doc/tm.texi: Regenerate.
967         * system.h (US_SOFTWARE_GOFAST): Poison.
968         * config.gcc (enable_gofast): Don't handle.
969         * config/gofast.h: Remove.
970         * config/mips/t-gofast: Remove.
971         * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
972         * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
973         * config/mips/elforion.h: Don't mention GOFAST in comment.
974         * config/mips/mips.c: Don't include gofast.h.
975         (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
976         * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
977         US_SOFTWARE_GOFAST.
978         * config/sparc/sparc.c: Don't include gofast.h.
979         (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
980         * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
981         US_SOFTWARE_GOFAST.
982
983 2010-12-14  Jan Hubicka  <jh@suse.cz>
984
985         * config/darwin.opt (dylinker, headerpad_max_install_names,
986         keep_private_externs, nofixprebinding, nomultidefs, noprebind,
987         noseglinkedit, object, prebind, prebind_all_twolevel_modules,
988         preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
989         twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
990         Driver options.
991         * config/darwin.h (LINK_SPEC): Remove '*' after
992         headerpad_max_install_names.
993
994 2010-12-14  Jan Hubicka  <jh@suse.cz>
995
996         * tree.c (get_file_function_name): Avoid using random seed on
997         GLOBAL_sub_I and GLOBAL_sub_D.
998
999 2010-12-15  Martin Jambor  <mjambor@suse.cz>
1000
1001         PR tree-optimization/46053
1002         PR middle-end/46287
1003         PR middle-end/46242
1004         * cgraph.h (cgraph_indirect_call_info): New field thunk_delta.
1005         * gimple.h (gimple_fold_obj_type_ref): Declaration removed.
1006         (gimple_fold_call): Declare.
1007         (gimple_adjust_this_by_delta): Likewise.
1008         * cgraph.c (cgraph_make_edge_direct): New parameter delta.  Updated
1009         all users.
1010         (cgraph_clone_edge): Create a copy of indirect_info also for direct
1011         edges.
1012         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Adjust this
1013         parameters.
1014         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Renamed to
1015         gimple_get_virt_mehtod_for_binfo, new parameter delta.  Do not search
1016         through thunks, in fact bail out if we encounter one, check that
1017         BINFO_VIRTUALS is not NULL.
1018         (gimple_adjust_this_by_delta): New function.
1019         (gimple_fold_obj_type_ref): Removed.
1020         (gimple_fold_obj_type_ref_call): New function.
1021         (fold_gimple_call): Renamed to gimple_fold_call, made external.
1022         Updated users.  Call gimple_fold_obj_type_ref_call instead of
1023         gimple_fold_obj_type_ref.
1024         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Process
1025         thunk deltas.
1026         (ipcp_discover_new_direct_edges): Likewise.
1027         * ipa-prop.c (ipa_make_edge_direct_to_target): New parameter delta.
1028         Updated callers.
1029         (ipa_write_indirect_edge_info): Stream thunk_delta.
1030         (ipa_read_indirect_edge_info): Likewise.
1031         * tree-ssa-ccp.c (ccp_fold_stmt): Use gimple_fold_call instead of
1032         gimple_fold_obj_type_ref.
1033
1034 2010-12-15  Alexander Monakov  <amonakov@ispras.ru>
1035
1036         PR rtl-optimization/46649
1037         * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first
1038         basic block in the region.
1039
1040 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
1041
1042         * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
1043         * config.gcc (xstormy16-*-elf): Don't use svr4.h.
1044
1045 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1048         * config.gcc (rx-*-elf*): Don't use svr4.h.
1049
1050 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1051
1052         PR tree-optimization/46845
1053         * sese.c (scalar_evolution_in_region): Handle scop parameters
1054         before scev analysis.
1055
1056 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1057
1058         PR tree-optimization/46928
1059         * tree-data-ref.c (analyze_overlapping_iterations): Handle A[p] == A[p]
1060         in data dependence analysis with p a parameter of the loop.
1061
1062 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1063
1064         PR tree-optimization/45948
1065         * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New.
1066         (stmt_has_scalar_dependences_outside_loop): New.
1067         (stmt_generated_in_another_partition): New.
1068         (add_scalar_computations_to_partition): New.
1069         (rdg_build_partitions): Call add_scalar_computations_to_partition.
1070
1071 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1072
1073         * config/arc/arc.h (LIB_SPEC): Define.
1074         * config.gcc (arc-*-elf*): Don't use svr4.h.
1075
1076 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1077
1078         * config/sh/elf.h (LIB_SPEC): Define.
1079         * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
1080         sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
1081         sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
1082         sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
1083         sh-wrs-vxworks): Don't use svr4.h.
1084
1085 2010-12-14  Jan Hubicka  <jh@suse.cz>
1086
1087         PR lto/46940
1088         PR lto/44463
1089         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes
1090         for aliases when they are used.
1091
1092 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1093
1094         * config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
1095         sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
1096         sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
1097         sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.
1098
1099 2010-12-14  Thomas Klein  <th.r.klein@web.de>
1100
1101         * config/arm/arm.c (arm_expand_prologue): Report the static stack
1102         size if -fstack-usage is used.
1103         (thumb1_expand_prologue): Likewise.
1104
1105 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1106
1107         PR debug/46885
1108         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
1109         instead of gsi_last_nondebug_bb if bump_in_latch.
1110
1111         PR tree-optimization/46909
1112         * gimple-fold.c (and_var_with_comparison_1): Save partial
1113         result even in the is_and case, if both partial results
1114         are the same, return it.
1115         (or_var_with_comparison_1): Use is_or predicate instead of
1116         innercode == TRUTH_OR_EXPR test.  Save partial result
1117         even in the is_or case, if both partial results are the
1118         same, return it.  In the !is_or case when both partial
1119         results are the same, return the partial result instead
1120         of boolean_true_node.
1121
1122 2010-12-14  Jan Hubicka  <jh@suse.cz>
1123
1124         PR middle-end/46667
1125         * varasm.c (assemble_start_function): Do not call
1126         resolve_unique_section.
1127         * cfgexpand.c (gimple_expand_cfg): Resolve it here.
1128
1129 2010-12-14  Alexander Monakov  <amonakov@ispras.ru>
1130
1131         PR rtl-optimization/46875
1132         * sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
1133         * sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.
1134
1135 2010-12-14  Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1136
1137         * config/h8300/h8300.md (define_split) : Add condition for
1138         "and with single_zero" splitter to handle 16-bit const operands.
1139         * config/h8300/h8300.md (define_split) : Add condition for
1140         "ior with single_one" splitter to handle 16-bit const operands.
1141         * config/h8300/h8300.md (define_split) : Add condition for
1142         "xor with single_one" splitter to handle 16-bit const operands.
1143         * testsuite/gcc.dg/h8300-bit-insn-ice.c: New.
1144
1145 2010-12-13  Jan Hubicka  <jh@suse.cz>
1146
1147         PR middle-end/45388
1148         * ipa.c (cgraph_build_static_cdtor_1): Break out from ...  Add FINAL
1149         parameter.
1150         (cgraph_build_static_cdtor): ... here.
1151         (build_cdtor): Use cgraph_build_static_cdtor_1.
1152
1153 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1154
1155         * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
1156         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1157         * config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
1158
1159 2010-12-14  Bernd Schmidt  <bernds@codesourcery.com>
1160
1161         PR rtl-optimization/44374
1162         Reapply patch with fixes.
1163         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1164         * df-core.c (df_set_bb_dirty): Set it.
1165         * ifcvt.c (find_memory): Remove function.
1166         (dead_or_predicable): Use can_move_insns_across.
1167         * df.h (can_move_insns_across): Declare function.
1168         * cfgcleanup.c (block_was_dirty): New static variable.
1169         (flow_find_head_matching_sequence): Test for epilogue notes.
1170         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1171         than df_get_bb_dirty.
1172         (try_head_merge_bb): New static function.
1173         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1174         is set.
1175         * df-problems.c: Include "target.h"
1176         (df_simulate_find_uses): New static function.
1177         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1178         (find_memory, find_memory_store): New static functions.
1179         (can_move_insns_across): New function.
1180         * Makefile.in (df-problems.o): Update dependencies.
1181
1182 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1183
1184         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1185         (DBX_REGISTER_NUMBER): Undefine.
1186         * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1187         (DBX_REGISTER_NUMBER): Undefine.
1188         * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
1189
1190 2010-12-13  Jack Howarth <howarth@bromo.med.uc.edu>
1191             Joseph Myers <joseph@codesourcery.com>
1192
1193         PR bootstrap/46650
1194         * system.h: Include cstring for cxx bootstrap.
1195
1196 2010-12-13  Jakub Jelinek  <jakub@redhat.com>
1197
1198         PR lto/46879
1199         * lto-streamer-out.c (output_gimple_stmt): Never replace first
1200         GIMPLE_DEBUG argument with MEM_REF.
1201
1202         PR debug/46867
1203         * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
1204         (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
1205         (vt_emit_notes): Don't initialize and destroy emitted_notes.
1206
1207 2010-12-13  Nathan Froyd  <froydnj@codesourcery.com>
1208
1209         PR target/46040
1210         * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
1211         (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
1212
1213 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1214
1215         * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1216         WCHAR_TYPE_SIZE): Define.
1217         * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
1218
1219 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1220
1221         * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
1222         Don't use svr4.h.
1223
1224 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1225
1226         * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1227         WCHAR_TYPE_SIZE): Undefine.
1228         * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1229         WCHAR_TYPE_SIZE): Define.
1230         * config.gcc (mn10300-*-*): Don't use svr4.h.
1231
1232 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1233
1234         * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and redefine.
1235         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1236         * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
1237
1238 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
1239
1240         PR debug/46756
1241         * jump.c (mark_all_labels): Skip debug insns.
1242
1243 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
1244
1245         PR debug/46782
1246         * cfgcleanup.c (try_forward_edges): Skip debug insns.
1247
1248 2010-12-12  Jan Hubicka  <jh@suse.cz>
1249             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1250
1251         * varasm.c (default_function_section): Check flag_reorder_functions
1252         and targetm.have_named_sections.
1253         * config/darwin.c (darwin_function_section): Check
1254         flag_reorder_functions.
1255
1256 2010-12-12  Finn Thain  <fthain@telegraphics.com.au>
1257
1258         PR target/46179
1259         * config/m68k/m68k.c (handle_move_double): Insert calls to
1260         m68k_final_prescan_insn to clean up @TLS operand syntax.
1261
1262 2010-12-10  Sebastian Pop  <sebastian.pop@amd.com>
1263
1264         PR tree-optimization/43023
1265         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
1266         Removed.
1267         (stores_zero_from_loop): Call stmt_stores_zero.
1268         * tree-data-ref.h (stmt_stores_zero): New.
1269         * tree-loop-distribution.c (generate_memset_zero): Do not return a
1270         boolean.  Call gcc_assert on stride_of_unit_type_p.
1271         (generate_builtin): Call stmt_stores_zero.
1272         (rdg_flag_all_uses): Removed.
1273         (rdg_flag_similar_memory_accesses): Removed.
1274         (build_rdg_partition_for_component): Removed parameter
1275         other_stores.  Removed call to rdg_flag_similar_memory_accesses.
1276         (can_generate_builtin): New.
1277         (similar_memory_accesses): New.
1278         (fuse_partitions_with_similar_memory_accesses): New.
1279         (rdg_build_partitions): Call
1280         fuse_partitions_with_similar_memory_accesses.
1281
1282 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
1283
1284         PR rtl-optimization/46804
1285         * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
1286         on the setter of src_reg rather than on insn.  If it is
1287         equal to the setter's original SET_SRC, replace it with its
1288         zero or sign extension instead of dropping it.
1289
1290 2010-12-10  Richard Guenther  <rguenther@suse.de>
1291
1292         PR lto/46808
1293         * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
1294         after errors.
1295         (lto_symtab_merge_decls_1): Adjust.
1296
1297 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
1298
1299         PR middle-end/46674
1300         PR lto/43157
1301         * target.def (mangle_assembler_name): New target asm_out hook.
1302         * targhooks.c (default_mangle_assembler_name): Add default hook
1303         implementation.
1304         * targhooks.h (default_mangle_assembler_name): Add prototype.
1305         * lto-symtab.c (lto_symtab_register_decl): Use new hook when
1306         processing DECL_ASSEMBLER_NAMEs for lto symtabs.
1307         (lto_symtab_get_resolution): Likewise.
1308         (lto_cgraph_replace_node): Likewise.
1309         (lto_symtab_prevailing_decl): Likewise.
1310         * lto-streamer-out.c (write_symbol): Likewise.
1311         * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
1312         * doc/tm.texi: Regenerate.
1313         * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
1314         point at i386_pe_mangle_assembler_name.
1315         * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
1316         * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
1317         prototype.
1318
1319 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
1320
1321         * c-typeck.c (readonly_error): Delete.
1322
1323 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
1324
1325         PR rtl-optimization/46865
1326         * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
1327         ASM_OPERANDS and ASM_INPUT if integers are different, call locator_eq.
1328         * jump.c (rtx_renumbered_equal_p): Likewise.
1329
1330         PR tree-optimization/46864
1331         * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
1332         when there are EDGE_EH exit edges.
1333
1334 2010-12-10  Tobias Burnus  <burnus@net-b.de>
1335
1336         PR fortran/46540
1337         * configure.ac: Handle --disable-libquadmath-support.
1338         * doc/install.texi: Document --disable-libquadmath and
1339         --disable-libquadmath-support
1340         * configure: Regenerate.
1341         * config.in: Regenerate.
1342
1343 2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
1344             Iain Sandoe  <iains@gcc.gnu.org>
1345
1346         PR 43751/target
1347         * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
1348
1349 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
1350
1351         * config/rs6000/rs6000.c
1352         (rs6000_darwin64_record_arg_advance_recurse): Name register increment
1353         explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
1354         long doubles when we run out of regs.   Also flag that this requires
1355         stack and therefore cannot be returned by value.
1356         (rs6000_darwin64_record_arg): Update comment.
1357         (rs6000_function_value): Likewise.
1358
1359 2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1360
1361         * c-parser.c (c_parser_objc_class_definition): Recognize
1362         Objective-C 2.0 class extensions.
1363
1364 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
1365
1366         * config/darwin.c: Remove c-tree.h and c-lang.h
1367         * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
1368
1369 2010-12-10  Joern Rennecke  <amylaar@spamcop.net>
1370
1371         PR target/46881
1372         * doc/tm.texi: Regenerate.
1373         * target.def: Fix "preferred" spelling.  Refer to rclass by its
1374         exact name.
1375         * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
1376         to rclass.
1377
1378 2010-12-09  Paul Koning  <ni1d@arrl.net>
1379
1380         * config/pdp11/pdp11-protos.h (output_move_double,
1381         output_move_quad): Delete.
1382         (output_move_multiple, pdp11_expand_operands): New functions.
1383         (pdp11_action, pdp11_partorder): New enums.
1384         * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
1385         output_move_multiple.
1386         (adddi3, subdi3, negdi2): New patterns.
1387         (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
1388         (abshi2): Delete.
1389         (neghi2, negqi2): Use PDPint iterator.
1390         * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
1391         output_move_quad): Delete.
1392         (pdp11_expand_operands, output_move_multiple): New functions.
1393
1394 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1395
1396         * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1397         * config.gcc (vax-*-linux*): Don't use svr4.h.
1398
1399 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
1400
1401         * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
1402
1403 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1404
1405         * doc/extend.texi (Attribute Syntax): Correct description of
1406         attributes in pointer declarators.
1407
1408 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1409
1410         * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
1411         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
1412         mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
1413
1414 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1415
1416         * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1417         WCHAR_TYPE_SIZE): Define.
1418         * config.gcc (mep-*-*): Don't use svr4.h.
1419
1420 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1421
1422         * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
1423         WCHAR_TYPE_SIZE): Define.
1424         * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1425         WCHAR_TYPE_SIZE): Don't define.
1426         * config.gcc (mcore-*-elf): Don't use svr4.h.
1427
1428 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1429
1430         * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
1431         m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
1432
1433 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1434
1435         * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1436         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1437         * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
1438
1439 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1440
1441         * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
1442
1443 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1444
1445         * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1446         * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use svr4.h.
1447
1448 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1449
1450         * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1451         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1452         * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1453         WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
1454         * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
1455
1456 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1457
1458         * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1459         WCHAR_TYPE_SIZE): Define.
1460         * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
1461
1462 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1463
1464         * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
1465         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1466         * config.gcc (fr30-*-elf): Don't use svr4.h.
1467
1468 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1469
1470         * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1471         * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
1472
1473 2010-12-09  Richard Guenther  <rguenther@suse.de>
1474
1475         PR middle-end/46844
1476         * gimple-fold.c (canonicalize_constructor_val): Canonicalize addresses.
1477
1478 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1479
1480         * config/i386/netware.h (TARGET_POSIX_IO): Define.
1481         * config/i386/nto.h (TARGET_POSIX_IO): Define.
1482         * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
1483         * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
1484         * config/openbsd.h (TARGET_POSIX_IO): Define.
1485         * config/rtems.h (TARGET_POSIX_IO): Define.
1486         * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
1487         * config/sol2.h (TARGET_POSIX_IO): Define.
1488         * config/svr4.h (TARGET_POSIX_IO): Don't define.
1489         * config/vxworksae.h (TARGET_POSIX_IO): Define.
1490
1491 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1492
1493         * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1494         * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1495         * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1496         undefine.
1497         * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1498         undefine.
1499         * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1500         Don't undefine.
1501         * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1502         Don't undefine.
1503         * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1504         Don't undefine.
1505         * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1506         * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1507         Don't undefine.
1508         * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1509         Don't undefine.
1510         * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1511         Don't undefine.
1512         * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't define.
1513         * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1514         undefine.
1515
1516 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1517
1518         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1519         non-GNU assembler.
1520         * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1521         * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1522         * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1523         * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1524         non-GNU assembler.
1525         * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1526         * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1527
1528 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1529
1530         * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
1531         zero is the first phi parameter.
1532
1533 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1534
1535         * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
1536         * ipa-prop.c (ipa_modify_call_arguments): Use it.
1537         * tree-sra.c (splice_param_accesses): Test that all accesses have the
1538         same alias reference type.
1539         (turn_representatives_into_adjustments): Set alias_ptr_type of the
1540         adjustment.
1541
1542 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1543
1544         PR middle-end/46734
1545         * tree-sra.c (splice_param_accesses): Check that there are not
1546         multiple ADDRESSABLE types.
1547
1548 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1549
1550         * config/arc/arc.h (ASM_SPEC): Remove %{v}.
1551         * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
1552         * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
1553         * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
1554         * config/frv/frv.h (ASM_SPEC): Remove %{v}.
1555         * config/i386/linux.h (ASM_SPEC): Remove %{v}.
1556         * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
1557         * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
1558         * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
1559         * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
1560         * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
1561         * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
1562         * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
1563         * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
1564         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
1565         * config/mips/mips.h (ASM_SPEC): Remove %{v}.
1566         * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
1567         * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
1568         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
1569         * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
1570         * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
1571         * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
1572         * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
1573         * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
1574         * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
1575
1576 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1577
1578         * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1579         * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
1580         * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not %{r*:}.
1581         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not %{r*:}.
1582         * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
1583         * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1584
1585 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1586
1587         * config/alpha/freebsd.h (LINK_SPEC): Don't use %{!dynamic-linker:}.
1588         * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
1589         * config/arm/freebsd.h (LINK_SPEC): Likewise.
1590         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
1591         * config/bfin/linux.h (LINK_SPEC): Likewise.
1592         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
1593         * config/frv/linux.h (LINK_SPEC): Likewise.
1594         * config/i386/freebsd.h (LINK_SPEC): Likewise.
1595         * config/i386/freebsd64.h (LINK_SPEC): Likewise.
1596         * config/i386/linux.h (LINK_SPEC): Likewise.
1597         * config/i386/linux64.h (LINK_SPEC): Likewise.
1598         * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
1599         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
1600         * config/ia64/linux.h (LINK_SPEC): Likewise.
1601         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1602         * config/m32r/linux.h (LINK_SPEC): Likewise.
1603         * config/m68k/linux.h (LINK_SPEC): Likewise.
1604         * config/microblaze/linux.h (LINK_SPEC): Likewise.
1605         * config/mips/linux.h (LINK_SPEC): Likewise.
1606         * config/mips/linux64.h (LINK_SPEC): Likewise.
1607         * config/mips/openbsd.h (LINK_SPEC): Likewise.
1608         * config/mn10300/linux.h (LINK_SPEC): Likewise.
1609         * config/netbsd-elf.h (LINK_SPEC): Likewise.
1610         * config/pa/pa-linux.h (LINK_SPEC): Likewise.
1611         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
1612         LINK_OS_LINUX_SPEC64): Likewise.
1613         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
1614         LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC): Likewise.
1615         * config/s390/linux.h (LINK_SPEC): Likewise.
1616         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
1617         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1618         * config/sparc/linux.h (LINK_SPEC): Likewise.
1619         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1620         LINK_SPEC): Likewise.
1621         * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
1622         * config/vax/linux.h (LINK_SPEC): Likewise.
1623         * config/xtensa/linux.h (LINK_SPEC): Likewise.
1624
1625 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1626
1627         * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
1628         * config/frv/frv.h (ASM_SPEC): Likewise.
1629         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1630         * config/i386/sol2.h (ASM_SPEC): Likewise.
1631         * config/m68k/linux.h (ASM_SPEC): Likewise.
1632         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1633         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1634         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1635         * config/sol2.h (ASM_SPEC): Likewise.
1636         * config/sparc/linux.h (ASM_SPEC): Likewise.
1637         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1638         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1639         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1640         * config/svr4.h (SVR4_ASM_SPEC): Likewise.
1641
1642 2010-12-09  Richard Guenther  <rguenther@suse.de>
1643
1644         * reginfo.c (struct subregs_of_mode_node): Remove.
1645         (subregs_of_mode): Likewise.
1646         (som_hash): Likewise.
1647         (som_eq): Likewise.
1648         (invalid_mode_changes): New bitmap.
1649         (record_subregs_of_mode): Get subregs_of_mode argument.
1650         Fill in invalid_mode_changes bitmap.
1651         (find_subregs_of_mode): Get subregs_of_mode argument and pass
1652         it through.
1653         (init_subregs_of_mode): Adjust.
1654         (finish_subregs_of_mode): Likewise.
1655         (invalid_mode_change_p): Query invalid_mode_changes bitmap.
1656
1657 2010-12-09  Richard Guenther  <rguenther@suse.de>
1658
1659         * ira.c (ira): Do not call finish_subregs_of_mode.
1660         * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
1661
1662 2010-12-09  Richard Guenther  <rguenther@suse.de>
1663
1664         * rtl.h (invalid_mode_change_p): Adjust prototype.
1665         * reginfo.c (invalid_mode_change_p): Remove from argument.
1666         * ira-costs.c (print_allocno_costs): Adjust callers.
1667         (find_costs_and_classes): Likewise.
1668
1669 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
1670
1671         * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
1672         locg and stocg even in comment.
1673         (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
1674
1675         PR target/41082
1676         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
1677         instead of stve*x.
1678         (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
1679         of operand 0.
1680         * config/rs6000/altivec.md (VI_scalar): New mode attr.
1681         (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
1682         vector mode for operand 0, put operand 1 into UNSPEC.
1683
1684 2010-12-09  Yao Qi  <yao@codesourcery.com>
1685
1686         * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
1687         PREFERRED_RENAME_CLASS.
1688
1689 2010-12-08  Ian Lance Taylor  <iant@google.com>
1690
1691         * doc/sourcebuild.texi (Front End): Remove reference to
1692         snapshot-README and snapshot-index.html.
1693
1694 2010-12-08  Ian Lance Taylor  <iant@google.com>
1695
1696         * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
1697         to update_web_docs_svn.
1698         (Front End): Likewise.
1699
1700 2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
1701
1702         * gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
1703         x86_64-*-darwin* to with_cpu:-core2.
1704         * gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
1705         with movd for darwin assembler.
1706         * gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1707         (*vec_concatv2di_rex64_sse): Ditto.
1708
1709 2010-12-08  Richard Guenther  <rguenther@suse.de>
1710             Sebastian Pop  <sebastian.pop@amd.com>
1711
1712         PR tree-optimization/45230
1713         PR tree-optimization/45231
1714         PR tree-optimization/45370
1715         * sese.c (rename_uses): Returns a bool.  Call
1716         recompute_tree_invariant_for_addr_expr only on the RHS of a
1717         GIMPLE_ASSIGN.
1718         (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
1719         rename_uses returns true.
1720         * tree-ssa-copy.c (replace_exp): Add a comment about calling
1721         fold_stmt_inplace after replace_exp.
1722
1723 2010-12-08  Mike Stump  <mikestump@comcast.net>
1724
1725         PR debug/46749
1726         * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
1727         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1728         * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
1729         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1730         * collect2.c (post_ld_pass): Add.
1731         (process_args): Add.
1732         (maybe_run_lto_and_relink): Call post_ld_pass after ld.
1733         (main): Likewise.  Call process_args.
1734
1735 2010-12-08  Jakub Jelinek  <jakub@redhat.com>
1736
1737         PR middle-end/46844
1738         * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg parameter.
1739
1740 2010-12-08  Richard Earnshaw  <rearnsha@arm.com>
1741
1742         PR target/46631
1743         * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
1744         into a 16-bit instruction.
1745
1746 2010-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1747
1748         PR middle-end/42694
1749         * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
1750         where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
1751         instruction, but do optimize if y is 0.5 or 1./3. since that
1752         changes an expensive call into a cheaper one.
1753
1754 2010-12-08  Richard Guenther  <rguenther@suse.de>
1755
1756         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
1757         instead of a division to divide by BITS_PER_UNIT.
1758
1759 2010-12-08  Richard Guenther  <rguenther@suse.de>
1760
1761         * gimplify.c (gimple_tree_eq): Assert hashes are equal only
1762         when checking is enabled.
1763
1764 2010-12-07  Andrey Belevantsev  <abel@ispras.ru>
1765
1766         PR target/43603
1767         * haifa-sched.c (sched_create_recovery_edges): Update
1768         dominator info.
1769         * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
1770         after deleting an empty block.
1771         (tidy_control_flow): Also verify dominators.
1772         (sel_remove_bb): Update dominator info after removing a block.
1773         (sel_redirect_edge_and_branch_force): Assert that no unreachable
1774         blocks will be created. Update dominator info.
1775         (sel_redirect_edge_and_branch): Update dominator info when
1776         basic blocks do not become unreachable.
1777         (sel_remove_loop_preheader): Update dominator info.
1778
1779 2010-12-07  Richard Guenther  <rguenther@suse.de>
1780
1781         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1782         Reset alignment information.
1783         (bump_vector_ptr): Likewise.
1784
1785 2010-12-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1786
1787         PR middle-end/46671
1788         PR target/46685
1789         * config/pa/pa.c (pa_function_section): New function.
1790         (TARGET_ASM_FUNCTION_SECTION): Define.
1791
1792 2010-12-07  Ian Lance Taylor  <iant@google.com>
1793             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1794
1795         PR bootstrap/46810
1796         * configure.ac: Disable AC_MSG_ERROR while looking for the C++
1797         preprocessor.
1798         * configure: Rebuild.
1799
1800 2010-12-07  Paul Koning  <ni1d@arrl.net>
1801
1802         * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
1803         values with sign rather than as unsigned.
1804
1805 2010-12-07  Paul Koning  <ni1d@arrl.net>
1806
1807         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
1808         (pdp11_function_section): New function.
1809
1810 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
1811
1812         * config/mcore/mcore.c Don't include assert.h.
1813         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
1814         * config/spu/spu.c: Don't include assert.h.
1815         (spu_sms_res_mii): Use gcc_assert.
1816
1817 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
1818
1819         PR tree-optimization/42327
1820         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
1821         instead of using integer_minus_one_node.
1822
1823 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
1824
1825         PR c++/45330
1826         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
1827         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
1828
1829 2010-12-07  Richard Guenther  <rguenther@suse.de>
1830
1831         PR tree-optimization/46832
1832         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
1833         that the call has a lhs.
1834
1835 2010-12-07  Yao Qi  <yao@codesourcery.com>
1836
1837         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
1838         * regrename.c (struct du_head): Add new element length.
1839         (sort_du_head, get_element, merge, merge_sort_comparison):
1840         New functions of merge sort implementation to du_head list.
1841         (regrename_optimize): Sort du_head linked list by length.
1842         Iterate registers in a preferred-register-first order.
1843         Move some code to ...
1844         (check_new_reg_p): here.  New function.
1845         (create_new_chain):  Initialize length.
1846         (scan_rtx_reg): Increase length for non-debug insns.
1847         * target.def: New hook preferred_rename_class.
1848         * targhook.c (default_preferred_rename_class): New.
1849         * targhook.h: Declare it.
1850         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
1851         * doc/tm.texi: Regenerate.
1852
1853 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
1854
1855         PR debug/46799
1856         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
1857         instead of BUILTINS_LOCATION.
1858         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
1859         BUILTINS_LOCATION.
1860         (create_parallel_loop): Add LOC argument, use it for OMP clauses
1861         and GIMPLE_*OMP* statements.
1862         (gen_parallel_loop): Determine locus for the parallel loop, pass it
1863         to create_loop_fn and create_parallel_loop.
1864         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
1865         set_curr_insn_source_location (UNKNOWN_LOCATION).
1866
1867 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
1868             Richard Guenther  <rguenther@suse.de>
1869
1870         PR target/46737
1871         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
1872         (bfin_reorder_loops): Change type of index to intptr_t.
1873
1874 2010-12-07  Richard Guenther  <rguenther@suse.de>
1875
1876         PR tree-optimization/46726
1877         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
1878
1879 2010-12-07  Richard Guenther  <rguenther@suse.de>
1880
1881         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
1882         virtual operands.
1883
1884 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1885
1886         * c-parser.c (c_parser_typeof_specifier): Removed special
1887         treatment of objc_volatilized attribute for Objective-C.
1888
1889 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
1890
1891         * ira.c (update_equiv_regs): Prohibit move insns if
1892         pressure-sensitive scheduling was done.
1893
1894 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1895
1896         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
1897         of c_process_expr_stmt() for the iterating and collection
1898         expressions of an Objective-C fast enumeration loop.
1899
1900 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
1901
1902         PR debug/45997
1903         * dwarf2out.c (modified_type_die): If both is_const_type and
1904         is_volatile_type is set, start with DW_TAG_const_type or
1905         DW_TAG_volatile_type depending on where we get qualified type
1906         in the recursive call.
1907
1908         PR target/43897
1909         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
1910         as a store into that register.
1911
1912         PR tree-optimization/46528
1913         PR debug/46338
1914         * profile.c (branch_prob): Make sure last is never set to a debug
1915         stmt.
1916
1917         PR debug/46771
1918         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
1919         on DEBUG_INSNs.
1920
1921         PR rtl-optimization/46777
1922         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
1923         also barrier after tablejump.
1924
1925 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
1926             Richard Henderson  <rth@redhat.com>
1927
1928         PR target/46740
1929         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
1930
1931 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
1932
1933         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
1934         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
1935
1936 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
1937
1938         PR target/46735
1939         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
1940         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
1941         (int12_operand, int_2word_operand, uint16_operand): Likewise.
1942         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
1943         (uint5_operand, uint4_operand): Likewise.
1944         * config/frv/frv.h (IN_RANGE_P): Delete.
1945         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
1946         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
1947         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1948         (CONST_OK_FOR_P): Likewise.
1949         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
1950         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
1951         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
1952         (*movsicc_internal2_float, casesi): Likewise.
1953         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
1954         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
1955         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
1956         (frv_split_cond_move, frv_rtx_costs): Likewise.
1957
1958         PR target/46739
1959         * config/mmix/mmix.c (mmix_intval): Split shift count.
1960
1961 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1962
1963         * config/i386/i386.c (m_COREI7): New.
1964         (initial_ix86_tune_features): Turn on
1965         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
1966         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
1967
1968 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
1969
1970         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
1971
1972         * config/i386/driver-i386.c (host_detect_local_cpu): Support
1973         Sandy Bridge.
1974
1975         * config/i386/i386.c (override_options): Handle "corei7-avx".
1976
1977         * doc/invoke.texi: Document corei7-avx.
1978
1979 2010-12-06  Richard Guenther  <rguenther@suse.de>
1980
1981         PR tree-optimization/46806
1982         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
1983         coalesce different types.
1984
1985 2010-12-06  Richard Guenther  <rguenther@suse.de>
1986
1987         PR tree-optimization/46785
1988         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
1989         call statements as operand definition.
1990
1991 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
1992
1993         * doc/tm.texi.in: Fix typo.
1994         * doc/tm.texi: Regenerate.
1995
1996 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1997
1998         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
1999         last change.
2000
2001 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
2002
2003         * c-family/c-common.h: Removed the declarations of all the objc_
2004         callbacks, and moved them into c-objc.h.  Removed
2005         objc_ivar_visibility_kind and moved it into c-objc.h.
2006         * c-family/c-objc.h: New file.
2007         * c-family/c-common.c: Include c-objc.h.
2008         * c-family/c-format.c: Same change.
2009         * c-family/stub-objc.c: Same change.
2010         * c-decl.c: Include c-family/c-objc.h.
2011         * c-parser.c: Same change.
2012         * c-typeck.c: Same change.
2013         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
2014         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
2015         (c-parser.o): same change.
2016         (c-typeck.o): Same change.
2017         (c-family/c-format.o): Same change.
2018         (c-family/stub-objc.o): Same change.
2019         (c-family/c-common.o): Same change.
2020         (PLUGIN_HEADERS): Added c-family/c-objc.h.
2021
2022 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2023
2024         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
2025         --with-dwarf2 option.
2026
2027 2010-12-03  Jan Hubicka  <jh@suse.cz>
2028
2029         * lto-streamer-in.c (input_cfg): Fix pasto.
2030
2031 2010-12-03  Jan Hubicka  <jh@suse.cz>
2032
2033         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
2034         and functions with user asm defined names.
2035         (varpool_externally_visible_p): Do not localize vars with user
2036         asm defined names.
2037
2038 2010-12-03  Jan Hubicka  <jh@suse.cz>
2039
2040         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
2041         to prevent mangling with lto frontend.
2042
2043 2010-12-03  Jan Hubicka  <jh@suse.cz>
2044
2045         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
2046         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
2047
2048 2010-12-03  Jan Hubicka  <jh@suse.cz>
2049
2050         PR tree-optimization/46760
2051         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
2052         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
2053         * lto-cgraph.c (lto_output_edge): Fix assert.
2054         (lto_output_node): Output count_materialization_scale.
2055         (output_profile_summary): Output only runs and sum_max.
2056         (input_node): Input count_materialization_scale.
2057         (input_profile_summary): Read data into file specific gcov summary.
2058         (merge_profile_summaries): New function.
2059         (input_cgraph): Update call of input_profile_summary;
2060         call merge_profile_summaries.
2061         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
2062         rescale counts at read in.
2063         (intput_bb): Likewise.
2064         (input_function): Update call of input_bb.
2065         (lto_read_body): Update call of input_cfg.
2066         * lto-streamer.h: Inlclude gcov-io.h
2067         (lto_file_decl_data): Add gcov_ctr_summary.
2068
2069 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
2070
2071         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
2072         (Cond Exec Macros): ... to this.
2073         * doc/tm.texi: Regenerate.
2074
2075 2010-12-03  Jason Merrill  <jason@redhat.com>
2076
2077         PR debug/46123
2078         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
2079         a declaration DIE.
2080
2081 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
2082
2083         * config/arm/arm.c (arm_legitimate_index_p): Split
2084         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
2085         slightly larger constants in the latter case.
2086         (thumb2_legitimate_index_p): Likewise.
2087
2088 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
2089
2090         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
2091         * gcc.c (cc1_options): Add %{Qy:}.
2092
2093 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
2096         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2097         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
2098
2099 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
2100
2101         PR rtl-optimization/45354
2102         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
2103         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
2104         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
2105         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
2106
2107 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2108
2109         * basic-block.h (struct edge_prediction): Remove forward declaration.
2110         * tree-flow.h (struct edge_prediction): Move from here...
2111         * predict.c (struct edge_prediction): ...to here.
2112         * cselib.h (struct elt_list): Move from here...
2113         * cselib.c (struct elt_list): ...to here.
2114
2115 2010-12-02  Ian Lance Taylor  <iant@google.com>
2116
2117         * gcc.c (default_compilers): Add entry for ".go".
2118         * common.opt: Add -static-libgo as a driver option.
2119         * doc/install.texi (Configuration): Mention libgo as an option for
2120         --enable-shared.  Mention go as an option for --enable-languages.
2121         * doc/invoke.texi (Overall Options): Mention .go as a file name
2122         suffix.  Mention go as a -x option.
2123         * doc/frontends.texi (G++ and GCC): Mention Go as a supported language.
2124         * doc/sourcebuild.texi (Top Level): Mention libgo.
2125         * doc/standards.texi (Standards): Add section on Go language.
2126         Move references for other languages into their own section.
2127         * doc/contrib.texi (Contributors): Mention that I contributed the
2128         Go frontend.
2129
2130 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2131
2132         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
2133         (const_call_expr_arg_iterator_d): Likewise.
2134         (expanded_location): Likewise.
2135         * c-tree.h (struct c_arg_tag_d): Likewise.
2136         * dwarf2out.c (struct cfa_loc): Likewise.
2137         (struct skeleton_chain_struct): Likewise.
2138         * except.c (struct ttypes_filter): Likewise.
2139         * cselib.h (struct cselib_val_struct): Likewise.
2140         (elt_loc_list): Likewise.
2141         (elt_list): Likewise.
2142         * varasm.c (struct addr_const): Likewise.
2143         * tree-flow.h (struct edge_prediction): Likewise.
2144         (struct int_tree_map): Likewise.
2145         (struct _edge_var_map): Likewise.
2146
2147 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
2148
2149         PR target/46768
2150         * config/i386/i386.c (initial_ix86_tune_features): Turn on
2151         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
2152
2153 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
2154
2155         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
2156
2157 2010-12-02  Ian Lance Taylor  <iant@google.com>
2158
2159         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
2160         header files unordered_map, tr1/unordered_map, and ext/hash_map.
2161         * configure, config.in: Rebuild.
2162
2163 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2164
2165         PR target/46685
2166         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
2167         (sparc_expand_move): Call it to decide whether to emit the special
2168         mov{si,di}_pic_label_ref patterns.
2169         (sparc_legitimize_pic_address): Call it to decide whether to emit
2170         the regular PIC sequence for labels.  Fix long line.
2171         (sparc_file_end): Set is_thunk for the PIC helper.
2172
2173 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
2174
2175         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
2176         for a non-shared type.
2177
2178 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
2179
2180         PR middle-end/45297
2181         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
2182         with MEM_REFs as POINTER_PLUS_EXPR.
2183
2184 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2185
2186         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
2187         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
2188         mentioning /lib/elf.
2189
2190 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2191
2192         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
2193         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
2194         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
2195         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
2196         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
2197         * config/sol2.h (LINK_SPEC): Remove %{b}.
2198         * config/svr4.h (LINK_SPEC): Remove %{b}.
2199
2200 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2201
2202         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
2203         * config/i386/linux.h (LINK_SPEC): Cut long comment.
2204         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
2205         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
2206         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
2207         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
2208         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2209         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
2210         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2211         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2212
2213 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2214
2215         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
2216         -ftraditional.
2217
2218 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2219
2220         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
2221         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
2222         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
2223         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
2224         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
2225         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
2226         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
2227         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
2228         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
2229         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
2230         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
2231         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
2232         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
2233         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
2234         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
2235         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
2236         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
2237         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
2238
2239 2010-12-02  Paul Koning  <ni1d@arrl.net>
2240
2241         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
2242         opcodes if CC_NO_OVERFLOW is set.
2243         (notice_update_cc_on_set): Correct setting of CC0 as a side
2244         effect; set CC_NO_OVERFLOW for cases where C flag is not meaningful.
2245
2246 2010-12-02  Ian Lance Taylor  <iant@google.com>
2247
2248         * doc/install.texi (Configuration): Update default for
2249         --with-boot-ldflags.
2250
2251 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
2252
2253         PR c/45062
2254         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
2255         !funcdef_flag.
2256
2257 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
2258
2259         PR tree-optimization/45199
2260         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
2261         (stores_zero_from_loop): Call
2262         mem_write_stride_of_same_size_as_unit_type_p.
2263         * tree-data-ref.h (stride_of_unit_type_p): New.
2264         * tree-loop-distribution.c (generate_memset_zero): Simplified.
2265         Call stride_of_unit_type_p.
2266         (build_rdg_partition_for_component): Do not call
2267         rdg_flag_similar_memory_accesses when
2268         flag_tree_loop_distribute_patterns is set.
2269
2270 2010-12-02  Richard Guenther  <rguenther@suse.de>
2271
2272         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
2273         sign-changing conversions for induction detection.
2274
2275 2010-12-02  Richard Guenther  <rguenther@suse.de>
2276
2277         PR tree-optimization/46723
2278         * tree-vect-loop.c (get_initial_def_for_induction): Strip
2279         conversions from the induction evolution and apply it to
2280         the result instead.
2281         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
2282         assigns for induction defs.
2283
2284 2010-12-02  Richard Guenther  <rguenther@suse.de>
2285
2286         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
2287         the case we need to split the edge and not the block.
2288
2289 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
2290
2291         DFA model for Core 2 and Core i7 scheduling.
2292
2293         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
2294         * config/i386/i386.c (ix86_option_override_internal): Update entries
2295         for Core 2 and Core i7.
2296         (ix86_issue_rate): Set issue rate to 3 [be realistic].
2297         * config/i386/i386.md: Include "core2.md".
2298         (define_attr cpu): Add "corei7".
2299
2300 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
2301
2302         Define tuning for Core 2 and Core i7.
2303
2304         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
2305         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
2306         (m_CORE2): Replace with m_CORE2_{32,64}.
2307         (m_CORE2I7{,_32,_64}): New macros.
2308         (m_GENERIC32, m_GENERIC64): Update.
2309         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
2310         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
2311         set m_CORE2I7_64 iff m_GENERIC64.
2312         (processor_target_table): Use generic costs for Core 2 and Core i7.
2313         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
2314         (ix86_issue_rate): Remove entry for Core 2.
2315         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
2316         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
2317         (TARGET_CORE2): Update.
2318         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
2319         (PROCESSOR_CORE2): Remove.
2320
2321 2010-12-02  Richard Guenther  <rguenther@suse.de>
2322
2323         * lto-streamer.h (LTO_major_version): Bump to 2.
2324
2325 2010-12-02  Richard Guenther  <rguenther@suse.de>
2326
2327         PR lto/44871
2328         * gimple.c (canonical_type_hash_cache): New hashtable.
2329         (gimple_type_hash): Make a wrapper around ...
2330         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
2331         (gimple_canonical_type_hash): Likewise.
2332         (gtc_visit): Take a gtc_mode argument.
2333         (gimple_types_compatible_p_1): Likewise. Do not compare struct
2334         tag names or field names when computing canonical types.
2335         (gimple_types_compatible_p): Adjust.
2336         (visit): Take a gtc_mode argument.
2337         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
2338         names or field names when computing hashes of canonical types.
2339         (gimple_register_canonical_type): Use gimple_canonical_type_hash
2340         for the hash.
2341         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
2342         (free_gimple_type_tables): Free canonical_type_hash_cache.
2343
2344 2010-12-02  Richard Guenther  <rguenther@suse.de>
2345             Ira Rosen  <irar@il.ibm.com>
2346
2347         PR tree-optimization/46663
2348         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
2349         FUNCTION_DECL exists and that it's a builtin.
2350
2351 2010-12-02  Jie Zhang  <jie@codesourcery.com>
2352
2353         PR middle-end/46674
2354         * varasm.c (compute_visible_aliases): Handle user set assembler name.
2355
2356 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2357
2358         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2359         thinko regarding setting -mno-<xxx> debug switches.
2360         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
2361
2362 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2363
2364         * intl.c: Don't include tm.h.
2365         * Makefile.in (intl.o): Don't depend on $(TM_H).
2366
2367 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2368
2369         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
2370         unused warning.
2371         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2372
2373 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2374
2375         * graphite-sese-to-poly.c (analyze_drs): Removed.
2376         (build_scop_drs): Do not call analyze_drs.
2377         (analyze_drs_in_stmts): New.
2378         (insert_stmts): New.
2379         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
2380         (insert_out_of_ssa_copy_on_edge): Same.
2381         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
2382         (rewrite_phi_out_of_ssa): Same.
2383         (rewrite_cross_bb_scalar_dependence): Same.
2384         (split_reduction_stmt): Move data references in the new basic blocks.
2385         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
2386
2387 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2388
2389         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
2390
2391 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2392
2393         PR middle-end/45297
2394         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
2395         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
2396         * graphite-poly.h (new_poly_bb): Update declaration.
2397         (gbb_from_bb): Moved here...
2398         (pbb_from_bb): New.
2399         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
2400         Removed.
2401         (graphite_stmt_p): Removed.
2402         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
2403         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
2404         new_poly_bb.
2405         (build_scop_bbs_1): Do not pass in sbitmap reductions.
2406         (build_scop_bbs): Same.
2407         (gbb_from_bb): ... from here.
2408         (add_conditions_to_constraints): Moved up.
2409         (analyze_drs): New.
2410         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
2411         not contain data references.
2412         (new_pbb_from_pbb): New.
2413         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
2414         block is split.
2415         (rewrite_close_phi_out_of_ssa): Update call to
2416         insert_out_of_ssa_copy_on_edge.
2417         (rewrite_reductions_out_of_ssa): Now static.
2418         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2419         (split_pbb): New.
2420         (split_reduction_stmt): Call split_pbb.
2421         (translate_scalar_reduction_to_array): Pass in the scop, do not
2422         pass in the sbitmap reductions.
2423         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
2424         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
2425         (rewrite_commutative_reductions_out_of_ssa): Same.
2426         (build_poly_scop): Call build_scop_bbs,
2427         rewrite_commutative_reductions_out_of_ssa,
2428         rewrite_reductions_out_of_ssa, and
2429         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
2430         before scop_to_lst.
2431         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
2432         Removed declaration.
2433         (rewrite_reductions_out_of_ssa): Same.
2434         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2435         (build_scop_bbs): Same.
2436         * graphite.c (graphite_transform_loops): Do not initialize reductions.
2437         Do not call build_scop_bbs,
2438         rewrite_commutative_reductions_out_of_ssa,
2439         rewrite_reductions_out_of_ssa, and
2440         rewrite_cross_bb_scalar_deps_out_of_ssa.
2441         * sese.h (struct gimple_bb): Add field pbb.
2442         (GBB_PBB): New.
2443
2444 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2445
2446         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
2447         New.
2448         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
2449         handle_scalar_deps_crossing_scop_limits.
2450         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
2451         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
2452
2453 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2454
2455         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
2456         when replacing a constant in an ADDR_EXPR.
2457
2458 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2459
2460         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
2461         for the stride.
2462         (lst_do_strip_mine): Same.
2463         (scop_do_strip_mine): Same.
2464         * graphite-poly.c (apply_poly_transforms): Update call to
2465         scop_do_strip_mine.
2466         * graphite-poly.h (scop_do_strip_mine): Update declaration.
2467
2468 2010-12-01  Jan Hubicka  <jh@suse.cz>
2469
2470         * tree.c (build_common_builtin_nodes): Do not initialize
2471         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
2472         * builtins.c (expand_builtin_profile_func): Remove.
2473         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
2474         BUILT_IN_PROFILE_FUNC_EXIT.
2475         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
2476         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
2477         * gimplify.c (gimplify_function_tree): Reorganize code calling
2478         profiling functions.
2479
2480 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2481
2482         * opts.c: Expand comment on tm.h include.
2483
2484 2010-12-01  Yao Qi  <yao@codesourcery.com>
2485
2486         * config/arm/predicates.md ("vfp_register_operand"): Return true for
2487         VFP_D0_D7_REGS classes.
2488
2489 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2490
2491         * common.opt (flag_stack_check): New Variable entry.
2492         (fcompare-debug-second): Use Var.
2493         * flags.h (flag_compare_debug, flag_stack_check): Remove.
2494         * opts.c (flag_compare_debug): Remove.
2495         (common_handle_option): Don't handle OPT_fcompare_debug_second.
2496         Set opts->x_flag_stack_check for OPT_fstack_check_.
2497         * toplev.c (flag_stack_check): Remove.
2498
2499 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2500
2501         * common.opt (main_input_filename, main_input_basename,
2502         main_input_baselength): New Variable entries.  From toplev.c.
2503         * final.c (output_quoted_string): Move from toplev.c.
2504         * output.h (output_quoted_string): Move from toplev.h.
2505         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
2506         access main_input_filename, main_input_baselength and
2507         main_input_basename.
2508         * targhooks.c: Include intl.h and opts.h.
2509         (option_affects_pch_p, default_get_pch_validity): Move from toplev.c.
2510         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
2511         Move from toplev.h.
2512         * toplev.c (main_input_filename, main_input_basename,
2513         main_input_baselength): Move to common.opt.
2514         (output_quoted_string): Move to final.c.
2515         (warn_deprecated_use): Move to tree.c.
2516         (option_affects_pch_p, default_get_pch_validity,
2517         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
2518         * toplev.h (skip_leading_substring): Move to tree-dump.c.
2519         (warn_deprecated_use): Move to tree.h.
2520         (output_quoted_string): Move to output.h.
2521         (main_input_filename, main_input_basename, main_input_baselength):
2522         Move to common.opt.
2523         (default_get_pch_validity, default_pch_valid_p): Move to targhooks.c.
2524         * tree-dump.c (skip_leading_substring): Move from toplev.h.
2525         * tree.c (warn_deprecated_use): Move from toplev.c.
2526         * tree.h (warn_deprecated_use): Move from toplev.h.
2527         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
2528         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2529         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
2530         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
2531         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
2532         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
2533         config/mcore/mcore.c, config/mep/mep.c,
2534         config/microblaze/microblaze.c, config/mips/mips.c,
2535         config/mmix/mmix.c, config/mn10300/mn10300.c,
2536         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
2537         config/picochip/picochip.c, config/s390/s390.c,
2538         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
2539         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
2540         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
2541         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
2542         varasm.c, xcoffout.c: Don't include toplev.h.
2543         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
2544         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
2545         varasm.o, xcoffout.o): Update dependencies.
2546         * config/arm/t-arm (arm.o): Update dependencies.
2547         * config/spu/t-spu-elf (spu.o): Update dependencies.
2548
2549 2010-12-01  Richard Guenther  <rguenther@suse.de>
2550
2551         PR tree-optimization/46730
2552         * value-prof.c (gimple_ic): Always generate a separate merge BB.
2553
2554 2010-11-30  Ian Lance Taylor  <iant@google.com>
2555
2556         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
2557         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
2558         * config/i386/linux64.h (ASM_SPEC): Likewise.
2559         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
2560         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
2561         * config/i386/vxworks.h (ASM_SPEC): Likewise.
2562         * config/i386/x86-64.h (ASM_SPEC): Likewise.
2563         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
2564         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
2565
2566 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2567
2568         * c-decl.c (finish_function): Call objc_finish_function in
2569         Objective-C.
2570         * c-typeck.c (convert_for_assignment): Do not call
2571         objc_type_quals_match().
2572
2573 2010-11-30  Richard Guenther  <rguenther@suse.de>
2574
2575         PR tree-optimization/46722
2576         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
2577         operands as arguments.
2578         (execute_optimize_widening_mul): Also handle power of two as
2579         multiplication.
2580
2581 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2582
2583         PR middle-end/46709
2584         * cgraphunit.c (process_function_and_variable_attributes): Fix
2585         cut'n'pasteo.
2586
2587 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2588
2589         * hwint.c:  New.  Extracted from toplev.c.
2590         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2591         Move from toplev.h.
2592         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2593         Move to hwint.c.
2594         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2595         Move to hwint.h.
2596         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
2597         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
2598         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
2599         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
2600         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
2601         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
2602         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
2603         tree-vrp.c: Don't include toplev.h.
2604         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
2605         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
2606         toplev.h in generated output.
2607         * Makefile.in (OBJS-common): Add hwint.o.
2608         Dependencies for above files changed to remove toplev.h.
2609         (hwint.o): New.
2610         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
2611         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on toplev.h.
2612         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
2613         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
2614
2615 2010-11-30  Richard Guenther  <rguenther@suse.de>
2616
2617         PR tree-optimization/46717
2618         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
2619         call.  Manually create EH edges for the direct call and update
2620         target PHI nodes.
2621
2622 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2623
2624         * diagnostic-core.h: Include bversion.h.
2625         * toplev.h: Don't include input.h or bversion.h.
2626         (parse_optimize_options): Don't declare here.
2627         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
2628         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
2629         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
2630         config/host-darwin.c, config/i386/host-cygwin.c,
2631         config/i386/host-mingw32.c, config/i386/msformat-c.c,
2632         config/i386/netware.c, config/i386/nwld.c,
2633         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
2634         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
2635         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
2636         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
2637         config/score/score3.c, config/score/score7.c,
2638         config/sh/symbian-base.c, config/sh/symbian-c.c,
2639         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
2640         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
2641         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
2642         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
2643         graphite-blocking.c, graphite-clast-to-gimple.c,
2644         graphite-dependences.c, graphite-flattening.c,
2645         graphite-interchange.c, graphite-poly.c,
2646         graphite-scop-detection.c, graphite.c, haifa-sched.c,
2647         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
2648         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
2649         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
2650         lto-opts.c, lto-section-in.c, lto-section-out.c,
2651         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
2652         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
2653         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
2654         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
2655         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
2656         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
2657         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
2658         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
2659         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
2660         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2661         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
2662         include toplev.h.
2663         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
2664         toplev.h.  Dependencies for above files and c-family files changed
2665         to remove $(TOPLEV_H) or toplev.h.
2666         (C_TREE_H): Don't include $(TOPLEV_H).
2667         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
2668         bversion.h.
2669         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
2670         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
2671         config/t-darwin, config/t-sol2,
2672         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
2673         Dependencies for above files changed to remove $(TOPLEV_H) or
2674         toplev.h.
2675
2676 2010-11-30  Richard Guenther  <rguenther@suse.de>
2677
2678         PR lto/44986
2679         * gcc.c (main): Use the first input with a compiler as infile
2680         for link spec processing.
2681
2682 2010-11-30  Richard Guenther  <rguenther@suse.de>
2683
2684         PR lto/45949
2685         * cgraphunit.c (ipa_passes): Stop after errors from small IPA passes.
2686
2687 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
2688
2689         * gcc-plugin.h: Include coretypes.h.
2690         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
2691
2692 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2693
2694         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
2695         * ggc-none.c (ggc_internal_alloc_zone_stat)
2696         (ggc_internal_cleared_alloc_zone_stat): New.
2697
2698 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2699
2700         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
2701         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
2702         (rs6000_emit_prologue): Don't set PIC register if
2703         TARGET_SINGLE_PIC_BASE.
2704         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
2705         * doc/invoke.texi (msingle-pic-base): Document.
2706
2707 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
2708
2709         PR driver/46712
2710         * exec-tool.in (id): New.
2711         Check and export LT_RCU_$id instead of LT_RCU.
2712
2713 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
2714
2715         PR tree-optimization/46675
2716         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
2717         in offset calculation.
2718
2719 2010-11-29  Jan Hubicka  <jh@suse.cz>
2720
2721         * collect2.c (main): Do not imply verbose output with
2722         LTO and linker plugin.
2723
2724 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
2725
2726         * dwarf2out.c (print_die): Print the address of the current DIE or
2727         of any DIE referenced by the current one.
2728
2729 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
2730
2731         PR debug/46101
2732         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New function.
2733         (scope_die_for, gen_type_die_for_member): Replace uses of
2734         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
2735
2736 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
2737
2738         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
2739         (darwin_asm_declare_object_name): Correct spelling.
2740         (darwin_output_aligned_bss): Likewise.
2741
2742 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
2743             Mike Stump  <mrs@gcc.gnu.org>
2744
2745         PR target/26427
2746         PR target/33120
2747         PR testsuite/35710
2748         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
2749         (ASM_OUTPUT_LOCAL): Likewise.
2750         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
2751         (darwin_output_aligned_bss): Likewise.
2752         (darwin_asm_output_aligned_decl_local): Likewise.
2753         (darwin_asm_output_aligned_decl_common): Likewise.
2754         (darwin_use_anchors_for_symbol_p): Likewise.
2755         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
2756         (TARGET_ASM_OUTPUT_ANCHOR): Define.
2757         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
2758         (DARWIN_SECTION_ANCHORS): Set to 1.
2759         * config/darwin.c (emit_aligned_common): New var.
2760         (darwin_init_sections): Check that the Darwin private zero-size section
2761         marker is in range.
2762         (darwin_text_section): Check for zero-sized objects.
2763         (darwin_mergeable_string_section): Likewise.
2764         (darwin_mergeable_constant_section): Likewise.
2765         (machopic_select_section): Adjust to check for zero-sized objects.
2766         Assert that OBJC meta data are non-zero sized.
2767         (darwin_asm_declare_object_name): New.
2768         (darwin_asm_declare_constant_name): Adjust for zero-sized
2769         object sections.
2770         (BYTES_ZFILL): Define.
2771         (darwin_emit_weak_or_comdat): New.
2772         (darwin_emit_local_bss): New.
2773         (darwin_emit_common): New.
2774         (darwin_output_aligned_bss): New.
2775         (darwin_asm_output_aligned_decl_common): New.
2776         (darwin_asm_output_aligned_decl_local): New.
2777         (darwin_file_end): Disable subsections_via_symbols when section
2778         anchoring is active.
2779         (darwin_asm_output_anchor): Re-enable.
2780         (darwin_use_anchors_for_symbol_p): New.
2781         (darwin_override_options): Check for versions that can emit
2782         aligned common.  Update usage of flags to current.
2783         * config/darwin-sections.def: Update comments and flags for
2784         non-anchor sections.  zobj_const_section, zobj_data_section,
2785         zobj_bss_section, zobj_const_data_section: New.
2786         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
2787         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
2788         (L2_MAX_OFILE_ALIGNMENT): Define.
2789         (ASM_OUTPUT_ALIGNED_BSS): Define.
2790         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2791         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2792         (SECTION_NO_ANCHOR): Define.
2793         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
2794         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
2795
2796 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
2797
2798         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
2799         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
2800         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
2801         Conditionally define.
2802         (GET_ENVIRONMENT): Poison.
2803         * configure.ac: Don't test for mincore.
2804         * configure: Regenerate.
2805         * config.in: Regenerate.
2806         * collect2-aix.c: Don't include <sys/mman.h>.
2807         * collect2.c: Don't include <signal.h>.
2808         (SIGCHLD): Don't define.
2809         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
2810         * config/alpha/alpha.c: Include "splay-tree.h" instead of
2811         <splay-tree.h>.
2812         * config/arm/arm.c (arm_target_help): Use getenv instead of
2813         GET_ENVIRONMENT.
2814         * config/avr/driver-avr.c: Don't include <stdlib.h>.
2815         * config/frv/frv.c: Don't include <ctype.h>.
2816         * config/host-darwin.c: Don't include <sys/mman.h>.
2817         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
2818         (MAP_FAILED): Don't define.
2819         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
2820         * config/host-solaris.c: Don't include <sys/mman.h>.
2821         * config/i386/cygming.h: Don't include <stdio.h>.
2822         * config/i386/driver-i386.c: Don't include <stdlib.h>.
2823         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
2824         * config/iq2000/iq2000.c: Don't include <signal.h>.
2825         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
2826         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
2827         * config/mep/mep-pragma.c: Don't include <stdio.h>.
2828         * config/microblaze/microblaze.c: Don't include <signal.h>.
2829         * config/mips/mips.c: Don't include <signal.h>.
2830         * config/rs6000/host-darwin.c: Don't include <signal.h>.
2831         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
2832         * defaults.h (GET_ENVIRONMENT): Don't define.
2833         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
2834         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
2835         (SIGCHLD, MAP_FAILED, kill): Don't define.
2836         (process_command): Use getenv instead of GET_ENVIRONMENT.
2837         * genhooks.c: Don't include <string.h>.
2838         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
2839         <sys/types.h>.
2840         (MAP_FAILED): Don't define.
2841         * ggc-page.c Don't include <sys/mman.h>.
2842         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2843         * ggc-zone.c: Don't include <sys/mman.h>.
2844         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2845         * graph.c: Include "config.h" instead of <config.h>.
2846         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
2847         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
2848         (SIGCHLD, kill): Don't define.
2849         * mips-tfile.c: Don't include <signal.h>.
2850         * opts.c: Don't include <signal.h> or <sys/resource.h>.
2851         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
2852         * passes.c: Don't include <signal.h>, <sys/resource.h> or
2853         <sys/times.h>.
2854         * sparseset.h: Don't include <assert.h>.
2855         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
2856         * tlink.c: Don't include "libiberty.h".
2857         * toplev.c: Don't include <signal.h> or <sys/times.h>.
2858         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
2859         * tree-switch-conversion.c: Don't include <signal.h>.
2860         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
2861
2862 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2863
2864         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
2865         c_parser_objc_try_catch_finally_statement for consistency with the
2866         C++ parser.  Parse @catch(...) and pass NULL_TREE to
2867         objc_begin_catch_clause() in that case.  Improved error recovery.
2868         Reorganized code to be almost identical to
2869         cp_parser_objc_try_catch_finally_statement.
2870
2871 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
2872
2873         PR tree-optimization/46621
2874         * gimple.h: Don't include tm.h or hard-reg-set.h .
2875         * Makefile.in (GIMPLE_H): Remove $(TM_H).
2876
2877         PR bootstrap/44756
2878         * cppbuiltin.c: Include target.h .
2879         (define_builtin_macros_for_type_sizes):
2880         Use targetm.float_words_big_endian.
2881
2882 2010-11-27  Jan Hubicka  <jh@suse.cz>
2883
2884         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
2885         and output cold_text_section_label.
2886         (dwarf2out_init): Don't do that there.
2887         (dwarf2out_finish): Handle cold section end label only if cold
2888         section was used.
2889
2890 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
2891
2892         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
2893         VLA variables.
2894
2895 2010-11-27  Richard Guenther  <rguenther@suse.de>
2896
2897         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
2898         (gimple_assign_ssa_name_copy_p): Likewise.
2899         (gimple_assign_unary_nop_p): Use is_gimple_assign.
2900         (is_gimple_cast): Remove.
2901         (gimple_assign_single_p): Move ...
2902         * gimple.h (gimple_assign_single_p): ... here.
2903         (is_gimple_cast): Remove.
2904         (gimple_assign_rhs_code): Simplify.
2905         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
2906         instead of is_gimple_cast.
2907         * ipa-type-escape.c (look_for_casts): Likewise.
2908
2909 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
2910
2911         * doc/options.texi (Enum, EnumValue): Document new record types.
2912         (Enum): Document new option flag.
2913         * opt-functions.awk
2914         * optc-gen.awk: Handle enumerated option arguments.
2915         * opth-gen.awk: Handle enumerated option arguments.
2916         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
2917         enum_value_to_arg): New.
2918         (decode_cmdline_option): Handle enumerated arguments.
2919         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
2920         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
2921         * opts.c (print_filtered_help, print_specific_help): Take
2922         lang_mask arguments.
2923         (print_filtered_help): Handle printing values of enumerated
2924         options.  Print possible arguments for enumerated options.
2925         (print_specific_help): Update call to print_filtered_help.
2926         (common_handle_option): Update calls to print_specific_help.  Use
2927         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
2928         handle OPT_ffp_contract_, OPT_fexcess_precision_,
2929         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
2930         OPT_fira_region_ here.
2931         * opts.h (enum cl_var_type): Add CLVC_ENUM.
2932         (struct cl_option): Add var_enum.
2933         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
2934         struct cl_enum, cl_enums, cl_enums_count): New.
2935         (CL_ERR_ENUM_ARG): Define.
2936         (CL_ERR_NEGATIVE): Update value.
2937         (enum_value_to_arg): Declare.
2938         * common.opt (flag_ira_algorithm, flag_ira_region,
2939         flag_fp_contract_mode, flag_excess_precision_cmdline,
2940         default_visibility, flag_tls_default): Remove Variable entries.
2941         (help_enum_printed): New Variable.
2942         (fdiagnostics-show-location=): Use Enum.  Add associated
2943         SourceInclude, Enum and EnumValue entries.
2944         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
2945         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
2946         associated Enum and EnumValue entries.
2947
2948 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
2949
2950         PR target/46623
2951         * config/microblaze/microblaze.c (microblaze_block_move_straight):
2952         Use XALLOCAVEC.
2953         (microblaze_option_override): Don't use C++ style comments.
2954         (save_restore_insns): Remove unused variable base_offset.
2955         (microblaze_expand_prologue): Remove unused variable insn.
2956         (microblaze_secondary_reload): Adjust type to match target.h .
2957         (microblaze_elf_in_small_data_p): Move declarations to start of block.
2958         (microblaze_expand_move): Likewise.
2959         * config/microblaze/microblaze.h (LARGE_INT):
2960         Avoid signed / unsigned comparisons.
2961         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
2962         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
2963         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
2964
2965 2010-11-26  Michael Matz  <matz@suse.de>
2966
2967         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
2968
2969         * passes.c (init_optimization_passes): Remove superfluous
2970         copy-prop pass.
2971
2972 2010-11-26  Richard Guenther  <rguenther@suse.de>
2973
2974         PR lto/46648
2975         * gimple.c (gtc_visit): Do not return true for members of an
2976         SCC still being processed but the current lattice value of
2977         the member.  Treat SCC members comparison state as lattice,
2978         starting at equal, eventually dropping to unequal.
2979         (gimple_types_compatible_p_1): Likewise.
2980
2981 2010-11-26  Richard Guenther  <rguenther@suse.de>
2982
2983         PR middle-end/46559
2984         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
2985         for location list processing.
2986
2987 2010-11-26  Richard Guenther  <rguenther@suse.de>
2988
2989         PR lto/46560
2990         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
2991         flags manually.
2992
2993 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2994
2995         * config/s390/s390.c (print_operand_address): Replace assert with
2996         error message.
2997         (print_operand): Replace assertions, gcc_unreachable and
2998         fatal_insn with error messages.
2999
3000 2010-11-26  Richard Guenther  <rguenther@suse.de>
3001
3002         PR tree-optimization/46665
3003         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
3004
3005 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
3006
3007         * config/arm/arm.c (arm_option_override): enable loop array
3008         prefetching at -O3 for suitable targets, and configure params.
3009         * config/arm/arm-protos.h (struct tune_params): Add fields for
3010         configuring loop array prefetching.
3011
3012 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
3013
3014         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
3015
3016 2010-11-26  Richard Guenther  <rguenther@suse.de>
3017
3018         PR tree-optimization/46664
3019         * tree-affine.c (aff_combination_to_tree): Add rest last.
3020
3021 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3022
3023         PR target/33637
3024         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
3025         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
3026         * configure: Regenerated.
3027         * exec-tool.in: Not quoting command, may have extra arguments.
3028
3029 2010-11-26  Richard Guenther  <rguenther@suse.de>
3030
3031         PR tree-optimization/46528
3032         PR debug/46338
3033         * profile.c (branch_prob): Do not split blocks based on locations
3034         from debug statements.
3035
3036 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
3037
3038         PR middle-end/46647
3039         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
3040         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
3041
3042         PR bootstrap/45700
3043         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
3044         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
3045         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
3046         build6_loc): Define.
3047         * fold-const.c (protected_set_expr_location_unshare): New inline.
3048         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
3049         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
3050         pedantic_omit_one_operand_loc, omit_two_operands_loc,
3051         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
3052         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
3053         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
3054         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
3055         instead of buildN followed by SET_EXPR_LOCATION or
3056         protected_set_expr_location.
3057         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
3058         Use buildN_stat_loc instead of buildN_stat followed by
3059         SET_EXPR_LOCATION.
3060
3061 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
3062
3063         * Makefile.in (s-tm-texi): Remove spurous tab.
3064
3065 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
3066
3067         PR debug/46258
3068         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
3069         debug stmts.
3070
3071 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
3072
3073         * toplev.c (finalize): Add no_backend parameter.  Don't finish
3074         passes when preprocessing only.  Adjust...
3075         (do_compile): ... caller.
3076
3077 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3078
3079         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
3080         flag_unsafe_math_optimizations.
3081         (negsf2): Likewise.
3082         Move fnegabs related patterns together.  Only use fmpynfadd instruction
3083         to negate a multiply if !flag_signed_zeros is true.
3084
3085 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
3086
3087         * gengtype-state.c (read_state_structures): Initialize "previous".
3088
3089 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
3090             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3091
3092         * gengtype-state.c: Add new file.
3093
3094         * gengtype.c (type count): New variable.
3095         (new_structure, find_param_structure, create_pointer)
3096         (create_array): Use it to set state_number in types.
3097         (dump_everything): Improve comment.
3098         (main): Call read_state and write_state. Print type_count.
3099
3100         * gengtype.h (type_lineloc): New function.
3101         (read_state, write_state): New declarations.
3102
3103         * Makefile.in (GENGTYPE_FLAGS): New variable.
3104         (s-gtype): Run gengtype twice and generate gtype.state.
3105         (build/gengtype-state.o): New rule.
3106         (build/gengtype$(build_exeext)): Link gengtype-state.o.
3107         (mostlyclean): Update comment.  Remove gtype.state.
3108
3109 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
3110
3111         PR middle-end/46637
3112         * combine.c (try_combine): When substing i2dest for i2src, pass
3113         1 as last argument even if
3114         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
3115
3116 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
3117
3118         PR middle-end/46647
3119         * builtins.c (target_char_cast): Check INTEGER_CST instead of
3120         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
3121
3122 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3123
3124         * target.def (supports_split_stack, except_unwind_info): Take
3125         gcc_options parameters.
3126         * targhooks.c (default_except_unwind_info,
3127         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
3128         gcc_options parameters.
3129         * targhooks.h (default_except_unwind_info,
3130         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
3131         prototypes.
3132         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
3133         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
3134         Document that hooks must not be modified.
3135         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
3136         * doc/tm.texi: Regenerate.
3137         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
3138         &global_options to targetm.except_unwind_info.
3139         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
3140         dwarf2out_begin_prologue, dwarf2out_frame_init,
3141         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
3142         &global_options to targetm.except_unwind_info.
3143         * except.c (init_eh, finish_eh_generation,
3144         gate_convert_to_eh_region_ranges,
3145         output_one_function_exception_table): Pass &global_options to
3146         targetm.except_unwind_info.
3147         * expr.c (build_personality_function): Pass &global_options to
3148         targetm.except_unwind_info.
3149         * function.c (expand_function_end): Pass &global_options to
3150         targetm.except_unwind_info.
3151         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
3152         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
3153         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
3154         and targetm.supports_split_stack.  Remove assertions about opts
3155         and opts_set.
3156         (common_handle_option): Remove assertions about opts, opts_set and dc.
3157         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
3158         &global_options to targetm.except_unwind_info.
3159         * tree.c (build_common_builtin_nodes: Pass &global_options to
3160         targetm.except_unwind_info.
3161         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
3162         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
3163         thumb1_expand_prologue, thumb1_output_function_prologue,
3164         arm_unwind_emit, arm_output_fn_unwind): Update calls to
3165         arm_except_unwind_info.
3166         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
3167         parameter.
3168         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
3169         parameter.
3170         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
3171         ia64_reorg, ia64_asm_unwind_emit): Update calls to
3172         ia64_except_unwind_info.
3173         * config/pa/pa.c (pa_option_override): Pass &global_options to
3174         targetm.except_unwind_info.
3175         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3176         Remove prototype.
3177
3178 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
3179
3180         * cgraphunit.c (process_function_and_variable_attributes):
3181         Mark dllexport-ed function/variables as needed.
3182         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
3183         as externally visible.
3184
3185 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
3186
3187         PR rtl-optimization/46585
3188         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
3189         (vinsn_init): Skip computation of dependencies for local NOPs.
3190         (vinsn_delete): Don't try to free regsets for local NOPs.
3191         (setup_nop_and_exit_insns): Change definition of nop_pattern.
3192
3193 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
3194
3195         PR rtl-optimization/46602
3196         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
3197         (tidy_control_flow): Here.
3198
3199 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
3200             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3201
3202         PR bootstrap/45888
3203         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
3204         Fix target.def pathname in timestamp comparison.
3205
3206 2010-11-24  Richard Henderson  <rth@redhat.com>
3207
3208         * config/ia64/predicates.md (pmpyshr_operand): New.
3209         * config/ia64/ia64.c (ia64_expand_unpack): New.
3210         (ia64_expand_widen_mul_v4hi): New.
3211         (ia64_expand_widen_sum): Update for pattern renames.
3212         (ia64_expand_dot_prod_v8qi): Likewise.
3213         * config/ia64/ia64-protos.h: Update.
3214         * config/ia64/vect.md (vecwider): New mode attribute.
3215         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
3216         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
3217         (pmpyshr2, pmpyshr2_u): New.
3218         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
3219         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
3220         (mulv2si3): New.
3221         (vec_pack_ssat_v4hi): Rename from pack2_sss.
3222         (vec_pack_usat_v4hi): Rename from *pack2_uss.
3223         (vec_pack_ssat_v2si): Rename from pack4_sss.
3224         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
3225         vec_select operation.
3226         (vec_interleave_highv8qi): Similarly.
3227         (mux1_alt): Rename from *mux1_alt.
3228         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
3229         (vec_interleave_lowv4hi): Rename from unpack2_l.
3230         (vec_interleave_highv4hi): Rename from unpack2_h.
3231         (mix2_r): Rename from *mix2_r.
3232         (mix2_l): Similarly.
3233         (vec_extract_evenodd_helper): New.
3234         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
3235         (vec_interleave_lowv2si): Rename from *unpack4_l.
3236         (vec_interleave_highv2si): Rename from *unpack4_h.
3237         (vec_extract_evenv2si, vec_extract_oddv2si): New.
3238         (vec_interleave_lowv2sf): Rename from fmix_r.
3239         (vec_interleave_highv2sf): Rename from *fmix_l.
3240         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
3241         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
3242         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
3243         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
3244
3245 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
3246
3247         * targhooks.c (default_except_unwind_info): Remove
3248         MUST_USE_SJLJ_EXCEPTIONS case.
3249         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
3250         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3251         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
3252         * doc/tm.texi: Regenerate.
3253         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
3254
3255 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
3256
3257         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3258         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
3259         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
3260         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
3261         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
3262
3263 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
3264
3265         PR target/46519
3266         * config/i386/i386.c (ix86_expand_call): Don't check
3267         TREE_THIS_VOLATILE.
3268
3269 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
3270
3271         PR target/46519
3272         * config/i386/i386.c (upper_128bits_state): New.
3273         (block_info_def): Remove upper_128bits_set and done.  Add state,
3274         referenced, count, processed and rescanned.
3275         (check_avx256_stores): Updated.
3276         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
3277         Call note_stores only if needed.  Set referenced and count.
3278         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
3279         (rescan_move_or_delete_vzeroupper): New.
3280         (move_or_delete_vzeroupper):  Process and rescan all all basic
3281         blocks instead of predecessor blocks of all exit points.
3282         (ix86_option_override_internal): Enable vzeroupper optimization
3283         only for -fexpensive-optimizations and not optimizing for size.
3284         (use_avx256_p): Removed.
3285         (init_cumulative_args): Don't set use_avx256_p.
3286         (ix86_function_arg): Likewise.
3287         (ix86_expand_move): Likewise.
3288         (ix86_expand_vector_move_misalign): Likewise.
3289         (ix86_local_alignment): Likewise.
3290         (ix86_minimum_alignment): Likewise.
3291         (ix86_expand_epilogue): Don't check use_avx256_p when generating
3292         vzeroupper.
3293         (ix86_expand_call): Likewise.
3294
3295         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
3296         and use_avx256_p.  Add rescan_vzeroupper_p.
3297
3298 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
3299
3300         * toplev.c: Include <signal.h>.
3301
3302 2010-11-24  Richard Guenther  <rguenther@suse.de>
3303
3304         PR lto/43218
3305         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
3306         conflicting function signatures as non-inlineable.
3307
3308 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
3309
3310         PR rtl-optimization/46614
3311         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
3312          (deps_analyze_insn): Mark JUMP_INSNs in
3313         last_pending_memory_flush that weren't added through
3314         flush_pending_lists with NON_FLUSH_JUMP_KIND.
3315         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
3316         on INSN_LIST instead of JUMP_P check on its operand.
3317         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
3318
3319 2010-11-24  Richard Guenther  <rguenther@suse.de>
3320
3321         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
3322
3323 2010-11-24  Richard Guenther  <rguenther@suse.de>
3324
3325         PR lto/46606
3326         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
3327         a FIELD_DECL that is type correct issue a warning and fixup
3328         with a VIEW_CONVERT_EXPR.
3329
3330 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
3331
3332         * doc/invoke.texi (Options for Debugging Your Program or GCC):
3333         Explain static numbering of dump files.
3334
3335 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
3336
3337         * common.opt (user_vect_verbosity_level): New Variable entry.
3338         (ftree-vectorizer-verbose=): Mark as UInteger.
3339         * flag-types.h (enum vect_verbosity_levels): Move from enum
3340         verbosity_levels in tree-vectorizer.h.
3341         * opts.c: Don't include tree.h.
3342         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
3343         gcc_options parameter; take integer option argument.
3344         (common_handle_option): Update call to vect_set_verbosity_level.
3345         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
3346         (vect_set_verbosity_level): Move to opts.c.
3347         (vect_verbosity_level, vect_print_dump_info): Update for change of
3348         enum name.
3349         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
3350         (vect_print_dump_info): Update for change of enum name.
3351         * tree.h (vect_set_verbosity_level): Remove.
3352         * Makefile.in (opts.o): Update dependencies.
3353
3354 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
3355
3356         PR middle-end/46629
3357         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
3358         instead of insn with any_condjump_p.
3359
3360 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
3361
3362         * config/mips/loongson.md: Change the description comment of the file
3363         and update the copyright years.
3364         (define_insn "<u>div<mode>3): Add loongson3a support.
3365         (define_insn "<u>mod<mode>3"): Likewise.
3366         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
3367         mul<mode>3_mul3_loongson.
3368         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
3369         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
3370
3371 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3372
3373         * common.opt (initial_max_fld_align, flag_debug_asm,
3374         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
3375         flag_print_asm_name, graph_dump_format, help_printed,
3376         help_columns, flag_opts_finished): New Variable entries.
3377         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
3378         frandom-seed=): Mark deferred.
3379         (fsched-verbose=): Use UInteger and Var.
3380         * flags.h (set_struct_debug_option, flag_print_asm_name,
3381         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
3382         graph_dump_format): Don't declare here.
3383         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
3384         * opts-global.c: Include dbgcnt.h and debug.h.
3385         (decode_options): Pass location to finish_options.
3386         (handle_common_deferred_options): Check flag_dump_all_passed.
3387         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
3388         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
3389         OPT_fstack_limit.
3390         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
3391         (set_struct_debug_option): Add location_t parameter.  Update
3392         recursive call.  Use error_at.
3393         (default_options_optimization): Use error_at.
3394         (finish_options): Add location_t parameter.  Use
3395         opts->x_flag_opts_finished instead of first_time_p.  Use
3396         opts->x_optimize instead of optimize.  Use error_at.  Pass
3397         location to inform.
3398         (print_filtered_help): Use opts->x_help_printed to track what
3399         options have been printed.
3400         (print_specific_help): Use opts->x_help_columns to track number of
3401         columns.
3402         (common_handle_option): Pass locations and gcc_options pointers to
3403         more functions.  Use warning_at instead of fnotice and warning.
3404         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
3405         OPT_fdebug_prefix_map_.  Use error_at.  Set
3406         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
3407         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
3408         OPT_fsched_verbose_.
3409         (handle_param): Add location_r parameter.  Use error_at.
3410         (set_debug_level): Add location_r parameter.  Use error_at and
3411         warning_at.
3412         (setup_core_dumping): Add diagnostic_context parameter.
3413         (decode_d_option): Add gcc_options, location_t and
3414         diagnostic_context parameters and use them instead of global
3415         state.  Use warning_at.
3416         (enable_warning_as_error): Use error_at.
3417         * opts.h (finish_options): Update prototype.
3418         (set_struct_debug_option): Declare here.
3419         * rtl.h (fix_sched_param): Remove.
3420         * stor-layout.c (initial_max_fld_align): Remove.
3421         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
3422         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
3423         (process_options): Set maximum_field_alignment.
3424         * tree.h (initial_max_fld_align) Don't declare here.
3425         * Makefile.in (opts.o, opts-global.o): Update dependencies.
3426
3427 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3428
3429         * flag-types.h (struct visibility_flags): Don't declare here.
3430         * flags.h (strip_off_ending, fast_math_flags_set_p,
3431         fast_math_flags_struct_set_p): Declare here.
3432         (visibility_options): Don't declare here.
3433         * opts-common.c (option_enabled, get_option_state): Move from
3434         opts.c.
3435         * opts-global.c: Include diagnostic.h instead of
3436         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
3437         and toplev.h.
3438         (const_char_p, ignored_options, in_fnames, num_in_fnames,
3439         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
3440         print_ignored_options, unknown_option_callback,
3441         post_handling_callback, lang_handle_option, add_input_filename,
3442         read_cmdline_options, initial_lang_mask, init_options_once,
3443         decode_cmdline_options_to_array_default_mask,
3444         set_default_handlers, decode_options): Move from opts.c.
3445         (print_ignored_options): Use warning_at instead of saving and
3446         restoring input_location.
3447         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
3448         instead of expr.h.  Don't include langhooks.h, except.h or
3449         lto-streamer.h.  Add more comments on includes.
3450         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
3451         toplev.c.
3452         (visibility_options): Move to c-family/c-common.c.
3453         (const_char_p, ignored_options, in_fnames, num_in_fnames,
3454         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
3455         print_ignored_options, unknown_option_callback,
3456         post_handling_callback, lang_handle_option, add_input_filename,
3457         read_cmdline_options, initial_lang_mask, init_options_once,
3458         decode_cmdline_options_to_array_default_mask,
3459         set_default_handlers, decode_options): Move to opts-global.c.
3460         (target_handle_option, default_options_optimization,
3461         finish_options, common_handle_option): Remove static.
3462         (option_enabled, get_option_state): Move to opts-common.c.
3463         * opts.h (common_handle_option, target_handle_option,
3464         finish_options, default_options_optimization): Declare.
3465         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
3466         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
3467         opts.c.
3468         * toplev.h (strip_off_ending, decode_d_option,
3469         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
3470         declare here.
3471         * Makefile.in (opts.o, opts-global.o): Update dependencies.
3472
3473 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
3474
3475         PR driver/42690
3476         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
3477         options, replace by call of pass-through-libs spec function to process
3478         link_gcc_c_sequence spec.
3479         (lto_libgcc_spec): Delete variable.
3480         (static_specs[]): Remove related entry.
3481         (static_spec_functions[]): Add new entry for pass-through-libs.
3482         (main): Don't generate deleted lto_libgcc_spec.
3483         (pass_through_libs_spec_func): New function to implement the new
3484         pass-through-libs spec function.
3485         * doc/invoke.texi (pass-through-libs): Document new spec function.
3486
3487 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3488
3489         * doc/options.texi (Warning, Optimization): Document.
3490
3491 2010-11-23  Jan Hubicka  <jh@suse.cz>
3492
3493         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
3494         (tree_decl_with_vis): Add implicit_section_name_p.
3495         * targhooks.h (default_function_section): Declare.
3496         * target.def (function_section): New hook.
3497         * defaults.h (HOT_TEXT_SECTION_NAME,
3498         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3499         * predict.c (choose_function_section): Remove.
3500         (estimate_bb_frequencies): Do not use choose_function_section.
3501         * coretypes.h (enum node_frequency): Move here from cgraph.h
3502         * cgraph.h (enum node_frequency): Remove.
3503         * varasm.c (initialize_cold_section_name, unlikely_text_section,
3504         unlikely_text_section_p): Remove.
3505         (named_subsection_entry): New structure.
3506         (get_text_section): New function.
3507         (default_function_section): New function.
3508         (function_section_1): Break out from ...; handle profile info.
3509         (function_section): ... here.
3510         (unlikely_text_section): Remove.
3511         (unlikely_text_section_p): Use function_section_1.
3512         (assemble_start_function): Do not initialize cold section.
3513         (default_section_type_flags): Do not special case cold subsection.
3514         (switch_to_section): Likewise.
3515         * output.h (get_text_section): Define.
3516         * config/i386/winnt.c: Do not special case cold section.
3517         * config/darwin-protos.h (darwin_function_section): Declare.
3518         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
3519         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3520         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
3521         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3522         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
3523         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
3524         * config/darwin.c (machopic_select_section): Use
3525         darwin_function_section.
3526         (darwin_function_section): New function.
3527         * config/darwin.h (HOT_TEXT_SECTION_NAME,
3528         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3529         (TARGET_ASM_FUNCTION_SECTION): Define.
3530         * system.h (HOT_TEXT_SECTION_NAME,
3531         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
3532
3533 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
3534
3535         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
3536         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
3537
3538 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
3539
3540         PR middle-end/46499
3541         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
3542         following unconditional jumps.
3543
3544 2010-11-23  Richard Guenther  <rguenther@suse.de>
3545
3546         * doc/md.texi (386 constraints): Clarify A constraint documentation.
3547
3548 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
3549             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3550
3551         * gengtype.c (enum typekind, struct options)
3552         (struct nested_ptr_data, struct pair, NUM_PARAM)
3553         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
3554         Move to gengtype.h.
3555         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
3556         Remove static, add zero state_number.
3557         (typedefs, structures, param_structs, variables): Remove static.
3558         (create_option): Remove.
3559         (create_string_option, create_type_option, create_nested_option):
3560         New functions.
3561         (create_nested_ptr_option): Use create_nested_option.
3562         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
3563         new create*option functions.
3564         (process_gc_options): Adjust for discriminated option.
3565         (output_mangled_typename): Handle TYPE_NONE.
3566         (walk_type): Test option kinds.
3567         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
3568         (write_func_for_structure, write_type, write_local, write_root)
3569         (write_roots, note_def_vec, dump_options): Adjust for
3570         discriminated option.
3571
3572         * gengtype.h (typedefs, structures, param_structs, variables
3573         enum typekind): Move from gengtype.c
3574         (enum option_kind): New discriminating enumeration.
3575         (struct options): Becomes discriminated.
3576         (struct nested_ptr_data): Nove from gengtype.c
3577         (create_string_option, create_type_option, create_nested_option)
3578         (create_nested_ptr_option): New functions
3579         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
3580         (UNION_OR_STRUCT_P): Move from gengtype.c
3581
3582         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
3583         discriminated options.
3584
3585 2010-11-23  Richard Guenther  <rguenther@suse.de>
3586
3587         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
3588         twice.  Avoid re-allocating the ops vector all the time.
3589
3590 2010-11-23  Richard Guenther  <rguenther@suse.de>
3591
3592         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
3593         is_gimple_min_invariant, group tree code checks to allow
3594         combining them.
3595         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
3596         of is_gimple_reg.
3597
3598 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
3599
3600         * config.gcc (sparc*-*-*): Reorder.
3601
3602 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
3603
3604         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
3605         Remove ENABLE_CHECKING around DBGPRINTF.
3606
3607 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
3608
3609         * common.opt (exit_after_options, write_symbols, debug_info_level,
3610         use_gnu_debug_info_extensions): New Variable entries.
3611         (fprofile-dir=): Use Var.
3612         * flag-types.h (enum debug_info_level): Rename to enum
3613         debug_info_levels.
3614         * flags.h (write_symbols, debug_info_level,
3615         use_gnu_debug_info_extensions): Remove declarations.
3616         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
3617         (set_struct_debug_option): Make static variables const.
3618         (use_gnu_debug_info_extensions): Remove.
3619         (set_debug_level, print_filtered_help, print_specific_help,
3620         fast_math_flags_set_p): Take gcc_options parameters and use them
3621         in place of global variables.
3622         (print_filtered_help): Make new_help non-static.
3623         (print_specific_help): Update call to print_filtered_help.
3624         (common_handle_option): Update calls to print_specific_help.  Use
3625         gcc_options structure for more settings.  Make --help table
3626         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
3627         set_debug_level.
3628         * toplev.c (profile_data_prefix): Remove.
3629         * toplev.h (profile_data_prefix, exit_after_options): Remove
3630         declarations.
3631         (fast_math_flags_set_p): Update prototype.
3632         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3633         Update call to fast_math_flags_set_p.
3634
3635 2010-11-22  Richard Henderson  <rth@redhat.com>
3636
3637         PR target/46434
3638         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
3639         return the address register extracted.
3640         (crx_decompose_address): Update the extracted address register.
3641
3642 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
3643
3644         PR driver/43335
3645         * gcc.c (main): Don't crash when lto-wrapper program is not found.
3646
3647 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
3648
3649         PR target/46608
3650         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
3651         * config/picochip/picochip-protos.h: Don't include "target.h" .
3652         (picochip_secondary_reload): Don't declare.
3653
3654         PR target/46613
3655         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
3656         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
3657         static.
3658
3659 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
3660
3661         PR bootstrap/46609
3662         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
3663         (source_dot_c_frul): Likewise.
3664
3665 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
3666
3667         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
3668
3669 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
3670
3671         PR bootstrap/44970
3672         * Makefile.in (fwprop.o) Add sparseset.h.
3673         * fwprop.c: Include sparseset.h
3674         (struct find_occurrence_data, find_occurrence_callback,
3675         find_occurrence): Remove.
3676         (active_defs, active_defs_check, register_active_defs,
3677         update_df_init, update_uses): New.
3678         (update_df): Rewrite.
3679         (try_fwprop_subst, forward_propagate_asm): Add calls to
3680         update_df_init and update_df.
3681         (fwprop_init): Allocate active_defs and active_defs_check.
3682         (fwprop_done): Free them.
3683         (fwprop, fwprop_addr): Adjust comments.
3684         * df.h (df_uses_create): Declare.
3685         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
3686         (df_ref_create): Return result of df_ref_create_structure directly.
3687         (df_ref_create_structure): Call df_install_ref_incremental when
3688         no collection_rec is passed.
3689         (df_ref_record): Do not create multiword hard reg info when no
3690         collection_rec is passed.
3691         (df_uses_create): New.
3692
3693 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
3694
3695         PR middle-end/43057
3696         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
3697         setting location.
3698
3699 2010-11-22  Richard Guenther  <rguenther@suse.de>
3700
3701         * gimple-fold.c (maybe_fold_reference): When canonicalizing
3702         MEM_REFs, preserve volatileness.
3703         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
3704         addresses.
3705
3706 2010-11-22  Richard Guenther  <rguenther@suse.de>
3707
3708         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
3709
3710 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
3711
3712         PR rtl-optimization/45652
3713         * alias.c (get_reg_base_value): New.
3714         * rtl.h (get_reg_base_value): Add prototype.
3715         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
3716         non-null REG_BASE_VALUE for renaming.
3717
3718 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3719             Basile Starynkevitch  <basile@starynkevitch.net>
3720
3721         * gengtype.c: Include xregex.h and obstack.h
3722         Added comments about role of get_output_file_with_visibility and
3723         our regexpr machinery.
3724         (frul_actionrout_t, struct file_rule_st): New.
3725         (hader_dot_h_frul, source_dot_c_frul): New functions.
3726         (NULL_REGEX,  NULL_FRULACT): New.
3727         (files_rules): New.
3728         (matching_file_name_substitute): New function.
3729         (get_output_file_with_visibility): Updated comments and rewritten
3730         to use the new files_rules machinery.
3731
3732         * Makefile.in (XREGEX_H): Added variable.
3733         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
3734
3735 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
3736
3737         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
3738
3739 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
3740
3741         * target.def (conditional_register_usage): Define.
3742         * reginfo.c (init_reg_sets_1): Call
3743         targetm.conditional_register_usage.
3744         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
3745         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
3746         for making it a hook.
3747         * doc/tm.texi: Regenerate.
3748         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3749         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
3750         New function.
3751         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3752         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3753         * config/arc/arc.c (arc_conditional_register_usage): ...here.
3754         New function.
3755         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3756         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3757         * config/arm/arm.c (arm_conditional_register_usage): ...here.
3758         New function.
3759         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3760         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
3761         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
3762         * config/bfin/bfin.c (conditional_register_usage): Move code into...
3763         (bfin_conditional_register_usage): ...here.  New function.
3764         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3765         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
3766         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
3767         * config/cris/cris.c (cris_conditional_register_usage): Make static.
3768         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3769         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
3770         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
3771         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
3772         * config/frv/frv.c (frv_conditional_register_usage): Make static.
3773         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3774         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3775         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
3776         New function.
3777         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3778         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
3779         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
3780         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
3781         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3782         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
3783         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
3784         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
3785         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3786         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3787         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
3788         New function.
3789         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3790         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
3791         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
3792         Delete.
3793         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
3794         static.
3795         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3796         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
3797         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
3798         * config/mep/mep.c (mep_conditional_register_usage): Make static.
3799         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3800         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
3801         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
3802         * config/mips/mips.c (mips_conditional_register_usage): Make static.
3803         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3804         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
3805         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
3806         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
3807         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3808         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3809         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
3810         ...here.  New function.
3811         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3812         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3813         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
3814         * config/pa/pa.c (pa_conditional_register_usage): ...here.
3815         New function.
3816         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3817         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3818         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
3819         New function.
3820         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3821         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
3822         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
3823         Delete.
3824         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
3825         static.
3826         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3827         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
3828         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
3829         * config/rx/rx.c (rx_conditional_register_usage): Make static.
3830         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3831         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
3832         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
3833         * config/s390/s390.c (s390_conditional_register_usage): Make static.
3834         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3835         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3836         * config/score/score.c (score_conditional_register_usage): ...here.
3837         New function.
3838         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3839         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3840         * config/sh/sh.c (sh_conditional_register_usage): ...here.
3841         New function.
3842         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3843         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3844         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
3845         New function.
3846         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3847         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
3848         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
3849         * config/spu/spu.c (spu_conditional_register_usage): Make static.
3850         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3851         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3852         * config/v850/v850.c (v850_conditional_register_usage): ...here.
3853         New function.
3854         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3855
3856 2010-11-21  Jan Hubicka  <jh@suse.cz>
3857             Dominique d'Humieres <dominiq@lps.ens.ft>
3858
3859         PR target/46510
3860         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
3861         finalize external decls.
3862
3863 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
3864
3865         * system.h (strerror): Poison.
3866
3867 2010-11-21  Richard Henderson  <rth@redhat.com>
3868
3869         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
3870         for infq/huge_valq.
3871
3872 2010-11-21  Richard Henderson  <rth@redhat.com>
3873
3874         PR rtl-optimization/46571
3875         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
3876         (compute_hash_table_work): Use NONDEBUG_INSN_P.
3877
3878 2010-11-21  Paul Koning  <ni1d@arrl.net>
3879
3880         * config/mips/pdp11.md (negsi2): Fix wrong code.
3881
3882 2010-11-21  Paul Koning  <ni1d@arrl.net>
3883
3884         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
3885         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3886
3887 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
3888
3889         * config/mips/mips.c (machine_function): Rename load_label_length to
3890         load_label_num_insns.
3891         (mips_load_label_length): Rename to...
3892         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
3893         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
3894
3895 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
3896
3897         PR target/46533
3898         * config/alpha/predicates.md (direct_call_operand): Return false
3899         for !TARGET_SMALL_TEXT targets.
3900
3901 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3902
3903         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
3904         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
3905         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
3906         * doc/tm.texi: Regenerate.
3907         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
3908         HANDLE_PRAGMA_WEAK): Poison.
3909         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3910         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3911         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
3912         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
3913         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3914         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3915         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3916         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
3917         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3918         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
3919         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3920         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
3921         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3922         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3923         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3924         (HANDLE_PRAGMA_WEAK): Don't undefine.
3925         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3926         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
3927         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3928         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
3929         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
3930         (HANDLE_PRAGMA_WEAK): Don't undefine.
3931         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3932         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
3933         (HANDLE_PRAGMA_PACK): Don't undefine.
3934         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
3935         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3936         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3937         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3938         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
3939         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3940         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3941         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
3942         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
3943         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3944         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
3945         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3946         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3947         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3948         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3949         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
3950         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3951
3952 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3953
3954         PR target/31100
3955         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
3956         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
3957         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
3958
3959 2010-11-20  Jan Hubicka  <jh@suse.cz>
3960
3961         * cgraph.c (ld_plugin_symbol_resolution_names): New.
3962         (dump_cgraph_node): Dump resolution.
3963         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
3964         (cgraph_comdat_can_be_unshared_p): Dclare.
3965         * lto-streamer-out.c (produce_symtab): Use
3966         cgraph_comdat_can_be_unshared_p.
3967         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
3968         (cgraph_comdat_can_be_unshared_p): New function based on logic
3969         in cgraph_externally_visible_p.
3970         (cgraph_externally_visible_p): Use it.
3971         (varpool_externally_visible_p): Virtual tables can be unshared.
3972         * varpool.c (dump_varpool_node): Dump resolution.
3973
3974 2010-11-20  Jan Hubicka  <jh@suse.cz>
3975
3976         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
3977
3978 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3979
3980         PR other/46202
3981         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
3982         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
3983         shell quoting.
3984         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
3985         (install-strip): New target.
3986         (STRIPPROG): New variable, exported if STRIP is set.
3987         * doc/install.texi (Final install): Minor markup and code style
3988         fixes.  Document install-strip target.
3989
3990 2010-11-20  Paul Koning  <ni1d@arrl.net>
3991
3992         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
3993         pdp11_regno_reg_class): New functions.
3994         * config/pdp11/pdp11.md (define_constants): Add register numbers.
3995         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
3996         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
3997         functions.
3998         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
3999         frame pointer and argument pointer pseudo-registers.
4000         (ARG_POINTER_REGNUM): Define.
4001         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
4002         argument pointer.
4003         (FIRST_PARM_OFFSET): Update for argument pointer.
4004         (INITIAL_FRAME_POINTER_OFFSET): Delete.
4005         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
4006         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
4007         frame pointer and argument pointer.
4008
4009 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
4010
4011         PR debug/46561
4012         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
4013         when looking for immediate uses.
4014
4015         PR tree-optimization/45830
4016         * stmt.c (expand_switch_using_bit_tests_p): New function.
4017         (expand_case): Use it.
4018         * tree.h (expand_switch_using_bit_tests_p): New prototype.
4019         * tree-switch-conversion.c (struct switch_conv_info): Add
4020         bit_test_uniq, bit_test_count and bit_test_bb fields.
4021         (check_range): Fix a comment.
4022         (check_process_case): Compute bit_test_uniq and bit_test_count.
4023         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
4024         allocation.
4025         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
4026         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
4027         (array_value_type): New function.
4028         (build_one_array): Use it, if it returned different type,
4029         fold_convert all constructor fields and convert back to the
4030         wider type in the generated code.
4031         (process_switch): Initialize bit_test_uniq, bit_test_count and
4032         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
4033         returned true.
4034
4035 2010-11-19  Michael Matz  <matz@suse.de>
4036
4037         PR tree-optimization/46077
4038         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
4039
4040 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
4041
4042         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4043         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
4044         function.
4045         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4046
4047 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
4048
4049         * mode-switching.c (optimize_mode_switching): Use
4050         FOR_BB_INSNS instead of open-coded loop.
4051         * cfgrtl.c (redirect_branch_edge): Ditto.
4052
4053 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
4054
4055         PR target/46436
4056         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
4057         to accomodate 32 bit HOST_WIDE_INT.
4058         (m68hc11_emit_logical): Remove unused variable insn.
4059         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
4060         this_insn_uses_iy before use.
4061
4062         PR target/46434
4063         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
4064
4065 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4066
4067         PR c/46547
4068         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
4069         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
4070
4071 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4072
4073         * doc/extend.texi (Function attributes): Document PowerPC target
4074         attributes that are supported.
4075         (Pragmas): Document that PowerPC now supports target pragmas.
4076
4077         * doc/options.texi (TargetVariable): Document TargetVariable,
4078         HeaderInclude, and SourceInclude.
4079
4080         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
4081         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
4082         -ffp-contract=off.
4083
4084         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
4085         SourceInclude directives.  Fix a cut+paste error with target save
4086         enum variables.  Sort enums in the structures after ints and
4087         before shorts.
4088         * opth-gen.awk: Ditto.
4089
4090         * configure.ac: Add support for HeaderInclude and SourceInclude option
4091         directives to add the appropriate files to the dependency lists.
4092         * configure: Regenerate.
4093         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
4094         (OPTIONS_C_EXTRA): New variable for SourceInclude.
4095         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
4096         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
4097         (gcc-options.o): Ditto.
4098         * opt-include.awk: New awk script to handle HeaderInclude and
4099         TargetInclude.
4100
4101         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
4102         gets saved in the target options.
4103         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
4104         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
4105         (-mprototype): Ditto.
4106         (-mbit-word): ditto.
4107         (-mregnames): Ditto.
4108         (-msecure-plt): Ditto.
4109         (-mbss-plt): Ditto.
4110         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
4111         (-mpowerpc-gfxopt): Ditto.
4112         (-mmfcrf): Ditto.
4113         (-mpopcntb): Ditto.
4114         (-mfprnd): Ditto.
4115         (-mcmpb): Ditto.
4116         (-mmmfpgpr): Ditto.
4117         (-maltivec): Ditto.
4118         (-mhard-dfp): Ditto.
4119         (-mmulhw): Ditto.
4120         (-mdlmzb): Ditto.
4121         (-mmultiple): Ditto.
4122         (-mstring): Ditto.
4123         (-mpopcntd): Ditto.
4124         (-mfriz): Ditto.
4125         (-mvsx): Ditto.
4126         (-mno-update): Ditto.
4127         (-mavoid-indexed-addresses): Ditto.
4128         (-mtls-markers): Ditto.
4129         (-msched-epilog): Ditto.
4130         (-msched-prolog): Ditto.
4131         (-maix-struct-return): Ditto.
4132         (-msvr4-struct-return): Ditto.
4133         (-mxl-compat): Ditto.
4134         (-mrecip-precision): Ditto.
4135         (-mfp-in-toc): Ditto.
4136         (-msum-in-toc): Ditto.
4137         (-mvrsave): Ditto.
4138         (-mblock-move-inline-limit=): Ditto.
4139         (-misel): Ditto.
4140         (-mpaired): Ditto.
4141         (-mlongcall): Ditto.
4142         (-mgen-cell-microcode): Ditto.
4143         (-mwarn-cell-microcode): Ditto.
4144         (-mwarn-altivec-long): Ditto.
4145         (-mprioritize-restricted-insns=): Ditto.
4146         (-msingle-float): Ditto.
4147         (-mdouble-float): Ditto.
4148         (-msimple-fpu): Ditto.
4149         (-mxilinx-fpu): Ditto.
4150         * config/rs6000/aix64.opt (-mpe): Ditto.
4151
4152         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
4153         (rs6000_cpu): Move variable to be a target variable.  Rename
4154         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
4155         -mdebug=<xxx> variables into a single int.
4156         (rs6000_always_hint): Ditto.
4157         (rs6000_sched_groups): Ditto.
4158         (rs6000_align_branch_targets): Ditto.
4159         (rs6000_sched_costly_dep): Ditto.
4160         (rs6000_sched_insert_nops): Ditto.
4161         (rs6000_long_double_type_size): Ditto.
4162         (rs6000_ieeequad): Ditto.
4163         (rs6000_altivec_abi): Ditto.
4164         (rs6000_spe): Ditto.
4165         (rs6000_spe_abi): Ditto.
4166         (rs6000_float_gprs): Ditto.
4167         (rs6000_darwin64_abi): Ditto.
4168         (can_override_loop_align): Ditto.
4169         (rs6000_sdata): Ditto.
4170         (rs6000_tls_size): Ditto.
4171         (rs6000_current_abi): Ditto.
4172         (rs6000_traceback): Ditto.
4173         (rs6000_alignment_flags): Ditto.
4174         (rs6000_current_cmodel): Ditto.
4175         (rs6000_recip_control): Ditto.
4176         (rs6000_cpu_index): Ditto.
4177         (rs6000_tune_index): Ditto.
4178         (rs6000_debug): Ditto.
4179         (rs6000_target_flags_explict): Ditto.
4180
4181         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
4182         declaration.
4183
4184         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
4185         cmodel.  Change all uses.
4186
4187         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
4188         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
4189         Rename cmodel to rs6000_current_cmodel.
4190         (rs6000_sched_groups): Ditto.
4191         (rs6000_align_branch_targets): Ditto.
4192         (rs6000_sched_costly_dep): Ditto.
4193         (rs6000_sched_insert_nops): Ditto.
4194         (rs6000_long_double_type_size): Ditto.
4195         (rs6000_ieeequad): Ditto.
4196         (rs6000_altivec_abi): Ditto.
4197         (rs6000_spe): Ditto.
4198         (rs6000_spe_abi): Ditto.
4199         (rs6000_float_gprs): Ditto.
4200         (rs6000_darwin64_abi): Ditto.
4201         (can_override_loop_align): Ditto.
4202         (rs6000_sdata): Ditto.
4203         (rs6000_tls_size): Ditto.
4204         (rs6000_current_abi): Ditto.
4205         (rs6000_traceback): Ditto.
4206         (rs6000_alignment_flags): Ditto.
4207         (rs6000_current_cmodel): Ditto.
4208         (rs6000_recip_control): Ditto.
4209         (rs6000_cpu_index): Ditto.
4210         (rs6000_tune_index): Ditto.
4211         (rs6000_debug): Ditto.
4212         (rs6000_target_flags_explict): Ditto.
4213         (rs6000_sched_insert_nops_str): Make static.
4214         (rs6000_sched_costly_dep_str): Ditto.
4215         (rs6000_recip_name): Ditto.
4216         (rs6000_abi_name): Ditto.
4217         (rs6000_sdata_name): Ditto.
4218         (enum rs6000_traceback_name): Move to rs6000-opts.h.
4219         (rs6000_parse_tls_size_option): Delete.
4220         (rs6000_valid_attribute_p): New function for target attributes and
4221         pragmas.
4222         (rs6000_function_specific_save): Ditto.
4223         (rs6000_function_specific_restore): Ditto.
4224         (rs6000_function_specific_print): Ditto.
4225         (rs6000_can_inline_p): Ditto.
4226         (rs6000_set_current_function): Ditto.
4227         (rs6000_inner_target_options): Ditto.
4228         (rs6000_debug_target_options): Ditto.
4229         (rs6000_pragma_target_parse): Ditto.
4230         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
4231         attributes and pragmas.
4232         (TARGET_OPTION_SAVE): Ditto.
4233         (TARGET_OPTION_RESTORE): Ditto.
4234         (TARGET_OPTION_PRINT): Ditto.
4235         (TARGET_CAN_INLINE_P): Ditto.
4236         (TARGET_SET_CURRENT_FUNCTION): Ditto.
4237         (POWER_MASKS): Move to file level scope from the
4238         rs6000_option_override_internal function.
4239         (POWERPC_MASKS): Ditto.
4240         (ISA_*_MASKS): Ditto.
4241         (struct rs6000_ptt): Ditto.
4242         (processor_target_table): Ditto.
4243         (rs6000_cpu_name_lookup): Map cpu name to an index in
4244         processor_target_table.
4245         (rs6000_debug_reg_global): Print more information on processor
4246         options for -mdebug=reg.
4247         (rs6000_init_hard_regno_mode_ok): Add support for target
4248         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
4249         Allow -mdebug=val1,val2.  Rename cmodel variable.
4250         (rs6000_option_override_internal): Ditto.
4251         (rs6000_option_override): Ditto.
4252         (rs6000_handle_option): Ditto.
4253         (rs6000_conditional_register_usage): Add debug trace message.
4254         (struct rs6000_opt_mask): New for target attribute/pragma support.
4255         (rs6000_opt_masks): Ditto.
4256         (struct rs6000_opt_var): Ditto.
4257         (rs6000_opt_vars): Ditto.
4258         (rs6000_previous_function): Ditto.
4259
4260         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
4261         wasn't already included.
4262         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
4263         (enum processor_type): Ditto.
4264         (rs6000_cpu): Ditto.
4265         (enum fpu_type_t): Ditto.
4266         (fpu_type): Ditto.
4267         (enum rs6000_dependence_cost): Ditto.
4268         (enum rs6000_nop_insertion): Ditto.
4269         (enum group_termination): Ditto.
4270         (rs6000_long_double_type_size): Ditto.
4271         (rs6000_ieeequad): Ditto.
4272         (rs6000_altivec_abi): Ditto.
4273         (rs6000_spe_abi): Ditto.
4274         (rs6000_spe): Ditto.
4275         (rs6000_float_gprs): Ditto.
4276         (rs6000_alignment_flags): Ditto.
4277         (rs6000_sched_insert_nops): Ditto.
4278         (enum rs6000_vector): Ditto.
4279         (enum rs6000_abi): Ditto.
4280         (rs6000_current_opt): Ditto.
4281         (rs6000_debug_*): Delete.
4282         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
4283         (TARGET_DEBUG*): Ditto.
4284
4285         * config/rs6000/rs6000-opts.h: New header file to define the enums
4286         that are used in target variables that are now defined in rs6000.opt.
4287
4288         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
4289         rs6000-opts.h.
4290         (rs6000_sdata): Ditto.
4291         (rs6000_abi_name): Delete.
4292         (rs6000_sdata_name): Ditto.
4293         (rs6000_tls_size_string): Ditto.
4294
4295 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4296
4297         * common.opt (debug_struct_ordinary, debug_struct_generic): New
4298         Variable entries.
4299         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
4300         should_emit_struct_debug): Move from opts.c.
4301         * flag-types.h (enum debug_struct_file): Move from opts.c.
4302         * flags.h (should_emit_struct_debug): Remove.
4303         (base_of_path): Declare.
4304         (set_struct_debug_option): Add gcc_options parameter.
4305         * optc-gen.awk, opth-gen.awk: Handle array variables.
4306         * opts.c (enum debug_struct_file, debug_struct_ordinary,
4307         debug_struct_generic): Remove.
4308         (set_struct_debug_option): Add gcc_options parameter.
4309         (base_of_path): Remove static.
4310         (main_input_basename, main_input_baselength, matches_main_base,
4311         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
4312         Remove.
4313         * toplev.c (main_input_basename, main_input_baselength): Define
4314         here.
4315         * toplev.h (main_input_basename, main_input_baselength): Declare
4316         here.
4317
4318 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4319
4320         * common.opt (flag_instrument_functions_exclude_functions,
4321         flag_instrument_functions_exclude_files): New Variable definitions.
4322         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
4323         * gimplify.c (char_p): Declare type and vectors.
4324         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
4325         * opts.c (flag_instrument_functions_exclude_functions,
4326         flag_instrument_functions_exclude_files): Remove.
4327         (add_comma_separated_to_vector): Take void **.
4328         (flag_instrument_functions_exclude_p): Move to gimplify.c.
4329         (common_handle_option): Use options structure for
4330         -finstrument-functions-exclude- options.
4331
4332 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
4333
4334         * doc/options.texi (Var): Document effects of Defer.
4335         (Defer): Document.
4336         * opt-functions.awk (var_type, var_set): Handle deferred options.
4337         * opts-common.c (set_option): Handle CLVC_DEFER.
4338         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
4339         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
4340         fstack-limit-symbol=): Mark as deferred.
4341         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
4342         plugin.h.
4343         (print_filtered_help): Don't report state of CLVC_DEFER options.
4344         (common_handle_option): Move code for OPT_fcall_used_,
4345         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
4346         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
4347         OPT_fstack_limit_symbol_ to opts-global.c.
4348         (option_enabled, get_option_state): Handle CLVC_DEFER.
4349         * opts.h: Include vec.h.
4350         (enum cl_var_type): Add CLVC_DEFER.
4351         (cl_deferred_option): Define type and vectors.
4352         (handle_common_deferred_options): Declare.
4353         * opts-global.c: New.
4354         * toplev.c (toplev_main): Call handle_common_deferred_options
4355         * Makefile.in (OPTS_H): Include $(VEC_H).
4356         (OBJS-common): Include opts-global.o.
4357         (opts.o): Update dependencies.
4358         (opts-global.o): Add dependencies.
4359
4360 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4361
4362         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
4363         to objc_declare_protocols.
4364
4365 2010-11-19  Richard Guenther  <rguenther@suse.de>
4366
4367         PR lto/45789
4368         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
4369         IDENTIFIERs do not stream TREE_TYPE.
4370         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
4371
4372 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
4373
4374         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
4375
4376 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
4377
4378         PR target/45870
4379         * dwarf2out.c (const_ok_for_output_1): Don't complain about
4380         non-delegitimized TLS UNSPECs.
4381
4382 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
4383             Ian Lance Taylor  <iant@google.com>
4384
4385         * config/darwin-c.c (darwin_additional_format_types): Export.
4386
4387 2010-11-18  Paul Koning  <ni1d@arrl.net>
4388
4389         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
4390         pointer.
4391
4392 2010-11-18  Paul Koning  <ni1d@arrl.net>
4393
4394         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
4395         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
4396         * config/pdp11/pdp11.opt (-mabshi): Delete.
4397
4398 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
4399
4400         * resource.h (struct resources): Fix typo in the comment.
4401
4402 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
4403
4404         PR target/46546
4405         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
4406
4407 2010-11-18  Richard Henderson  <rth@redhat.com>
4408
4409         PR middle-end/46515
4410         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
4411         maybe_copy_epilogue_insn; handle prologue insns as well.
4412         * rtl.h, cfglayout.c: Update for rename.
4413         * recog.c (peep2_attempt): Copy prologue/epilogue data for
4414         RTX_FRAME_RELATED_P insns.
4415
4416 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
4417
4418         PR middle-end/46534
4419         * builtins.c (fold_builtin_printf): Don't copy and modify string
4420         before build_string_literal, instead modify what
4421         build_string_literal returned.
4422
4423 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
4424
4425         PR c/33193
4426         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
4427         REALPART_EXPR and IMAGPART_EXPR.
4428
4429 2010-11-18  Richard Guenther  <rguenther@suse.de>
4430
4431         PR tree-optimization/46172
4432         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
4433         function.
4434         (slpeel_tree_peel_loop_to_edge): Call it.
4435
4436 2010-11-18  Jeff Law  <law@redhat.com>
4437
4438         PR middle-end-optimization/46297
4439         * postreload.c (reload_combine_note_store): Deal with embedded
4440         side effects in MEM expressions.
4441
4442 2010-11-18  Richard Guenther  <rguenther@suse.de>
4443
4444         PR lto/45089
4445         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
4446         when checking is not enabled.
4447
4448 2010-11-18  Richard Guenther  <rguenther@suse.de>
4449
4450         PR lto/46525
4451         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
4452         type leaders.
4453         (gimple_register_canonical_type): Also cache the canoncial type
4454         for non type leaders.
4455
4456 2010-11-18  Richard Guenther  <rguenther@suse.de>
4457
4458         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
4459
4460 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
4461
4462         PR middle-end/46518
4463         * sel-sched-ir.c (init_expr): Use the correct type for
4464         target_available.
4465         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
4466
4467 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4468
4469         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
4470         as well as -mrelocatable at the same time.
4471
4472 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
4473
4474         PR target/46422
4475         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
4476         Call the clz builtin.
4477
4478 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
4479             Steve Ellcey  <sje@cup.hp.com>
4480
4481         PR middle-end/31490
4482         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
4483         if section attribute used.
4484
4485 2010-11-17  Jan Hubicka  <jh@suse.cz>
4486
4487         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
4488         expand errno setting variant when optimizing for size.
4489
4490 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
4491
4492         * postreload.c (reload_combine): Call control_flow_insn_p only once.
4493         Reverse backward loop.  Fix formatting issues.
4494
4495 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
4496
4497         * c-parser.c (c_token_is_qualifier,
4498         c_parser_next_token_is_qualifier): New.
4499         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
4500         Improve error message on specs->tagdef_seen_p.
4501         (c_parser_struct_or_union_specifier): Improve error recovery.
4502         (c_parser_declspecs): Move exit condition on C_ID_ID early.
4503         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
4504         using c_parser_next_token_is_qualifier; extend it to cover
4505         a ctsk_tagdef typespec and !typespec_ok in general.
4506
4507 2010-11-17  Richard Guenther  <rguenther@suse.de>
4508
4509         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
4510         (gimple_mod_pow2_value_transform): Likewise.
4511         (gimple_mod_subtract_transform): Likewise.
4512
4513 2010-11-17  Richard Guenther  <rguenther@suse.de>
4514
4515         PR lto/46504
4516         * gimple.c (gimple_register_canonical_type): Make sure to only
4517         make type leaders canonical types.
4518
4519 2010-11-17  Michael Matz  <matz@suse.de>
4520
4521         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
4522         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
4523         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
4524         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
4525         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
4526         (pass_build_ssa): ... but here.
4527         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
4528         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
4529         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
4530         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
4531         * predict.c (rebuild_frequencies): Ditto.
4532         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
4533         * emit-rtl.c (verify_rtl_sharing): Ditto.
4534         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
4535         * tree-ssa-live.c (remove_unused_locals): Ditto.
4536         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
4537         * tree-ssa.c (pass_early_warn_uninitialized,
4538         execute_update_addresses_taken, pass_update_address_taken): Ditto.
4539         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
4540         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
4541         * passes.c (pass_postreload, execute_todo): Ditto.
4542         * tree-ssanames.c (pass_release_ssa_names): Ditto.
4543
4544 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4545
4546         * doc/invoke.texi (-dy): Remove.
4547         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
4548         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
4549         * langhooks.c (lhd_do_nothing_i): Remove.
4550         * langhooks.h (lang_hooks.parse_file): Take no arguments.
4551         * toplev.c (set_yydebug): Remove.
4552         (compile_file): Update call to lang_hooks.parse_file.
4553         (decode_d_option): Don't handle -dy.
4554
4555 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
4556
4557         PR rtl-optimization/46440
4558         * combine.c (update_cfg_for_uncondjump): When changing
4559         an indirect jump into unconditional jump, remove BARRIERs
4560         from bb's footer.
4561
4562 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
4563
4564         * opts.c (target_handle_option): Do not assert that loc ==
4565         UNKNOWN_LOCATION.
4566
4567 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
4568             Richard Guenther  <rguenther@suse.de>
4569
4570         PR middle-end/45838
4571         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4572         call_may_clobber_ref_p_1): Return true for __sync_* and some
4573         OpenMP builtins that act as threading barriers.
4574
4575 2010-11-17  Richard Guenther  <rguenther@suse.de>
4576
4577         PR tree-optimization/46498
4578         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
4579
4580 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4581
4582         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
4583         (xtensa_function_arg_boundary): ...this.
4584         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
4585         thinko in declaration.
4586         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
4587         number of parameters to picochip_function_arg_boundary.
4588         (picochip_arg_advance): Likewise.
4589
4590 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4591
4592         PR target/46512
4593         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
4594         under check for type.
4595
4596 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4597
4598         * ifcvt.c (dead_or_predicable): Fix typo.
4599
4600 2010-11-16  Richard Henderson  <rth@redhat.com>
4601
4602         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
4603         * config/s390/s390.opt (mfused-madd): Remove.
4604         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
4605         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
4606         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
4607         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
4608
4609 2010-11-16  Richard Henderson  <rth@redhat.com>
4610
4611         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
4612         * config/rs6000/rs6000.opt (mfused-madd): Remove.
4613         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
4614         (*altivec_vmaddfp_1): Remove.
4615         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
4616         (altivec_mulv4sf3): Expand to FMA directly.
4617         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
4618         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
4619         * config/rs6000/paired.md (paired_madds0): Use FMA.
4620         (paired_madds1): Likewise.
4621         (*paired_madd): Rename from paired_madd; use FMA.
4622         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
4623         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
4624         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
4625         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
4626         (rs6000_emit_madd): Use fma_optab.
4627         (rs6000_emit_msub): Use fms_optab.
4628         (rs6000_emit_nmsub): Expand the FMA pattern directly.
4629         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
4630         (*fmasf4_fpr): Rename from fmasf4_fpr.
4631         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
4632         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
4633         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
4634         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
4635         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
4636         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
4637         (*fmadf4_fpr): Rename from fmadf4_fpr.
4638         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
4639         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
4640         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
4641         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
4642         (fmasf4, fmadf4): Macroize into...
4643         (fma<FMA_F>4): ... here.
4644         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
4645         (nfma<FMA_F>4, nfms<FMA_F>4): New.
4646         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
4647         TARGET_FUSED_MADD.
4648         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
4649         (*vsx_fmadd<mode>4_1): Remove.
4650         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
4651         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
4652         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
4653         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
4654         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
4655         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
4656         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
4657
4658 2010-11-16  Richard Henderson  <rth@redhat.com>
4659
4660         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
4661         (fmasf4, fnmadf4, fnmasf4): Likewise.
4662         (unnamed plus+mult insns and splitters): Delete.
4663
4664 2010-11-16  Richard Henderson  <rth@redhat.com>
4665
4666         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
4667         (fnma<VSF>4): Rename from fnms_<VSF>.
4668         (fms<VSF>4): Rename from fms_<VSF>.
4669         (fma<VDF>4): Rename from fma_<VDF>.
4670         (fms<VDF>4): Rename from fms_<VDF>.
4671         (nfma<VDF>4): Rename from fnma_<VDF>.
4672         (nfms<VDF>4): Rename from fnms_<VDF>.
4673         (fnma<VDF>4, fnms<VDF>4): New expanders.
4674         (floatunsdisf2): Update for the renames.
4675         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
4676         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
4677
4678 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4679
4680         PR rtl-optimization/46490
4681         * combine.c (expand_compound_operation): Fix thinko.
4682
4683 2010-11-16  Richard Henderson  <rth@redhat.com>
4684
4685         PR target/46470
4686         * recog.c (peep2_attempt): Convert frame-related info when possible.
4687         (peep2_fill_buffer): Allow frame-related insns into the buffer.
4688         (peephole2_optimize): Allow peep2_attempt to fail.
4689
4690 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4691
4692         PR rtl-optimization/46315
4693         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
4694         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
4695         extracted from...
4696         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
4697         (remove_reg_equal_equiv_notes_for_defs): ...this.
4698         (delete_unmarked_insns): Adjust to above renaming.
4699         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
4700         referring to registers set in the insns being moved, if any.
4701
4702         * df-core.c (df_ref_dump): New function extracted from...
4703         (df_refs_chain_dump): ...here.  Call it.
4704         (df_regs_chain_dump): Likewise.
4705         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
4706         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
4707
4708 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
4709
4710         PR rtl-optimization/46395
4711         * postreload.c (reload_combine): Invalidate register use
4712         information on all control flow insns.
4713
4714         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
4715         LABEL_REF in UNSPEC operand.
4716
4717 2010-11-16  Jan Hubicka  <jh@suse.cz>
4718
4719         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
4720         when !flag_toplevel_reorder do not remove unless variable is
4721         COMDAT or ARTIFICIAL.
4722         * ipa.c (varpool_can_remove_if_no_refs): ... here.
4723         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
4724         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
4725         * varpool.c (decide_is_variable_needed): Do not handle visibility
4726         issues.
4727         (varpool_finalize_decl): Likewise.
4728         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
4729         update outdated comment on DECL_RTL_SET_P check.
4730
4731 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4732
4733         * config/sol2.h (NM_FLAGS): Define.
4734         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
4735         * doc/tm.texi: Update.
4736
4737 2010-11-16  Nick Clifton  <nickc@redhat.com>
4738
4739         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
4740         (msubsf4): Rename to fmssf4, and use fma.
4741         (nmaddsf4): Rename to fnmasf4 and use fma.
4742         (nmsubsf4): Rename to fnmssf4 and use fma.
4743
4744 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
4745
4746         PR target/44762
4747         * config/score/score3.c (score3_return_in_memory): Constify arguments.
4748         (score3_in_small_data_p, score3_function_value): Likewise.
4749         (score3_trampoline_init): Use LCT_NORMAL.
4750         (score3_print_operand): Initialize code as UNKNOWN.
4751         * config/score/predicates.md (score_load_multiple_operation):
4752         Remove unused variable.
4753         (score_store_multiple_operation): Likewise.
4754         * config/score/score7.c (score7_return_in_memory): Constify arguments.
4755         (score7_in_small_data_p, score7_function_value): Likewise.
4756         (score7_trampoline_init): Use LCT_NORMAL.
4757         (score7_print_operand): Initialize code as UNKNOWN.
4758         * config/score/score3.h (score3_return_in_memory): Update prototype.
4759         (score3_in_small_data_p, score3_function_value): Likewise.
4760         * config/score/score-protos.h (score_function_value): Likewise.
4761         * config/score/score7.h (score7_return_in_memory): Update prototype.
4762         (score7_in_small_data_p, score7_function_value): Likewise.
4763         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
4764         (score_return_in_memory, score_pass_by_reference): Constify arguments.
4765         (score_output_mi_thunk, score_function_prologue): Don't return a value.
4766         (score_function_epilogue, score_in_small_data_p): Likewise.
4767         (score_option_override, score_asm_trampoline_template): Likewise.
4768         (score_trampoline_init, score_print_operand): Likewise.
4769         (score_print_operand_address, score_prologue): Likewise.
4770         (score_epilogue, score_call, score_call_value): Likewise.
4771         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
4772         (score_function_arg_advance): Likewise. Make static.
4773         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
4774         (score_function_arg, score_legitimate_address_p): Make static.
4775         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
4776         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
4777         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
4778         Allow (W) == HOST_BITS_PER_WIDE_INT.
4779
4780         PR java/46386
4781         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
4782         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
4783
4784 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4785
4786         * config/arc/arc.c: Delete pasto.
4787         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
4788
4789 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
4790
4791         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
4792         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4793         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
4794         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4795         (mn10300_preferred_reload_class,
4796         mn10300_preferred_output_reload_class): New functions.
4797
4798 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4799
4800         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
4801         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
4802         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
4803         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
4804
4805 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4806
4807         * builtins.c (std_gimplify_va_arg_expr): Use
4808         targetm.calls.function_arg_boundary.
4809         * function.c (assign_parms, locate_and_pad_parm): Likewise.
4810         * calls.c (struct arg_data): Update comment.
4811         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
4812         * target.def (function_arg_boundary): Define.
4813         * targhooks.h (default_function_arg_boundary): Declare.
4814         * targhooks.c (default_function_arg_boundary): Define.
4815         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
4816         TARGET_FUNCTION_ARG_BOUNDARY.
4817         (FUNCTION_ARG_BOUNDARY): Delete.
4818         (TARGET_FUNCTION_ARG_BOUNDARY): New.
4819         * doc/tm.texi: Regenerate.
4820         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
4821         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
4822         * config/arc/arc.c (arc_function_arg_boundary): Define.
4823         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4824         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
4825         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
4826         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
4827         (arm_function_arg_boundary): Define.
4828         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4829         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
4830         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
4831         * config/frv/frv.c (frv_function_arg_boundary): Make static.
4832         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4833         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
4834         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
4835         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
4836         (ix86_compat_function_arg_boundary): Take and return unsigned int.
4837         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4838         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
4839         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
4840         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
4841         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4842         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
4843         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
4844         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4845         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
4846         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
4847         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
4848         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4849         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
4850         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
4851         * config/mips/mips.c (mips_function_arg_boundary): Make static.
4852         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4853         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
4854         * config/pa/pa.c (pa_function_arg_boundary): Define.
4855         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4856         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
4857         * config/picochip/picochip-protos.h
4858         (picochip_get_function_arg_boundary): Delete.
4859         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
4860         Rename to...
4861         (picochip_function_arg_boundary): ...this.  Make static.
4862         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
4863         (picochip_arg_advance): Adjust.
4864         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4865         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
4866         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
4867         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
4868         (rs6000_function_arg_boundary): ...this.  Make static.
4869         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
4870         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4871         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
4872         * config/rx/rx.c (rx_function_arg_boundary): Define.
4873         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4874         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
4875         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
4876         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4877         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
4878         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
4879         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
4880         (xtensa_function_arg_boundary): ...this.  Make static.
4881         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
4882
4883 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4884
4885         * expr.c (alignment_for_piecewise_move): New function.
4886         (widest_int_mode_for_size): New function.
4887         (move_by_pieces, move_by_pieces_ninsns): Call them.
4888         (can_store_by_pieces, store_by_pieces_1): Likewise.
4889
4890 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4891
4892         * gcc.c (char_p): Define.  Define a VEC of it.
4893         (n_linker_options, n_assembler_options, n_preprocessor_options):
4894         Delete.
4895         (linker_options, assembler_options, preprocessor_options): Convert
4896         to a VEC.
4897         (add_preprocessor_option): Adjust.
4898         (add_assembler_option): Adjust.
4899         (add_linker_option): Adjust.
4900         (do_specs_vec): New function.
4901         (do_spec_1): Call it.  Adjust for new types.
4902
4903 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4904
4905         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
4906         (sreal.o, statistics.o, stringpool.o): Likewise.
4907
4908 2010-11-16  Richard Guenther  <rguenther@suse.de>
4909
4910         PR tree-optimization/44545
4911         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
4912         statements are not reassociatable.
4913         (reassociate_bb): Likewise.
4914
4915 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
4916
4917         * bitmap.c: Delete unnecessary includes.
4918         * ebitmap.c: Likewise.
4919         * et-forest.c: Likewise.
4920         * sreal.c: Likewise.
4921         * statistics.c: Likewise.
4922         * stringpool.c: Likewise.
4923         * double-int.c: Add comment for inclusion of tm.h.
4924
4925 2010-11-16  Richard Guenther  <rguenther@suse.de>
4926
4927         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
4928         (visit_nary_op): ... this.
4929         (visit_binary_op): Remove.
4930         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
4931
4932 2010-11-16  Richard Guenther  <rguenther@suse.de>
4933
4934         PR middle-end/45172
4935         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
4936
4937 2010-11-16  Nick Clifton  <nickc@redhat.com>
4938
4939         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
4940         record is packed.
4941
4942 2010-11-15  Richard Henderson  <rth@redhat.com>
4943
4944         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
4945         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
4946         DOT_PROD_EXPR.
4947
4948 2010-11-15  Richard Henderson  <rth@redhat.com>
4949
4950         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
4951         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
4952         fma rtx_code.
4953
4954 2010-11-15  Richard Henderson  <rth@redhat.com>
4955
4956         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
4957         and *mulsubsf4 respectively.  Use fma rtx_code.
4958
4959 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
4960
4961         * gcc.c: Include "vec.h".
4962         (argbuf): Make into a VEC.
4963         (argbuf_length, argbuf_index): Remove.
4964         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
4965         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
4966         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
4967         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
4968         (gcc.o): Depend on $(VEC_H).
4969
4970 2010-11-15  Richard Henderson  <rth@redhat.com>
4971
4972         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
4973         via FMA if unsafe math.
4974         (insert_var_expansion_initialization): Handle FMA.
4975         (combine_var_copies_in_loop_exit): Likewise.
4976
4977 2010-11-15  Richard Henderson  <rth@redhat.com>
4978
4979         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
4980         * config/ia64/ia64.opt: Remove mfused-madd.
4981         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
4982         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
4983         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
4984         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
4985         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
4986         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
4987         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
4988         (fmav2sf4): Rename from fpma; use FMA code.
4989         (fmsv2sf4): Rename from fpms; use FMA code.
4990         (fnmav2sf4): Rename from *fpnma; use FMA code.
4991         * config/ia64/ia64.md (MODE_SDF): New iterator.
4992         (suffix): New mode attribute.
4993         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
4994         (fmssf4): Rename from *fmssf4.
4995         (fnmasf4): Rename from *nfmasf4.
4996         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
4997         (*nmadddf4, *nmadddf4_truncsf): Remove.
4998         (fmsdf4): Rename from *fmsdf4.
4999         (fnmadf4): Rename from *nfmadf4.
5000         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
5001         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
5002         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
5003         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
5004         (fmsxf4): Rename from *fmsxf4.
5005         (fnmaxf4): Rename from *nfmaxf4.
5006         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
5007         (*fnmaxf_trunc_<MODE_SDF>): New.
5008
5009 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
5010
5011         PR tree-optimization/46461
5012         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
5013         a gimple val.
5014
5015 2010-11-15  Ian Lance Taylor  <iant@google.com>
5016
5017         * godump.c: New file.
5018         * common.opt (fdump-go-spec=): New option.
5019         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
5020         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
5021         (TYPE_SYMTAB_IS_DIE): Define.
5022         (struct tree_type): Change GTY for symtab field to use
5023         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
5024         to pick the union field.
5025         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
5026         (dump_go_spec_init): Declare.
5027         * toplev.c (process_options): Handle flag_dump_go_spec.
5028         * debug.c: Include "tree.h".
5029         (do_nothing_debug_hooks): Set tree_type_symtab_field.
5030         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5031         * dbxout.c (dbx_debug_hooks): Likewise.
5032         (xcoff_debug_hooks): Likewise.
5033         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5034         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
5035         SDB_DEBUGGING_INFO is not defined.
5036         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
5037         (Overall Options): Document -fdump-go-spec.
5038         * Makefile.in (OBJS-common): Add godump.o.
5039         (debug.o): Add dependency on $(TREE_H).
5040         (godump.o): New target.
5041         (GTFILES): Add $(srcdir)/godump.c.
5042
5043 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
5044
5045         PR debug/46095
5046         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
5047         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
5048         style < 0, add REG_FRAME_RELATED_EXPR.
5049
5050         PR debug/46387
5051         * rtl.h (vt_equate_reg_base_value): New prototype.
5052         * alias.c (vt_equate_reg_base_value): New function.
5053         * var-tracking.c (vt_init_cfa_base): Use it.
5054
5055 2010-11-15  Jan Hubicka  <jh@suse.cz>
5056             Diego Novillo  <dnovillo@google.com>
5057
5058         PR lto/41528
5059         * doc/lto.texi: Add.
5060         * doc/gccint.texi: Add reference to lto.texi.
5061         * doc/invoke.texi: Update user documentation for LTO.
5062         Move internal flags to lto.texi
5063
5064 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5065
5066         * c-typeck.c (build_unary_op): Use
5067         objc_build_incr_expr_for_property_ref to build the pre/post
5068         increment/decrement of an Objective-C property ref, and skip the
5069         lvalue_or_else check in that case.
5070
5071 2010-11-15  Martin Jambor  <mjambor@suse.cz>
5072
5073         PR tree-optimization/46349
5074         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
5075         (contains_vce_or_bfcref_p): Likewise.
5076         (sra_modify_assign): Use them.
5077
5078 2010-11-15  Richard Guenther  <rguenther@suse.de>
5079
5080         PR tree-optimization/46467
5081         * tree-ssa-structalias.c (do_structure_copy): Properly treat
5082         variables without subvars.
5083
5084 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
5085
5086         * config/picochip/picochip.c (file header): Picochip name change.
5087         * config/picochip/picochip.md (file header): Likewise.
5088         * config/picochip/predicates.md (file header): Likewise.
5089         * config/picochip/dfa_space.md (file header): Likewise.
5090         * config/picochip/dfa_speed.md (file header): Likewise.
5091         * config/picochip/picochip.h(file header): Likewise.
5092         * config/picochip/constraints.md (file header): Likewise.
5093         * config/picochip/picochip-protos.h (file header): Likewise.
5094         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
5095         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
5096         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
5097         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
5098         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
5099         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
5100         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
5101         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
5102         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
5103         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
5104         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
5105         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
5106         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
5107         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
5108
5109 2010-11-15  Richard Guenther  <rguenther@suse.de>
5110
5111         PR bootstrap/46474
5112         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
5113
5114 2010-11-15  Nick Clifton  <nickc@redhat.com>
5115
5116         * config/stormy16/stormy16.c (direct_return): Do not generate a
5117         direct return for interrupt handlers.
5118
5119 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
5120
5121         * Makefile.in (tm.texi): Replace with rule for:
5122         ($(srcdir)/doc/tm.texi).
5123         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
5124         $(srcdir)/doc/tm.texi .
5125         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
5126         tm.texi .
5127
5128         PR target/46427
5129         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
5130
5131         PR bootstrap/45444
5132         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
5133         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
5134
5135         PR target/46432
5136         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
5137
5138 2010-11-15  Richard Guenther  <rguenther@suse.de>
5139
5140         PR lto/44150
5141         * lto-opts.c (lto_write_options): Write -fexceptions even if
5142         not set by the user.
5143
5144 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
5145
5146         PR c/46462
5147         * c-decl.c (declspecs_add_type): Make variables with error types
5148         integers.
5149         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
5150         do not start a declaration before an Objective-C foreach.
5151         (c_parser_declaration_or_fndef): Improve recovery after unknown
5152         type name.
5153         (c_parser_for_statement): Hoist entrance of "foreach context"
5154         before ifs, add corresponding reset where it was missing.  Do
5155         not set objc_could_be_foreach_context for C.
5156
5157 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
5158
5159         PR tree-optimization/45722
5160         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
5161         this is a reference to a component.
5162         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
5163         (ipa_note_param_call): Adjust comment.
5164
5165 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
5166
5167         * config/mips/mips.c (machine_function): Remove
5168         initialized_mips16_gp_pseudo_p.
5169         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
5170         detect whether a pseudo has already been created.  Unconditionally
5171         create a new one if not.
5172         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
5173         expanding to rtl.  Create a new pseudo otherwise, if allowed.
5174
5175 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
5176
5177         PR target/43440
5178         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
5179         * tm.texi: Regenerated.
5180         * output.h (decode_reg_name_and_count): Declare.
5181         * varasm.c (decode_reg_name_and_count): New function.
5182         (decode_reg_name): Reimplement using decode_reg_name_and_count.
5183         * reginfo.c (fix_register): Use decode_reg_name_and_count and
5184         iterate over all regs used.
5185         * stmt.c (expand_asm_operands): Likewise.
5186         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
5187         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
5188         multiple machine registers.
5189
5190 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5191
5192         * stor-layout.c (place_union_field): Do not put location information
5193         on offset expressions.
5194         (place_field): Likewise.
5195         (finalize_record_size): Likewise on size expressions.
5196         (finalize_type_size): Likewise.
5197         (layout_type): Likewise.
5198
5199 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
5200
5201         PR debug/42889
5202         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
5203         * df-core.c (df_set_bb_dirty_nonrl): Remove.
5204         * df.h (df_set_bb_dirty_nonlr): Likewise.
5205
5206 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
5207
5208         * config/mips/mips.md (call_internal): Pass curr_insn to
5209         mips_split_call.
5210         (call_internal_direct): Ditto.
5211         (call_value_internal): Ditto.
5212         (call_value_internal_direct): Ditto.
5213         (call_value_multiple_internal): Ditto.
5214         * config/mips/mips.c (mips_split_call): Do not copy
5215         CALL_INSN_FUNCTION_USAGE here.
5216
5217 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
5218
5219         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
5220         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
5221         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
5222         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
5223         (TUNE_LOONGSON_3A): Define.
5224         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
5225         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
5226         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
5227         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
5228         (mips_rtx_cost_data): Add Loongson-3A.
5229
5230 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
5231
5232         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
5233         switches.
5234
5235 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
5236
5237         * dwarf2out.c (macinfo_entry): New struct.
5238         (output_comp_unit): Emit the section start label here and flag that we
5239         will emit an info section.
5240         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
5241         emitting directly.
5242         (dwarf2out_end_source_file): Likewise.
5243         (dwarf2out_define): Likewise.
5244         (dwarf2out_undef): Likewise.
5245         (output_macinfo): New.
5246         (dwarf2out_init): Do not emit debug section switches here, allocate a
5247         vec for macinfo, when required.
5248         (dwarf2out_finish): First switch to debug_abbrev_section here.
5249         debug_line_section,  debug_macinfo_section, Likewise.
5250         Check that the pubtypes table has at least one unpruned entry before
5251         trying to emit it.
5252
5253 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
5254
5255         PR c/20385
5256         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
5257         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
5258         token lookahead.
5259         (c_parser_compound_statement_nostart, c_parser_label,
5260         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
5261         (c_parser_declaration_or_fndef): Detect the case now matched by
5262         c_parser_next_tokens_start_declaration, give error and correct it.
5263
5264 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
5265
5266         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
5267         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
5268         with typespec_kind.
5269         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
5270         (shadow_tag_warned, check_compound_literal_type): Adjust
5271         uses of tag_defined_p.
5272         (declspecs_add_type): Set typespec_kind.
5273         * c-parser.c (c_parser_declaration_or_fndef,
5274         c_parser_declspecs, c_parser_struct_declaration,
5275         c_parser_parameter_declaration, c_parser_type_name,
5276         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
5277         of type_seen_p.
5278         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
5279         tag_defined_p, pass ctsk_firstref through.
5280
5281 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
5282
5283         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
5284         (struct format_wanted_type): Replace field "name" with "kind", add
5285         "format_start" and "format_length".
5286         (check_format_info_main): Fill in new fields.  Fill in
5287         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
5288         after the final NUL outside the while loop.  Do not include
5289         width and precision modifiers in the format_start/format_length
5290         of the main format.
5291         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
5292         arguments.  Compute WANTED_TYPE first so that format_type_warning
5293         can be called for missing arguments.  Adjust calls to
5294         format_type_warning.
5295         (format_type_warning): Fetch as much information as possible
5296         from format_wanted_type.  Adjust printing now that every
5297         warning has a "descr", as well as for missing argument warnings
5298         and to include % sign for format specifiers.
5299
5300 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
5301
5302         PR rtl-optimization/46204
5303         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
5304         Update all callers.  Do not recompute topological order.  Adjust
5305         fallthrough edges following a degenerate conditional jump.
5306
5307 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
5308
5309         * opts-common.c (control_warning_option): New.
5310         * opts.c (set_default_handlers): New.
5311         (decode_options): Use set_default_handlers and
5312         control_warning_option.
5313         (common_handle_option): Update call to enable_warning_as_error.
5314         (enable_warning_as_error): Take gcc_options parameters.  Use
5315         control_warning_option.
5316         * opts.h (set_default_handlers, control_warning_option): Declare.
5317
5318 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
5319
5320         * Makefile.in (OPTS_H): Define.
5321         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
5322         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
5323         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
5324         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
5325         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
5326         * gcc.c (driver_handle_option): Take location_t parameter.
5327         (process_command, do_self_spec): Update calls to
5328         read_cmdline_option.
5329         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
5330         * langhooks.c (lhd_handle_option): Take location_t parameter.
5331         * langhooks.h (handle_option): Take location_t parameter.
5332         * lto-opts.c (lto_reissue_options): Update call to set_option.
5333         * opts-common.c (handle_option): Make static.  Take location_t
5334         parameter and pass it to other functions.
5335         (handle_generated_option): Take location_t parameter and pass it
5336         to other functions.
5337         (read_cmdline_option): Take location_t parameter and pass it to
5338         other functions.  Use warning_at and error_at.
5339         (set_option): Take location_t parameter and pass it to other
5340         functions.
5341         * opts.c (common_handle_option): Take location_t parameter and
5342         pass it to other functions.
5343         (enable_warning_as_error): Make static.  Take location_t parameter
5344         and pass it to other functions.
5345         (lang_handle_option): Take location_t parameter and pass it to
5346         other functions.
5347         (target_handle_option): Take location_t parameter.
5348         (read_cmdline_options, maybe_default_option,
5349         maybe_default_options, default_options_optimization,
5350         decode_options): Take location_t parameter and pass it to other
5351         functions.
5352         * opts.h: Include input.h.
5353         (struct cl_option_handler_func, decode_options, set_option,
5354         handle_generated_option, read_cmdline_option): Take location_t
5355         parameters.
5356         (handle_option, enable_warning_as_error): Remove.
5357         * toplev.c (toplev_main): Update call to decode_options.
5358
5359 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
5360
5361         * graphite-cloog-util.c (oppose_constraint,
5362         cloog_matrix_to_ppl_constraint,
5363         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
5364         CLooG isl uses unsigned integers.  This triggered a warning.
5365
5366 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
5367
5368         PR target/46438
5369         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
5370         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
5371         (xtensa_function_arg_1): De-constify cum.
5372         (xtensa_expand_prologue): Use add_reg_note.
5373
5374         PR target/46435
5375         * config/cris/cris.c (saved_regs_mentioned): Delete.
5376         (cris_reload_address_legitimized): Cast itype to enum reload_type.
5377         Remove unused variable op0p.
5378         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
5379         (cris_emit_movem_store): Use add_reg_note.
5380
5381         PR bootstrap/46456
5382         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
5383
5384 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5385
5386         * function.c (expand_function_end): Set the locator of the prologue on
5387         the stack checking insns.
5388
5389 2010-11-12  Richard Henderson  <rth@redhat.com>
5390
5391         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
5392         * config/xtensa/xtensa.opt (mfused-madd): Remove.
5393         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
5394         MASK_FUSED_MADD.
5395         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
5396         (fnmasf4): Rename from mulsubsf3; use fma.
5397
5398 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
5399             Richard Henderson  <rth@redhat.com>
5400
5401         PR target/46428
5402         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
5403         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
5404         comparison.
5405
5406 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
5407
5408         * opts-common.c (decode_cmdline_option): Initialize separate_args.
5409
5410 2010-11-12  Jan Hubicka  <jh@suse.cz>
5411
5412         * doc/invoke.texi (early-inlining-insns): Update default.
5413         * params.def (early-inlining-insns): Default to 10.
5414
5415 2010-11-12  Olivier Hainque  <hainque@adacore.com>
5416
5417         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
5418
5419 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5420
5421         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
5422         (SUPPORTS_INIT_PRIORITY): Define.
5423
5424 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
5425
5426         PR target/46430
5427         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
5428         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
5429         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
5430         (avr_device_to_devicelib): Likewise.
5431         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
5432         into block.
5433         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
5434         (zero_extendhidi2, zero_extendsidi2): Likewise.
5435         * config/avr/avr.c (avr_num_arg_regs): Constify type.
5436         (avr_return_addr_rtx): De-constify tem.
5437         (avr_rotate_bytes): Move declarations to start of block.
5438         Don't use variable length array.  Put nested if/else into block.
5439
5440         PR rtl-optimization/46433
5441         * var-tracking.c: Include tm_p.h .
5442
5443         PR bootstrap/44756
5444         PR build/44767
5445         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
5446         should be unsigned.
5447         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
5448         * doc/tm.texi: Regenerate.
5449
5450         PR target/46412
5451         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
5452         * config/bfin/bfin.c: Include sel-sched.h .
5453         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
5454         (expand_interrupt_handler_prologue): Remove unused variable insn.
5455         (bfin_load_pic_reg): Likewise.
5456         (bfin_rtx_costs): Make code / outer_code variables of type
5457         enum rtx_code, copied from re-named parameters.
5458         (bfin_local_alignment): Change align argument and return type
5459         to unsigned.
5460         (bfin_adjust_cost): Remove unused variable insn_type.
5461         Declare variables at start of block.
5462         (struct loop_info): Rename to...
5463         (struct loop_info_d).
5464         (workaround_rts_anomaly): Change type of icode to int.
5465         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
5466         with int-typed variable.
5467         (note_np_check_stores): Likewise.
5468         (trapping_loads_p): Remove unused variable pat.
5469         (bfin_expand_binop_builtin): Use expand_normal.
5470         (bfin_expand_unop_builtin): Likewise.
5471         (bfin_expand_builtin): Likewise.  Set tmode before use.
5472
5473         PR middle-end/44769
5474         * final.c (split_double): Don't use BITS_PER_WORD directly in
5475         shift count.
5476
5477         PR target/46431
5478         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
5479         assignment.
5480
5481         PR target/46450
5482         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
5483         Use add_reg_note.
5484         (xstormy16_function_arg): Dereference cum.
5485         (xstormy16_expand_builtin): Use expand_normal.
5486         Change type of omode to enum machine_mode.
5487         (combine_bnp): Rename and to and_insn.
5488
5489         PR target/46437
5490         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
5491         localreg.
5492
5493 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5494
5495         PR debug/46375
5496         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
5497
5498 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
5499
5500         PR lto/46376
5501         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
5502
5503 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
5504
5505         PR c/44782
5506         * common.opt (fmax-errors=): New option.
5507         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
5508         * diagnostic.h (struct diagnostic_context): Add max_errors field.
5509         * diagnostic.c (diagnostic_initialize): Initialize it.
5510         (diagnostic_action_after_output): Exit if more than max_errors
5511         have been output.
5512         * doc/invoke.texi (Warning Options): Add -fmax-errors.
5513         (-fmax-errors): Document.
5514
5515 2010-11-11  Richard Henderson  <rth@redhat.com>
5516
5517         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
5518
5519 2010-11-11  Richard Henderson  <rth@redhat.com>
5520
5521         * config/fused-madd.opt: New file.
5522         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
5523         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
5524         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
5525         * config/i386/i386.opt (mfused-madd): Remove.
5526         * config/i386/sse.md (split_fma): Remove.
5527         (split_fms, split_fnma, split_fnms): Remove.
5528
5529 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
5530
5531         PR target/46088
5532         * config/i386/i386.md (*ashl<mode>3_cconly,
5533         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
5534         change nonimmediate_operand predicate to register_operand.
5535
5536 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
5537
5538         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
5539
5540 2010-11-11  Jan Hubicka  <jh@suse.cz>
5541
5542         * opts.c (finish_options): Do not error on -flto-partition alone.
5543
5544         * doc/invoke.texi (-fwhopr): Merge into -flto section.
5545         (-flto-partition): Document none.
5546         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
5547         * lto-wrapper.c: Update comment.
5548         (run_gcc): Update LTO option parsing.
5549         * opts.c (finish_options): add support -flto-partition=none
5550         (common_handle_option): Remove fwhopr.
5551         * common.opt: Turn fwhopr into flto.
5552         * collect2.c (main): Update option handling.
5553         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
5554         * ipa-split.c (execute_split_functions): Remove flag_whopr.
5555         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
5556         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
5557         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
5558
5559 2010-11-11  Jan Hubicka  <jh@suse.cz>
5560
5561         PR tree-optimize/40436
5562         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
5563         (eliminated_by_inlining_prob): ... this one; return 50% probability
5564         for SRA.
5565         (estimate_function_body_sizes): Update use of
5566         eliminated_by_inlining_prob; estimate static function size
5567         for 2 instructions.
5568
5569 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
5570
5571         PR target/44749
5572         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
5573         declare.  Change type of argument four to type int.
5574         (mep_secondary_input_reload_class): Returns enum reg_class.
5575         (mep_secondary_output_reload_class): Likewise.
5576         (mep_function_value): Change types of arguments to cont_tree.
5577         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
5578         argument four to type int.
5579         (mep_secondary_input_reload_class): Returns enum reg_class.
5580         (mep_secondary_output_reload_class): Likewise.
5581         (mep_function_value): Change types of arguments to cont_tree.
5582         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
5583         mep_regno_reg_class to enum reg_class.
5584
5585 2010-11-11  Richard Henderson  <rth@redhat.com>
5586
5587         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
5588         that the target has the exact fma operation that we matched.
5589
5590 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
5591
5592         * reginfo.c (fix_register): Avoid inserting English word in
5593         diagnostic sentence.  Use %qs for quoting and %'.
5594
5595 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
5596
5597         * config/i386/driver-i386.c (host_detect_local_cpu): Support
5598         Intel processor family 6, model 0x2c.
5599
5600 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * opts.c (warning_as_error_callback,
5603         register_warning_as_error_callback): Remove.
5604         (enable_warning_as_error): Don't use warning_as_error_callback.
5605         * opts.h (register_warning_as_error_callback): Remove.
5606
5607 2010-11-11  Richard Henderson  <rth@redhat.com>
5608
5609         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
5610         in between the MULT and the PLUS/MINUS.
5611
5612 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
5613
5614         PR middle-end/46388
5615         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
5616         BLKmode mode for it.
5617         (expand_expr_real_1): Similarly for op0.
5618
5619 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5620
5621         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
5622         Document optional target selector.
5623
5624 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
5625
5626         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
5627         assembling high and low parts of size if not using 32-bit HWINT; else
5628         use DECL_SIZE_UNITS, not DECL_SIZE.
5629
5630 2010-11-11  Martin Jambor  <mjambor@suse.cz>
5631
5632         PR tree-optimization/46383
5633         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
5634         offsets.
5635         (compute_complex_ancestor_jump_func): Likewise.
5636         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
5637
5638 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
5639
5640         PR debug/46150
5641         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
5642         true if expr1->hash != expr2->hash.
5643
5644 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
5645
5646         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
5647         diagnostics with lowercase letters.
5648         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
5649         lowercase letters.
5650         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
5651         diagnostic.
5652         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5653         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
5654         lowercase letters.
5655         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5656         Remove trailing ' ' from diagnostic.
5657         * config/avr/avr.c (print_operand_address): Start diagnostic with
5658         a lowercase letter and remove trailing '.'.
5659         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
5660         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
5661         with lowercase letters.  Use %' in diagnostics.  Remove trailing
5662         '.' from diagnostics.
5663         (bfin_handle_longcall_attribute): Use %' in diagnostic.
5664         * config/cris/cris.c (cris_split_movdx,
5665         cris_expand_pic_call_address): Start diagnostics with lowercase
5666         letters.
5667         (cris_asm_output_label_ref): Use %' in diagnostic.
5668         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
5669         letter.
5670         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
5671         lowercase letter.
5672         * config/darwin-c.c (version_as_macro): Start diagnostic with a
5673         lowercase letter.
5674         * config/darwin-driver.c (darwin_default_min_version): Use %' in
5675         diagnostic.
5676         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
5677         diagnostic.
5678         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5679         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
5680         diagnostics.
5681         * config/i386/i386.c (ix86_option_override_internal): Write
5682         diagnostic as a single sentence without trailing '.'.  Use %' in
5683         diagnostics.
5684         (ix86_function_sseregparm, classify_argument): Start diagnostics
5685         with lowercase letters.
5686         (ix86_expand_prologue): Use %' in diagnostic.
5687         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
5688         diagnostic.
5689         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
5690         lowercase letter.
5691         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
5692         diagnostic.
5693         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5694         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
5695         '`' in help text.
5696         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
5697         lowercase letter.
5698         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
5699         lowercase letters.
5700         * config/microblaze/microblaze.c (microblaze_handle_option):
5701         Remove trailing '.' from diagnostic.
5702         (print_operand): Start diagnostic with a lowercase letter.
5703         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
5704         lowercase letters.  Avoid '`' in diagnostics.
5705         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
5706         lowercase letters.  Avoid '`' in diagnostics.
5707         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
5708         lowercase letters.  Avoid '`' in diagnostics.
5709         * config/picochip/picochip.c (picochip_option_override,
5710         picochip_emit_save_register, picochip_function_arg,
5711         picochip_output_label, picochip_output_internal_label,
5712         picochip_asm_output_opcode, picochip_output_cbranch,
5713         picochip_output_compare, picochip_output_branch,
5714         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
5715         diagnostics. Start diagnostics with lowercase letters.  Use %' in
5716         diagnostics.
5717         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
5718         "SPE" capitalization.  Start diagnostic with a lowercase letter.
5719         (rs6000_handle_option): Start diagnostics with lowercase letters.
5720         (def_builtin): Remove trailing '.' from diagnostic.
5721         (rs6000_savres_routine_name): Start diagnostic with a lowercase
5722         letter.
5723         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
5724         diagnostic.
5725         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
5726         lowercase letter.
5727         * config/s390/s390.c (s390_option_override) Start diagnostics with
5728         lowercase letters.  Use %' in diagnostic.
5729         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
5730         lowercase letters.
5731         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
5732         diagnostic.
5733         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
5734         diagnostic.
5735         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
5736         diagnostic.
5737         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
5738         * config/spu/spu.c (spu_option_override): Start diagnostics with
5739         lowercase letters.  Use %qs for quoting in diagnostics.
5740         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
5741         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
5742         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
5743         from diagnostic.
5744         * convert.c (convert_to_integer, convert_to_vector): Use %' in
5745         diagnostics.
5746         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
5747         letter and use "cannot" spelling.
5748         * expmed.c (extract_fixed_bit_field): Start diagnostic with
5749         lowercase letter and format as a single sentence without '.'.
5750         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
5751         Use %' in diagnostics.
5752         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5753         Use %' in diagnostics.
5754         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
5755         Use %' in diagnostics.
5756         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
5757         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
5758         with lowercase letters and remove tailing '.' and '\n'.
5759         * lto-cgraph.c (input_profile_summary): Start diagnostic with
5760         lowercase letter and remove trailing '.'.
5761         (input_cgraph): Start diagnostics with lowercase letters and
5762         remove trailing '\n'.
5763         * opts.c (finish_options, common_handle_option): Start diagnostics
5764         with lowercase letters and remove trailing '.'.  Fix typo in
5765         diagnostic.
5766         * passes.c (position_pass): Start diagnostic with lowercase letter.
5767         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
5768         register_callback, try_init_one_plugin): Start diagnostics with
5769         lowercase letters.
5770         * reload1.c (spill_failure): Use %' in diagnostic.
5771         (gen_reload): Start diagnostic with a lowercase letter.
5772         * stor-layout.c (place_field): Start diagnostic with a lowercase
5773         letter.
5774         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
5775         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
5776         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
5777         Start diagnostics with lowercase letters, remove trailing '.' and
5778         use %' in diagnostics.
5779         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
5780         (verify_ssa): Don't split diagnostic across two error calls.
5781         Spell out "number" and use %' in diagnostic.
5782         * value-prof.c (visit_hist, check_counter): Start diagnostics with
5783         lowercase letters.
5784
5785 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
5786
5787         PR middle-end/46419
5788         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
5789         (_mm_cvtpu16_ps): Ditto.
5790
5791 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
5792
5793         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
5794         warn_larger_than, larger_than_size, warn_frame_larger_than,
5795         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
5796         default_visibility, flag_tls_default): New Variable declarations.
5797         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
5798         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
5799         (v): Declare as Common and document here.
5800         * flags.h (default_visibility, flag_generate_lto,
5801         warn_larger_than, larger_than_size, warn_frame_larger_than,
5802         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
5803         flag_shlib, flag_excess_precision_cmdline): Remove.
5804         (set_Wstrict_aliasing): Update prototype.
5805         * gcc.c (verbose_flag): Remove.
5806         (driver_handle_option): Add diagnostic_context parameter.  Don't
5807         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
5808         incrementing it.
5809         * opts-common.c (handle_option): Pass dc to handler.
5810         * opts.c (warn_larger_than, larger_than_size,
5811         warn_frame_larger_than, frame_larger_than_size,
5812         default_visibility): Remove.
5813         (common_handle_option): Add diagnostic_context parameter.
5814         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
5815         gcc_options parameters.
5816         (lang_handle_option, target_handle_option, read_cmdline_options,
5817         decode_options): Add diagnostic_context parameters.
5818         (finish_options): Access option state through opts pointer where
5819         possible.
5820         (common_handle_option): Access option state through opts pointer
5821         where possible.  Do not set local static variable verbose.  Do not
5822         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
5823         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
5824         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
5825         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
5826         OPT_fwhopr_.  Do not explicitly set .opt file variables for
5827         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
5828         (set_Wstrict_aliasing): Add gcc_options parameter.
5829         * opts.h (struct cl_option_handler_func): Add diagnostic_context
5830         parameter to handler.
5831         (decode_options): Add diagnostic_context parameter.
5832         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
5833         asm_file_name, flag_generate_lto, flag_gen_aux_info,
5834         aux_info_file_name, flag_shlib, flag_tls_default,
5835         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
5836         (toplev_main): Pass global_dc to decode_options.
5837         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
5838         aux_info_file_name, asm_file_name): Remove.
5839         * tree.h (flag_tls_default): Remove.
5840
5841 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
5842
5843         PR target/45986
5844         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
5845         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
5846
5847 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
5848
5849         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
5850         (x86_64-*-*): Likewise.
5851         * config/i386/cpuid.h: Define TBM bit.
5852         * config/i386/driver-i386.c (host_detect_local_cpu): Define
5853         and set has_tbm.
5854         * config/i386/i386-c.c (ix86_target_macros_internal): Check
5855         isa_flag for TBM.
5856         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
5857         (OPTION_MASK_ISA_TBM_UNSET): New.
5858         (ix86_handle_option): Handle -mtbm.
5859         (isa_opts): Add -mtbm.
5860         (enum pta_flags): Add PTA_TBM.
5861         (ix86_option_override_internal): Add TBM support.
5862         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
5863         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
5864         (IX86_BUILTIN_BEXTRI64): Likewise.
5865         (bdesc_args): Add TBM intrinsics.
5866         (ix86_expand_builtin): Add TBM specific case.
5867         * config/i386/i386.h (TARGET_TBM): New for TBM.
5868         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
5869         (tbm_bextri_<mode>): Likewise.
5870         (*tbm_blcfill_<mode>): Likewise.
5871         (*tbm_blci_<mode>): Likewise.
5872         (*tbm_blcic_<mode>): Likewise.
5873         (*tbm_blcmsk_<mode>): Likewise.
5874         (*tbm_blcs_<mode>): Likewise.
5875         (*tbm_blsfill_<mode>): Likewise.
5876         (*tbm_blsic_<mode>): Likewise.
5877         (*tbm_t1mskc_<mode>): Likewise.
5878         (*tbm_tzmsk_<mode>): Likewise.
5879         * config/i386/i386.opt: Add -mtbm.
5880         * config/i386/tbmintrin.h (__bextri_u32): New.
5881         (__blcfill_u32): Likewise.
5882         (__blci_u32): Likewise.
5883         (__blcic_u32): Likewise.
5884         (__blcmsk_u32): Likewise.
5885         (__blcs_u32): Likewise.
5886         (__blsfill_u32): Likewise.
5887         (__blsic_u32): Likewise.
5888         (__t1mskc_u32): Likewise.
5889         (__tzmsk_u32): Likewise.
5890         (__bextri_u64): Likewise.
5891         (__blcfill_u64): Likewise.
5892         (__blci_u64): Likewise.
5893         (__blcic_u64): Likewise.
5894         (__blcmsk_u64): Likewise.
5895         (__blcs_u64): Likewise.
5896         (__blsfill_u64): Likewise.
5897         (__blsic_u64): Likewise.
5898         (__t1mskc_u64): Likewise.
5899         (__tzmsk_u64): Likewise.
5900         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
5901         * doc/invoke.texi: Document -mtbm.
5902         * doc/extend.texi: Document TBM built-in functions.
5903
5904 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
5905
5906         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
5907         (x86_64-*-*): Likewise.
5908         * config/i386/cpuid.h: Define BMI bit.
5909         * config/i386/driver-i386.c (host_detect_local_cpu): Define
5910         and set has_bmi.
5911         * config/i386/i386-c.c (ix86_target_macros_internal): Check
5912         isa_flag for BMI.
5913         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
5914         (OPTION_MASK_ISA_BMI_UNSET): New.
5915         (ix86_handle_option): Handle -mbmi.
5916         (isa_opts): Add -mbmi.
5917         (enum pta_flags): Add PTA_BMI.
5918         (ix86_option_override_internal): Add BMI support.
5919         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
5920         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
5921         (IX86_BUILTIN_BEXTR64): Likewise.
5922         (IX86_BUILTIN_CTZS): Likewise.
5923         (bdesc_args): Add BMI intrinsics.
5924         (ix86_expand_args_builtin): Add BMI specific cases.
5925         * config/i386/i386.h (TARGET_BMI): New for BMI.
5926         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
5927         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
5928         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
5929         (UNSPEC_TZCNT): Likewise.
5930         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
5931         (bmi_andn_<mode>): New for BMI.
5932         (bmi_bextr_<mode>): Likewise.
5933         (bmi_blsi_<mode>): Likewise.
5934         (bmi_blsmsk_<mode>): Likewise.
5935         (bmi_blsr_<mode>): Likewise.
5936         * config/i386/i386.opt: Add -mbmi.
5937         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
5938         * config/i386/bmiintrin.h (__lzcnt_u16): New.
5939         (__tzcnt_u16): Likewise.
5940         (__andn_u32): Likewise.
5941         (__bextr_u32): Likewise.
5942         (__blsi_u32): Likewise.
5943         (__blsmsk_u32): Likewise.
5944         (__blsr_u32): Likewise.
5945         (__lzcnt_u32): Likewise.
5946         (__tzcnt_u32): Likewise.
5947         (__andn_u64): Likewise.
5948         (__bextr_u64): Likewise.
5949         (__blsi_u64): Likewise.
5950         (__blsmsk_u64): Likewise.
5951         (__blsr_u64): Likewise.
5952         (__lzcnt_u64): Likewise.
5953         (__tzcnt_u64): Likewise.
5954         * doc/invoke.texi: Document -mbmi and -mno-bmi.
5955         * doc/extend.texi: Document BMI built-in functions.
5956
5957 2010-11-10  Jan Hubicka  <jh@suse.cz>
5958
5959         PR tree-optimize/46228
5960         * doc/invoke.texi (comdat-sharing-probability): Document.
5961         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
5962         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
5963
5964 2010-11-10  Jan Hubicka  <jh@suse.cz>
5965
5966         PR tree-optimize/46228
5967         * cgraph.c (cgraph_propagate_frequency): Fix typo.
5968
5969 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
5970
5971         PR tree-optimization/46414
5972         * tree-inline.c (estimate_move_cost): Check preferred vector
5973         mode for vector type.
5974
5975 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5976
5977         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
5978
5979 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
5980
5981         PR tree-optimization/45971
5982         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
5983         for phi nodes analyzable by scev.
5984
5985 2010-11-10  Richard Guenther  <rguenther@suse.de>
5986
5987         PR tree-optimization/44964
5988         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
5989
5990 2010-11-10  Martin Jambor  <mjambor@suse.cz>
5991
5992         PR tree-optimization/46351
5993         PR tree-optimization/46377
5994         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
5995         aggregate bit-fields.
5996
5997 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
5998
5999         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
6000         * doc/tm.texi: Regenerate.
6001         * opts-common.c (tm.h): Don't include.
6002         (target_option_translations): Remove.
6003         (decode_cmdline_options_to_array): Don't handle translating options.
6004         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
6005         * config/darwin-driver.c: Don't condition includes on
6006         CROSS_DIRECTORY_STRUCTURE.
6007         (darwin_default_min_version): Make static.
6008         (darwin_driver_init): New.  Call darwin_default_min_version if not
6009         CROSS_DIRECTORY_STRUCTURE.
6010         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
6011         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
6012         (ASM_SPEC): Add %{static}.
6013         (darwin_default_min_version): Don't declare.
6014         (darwin_driver_init): Declare.
6015         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
6016         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
6017         * config/darwin.opt (all_load, allowable_client,
6018         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
6019         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
6020         exported_symbols_list, filelist, findirect-virtual-calls,
6021         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
6022         framework, fterminated-vtables, gfull, gused, image_base, init,
6023         install_name, multi_module, multiply_defined,
6024         multiply_defined_unused, no_dead_strip_inits_and_terms,
6025         seg_addr_table, seg_addr_table_filename, segaddr,
6026         segs_read_only_addr, segs_read_write_addr, single_module,
6027         umbrella, unexported_symbols_list, weak_reference_mismatches,
6028         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
6029         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
6030         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
6031         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
6032         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
6033         (ASM_SPEC): Add %{static}.
6034         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
6035         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
6036         (DRIVER_SELF_SPECS): Handle options formerly in
6037         TARGET_OPTION_TRANSLATE_TABLE.
6038         * config/mep/mep.opt (mfar): New.
6039         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
6040         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
6041         TARGET_OPTION_TRANSLATE_TABLE.
6042         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
6043         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
6044         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
6045         ffix-and-continue, findirect-data): New.
6046         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
6047         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
6048         (mnofpu): Define mask and use Report here.
6049
6050 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6051
6052         * config/s390/s390.c (s390_emit_prologue): Report the stack
6053         size if -fstack-usage is used.
6054
6055 2010-11-10  Richard Guenther  <rguenther@suse.de>
6056
6057         PR tree-optimization/46398
6058         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
6059
6060 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
6061
6062         PR target/44760
6063         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
6064         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
6065         GP_REG_OR_PSEUDO_STRICT_P.
6066         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
6067         unexpected alternative.
6068         (*movsf_internal): Likewise.
6069         (indirect_jump): Replace call to non-existant function with call to
6070         internal_error.
6071         (tablejump): Likewise.
6072         * config/iq2000/iq2000.c: Include df.h .
6073         (iq2000_function_arg_advance): Use CONST_CAST2.
6074         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
6075         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
6076         a non-zero function address.
6077         (iq2000_initial_elimination_offset): Add gcc_unreachable for
6078         unexpected value of FROM.
6079         (symbolic_expression_p): Delete.
6080         (iq2000_function_value): Constify func.
6081         (expand_one_builtin): Use expand_normal.
6082         (iq2000_print_operand): Don't print VALUE if calculating it failed.
6083
6084         PR rtl-optimization/44764
6085         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
6086
6087         PR target/46407
6088         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
6089         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
6090         with ATTRIBUTE_UNUSED.
6091         (valid_psw_flag): Constify parameter which.
6092         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
6093
6094         PR target/46415
6095         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
6096         (mmix_dbx_register_number): Likewise.
6097         * config/mmix/mmix.c: Include df.h .
6098         (mmix_local_alignment): Change argument basic_align and return type
6099         to unsigned.
6100         (mmix_dbx_register_number): Change argument and return type to
6101         unsigned.
6102         (mmix_expand_prologue): Use add_reg_note.
6103
6104         PR target/46417
6105         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
6106         (spu_split_store): Use aform.
6107         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
6108
6109 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6110
6111         PR/46268
6112         * doc/gty.texi (GTY Options): Clarify that variable_size produces
6113         allocators taking size in bytes, compare with length option.  Add
6114         size calculation example.
6115         (Invoking the garbage collector): Ensure that sentences are
6116         followed by two spaces.  Describe that pointer fields must be
6117         initialized at ggc_collect call.
6118         (Troubleshooting): New section.
6119
6120 2010-11-09  Jan Hubicka  <jh@suse.cz>
6121
6122         PR tree-optimization/40436
6123         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
6124         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
6125         normal instructions; be sure bultin is not implemented in this file;
6126         compute non-zero return cost.
6127         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
6128         * tree-inline.h (eni_weights_d): Add return cost.
6129
6130 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
6131
6132         * c-parser.c (c_parser_struct_declaration): Handle declaration
6133         specifiers followed by CPP_CLOSE_BRACE.
6134
6135 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6136
6137         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
6138         split occurs before reload, and we allocate memory at the time of
6139         the split, not during expansion.  Add attributes.
6140         (floatsi<mode>2_lfiwax_mem): Ditto.
6141         (floatunssi<mode>2_lfiwzx): Ditto.
6142         (floatunssi<mode>2_lfiwzx_mem): Ditto.
6143         (floatsidf2): Ditto.
6144         (floatunssisf2): Ditto.
6145         (floatunssidf2): Ditto.
6146         (fix_trunc<mode>si2): Ditto.
6147         (fix_trunc<mode>si2_stfiwx): Ditto.
6148         (fix_trunc<mode>si2_internal): Ditto.
6149         (fix_trunc<mode>si2): Ditto.
6150         (fix_trunc<mode>di2): Ditto.
6151         (fixuns_trunc<mode>si2_stfiwx): Ditto.
6152         (floatsisf2): Ditto.
6153         (floatdidf2_mem): Ditto.
6154         (floatunsdidf2_mem): Ditto.
6155         (floatunsdidf2): Ditto.
6156         (floatdisf2_internal1): Ditto.
6157         (floatdisf2_mem): Ditto.
6158         (floatunsdisf2_mem): Ditto.
6159         (floatsi<mode>2_lfiwax_mem2): Delete.
6160         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
6161         (fix_trunc<mode>si2_mem): Ditto.
6162         (fixuns_trunc<mode>si2_mem): Ditto.
6163         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
6164         type operations to reduce copying the values to multiple memory slots.
6165         (roundu32<mode>2_fprs): Ditto.
6166
6167         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
6168         PRE_INC, PRE_DEC, PRE_MODIFY.
6169         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
6170
6171         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
6172         Delete prototype.
6173
6174 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
6175
6176         PR target/43808
6177         * cfgexpand.c (partition_stack_vars): Call
6178         update_alias_info_with_stack_vars unconditionally.
6179         (update_alias_info_with_stack_vars): Allow unused
6180         unreferenced vars when not optimizing.
6181
6182 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
6183
6184         PR tree-optimization/46036
6185         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
6186         add_to_dst_predicate_list.
6187
6188 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
6189
6190         PR debug/46171
6191         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
6192         earlier.
6193         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
6194         argument, call dead_debug_reset when adding REG_UNUSED note.
6195         (dead_debug_reset): New function.
6196         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
6197         df_create_unused_note callers.
6198
6199 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
6200
6201         * config/fr30/fr30.c: Include "df.h".
6202
6203 2010-11-09  Richard Guenther  <rguenther@suse.de>
6204
6205         PR tree-optimization/46355
6206         * tree-loop-distribution.c (tree_loop_distribution): Do not
6207         distribute loops without a single exit.
6208
6209 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6210
6211         PR rtl-optimization/46237
6212         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
6213         saved hard regs if they might get partially clobbered.
6214
6215 2010-11-09  Paul Koning  <ni1d@arrl.net>
6216
6217         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
6218
6219 2010-11-09  Richard Guenther  <rguenther@suse.de>
6220
6221         PR tree-optimization/46177
6222         * tree-loop-distribution.c (prop_phis): Remove.
6223         (generate_builtin): Re-use the old loop exit edge to avoid
6224         needing to update PHI nodes.
6225
6226 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
6227
6228         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
6229         type of args_size to unsigned HOST_WIDE_INT.
6230
6231         PR target/44755
6232         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
6233         * config/t-pnt16-warn: New file.
6234         * config/picochip/picochip.c (picochip_emit_stack_allocate):
6235         Use add_reg_note.
6236         (picochip_emit_save_register): Likewise.
6237         (picochip_emit_restore_register): Remove variable insn.
6238         (picochip_legitimize_address): Don't use C++ style comments.
6239         (picochip_legitimize_reload_address): Likewise.
6240         (reorder_var_tracking_notes): Remove variable vliw_start.
6241         (picochip_reorg): Cast first arguemnt to emit_note_after to
6242         enum insn_note.
6243         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
6244         (picochip_expand_builtin_3op): Likewise.
6245         (picochip_expand_builtin_2opvoid): Likewise.
6246         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
6247         (picochip_expand_array_testport): Likewise.
6248         (picochip_init_builtins): Remove unused variables.
6249         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
6250         to unsigned long, and output it as such.
6251         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6252         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
6253         (schedType): Cast result of picochip_schedule_type to
6254         enum attr_schedType.
6255
6256         PR target/44759
6257         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
6258         conditional to type of S.
6259         (mn10300_function_arg): Remove unused variable align.
6260         (mn10300_arg_partial_bytes): Likewise.
6261         * config/mn10300/mn10300.md (attribute cpu): Cast value to
6262         enum attr_cpu.
6263
6264 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
6265
6266         PR bootstrap/46392
6267         * gengtype-parse.c (type): Call get_input_file_name to get file name.
6268
6269 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6270
6271         * tree.h (contains_placeholder_p): Fix comment.
6272         (type_contains_placeholder_p): Adjust comment.
6273         * tree.c (contains_placeholder_p): Fix comment.
6274         (type_contains_placeholder_1): Do not recurse on pointed-to types and
6275         adjust comment.
6276         (type_contains_placeholder_p): Add comment.
6277
6278 2010-11-09  Paul Koning  <ni1d@arrl.net>
6279
6280         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
6281         output of byte values.
6282
6283 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
6284
6285         PR middle-end/46360
6286         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
6287         not in SSA mode.
6288
6289 2010-11-09  Richard Guenther  <rguenther@suse.de>
6290
6291         PR middle-end/46221
6292         * varasm.c (compute_visible_aliases): New function.
6293         (remove_unreachable_alias_pairs): Aliases make a target available
6294         even though we reclaimed the cgraph node.
6295         (finish_aliases_1): Likewise.
6296         * Makefile.in (varasm.o): Add pointer-set.h dependency.
6297
6298 2010-11-09  Nick Clifton  <nickc@redhat.com>
6299
6300         * config/mn10300/mn10300-modes.def: New file.
6301
6302 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
6303             Jeremie Salvucci  <jeremie.salvucci@free.fr>
6304
6305         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
6306         (plugin_files, get_file_basename, get_file_realbasename)
6307         (get_file_langdir, error_at_line, gt_files, this_file)
6308         (system_h_file, read_input_list, create_field_all)
6309         (get_file_srcdir_relative_path, get_file_basename)
6310         (get_file_langdir, get_file_gtfilename)
6311         (get_output_file_with_visibility, get_output_file_name)
6312         (struct flist, put_mangled_filename, walk_type)
6313         (put_mangled_filename, finish_root_table, write_roots): Use
6314         input_file-s.
6315         (lang_dir_names, num_lang_dirs): Remove static.
6316         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
6317         (main): Use input_file-s.
6318
6319         * gengtype.h: (struct input_file_st, input_file): New type.
6320         (struct fileloc): Use it.
6321         (gt_files, num_gt_files, this_file, system_h_file)
6322         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
6323         (get_input_file_name): New function.
6324         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
6325         use input_file.
6326         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
6327         (get_output_file_name): Ditto.
6328
6329         * gengtype-lex.l (yybegin): Use input_file.
6330
6331         * gengtype-parse.c (parse_error): Use input_file.
6332
6333 2010-11-08  Xinliang David Li  <davidxl@google.com>
6334
6335         PR tree-optimization/46316
6336         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
6337         * double-int.h (double_int_mul_with_sign): New function.
6338         * double-int.c (double_int_mul_with_sign): New function.
6339
6340 2010-11-08  Paul Koning  <ni1d@arrl.net>
6341
6342         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
6343
6344 2010-11-08  Paul Koning  <ni1d@arrl.net>
6345
6346         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
6347
6348 2010-11-08  Paul Koning  <ni1d@arrl.net>
6349
6350         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
6351         to 8 bits.
6352
6353 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6354
6355         PR target/46378
6356         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
6357         turn on ISA 2.04 rounding instructions for power5.
6358
6359         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
6360         not ISA 2.02.
6361
6362         PR target/45585
6363         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
6364         in FPR registers.
6365         (movdi_low_st): Ditto.
6366
6367 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
6368             Richard Henderson  <rth@redhat.com>
6369
6370         PR target/44758
6371         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
6372         (attribute acc_group): Cast value to enum attr_acc_group.
6373         (*movdi_nodouble+6): Use gen_int_mode.
6374         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
6375         if RTX_CODE is defined or not.
6376         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
6377         struct frv_io.
6378         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
6379         (frv_frame_access, frv_expand_prologue): Remove unused variables.
6380         (frv_expand_block_clear): Likewise.
6381         (frv_trampoline_init): Use LCT_NORMAL.
6382         (struct frv_packet_group): New struct, broken out of type of
6383         frv_packet.
6384         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
6385         use cast in loop counter increment.
6386         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
6387         assigning to io->type.
6388         (bdesc_set): Use rtx_code UNKNOWN in initializer.
6389         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
6390         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
6391         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
6392         (frv_read_argument): Use expand_normal.
6393
6394         PR target/44757
6395         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
6396         lm32_legitimate_constant_p.
6397         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6398         * config/lm32/lm32.c (gen_int_relational): Make new block for
6399         LE / LT / LEU / LTU case.  Declare variables at start of block.
6400         (lm32_block_move_inline): Use XALLOCAVEC.
6401
6402 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6403
6404         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
6405
6406 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
6407
6408         * gengtype (get_output_file_for_structure): Ensure type is union
6409         or struct.
6410         (write_splay_tree_allocator_def): Use
6411         get_output_file_with_visibility.
6412
6413 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6414
6415         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
6416         to defined values in case of an error.
6417         (s390_option_override): Skip further processing if the -march
6418         parameter wasn't recognized.
6419
6420 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
6421
6422         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
6423         assert that REG is a hard register number before using it as an index.
6424
6425         PR bootstrap/46358
6426         * config/i386/i386.c (ix86_expand_split_stack_prologue):
6427         Avoid warnings when HOST_WIDE_INT is 32 bit.
6428
6429 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6430
6431         PR target/46208
6432         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
6433         (sparc_promote_prototypes): Likewise.
6434         (sparc_promote_function_mode): Promote in 32-bit mode as well.
6435         (sparc_return_in_memory): Remove superfluous parentheses.
6436         (sparc_struct_value_rtx): Fix long lines.
6437         (sparc_function_value_1): Promote in 32-bit mode as well.
6438
6439 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
6440
6441         PR rtl-optimization/45352
6442         * sel-sched.c (find_best_expr): Do not set pneed_stall when
6443         the variable_issue hook is not implemented.
6444         (fill_insns): Remove dead variable stall_iterations.
6445         (init_seqno_1): Force EBB start for resetting sched cycles on any
6446         successor blocks of the rescheduled region.
6447         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
6448         (reset_sched_cycles_in_current_ebb): Add debug printing.
6449         New variable issued_insns.  Advance state when we have issued
6450         issue_rate insns.
6451
6452 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
6453
6454         * gengtype (main): Get here's position using POS_HERE macro for
6455         do*typedef calls.
6456
6457 2010-11-07  Ian Lance Taylor  <iant@google.com>
6458
6459         PR target/46089
6460         * config/i386/i386.c (split_stack_fn_large): New static variable.
6461         (ix86_expand_split_stack_prologue): Handle large model.
6462
6463 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
6464
6465         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
6466         all possible addressing modes.
6467
6468 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
6469
6470         PR tree-optimization/46346
6471         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
6472
6473 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
6474
6475         * config/mips/mips.c: Revert previous patch.
6476         * config/mips/mips.md: Likewise.
6477
6478 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
6479
6480         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
6481         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
6482         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
6483         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
6484         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
6485         to use FMA.
6486         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
6487         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
6488         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
6489         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
6490
6491 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
6492
6493         PR c/43384
6494         * c-decl.c (lookup_label): Labels can only be referenced in a
6495         function's scope.
6496         (store_parm_decls_oldstyle): Skip erroneous parameters.
6497
6498 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
6499
6500         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6501         LIBCALL_VALUE): Remove macros.
6502         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6503         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6504         (fr30_function_value_regno_p, fr30_function_value,
6505         fr30_libcall_value): New functions.
6506
6507 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
6508
6509         PR middle-end/46314
6510         * target.def (generate_internal_label): New asm_out hook.
6511         * output.h (default_generate_internal_label): Declare.
6512         * varasm.c (default_generate_internal_label): Define.
6513
6514 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
6515
6516         PR target/44981
6517         * doc/extend.tex (format): Document NSString extension.
6518         (format_arg): Likewise.
6519         (Darwin Format Checks): New section.
6520         * doc/tm.texi: Document string object hooks (generated).
6521         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
6522         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
6523         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
6524         * target.def (objc_construct_string_object): Rename, amend
6525         documentation.
6526         (string_object_ref_type_p): New hook.
6527         (check_string_object_format_arg): New hook.
6528         * c-parser.c (c_parser_attributes): Allow objective-c class names as
6529         attribute identifiers.
6530         * config/darwin-c.c (darwin_cfstring_ref_p): New.
6531         (darwin_check_cfstring_format_arg): New.
6532         (darwin_additional_format_types): New.
6533         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
6534         (darwin_check_cfstring_format_arg): New.
6535         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
6536         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
6537         (TARGET_N_FORMAT_TYPES): New.
6538         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
6539
6540 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6541             Pascal Obry  <obry@adacore.com>
6542
6543         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
6544         in 64-bit mode and 17 otherwise.
6545
6546 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6547
6548         PR debug/45939
6549         * var-tracking.c (emit_note_insn_var_location): Make sure that
6550         call related var location notes come before the normal ones.
6551
6552 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         PR target/46326
6555         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
6556         in the last change.
6557
6558 2010-11-05  Ian Lance Taylor  <iant@google.com>
6559
6560         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
6561
6562 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
6563
6564         PR c/44772
6565         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
6566         pointer_set_contains if DECL_NAME is NULL.
6567
6568 2010-11-05  Ian Lance Taylor  <iant@google.com>
6569
6570         PR target/46084
6571         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
6572         request enough additional space for alignment, and force alignment.
6573
6574 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
6575
6576         * config/i386/i386.c (legitimate_pic_address_disp_p):
6577         Handle UNSPEC_PCREL.
6578         (ix86_legitimate_address_p): Likewise.
6579         (legitimize_pic_address): Likewise.
6580         (output_pic_addr_const): Likewise.
6581         (ix86_delegitimize_address): Likewise.
6582         (ix86_find_base_term): Likewise.
6583         (memory_address_length): Likewise.
6584         (x86_output_mi_thunk): Handle special case x64
6585         for non local binding.
6586         * config/i386/i386.md (UNSPEC_PCREL): New.
6587         * config/i386/winnt.c (i386_pe_binds_local_p):
6588         Allow weak symbol for x64 windows with non-local binding.
6589
6590 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
6591
6592         PR target/45670
6593         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
6594         instead of EXPAND_NORMAL for base expansion.
6595
6596 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
6597
6598         * config.gcc: Support --with-fpmath=avx for x86.
6599         * config/i386/avxmath.h: New.
6600         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
6601
6602 2010-11-05  Ian Lance Taylor  <iant@google.com>
6603
6604         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
6605         * gengtype.c (walk_type): Don't recognize descbits option.
6606
6607 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
6608
6609         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
6610         WORD_SWITCH_TAKES_ARG): Remove.
6611         * doc/options.texi (Args): Document.
6612         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
6613         * doc/tm.texi: Regenerate.
6614         * opt-functions.awk (switch_flags): Handle Args.
6615         * opts-common.c: Update comment on tm.h include.
6616         (decode_cmdline_option): Handle options with multiple arguments.
6617         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
6618         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
6619         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6620         CL_COMMON): Update values.
6621         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
6622         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
6623         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
6624         sectobjectsymbols, sectorder, segcreate, segprot): New.
6625
6626 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6627             Uros Bizjak  <ubizjak@gmail.com>
6628
6629         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
6630         256bit AVX register is used.
6631         (ix86_expand_vector_move_misalign): Likewise.
6632         (ix86_expand_vector_move): Replace use_avx256_p with
6633         VALID_AVX256_REG_MODE.
6634
6635 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
6636
6637          PR target/44750
6638         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
6639         change.  Set $@-warn.o to -Wno-error.
6640
6641         PR bootstrap/44756
6642         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
6643         comparing it to a signed value.
6644
6645         PR middle-end/44766
6646         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
6647         PR bootstrap/44770
6648         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
6649         to i.
6650
6651         PR target/44754
6652         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
6653         (m32c_function_arg).  Add comma between arguments two and three.
6654         (m32c_promote_prototypes): Remove declaration.
6655         (current_function_special_page_vector): Likewise.
6656         (m32c_regno_reg_class): Change return type to enum reg_class.
6657         (m32c_pushm_popm): Use add_reg_note.
6658         (m32c_push_rounding): Change return type to unsigned int.
6659         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
6660         enum reload_type.
6661         (m32c_insert_attributes): Constify variable name.
6662         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
6663         (m32c_prepare_shift): Remove variable lref.
6664         (m32c_expand_movcc): Remove variable cmp.
6665         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
6666         (m32c_compare_redundant): Remove variable op2.
6667         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
6668         (m32c_pragma_memregs): Assign the number to target_memregs.
6669         (m32c_pragma_address): Remove variable var_str.
6670         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
6671         enum reg_class.
6672         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
6673         * config/m32c/bitops.md (andsi3): Add default case to switch.
6674         (iorsi3, xorsi3): Likewise.
6675         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
6676         * config/m32c/jump.md (call, call_value): Likewise.
6677         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
6678         (m32c_regno_reg_class): Likewise.
6679         (current_function_special_page_vector): Declare.
6680
6681 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
6682
6683         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
6684
6685         PR tree-optimization/46099
6686         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
6687         if it is NULL and uid wasn't found in the hash table.  Just fold the
6688         result if it is NULL otherwise.  Insert other potentially needed
6689         stmts right before current stmt instead of on the entry edge.
6690         (struct elv_data): Add gsi and reset fields.
6691         (eliminate_local_variables_1): Adjust caller.  If take_address_of
6692         failed for debug stmt, set dta->reset and return.
6693         (eliminate_local_variables_stmt): Change STMT argument for GSI,
6694         pass GSI through to the callback, handle resetting of debug stmts.
6695         (eliminate_local_variables): Adjust caller.  Process debug stmts
6696         in second phase.
6697
6698         PR middle-end/43690
6699         * gimplify.c (gimplify_asm_expr): If a "m" input is a
6700         {pre,post}{in,de}crement, fail.
6701
6702         PR debug/46307
6703         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
6704         * tree-pretty-print.c (dump_generic_node): Likewise.
6705         (op_code_prio): Likewise.
6706         * cfgexpand.c (expand_debug_expr): Likewise.
6707
6708 2010-11-04  Paul Koning  <ni1d@arrl.net>
6709
6710         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
6711         constraints.
6712
6713 2010-11-04  Chao-ying Fu  <fu@mips.com>
6714
6715         * configure.ac: Test assembler support for DSP Rev1 mult.
6716         * configure: Regenerate.
6717         * config.in: Regenerate.
6718         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
6719         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
6720         (CODE_FOR_mips_multu): New define.
6721         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
6722         dspr2_32 to dsp_32.
6723         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
6724         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
6725         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
6726         New define_expand patterns.
6727         * config/mips/constraints.md (ka): Update the constraint to test
6728         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
6729         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
6730         mips_multu): Delete.
6731         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
6732         Change target constraint to "ka".
6733         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
6734         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
6735         Emit the accumulator destination when ISA_HAS_DSP_MULT.
6736         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
6737         Emit the accumulator destination when ISA_HAS_DSP_MULT.
6738         (<u>maddsidi4): Likewise.
6739         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
6740         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
6741
6742 2010-11-04  Paul Koning  <ni1d@arrl.net>
6743
6744         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
6745
6746 2010-11-04  Paul Koning  <ni1d@arrl.net>
6747
6748         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
6749
6750 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
6751
6752         Fixed using the Objective-C 2.0 dot-syntax with class names.
6753         * c-parser.c (c_parser_next_token_starts_declspecs): In
6754         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
6755         (c_parser_next_token_starts_declaration): Same.
6756         (c_parser_postfix_expression): Parse the Objective-C 2.0
6757         dot-syntax with a class name.
6758
6759 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
6760
6761         * final.c (compute_alignments): Compute/free loop info all the time.
6762         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
6763         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
6764         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
6765         * config/rs6000/rs6000.c (cfgloop.h): Include.
6766         (can_override_loop_align): New.
6767         (rs6000_option_override_internal): Set it.
6768         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
6769         (rs6000_loop_align): New function.
6770         (rs6000_loop_align_max_skip): Likewise.
6771
6772 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6773
6774         PR driver/45703
6775         * collect2.c (main): Print --help output to stdout.  Do not
6776         exit right away, so ld --help is appended.  Add empty lines
6777         to separate output suitably.
6778
6779 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
6780
6781         PR tree-optimization/46233
6782         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
6783         after calling analyze_function, not before.
6784
6785         PR target/46234
6786         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
6787         instead of build_va_arg_indirect_ref.
6788         * config/spu/spu.c (spu_va_start): Likewise.
6789         * config/s390/s390.c (s390_va_start): Likewise.
6790
6791 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
6792
6793         PR middle-end/46292
6794         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
6795         if the innermode is not vector mode, determine the mode of a subreg
6796         by using mode_for_size of inner_size.
6797
6798 2010-11-04  Richard Guenther  <rguenther@suse.de>
6799
6800         PR rtl-optimization/46183
6801         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
6802         (execute_rtl_pre): Likewise.
6803         (execute_rtl_hoist): Likewise.
6804
6805 2010-11-04  Richard Guenther  <rguenther@suse.de>
6806
6807         PR tree-optimization/46068
6808         * ipa-split.c (consider_split): Remove gcc_unreachable.
6809
6810 2010-11-04  Richard Guenther  <rguenther@suse.de>
6811
6812         * tree-nested.c (build_addr): Use build_fold_addr_expr.
6813
6814 2010-11-04  Richard Guenther  <rguenther@suse.de>
6815
6816         PR tree-optimization/45991
6817         * gimplify.c (force_gimple_operand_1): Use the provded test
6818         function in the initial test.
6819
6820 2010-11-04  Jeff Law  <law@redhat.com>
6821
6822         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
6823         of readonly memory equivalances for const/pure calls.
6824
6825 2010-11-04  Richard Guenther  <rguenther@suse.de>
6826
6827         PR tree-optimization/45733
6828         * tree-vect-stmts.c (reverse_vec_elements): Honor the
6829         permute builtins function return type.
6830
6831 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
6832
6833         PR middle-end/44765
6834         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
6835         as an index, check it is not INVALID_REGNUM.
6836
6837         PR bootstrap/44756
6838         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
6839         unsignedp.
6840         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
6841
6842         PR bootstrap/44756
6843         * function.c (thread_prologue_and_epilogue_insns): Add
6844         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
6845
6846         PR bootstrap/44756
6847         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
6848
6849         PR target/44750
6850         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
6851         (pdp11_preferred_reload_class): Rename class to rclass.
6852         (pdp11_preferred_output_reload_class): Likewise.
6853         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
6854         ALL_COMPILERFLAGS .
6855         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
6856
6857         PR bootstrap/44756
6858         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
6859         iteration variables to enum machine_mode.
6860
6861         PR target/44751
6862         * config/h8300/h8300.c: Include df.h.
6863         (push, pop): Use add_reg_note.
6864         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
6865         (compute_a_shift_cc): Likewise.
6866         (expand_a_shift): Argument code has type enum rtx_code.
6867         (struct shift_insn): Member cc_valid has type enum attr_cc.
6868         (struct shift_info) <cc_inline, cc_special>: Likewise.
6869         enum attr_cc.
6870         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
6871         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
6872
6873 2010-11-04  Ira Rosen  <irar@il.ibm.com>
6874
6875         PR tree-optimization/46213
6876         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
6877         MINUS_EXPR only if the first operand is reduction operand.
6878
6879 2010-11-04  Richard Guenther  <rguenther@suse.de>
6880             Richard Henderson  <rth@redhat.com>
6881
6882         * tree.def (FMA_EXPR): New tree code.
6883         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
6884         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
6885         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
6886         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
6887         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
6888         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
6889         (execute_optimize_widening_mul): Call it.  Reorganize to allow
6890         dead stmt removal.  Move TODO flags ...
6891         (pass_optimize_widening_mul): ... here.
6892         * flag-types.h (enum fp_contract_mode): New enum.
6893         * common.opt (flag_fp_contract_mode): New variable.
6894         (-ffp-contract): New option.
6895         * opts.c (common_handle_option): Handle it.
6896         * doc/invoke.texi (-ffp-contract): Document.
6897         * tree.h (fold_fma): Declare.
6898         * builtins.c (fold_fma): New function.
6899         (fold_builtin_fma): Likewise.
6900         (fold_builtin_3): Call it for fma.
6901         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
6902         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
6903         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
6904         New expanders.
6905         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
6906         named patterns.
6907         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
6908         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
6909         (fms_optab, fnma_optab, fnms_optab): New defines.
6910         * gimplify.c (gimplify_expr): Handle binary truth expressions
6911         explicitly.  Handle FMA_EXPR.
6912         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
6913         operations.
6914
6915 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
6916             Richard Guenther  <rguenther@suse.de>
6917
6918         * passes.c (init_optimization_passes): Move veclower after SSA.
6919         * tree-vect-generic.c (uniform_vector_p): New function.
6920         (expand_vector_operations_1): Handle conversion.
6921         (pass_lower_vector): Update SSA form.
6922
6923 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
6924
6925         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
6926         plugin capabilities.
6927         * configure: Regenerate.
6928
6929 2010-11-03  Xinliang David Li  <davidxl@google.com>
6930
6931         PR target/46200
6932         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
6933         Adjust cbase if the use stmt is after iv update.
6934
6935 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6936
6937         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
6938
6939 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
6940
6941         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
6942         comment.  Pass true to the last argument of output_stack_adjust.
6943
6944 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
6945
6946         PR target/46295
6947         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
6948         if 256bit AVX register is used.
6949
6950 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6951
6952         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
6953         xsmindp/xsmaxdp on VSX for single precision min/max.
6954         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
6955         (vsx_sminsf3): Ditto.
6956
6957 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6958
6959         * combine.c (try_combine): Fix formatting issues, improve comments and
6960         fix a pasto.
6961
6962 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
6963
6964         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
6965         of the result before building binary expressions.
6966
6967 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
6968
6969         PR rtl-optimization/45865
6970         * Makefile.in (df-problems.o): Revert revision 164552.
6971         * basic-block.h (enum bb_flags): Likewise.
6972         * cfgcleanup.c (block_was_dirty): Likewise.
6973         (try_forward_edges): Likewise.
6974         (try_crossjump_bb): Likewise.
6975         (try_head_merge_bb): Likewise.
6976         (try_optimize_cfg): Likewise.
6977         (cleanup_cfg): Likewise.
6978         * df-core.c (df_set_bb_dirty): Likewise.
6979         * df-problems.c: Likewise.
6980         (df_simulate_find_uses): Likewise.
6981         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
6982         (find_memory, find_memory_store): Likewise.
6983         (can_move_insns_across): Likewise.
6984         * df.h (can_move_insns_across): Likewise.
6985         * ifcvt.c (find_memory): Likewise.
6986         (dead_or_predicable): Likewise.
6987
6988 2010-11-03  Richard Guenther  <rguenther@suse.de>
6989
6990         PR middle-end/46288
6991         * predict.c (strip_predict_hints): Simply DCE builtin expect if
6992         the result is unused.
6993
6994 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
6995
6996         PR tree-optimization/46009
6997         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
6998         cond_if_else_store_replacement if bb1 and bb2 have the same
6999         single successor.
7000         (cond_store_replacement): Use gimple_assign_single_p, don't
7001         check if rhs is SSA_NAME or invariant.  Call release_defs for
7002         assign.
7003         (cond_if_else_store_replacement): New function.
7004
7005 2010-11-03  Richard Guenther  <rguenther@suse.de>
7006
7007         * opts.c (finish_options): Properly check for all WHOPR
7008         flags before complaining about -flto-partition.
7009
7010 2010-11-04  Alan Modra  <amodra@gmail.com>
7011
7012         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
7013         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
7014         TARGET_SECURE_PLT.
7015         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
7016         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
7017         on input, "r" on output.
7018
7019 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
7020
7021         Implemented -fobjc-std=objc1 flag.
7022         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
7023         option.
7024         * doc/standards.texi (Standards): Updated the section on
7025         Objective-C; mention support for Objective-C 2.0 features and the
7026         new -fstd-objc=objc1 flag to disable them.
7027
7028 2010-11-03  Richard Guenther  <rguenther@suse.de>
7029
7030         PR middle-end/46241
7031         * dwarf2out.c (scope_die_for): Properly detect global scope.
7032
7033 2010-11-03  Richard Guenther  <rguenther@suse.de>
7034
7035         PR tree-optimization/46190
7036         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7037         Properly compute peel iterations.
7038
7039 2010-11-03  Richard Guenther  <rguenther@suse.de>
7040
7041         PR tree-optimization/46286
7042         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
7043         re-allocated vector data.
7044
7045 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
7046
7047         PR target/46285
7048         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
7049         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
7050         is completed.
7051
7052 2010-11-03  Richard Guenther  <rguenther@suse.de>
7053
7054         PR tree-optimization/46217
7055         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
7056         flag matches.
7057         (execute_update_addresses_taken): Likewise.
7058
7059 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
7060
7061         PR bootstrap/44335
7062         * targhooks.c (targhook_words_big_endian): New function.
7063         (targhook_float_words_big_endian): Likewise.
7064         * targhooks.h (targhook_words_big_endian): Declare.
7065         (targhook_float_words_big_endian): Likewise.
7066         * target.def (words_big_endian, float_words_big_endian): New hooks.
7067
7068 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
7069
7070         PR tree-optimization/46165
7071         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
7072         a normal call into noreturn call.
7073
7074 2010-11-03  Richard Guenther  <rguenther@suse.de>
7075
7076         PR middle-end/46251
7077         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
7078         not INDIRECT_REFs.
7079
7080 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
7081
7082         PR tree-optimization/46107
7083         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
7084         if cfg_hook_duplicate_loop_to_header_edge failed.
7085
7086 2010-11-03  Ian Lance Taylor  <iant@google.com>
7087
7088         PR lto/46273
7089         * config.gcc: Don't set lto_binary_reader.
7090         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
7091         (Configuration): Mention --disable-lto.  Remove --with-libelf
7092         paragraph.
7093
7094 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
7095
7096         PR debug/46252
7097         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
7098         prev_real_insn.
7099         * gcse.c (insert_insn_end_basic_block): Likewise.
7100
7101         PR rtl-optimization/46034
7102         PR rtl-optimization/46212
7103         PR rtl-optimization/46248
7104         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
7105         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
7106         before i0dest -> i0src substitution and pass 1 instead of 0 as last
7107         argument to subst on i2pat.
7108
7109 2010-11-02  Ian Lance Taylor  <iant@google.com>
7110
7111         * configure.ac: Use AC_SYS_LARGEFILE.
7112         * configure: Rebuild.
7113         * config.in: Rebuild.
7114
7115 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
7116
7117         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
7118         fold_convert.
7119         * c-typeck.c (build_function_call_vec): Likewise.
7120         * cfgexpand.c (expand_debug_expr): Likewise.
7121         * cgraphunit.c (assemble_thunk): Likewise.
7122         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
7123         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
7124         (fold_binary_loc, fold_ternary_loc): Likewise.
7125         * gimple-fold.c (get_symbol_constant_value): Likewise.
7126         * gimple-low.c (lower_builtin_setjmp): Likewise.
7127         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
7128         * gimplify.c (gimplify_init_constructor): Likewise.
7129         * lambda.h (build_linear_expr): Likewise.
7130         * omp-low.c (omp_reduction_init): Likewise.
7131         * tree-inline.c (remap_ssa_name): Likewise.
7132         * tree-object-size.c (compute_object_sizes): Likewise.
7133         * tree-sra.c (init_subtree_with_zero): Likewise.
7134         (sra_ipa_modify_assign): Likewise.
7135         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
7136         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
7137         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
7138         (undistribute_ops_list): Likewise.
7139         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
7140         * tree-vect-stmts.c (vectorizable_call): Likewise.
7141         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
7142         (build_zero_cst): Handle more cases directly.  Update comment.
7143
7144 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7145
7146         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
7147         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
7148
7149         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
7150         and call ix86_split_call_vzeroupper instead of
7151         ix86_split_call_pop_vzeroupper.
7152         (*call_pop_1_vzeroupper): Likewise.
7153         (*sibcall_pop_1_vzeroupper): Likewise.
7154         (*call_value_pop_0_vzeroupper): Likewise.
7155         (*call_value_pop_1_vzeroupper): Likewise.
7156         (*sibcall_value_pop_1_vzeroupper): Likewise.
7157
7158 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7159
7160         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
7161
7162 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
7163
7164         * basic-block.h (insert_insn_end_bb_new): Delete.
7165         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
7166
7167 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
7168             H.J. Lu  <hongjiu.lu@intel.com>
7169
7170         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
7171         (ix86_split_call_pop_vzeroupper): Likewise.
7172
7173         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
7174         (ix86_expand_call): Conditionally decorate calls with
7175         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
7176         (ix86_split_call_vzeroupper): New.
7177         (ix86_split_call_pop_vzeroupper): Likewise.
7178
7179         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
7180         (*call_pop_0_vzeroupper): New insn_and_split pattern.
7181         (*call_pop_1_vzeroupper): Likewise.
7182         (*sibcall_pop_1_vzeroupper): Likewise.
7183         (*call_0_vzeroupper): Likewise.
7184         (*call_1_vzeroupper): Likewise.
7185         (*sibcall_1_vzeroupper): Likewise.
7186         (*call_1_rex64_vzeroupper): Likewise.
7187         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
7188         (*call_1_rex64_large_vzeroupper): Likewise.
7189         (*sibcall_1_rex64_vzeroupper): Likewise.
7190         (*call_value_pop_0_vzeroupper): Likewise.
7191         (*call_value_pop_1_vzeroupper): Likewise.
7192         (*sibcall_value_pop_1_vzeroupper): Likewise.
7193         (*call_value_0_vzeroupper): Likewise.
7194         (*call_value_0_rex64_vzeroupper): Likewise.
7195         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
7196         (*call_value_1_vzeroupper): Likewise.
7197         (*sibcall_value_1_vzeroupper): Likewise.
7198         (*call_value_1_rex64_vzeroupper): Likewise.
7199         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
7200         (*call_value_1_rex64_large_vzeroupper): Likewise.
7201         (*sibcall_value_1_rex64_vzeroupper): Likewise.
7202
7203 2010-11-02  Ian Lance Taylor  <iant@google.com>
7204
7205         PR lto/46273
7206         * config.gcc: Revert last patch: set lto_binary_reader.
7207
7208 2010-11-02  Richard Guenther  <rguenther@suse.de>
7209
7210         PR tree-optimization/46149
7211         * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
7212         non-indirect MEM_REF variants.
7213
7214 2010-11-02  Richard Guenther  <rguenther@suse.de>
7215
7216         PR tree-optimization/46216
7217         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7218         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
7219
7220 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7221
7222         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
7223         (*-*-osf*): Likewise.
7224         * configure: Regenerate.
7225
7226 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
7227
7228         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
7229         for Intel Core 2 and Core i7.
7230
7231 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
7232
7233         Model decoder of Core 2/i7 for multipass scheduling.
7234
7235         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
7236         New type to hold target-specific data for multipass scheduling.
7237         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
7238         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
7239         Core 2/i7.
7240         (core2i7_secondary_decoder_max_insn_size,)
7241         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
7242         New static variables.
7243         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
7244         ([_]ix86_first_cycle_multipass_data): New static variable.
7245         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
7246         Implement targetm.sched hooks.
7247         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
7248         of ...
7249         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
7250         Implement new targetm.sched hooks.
7251         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
7252         targetm.sched hook to install multipass scheduling hooks on demand.
7253
7254         * doc/tm.texi.in: Document new targetm.sched hooks.
7255         * doc/tm.texi: Regenerate.
7256
7257         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
7258         (first_cycle_multipass_data_t): New typedef.
7259         (struct choice_entry: target_data): New field.
7260         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
7261         to allow target model restrictions not represented in DFA.
7262         (choose_ready, schedule_block): Update.
7263         (sched_extend_ready_list, sched_finish_ready_list): Call new target
7264         hooks to initialize target-specific data for multipass scheduling.
7265         * sched-int.h (max_issue): Update declaration.
7266         * sel-sched.c (choose_best_insn): Update.
7267         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
7268         (first_cycle_multipass_{init, fini}): Define and document new
7269         targetm.sched hooks.
7270
7271 2010-11-02  Richard Guenther  <rguenther@suse.de>
7272
7273         PR tree-optimization/46184
7274         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
7275         input vector type from the reduction operand as well.
7276
7277 2010-11-02  Richard Guenther  <rguenther@suse.de>
7278
7279         PR tree-optimization/46177
7280         * tree-loop-distribution.c (prop_phis): Use
7281         mark_virtual_phi_result_for_renaming.
7282
7283 2010-11-02  Martin Jambor  <mjambor@suse.cz>
7284
7285         PR middle-end/46120
7286         * tree.c (get_binfo_at_offset): Bail out on artificial
7287         fields.  Identify primary bases according to their offsets.
7288
7289 2010-11-02  Martin Jambor  <mjambor@suse.cz>
7290
7291         PR tree-optimization/45875
7292         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
7293         (gimple_get_relevant_ref_binfo): Detect primary bases according to
7294         their field offset.
7295
7296 2010-11-02  Ian Lance Taylor  <iant@google.com>
7297
7298         * doc/install.texi (Configuration): Note in two places that Java
7299         is not enabled by default.
7300
7301 2010-11-02  Ian Lance Taylor  <iant@google.com>
7302
7303         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
7304         (Configuration): Mention --disable-lto.  Remove --with-libelf
7305         paragraph.
7306
7307 2010-11-02  Ian Lance Taylor  <iant@google.com>
7308
7309         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
7310         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
7311         LIBELFINC.  Remove HAVE_libelf.
7312         * config.gcc: Don't set lto_binary_reader.
7313         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
7314         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
7315         (LIBS): Remove $(LIBELFLIBS).
7316         (INCLUDES): Remove $(LIBELFINC).
7317         * configure: Rebuild.
7318         * config.in: Rebuild.
7319
7320 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
7321
7322         * config/microblaze/microblaze-protos.h (function_arg): Delete.
7323         (function_arg_advance): Delete.
7324         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
7325         (FUNCTION_ARG): Delete.
7326         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
7327         (microblaze_function_arg_advance): ...this.  Make static.  Take a
7328         const_tree and a bool.
7329         (function-arg): Rename to...
7330         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
7331         and a bool.
7332         (microblaze_expand_prologue): Call targetm.calls.function_arg and
7333         targetm.calls.function_arg_advance.
7334         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7335
7336 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
7337
7338         Merge from FSF "apple/trunk" branch.
7339
7340         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
7341         * config/darwin.opt: .. to here.
7342         (matt-stubs): New option.
7343         * config/i386/darwin.opt: Delete.
7344         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
7345         (MACHO_DYNAMIC_NO_PIC_P): New.
7346         (MACHOPIC_INDIRECT): New.
7347         (MACHOPIC_PURE): New.
7348         * config/i386/darwin.h (DARWIN_X86) Define to 1.
7349         (MACHOPIC_ATT_STUB): New.
7350         (CC1_SPEC): Do not remove mdynamic-no-pic.
7351         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
7352         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
7353         (FUNCTION_PROFILER): Correct over-length line.
7354         (SUBTARGET_OVERRIDE_OPTIONS): New.
7355         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
7356         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
7357         (legitimate_constant_p): Handle mdynamic-no-pic.
7358         (ix86_legitimate_address_p): Likewise.
7359         (ix86_legitimize_address): Likewise.
7360         (ix86_expand_move): Likewise.
7361         (machopic_output_stub): Update for ATT-style stubs and
7362         mdynamic-no-pic.
7363         * config/darwin-protos.h (machopic_symbol_defined_p): New.
7364         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
7365         TARGET_DYNAMIC_NO_PIC: Remove.
7366         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
7367         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
7368         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
7369         Remove handling of mdynamic-no-pic.
7370         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
7371         Define if required.
7372         (machopic_symbol_defined_p): Do not try to use current_function_decl
7373         when generating _get_pc thunks within stubs.
7374         (machopic_indirect_data_reference): Rework for direct conditionals
7375         rather than #ifdefs, add x86 mdynamic-no-pic
7376         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
7377         defined value.
7378         (darwin_override_options): Handle mdynamic-no-pic here.
7379         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
7380         (machopic_lazy_symbol_ptr3_section): New.
7381         (machopic_picsymbol_stub2_section): New.
7382         (machopic_picsymbol_stub3_section): New.
7383         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
7384         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
7385         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
7386         Moved common definition from x86 and rs6000.
7387         (MACHO_DYNAMIC_NO_PIC_P): Override value.
7388         (MACHOPIC_INDIRECT): Likewise.
7389         (MACHOPIC_PURE): Likewise.
7390         * config.gcc (x86-darwin-*): Remove darwin.opt.
7391
7392 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
7393
7394         PR debug/46255
7395         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
7396         instead of gsi_last_bb.
7397
7398 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
7399             Maxim Kuvyrkov  <maxim@codesourcery.com>
7400
7401         * config/i386/i386.c (cpu_names): Add "corei7".
7402         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
7403
7404 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
7405             Maxim Kuvyrkov  <maxim@codesourcery.com>
7406
7407         Tune alignment for Intel Core i7
7408
7409         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
7410         (enum processor_type): Update comment.  Add entries for Core i7.
7411         * config/i386-c.c (ix86_target_macros_internal): Update.
7412         * config/i386.c (m_COREI7{_32,_64}): New macros.
7413         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
7414         (processor_target_table): Tune alignment for Core i7.
7415         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
7416
7417         * doc/invoke.texi: Document "corei7" option value.
7418
7419 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
7420             Maxim Kuvyrkov  <maxim@codesourcery.com>
7421             H.J. Lu  <hjl.tools@gmail.com>
7422
7423         Basic support for Intel Core i7
7424
7425         * i386.c (ix86_option_override_internal): Add entry for corei7, use
7426         generic tuning.  Use generic32 when compiling for 32-bit ABI.
7427
7428 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
7429
7430         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
7431         sections and call darwin_asm_dwarf_section() to handle them.
7432         (darwin_asm_dwarf_section): New.
7433         (darwin_file_start): Remove code emitting dwarf section symbols.
7434
7435 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
7436
7437         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
7438         explicitly disable stack protection when building libgcc.
7439         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
7440
7441 2010-11-01  Jason Merrill  <jason@redhat.com>
7442
7443         * fold-const.c (fold_indirect_ref_1): Handle folding
7444         POINTER_PLUS_EXPR to ARRAY_REF.
7445
7446 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
7447
7448         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
7449         (sh_delegitimize_address): New function.
7450
7451 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
7454         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
7455         (CC1_SPEC): Don't handle -target.
7456         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
7457         options.
7458         * config/darwin.opt (Zallowable_client, Zbundle_loader,
7459         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
7460         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
7461         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
7462         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
7463         Zweak_reference_mismatches, client_name, compatibility_version,
7464         current_version, dylinker_install_name, pagezero_size,
7465         read_only_relocs, seg1addr, segs_read_only_addr,
7466         segs_read_write_addr, sub_library, sub_umbrella): New.
7467         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
7468         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
7469         * config/freebsd.opt: New.
7470         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
7471         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
7472         * config/rpath.opt: New.
7473         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
7474         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
7475         Use rpath.opt.
7476
7477 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
7478
7479         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
7480         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
7481         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
7482         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
7483         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
7484         Document that options in .opt files do not need to be included.
7485         * doc/tm.texi: Regenerate.
7486         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
7487         * opts-common.c: Update comment on tm.h include.
7488         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
7489         * system.h (SWITCH_TAKES_ARG): Poison.
7490         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
7491         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
7492         in darwin.opt.
7493         (LINK_COMMAND_SPEC_A): Don't include %{x}.
7494         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7495         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
7496         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
7497         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7498         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
7499         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
7500         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
7501         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
7502         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7503         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
7504         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
7505         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
7506         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
7507         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
7508         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
7509         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
7510         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
7511         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
7512         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
7513         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
7514         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
7515         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
7516         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
7517
7518 2010-11-01  Paul Koning  <ni1d@arrl.net>
7519
7520         * config/pdp11/pdp11.md: Use iterators.
7521         (addqi3, subqi3, iorsi3, xorsi3): Delete.
7522
7523 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
7524
7525         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
7526         GCC_INSN_FLAGS_H.
7527         * libgcov.c (__gcov_indirect_call_profiler): Set
7528         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
7529         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
7530
7531 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
7532
7533         PR tree-optimization/46259
7534
7535         Revert:
7536         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
7537         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
7538         build_vector_from_val.
7539
7540 2010-11-01  DJ Delorie  <dj@redhat.com>
7541
7542         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
7543         as well as an assertion.
7544
7545 2010-11-01  Paul Koning  <ni1d@arrl.net>
7546
7547         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
7548         complex modes in memory.
7549
7550 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
7551
7552         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
7553
7554 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
7555
7556         PR target/45250
7557         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
7558         (cfa_base_offset): New variable.
7559         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
7560         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
7561         is NULL.
7562         (vt_init_cfa_base): Initialize cfa_base_offset.
7563
7564 2010-11-01  Alan Modra  <amodra@gmail.com>
7565
7566         PR target/46030
7567         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
7568         and savres_strategy.
7569         (stack_info): New file scope var.
7570         (rs6000_init_machine_status): Init stack_info.
7571         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
7572         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
7573         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
7574         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
7575         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
7576         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
7577         (rs6000_savres_strategy): Rewrite.
7578         (rs6000_stack_info): Use "stack_info" in place of local "info".
7579         Return cached stack info when reload_completed unless ENABLE_CHECKING
7580         in which case confirm newly calculated stack info matches old info.
7581         Delay calculation of lr_save_p, set it for out of line gp save/restore
7582         as well as fp.  Call rs6000_savres_strategy from here..
7583         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
7584         (rs6000_output_function_prologue): Use info->savres_strategy to
7585         determine whether fp save/restore externs need to be emitted.
7586
7587 2010-10-31  Jason Merrill  <jason@redhat.com>
7588
7589         * tree.h (EXPR_LOC_OR_HERE): New macro.
7590         * builtins.c (c_strlen): Use it.
7591         * c-decl.c (build_enumerator): Likewise.
7592         * gimplify.c (internal_get_tmp_var): Likewise.
7593         (shortcut_cond_expr): Likewise.
7594         (gimplify_one_sizepos): Likewise.
7595
7596 2010-10-31  Richard Henderson  <rth@redhat.com>
7597
7598         * config/i386/cygming.h (TARGET_SEH): New.
7599         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
7600         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
7601         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
7602         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
7603         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
7604         (ASM_DECLARE_FUNCTION_SIZE): New.
7605         * config/i386/i386-protos.h: Update.
7606         * config/i386/i386.c (ix86_option_override_internal): Enable
7607         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
7608         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
7609         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
7610         (ix86_compute_frame_layout): For SEH, disable
7611         use_fast_prologue_epilogue, move frame pointer to the end of
7612         the frame.  Initialize hfp_save_offset.
7613         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
7614         at end of prologue for SEH.
7615         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
7616         emit blockage at beginning of epilogue.
7617         (ix86_expand_binary_operator): After reload, emit LEA if needed.
7618         (ix86_output_call_insn): New.
7619         * config/i386/i386.h (TARGET_SEH): New.
7620         (struct machine_function): Add member seh.
7621         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
7622         * config/i386/winnt.c (struct seh_frame_state): New.
7623         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
7624         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
7625         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
7626         i386_pe_start_function, i386_pe_end_function): New.
7627
7628         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
7629         as CFA_STORE in rules 12 and 13.
7630
7631 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
7632
7633         PR tree-optimization/46142
7634         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
7635         accommodate third function argument.
7636
7637 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
7638
7639         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
7640
7641 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
7642
7643         * fold-const.c (build_zero_vector): Use build_vector_from_val.
7644         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7645         (get_initial_def_for_reduction): Likewise.
7646         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7647         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
7648         * tree.c (build_one_cst): Likewise.
7649         (build_vector_from_val): Use types_compatible_p for assert.
7650
7651 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
7652
7653         * emit-rtl.c (mark_used_flags): New function.
7654         (set_used_flags, reset_used_flags): Call it.
7655
7656 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
7657
7658         PR middle-end/44569
7659         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
7660         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
7661
7662 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
7663
7664         PR target/46195
7665         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
7666         (ix86_compat_aligned_value_p): This.
7667         (ix86_old_function_arg_boundary): Renamed to ...
7668         (ix86_compat_function_arg_boundary): This.  Updated.
7669         (ix86_contains_aligned_value_p): New.
7670         (ix86_function_arg_boundary): Align long double parameters on
7671         stack to 4byte in 32bit.
7672
7673 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7674
7675         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
7676         * c-parser.c (c_parser_objc_at_property_declaration): Removed
7677         parsing of RID_COPIES and RID_IVAR.  Updated call to
7678         objc_add_property_declaration.
7679         * c-typecheck.c (build_component_ref): Call
7680         objc_maybe_build_component_ref instead of objc_build_setter_call.
7681         Use objc_is_property_ref to improve Objective-C checks.
7682         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
7683         of objc_build_getter_call.
7684
7685 2010-10-29  Paul Koning  <ni1d@arrl.net>
7686
7687         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7688         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
7689         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
7690         (REG_OK_STRICT): Move description.
7691
7692 2010-10-29  Paul Koning  <ni1d@arrl.net>
7693
7694         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
7695
7696 2010-10-29  Paul Koning  <ni1d@arrl.net>
7697
7698         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
7699
7700 2010-10-29  Paul Koning  <ni1d@arrl.net>
7701
7702         PR/41822
7703         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
7704
7705 2010-10-29  Richard Henderson  <rth@redhat.com>
7706
7707         PR rtl-opt/46226
7708         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
7709         for asm goto.
7710
7711 2010-10-29  Paul Koning  <ni1d@arrl.net>
7712
7713         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
7714         register to register move.
7715
7716 2010-10-29  Paul Koning  <ni1d@arrl.net>
7717
7718         * config/pdp11/pdp11.c (print_operand_address): Correct handling
7719         of integer constant addresses, delete vax-only logic.
7720
7721 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
7722
7723         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
7724         a conditional expression.
7725
7726 2010-10-29  Paul Koning  <ni1d@arrl.net>
7727
7728         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
7729         instruction encoding.
7730
7731 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
7732             Andrew Pinski  <pinskia@gmail.com>
7733
7734         * tree.h (build_vector_from_val): Declare.
7735         * tree.c (build_vector_from_val): New function.
7736         * c-typeck.c (build_binary_op): Handle vector shifting.
7737         * doc/extend.texi: Description of the vector shifting operation.
7738
7739 2010-10-29  Paul Koning  <pkoning@equallogic.com>
7740
7741         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
7742         pdp11_secondary_memory_needed): Declare.
7743         * config/pdp11/predicates.md (float_operand): New predicate.
7744         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
7745         (cbranchdf4, movdf): Change predicate.
7746         (movsf): Handle FPU register case.
7747         (truncdfsf2, extendsfdf2): Add FPU register case.
7748         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
7749         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
7750         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7751         (pdp11_register_move_cost): Update cost matrix.
7752         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
7753         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
7754         pdp11_secondary_memory_needed): New function.
7755         (pdp11_return_in_memory): Add other float types.
7756         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
7757         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
7758         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
7759         REGISTER_MOVE_COST): Delete.
7760         (BASE_RETURN_VALUE_REG): Add other float types.
7761
7762 2010-10-29  Nick Clifton  <nickc@redhat.com>
7763
7764         * doc/invoke.texi: Document -mam34 and -mtune options.
7765         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
7766         (mn10300_tune_cpu): New variable.
7767         (mn10300_handle_option): Handle -mam34 and -mtune options.
7768         (mn10300_option_override): Convert tune string into tune cpu variable.
7769         (mn10300_legitimate_constant_p): Delete unused local variable.
7770         (is_load_insn): New function.
7771         (is_store_insn): New function.
7772         (mn10300_adjust_schedule_cost): New function.
7773         (TARGET_SCHED_ADJUST_COST): Define.
7774         * config/mn10300/mn10300.opt (mam34): New option.
7775         (mtune): New option.
7776         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
7777         (enum processor_type): Add AM34.
7778         (TARGET_AM34): Define.
7779         * config/mn10300/mn10300.md (attr cpu): Add am34.
7780         Add pipeline description.
7781         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
7782         Remove unneeded alternatives.  Add timing attribute.
7783         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
7784         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
7785         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
7786         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
7787         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
7788         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
7789         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
7790         float_conditional_branch, jump, indirect_jump, tablejump,
7791         call_internal, call_value_internal, zero_extendqisi2_am33,
7792         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
7793         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
7794         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
7795         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
7796         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
7797         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
7798         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
7799         return_internal_regs, store_movm, return, call_next_insn):
7800         Add timing attribute.
7801         (am33_subsi3): Add missing clobber of CC_REG.
7802         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
7803         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
7804         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
7805         extendqisi2): Fix predicates.
7806         (call_internal, call_internal_value): Separate alternatives.
7807         * config/mn10300/t-mn10300: Add AM34 multilib.
7808
7809 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
7810
7811         * config/sh/sh.c (sh_promote_function_mode): Use
7812         default_promote_function_mode if !sh_promote_prototypes.
7813
7814 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
7815
7816         * recog.c (split_all_insns): Remove dead code.
7817
7818 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7819
7820         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7821
7822 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7823
7824         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
7825         (FUNCTION_ARG_ADVANCE): Delete.
7826         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
7827         functions.
7828         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
7829         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7830         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7831
7832 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7833
7834         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
7835         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7836         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
7837         Take a const_tree and a bool.
7838         (mcore_function_arg_advance): New function.
7839         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7840
7841 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7842
7843         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
7844         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7845         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
7846         Take a const_tree and a bool.
7847         (mcore_function_arg_advance): New function.
7848         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7849
7850 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7851
7852         * config/h8300/h8300-protos.h (function_arg): Delete.
7853         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7854         * config/h8300/h8300.c (function_arg): Rename to...
7855         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
7856         a bool.
7857         (h8300_function_arg_advance): New function.
7858         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7859
7860 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7861
7862         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
7863         to...
7864         * config/arc/arc.c (arc_function_arg): ...here and...
7865         (arc_function_arg_advance): ...here.  New functions.
7866         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7867
7868 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7869
7870         * config/crx/crx-protos.h (crx_function_arg): Delete.
7871         (crx_function_arg_advance): Delete.
7872         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7873         * config/crx/crx.c (crx_function_arg): Make static.  Take a
7874         const_tree and a bool.
7875         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
7876         (enough_regs_for_param): Take a const_tree.
7877         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7878
7879 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7880
7881         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
7882         (m68hc11_function_arg_advance): Delete.
7883         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
7884         (FUNCTION_ARG_ADVANCE): Delete.
7885         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
7886         Take a const_tree and a bool.
7887         (m68hc11_function_arg_advance): Likewise.
7888         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7889
7890 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7891
7892         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
7893         (xstormy16_function_arg_advance): Delete.
7894         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
7895         (FUNCTION_ARG_ADVANCE): Delete.
7896         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
7897         Take a const_tree and a bool.
7898         (xstormy16_function_arg_advance): Likewise.  Return void, updating
7899         the CUM parameter instead.
7900         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7901
7902 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7903
7904         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
7905         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7906         (MOXIE_FUNCTION_ARG_SIZE): Move to...
7907         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
7908         (moxie_function_arg): Make static.  Take a const_tree and a bool.
7909         (moxie_function_arg_advance): New function.
7910         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7911
7912 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7913
7914         * config/mn10300/mn10300-protos.h (function_arg): Delete.
7915         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
7916         (FUNCTION_ARG_ADVANCE): Delete.
7917         * config/mn10300/mn10300.c (function_arg): Rename to...
7918         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
7919         and a bool.
7920         (mn10300_function_arg_advance): New function.
7921         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7922
7923 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7924
7925         * config/iq2000/iq2000-protos.h (function_arg): Delete.
7926         (function_arg_advance): Delete.
7927         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7928         * config/iq2000/iq2000.c (function_arg): Rename to...
7929         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
7930         a bool.
7931         (function_arg_advance): Rename to...
7932         (iq2000_function_arg_advance): ...this.  Make static.  Take a
7933         const_tree and a bool.
7934         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
7935         iq2000_function_arg.
7936         (iq2000_pass_by_reference): Call iq2000_function_arg).
7937         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7938
7939 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7940
7941         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
7942         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7943         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
7944         const_tree.
7945         (fr30_function_arg): New function.
7946         (fr30_function_arg_advance): New function.
7947         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7948
7949 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
7950
7951         * config/frv/frv-protos.h (frv_function_arg): Delete.
7952         (frv_function_arg_advance): Delete.
7953         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7954         * config/frv/frv.c (frv_function_arg): Rename to...
7955         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
7956         (frv_function_arg, frv_function_incoming_arg): New functions.
7957         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
7958         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7959         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7960
7961 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
7962
7963         PR target/46153
7964         * config/i386/sse.md (sse_movhlps_exp): Use destination
7965         returned from ix86_fixup_binary_operands to expand insn.
7966         (sse_movlhps_exp): Ditto.
7967         (sse_loadhps_exp): Ditto.
7968         (sse_loadlps_exp): Ditto.
7969         (sse2_loadhpd_exp): Ditto.
7970         (sse2_loadlpd_exp): Ditto.
7971
7972 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
7973
7974         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
7975         constants in thumb2.
7976
7977 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
7978
7979         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
7980         arithmetics in masking operations.
7981         (contains_muldiv): Likewise.
7982         (try_combine): Likewise.
7983         (find_split_point): Likewise.
7984         (combine_simplify_rtx): Likewise.
7985         (simplify_if_then_else): Likewise.
7986         (simplify_set): Likewise.
7987         (expand_compound_operation): Likewise.
7988         (expand_field_assignment): Likewise.
7989         (make_extraction): Likewise.
7990         (extract_left_shift): Likewise.
7991         (make_compound_operation): Likewise.
7992         (force_to_mode): Likewise.
7993         (make_field_assignment): Likewise.
7994         (reg_nonzero_bits_for_combine): Likewise.
7995         (simplify_shift_const_1): Likewise.
7996         (simplify_comparison): Likewise.
7997
7998 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
7999
8000         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
8001         (ia64_function_arg_advance): Delete.
8002         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
8003         (FUNCTION_ARG_ADVANCE): Delete.
8004         * config/ia64/ia64.c (ia64_function_arg): Rename to...
8005         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
8006         bool arguments.
8007         (ia64_function_arg, ia64_function_incoming_arg): New functions.
8008         (ia64_function_arg_advance): Make static.  Take a const_tree and
8009         a bool.
8010         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8011         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8012
8013 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
8014
8015         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
8016         (TARGET_GET_RAW_ARG_MODE): New.
8017         * doc/tm.texi: Regenerate.
8018         * target.def (get_raw_result_mode): New.
8019         (get_raw_arg_mode): New.
8020         * targhooks.c (default_get_reg_raw_mode): New.
8021         * targhooks.h (default_get_reg_raw_mode): New.
8022         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
8023         (apply_result_size): Ditto.
8024         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
8025         (TARGET_GET_RAW_RESULT_MODE): Define.
8026         (TARGET_GET_RAW_ARG_MODE): Ditto.
8027
8028 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
8029
8030         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
8031         for newer Solaris 10 release.
8032         (sparc_fallback_frame_state): Likewise.
8033
8034 2010-10-27  Jason Merrill  <jason@redhat.com>
8035
8036         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
8037         variables sooner.
8038
8039 2010-10-27  Jie Zhang  <jie@codesourcery.com>
8040             Maxim Kuvyrkov  <maxim@codesourcery.com>
8041
8042         * haifa-sched.c (ISSUE_POINTS): Remove.
8043         (max_issue): Don't issue more than issue_rate instructions.
8044
8045 2010-10-27  Ian Lance Taylor  <iant@google.com>
8046
8047         PR target/46197
8048         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
8049         (split_stack_return): Replace UNSPEC_STACK_CHECK with
8050         UNSPECV_SPLIT_STACK_RETURN.
8051
8052 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
8053
8054         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
8055
8056         * config/i386/i386.c (block_info): New.
8057         (BLOCK_INFO): Likewise.
8058         (call_avx256_state): Likewise.
8059         (check_avx256_stores): Likewise.
8060         (move_or_delete_vzeroupper_2): Likewise.
8061         (move_or_delete_vzeroupper_1): Likewise.
8062         (move_or_delete_vzeroupper): Likewise.
8063         (use_avx256_p): Likewise.
8064         (function_pass_avx256_p): Likewise.
8065         (flag_opts): Add -mvzeroupper.
8066         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
8067         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
8068         is disabled.
8069         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
8070         generate vzeroupper.
8071         (init_cumulative_args): Add an int to indicate caller.  Set
8072         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
8073         based on return type.
8074         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
8075         caller_pass_avx256_p based on argument type.
8076         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
8077         is used, but not returned by caller.
8078         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
8079         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
8080         is used.
8081         (ix86_minimum_alignment): Likewise.
8082         (ix86_expand_special_args_builtin): Set target to
8083         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
8084         (ix86_reorg): Run the vzeroupper optimization if needed.
8085
8086         * config/i386/i386.h (ix86_args): Add caller.
8087         (INIT_CUMULATIVE_ARGS): Updated.
8088         (machine_function): Add use_vzeroupper_p, use_avx256_p,
8089         caller_pass_avx256_p, caller_return_avx256_p,
8090         callee_pass_avx256_p and callee_return_avx256_p.
8091
8092         * config/i386/i386.opt (-mvzeroupper): New.
8093
8094         * config/i386/predicates.md (vzeroupper_operation): Removed.
8095
8096         * config/i386/sse.md (avx_vzeroupper): Removed.
8097         (*avx_vzeroupper): Removed.
8098         (avx_vzeroupper): New.
8099
8100         * doc/invoke.texi: Document -mvzeroupper.
8101
8102 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
8103
8104         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
8105         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
8106         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
8107
8108 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
8109             Olivier Hainque  <hainque@adacore.com>
8110
8111         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
8112         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
8113         fs->signal_frame instead.
8114
8115 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8116
8117         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
8118         parsing of RID_COPIES and RID_IVAR.
8119
8120 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8121
8122         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
8123         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
8124         Do not use objc_set_property_attr, but use local variables
8125         instead.  Detect repeated usage of setter, getter and ivar
8126         attributes.  Improved error processing when a setter name does not
8127         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
8128         that the token is a keyword.  Updated call to
8129         objc_add_property_declaration.
8130
8131 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
8132
8133         * c-parser.c (c_parser_objc_at_property): Renamed to
8134         c_parser_objc_at_property_declaration.  Updated calls to
8135         objc_add_property_variable, now objc_add_property_declaration.
8136         Code rewritten to be much more robust in recovering from syntax
8137         errors.  Added comments.
8138         (c_parser_objc_property_attrlist): Removed.
8139         (c_parser_external_declaration): Updated calls to
8140         c_parser_objc_at_property, now
8141         c_parser_objc_at_property_declaration.
8142         (c_parser_objc_methodprotolist): Same change.
8143
8144 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8145
8146         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
8147
8148 2010-10-26  Jan Hubicka  <jh@suse.cz>
8149
8150         * ipa.c (process_references): Enqueue all referenced nodes;
8151         mark as reachable only non-external nodes.
8152         (cgraph_remove_unreachable_nodes): All referenced nodes should
8153         be enqueued; remove bogues node->needed check.
8154
8155 2010-10-26  Jan Hubicka  <jh@suse.cz>
8156
8157         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
8158         to represent OMP.
8159
8160 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8161
8162         * config/i386/i386.md (split_stack_return): Replace
8163         unspec_volatile with unspec.
8164
8165 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
8166
8167         * doc/install.texi: Fix typo in --with-sysroot description.
8168
8169 2010-10-26  Jan Hubicka  <jh@suse.cz>
8170
8171         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
8172         Use info provided by linker plugin.
8173
8174 2010-10-26  Jason Merrill  <jason@redhat.com>
8175
8176         * varasm.c (constructor_static_from_elts_p): Don't require a
8177         CONSTRUCTOR to have elements to be suitable for static
8178         initialization.  Allow ARRAY_TYPE as well.
8179
8180 2010-10-26  Jan Hubicka  <jh@suse.cz>
8181
8182         PR middle-end/45736
8183         * cgraph.c (cgraph_set_readonly_flag): Rename to...
8184         (cgraph_set_const_flags) ... this one; get also looping argument;
8185         clear constructor/destructor flags.
8186         (cgraph_set_pure_flag): Likewise.
8187         (cgraph_set_looping_const_or_pure_flag): Remove.
8188         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
8189         to optimize away static ctors/dtors; it does not work on inline clones;
8190         external functions can always be rmeoved.
8191         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
8192         inline clones; in LTO external functions always can go.
8193         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
8194         (cgraph_mark_address_taken_node): Assert that we are not taking
8195         address of inline clone.
8196         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
8197         external functions.
8198         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
8199         address taken.
8200         (ipcp_initialize_node_lattices): Only local functions can be
8201         handled without cloning.
8202         * cgraph.h (cgraph_set_readonly_flag,
8203         cgraph_set_looping_const_or_pure_flag): Remove.
8204         (cgraph_set_const_flag): Declare.
8205         (cgraph_set_pure_flag): Update.
8206         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
8207         flags setting code.
8208         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
8209         look at inline clones; fix handling of external definitions.
8210         (cgraph_postorder): Do not look at inline clones in the first pass.
8211         (function_and_variable_visibility): Drop constructors/destructor
8212         flags at pure and const functions.
8213         * tree-profile.c (tree_profiling): Update.
8214         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
8215         address taken; external functions do not account to whole program size.
8216         (cgraph_decide_inlining): Likewise; do not try to inline
8217         functions already inlined.
8218
8219 2010-10-26  Jie Zhang  <jie@codesourcery.com>
8220
8221         * doc/invoke.texi: Improve documentation of
8222         -fstrict-volatile-bitfields.
8223
8224 2010-10-26  Ira Rosen  <irar@il.ibm.com>
8225
8226         PR tree-optimization/46167
8227         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
8228         is basic block for the statement.
8229
8230 2010-10-26  Paul Koning  <ni1d@arrl.net>
8231
8232         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
8233         current definition of struct_real_format.
8234
8235 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
8236
8237         PR target/44948
8238         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
8239         (ix86_function_arg_boundary): Always align parameters on stack
8240         in 64bit and align parameters with alignment >= 16byte on stack
8241         in 32bit.  Warn alignment change.
8242
8243 2010-10-26  Ian Lance Taylor  <iant@google.com>
8244
8245         PR middle-end/45687
8246         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
8247         offset.
8248
8249 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
8250
8251         Implement opaque-enum-specifiesr for C++0x
8252         * tree.h (ENUM_IS_OPAQUE): New.
8253         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
8254
8255 2010-10-26  Jie Zhang  <jie@codesourcery.com>
8256
8257         * stor-layout.c (layout_decl): Use the field's type to
8258         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
8259         * config/arm/arm.c (arm_override_options): Default to
8260         -fstrict-volatile-bitfields.
8261
8262 2010-10-25  Paul Koning  <ni1d@arrl.net>
8263
8264         * config/pdp11/pdp11.md: Add define_constants for register
8265         numbers, branch offset limits.
8266         * config/pdp11/pdp11.c: Use named constants instead of numbers.
8267         * config/pdp11.pdp11.h: Ditto.
8268
8269 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8270
8271         * configure.ac: Use $cpu_type instead of $target to define the nop.
8272         * configure: Regenerate.
8273
8274 2010-10-25  Jie Zhang  <jie@codesourcery.com>
8275
8276         * combine.c (try_combine): If insns need to be kept around, check that
8277         they can be copied in the merged instruction.
8278
8279 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
8280
8281         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
8282         has been modified.
8283         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
8284         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
8285         it has been modified.
8286
8287 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
8288
8289         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
8290
8291 2010-10-24  Paul Koning  <ni1d@arrl.net>
8292
8293         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
8294         * config/pdp11/pdp11.c (output_jump): Ditto.
8295
8296 2010-10-24  Ian Lance Taylor  <iant@google.com>
8297
8298         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
8299
8300 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
8301
8302         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
8303         least one insn with a locus corresponding to an edge's goto_locus,
8304         disregard non-fallthru edges to the exit block and merge the blocks
8305         created for the same goto_locus.
8306
8307 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
8308
8309         * gcc.c (n_switches_alloc_debug_check): New.
8310         (set_option_handlers): New.
8311         (process_command): Use set_option_handlers.
8312         (do_self_spec): Pass spec-generated options through option handlers.
8313         (main): Also save and restore n_switches_alloc when swapping
8314         switch arrays.
8315
8316 2010-10-23  Richard Henderson  <rth@redhat.com>
8317
8318         PR target/46144
8319         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
8320         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
8321         Honor matching operands when splitting to XOR.
8322
8323 2010-10-23  Ian Lance Taylor  <iant@google.com>
8324
8325         * tree-vrp.c (extract_range_from_binary_expr): If
8326         flag_non_call_exceptions don't eliminate division by zero.
8327         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8328
8329 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
8330
8331         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
8332         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
8333         __ORDER_PDP_ENDIAN__.
8334         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8335         (struct DWstruct): Define based on __BYTE_ORDER__.
8336         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8337         (struct INTstruct): Define based on __BYTE_ORDER__.
8338         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8339         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
8340         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
8341         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8342         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8343         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8344         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8345         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8346         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8347         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8348         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8349         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8350         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8351         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8352         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8353         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8354         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8355         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8356         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
8357         * doc/tm.texi: Regenerate.
8358         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
8359         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
8360
8361 2010-10-23  Jie Zhang  <jie@codesourcery.com>
8362
8363         PR rtl-optimization/37360
8364         * config/mips/mips.c (cached_can_issue_more): New local variable.
8365         (mips_sched_reorder_1): New.
8366         (mips_sched_reorder): Use mips_sched_reorder_1.
8367         (mips_sched_reorder2): New.
8368         (mips_variable_issue): Set cached_can_issue_more.
8369         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
8370         instead of mips_sched_reorder.
8371
8372         Revert:
8373         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
8374         PR rtl-optimization/37360
8375         * haifa-sched.c (max_issue): Do not assert that we never issue more
8376         insns than issue_rate.  Add comment.
8377
8378 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
8379
8380         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
8381         location info of the expression.
8382
8383 2010-10-22  DJ Delorie  <dj@redhat.com>
8384
8385         * doc/extend.texi (Named Address Spaces): Document the M32C named
8386         address space.
8387
8388         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
8389         __far address space.
8390         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
8391         "__far" address space for R8C and M16C processor variants.
8392         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
8393         (far_addr_space_p): New.
8394         (encode_pattern_1): Add sign and zero extend support.
8395         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
8396         (m32c_extra_constraint_p2): Add SF constraint.
8397         (m32c_legitimate_address_p): Support __far addresses.
8398         (m32c_addr_space_pointer_mode): New.
8399         (m32c_addr_space_address_mode): New.
8400         (m32c_addr_space_legitimate_address_p): New.
8401         (m32c_addr_space_legitimize_address): New.
8402         (m32c_addr_space_subset_p): New.
8403         (m32c_addr_space_convert): New.
8404         (conversions): Add __far operand patterns.
8405         (m32c_prepare_move): Force constants into registers for __far moves.
8406         (m32c_split_move): __far moves are always split.
8407         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
8408         * config/m32c/mov.md (mov<mode>_far_op1): New.
8409         (mov<mode>_far_op2): New.
8410         (movqi_op): Add __far (SF) support.
8411         (movhi_op): Likewise.
8412         (movsi_splittable): Split A1A0 also.
8413
8414 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
8415             Andrew Pinski  <pinskia@gmail.com>
8416
8417         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
8418         * doc/extend.texi: New paragraph
8419
8420 2010-10-22  Paul Koning  <ni1d@arrl.net>
8421
8422         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
8423
8424 2010-10-22  DJ Delorie  <dj@redhat.com>
8425
8426         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
8427
8428 2010-10-22  Paul Koning  <ni1d@arrl.net>
8429
8430         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
8431
8432 2010-10-22  Richard Henderson  <rth@redhat.com>
8433
8434         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
8435         cases for __builtin_fma and __builtin_fmaf.
8436
8437 2010-10-22  Richard Henderson  <rth@redhat.com>
8438
8439         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
8440         NEG+USE for vectors as well.
8441         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
8442         and splitter.
8443
8444 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
8445
8446         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
8447         SWITCH_CURTAILS_COMPILATION): Remove.
8448         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
8449         * doc/tm.texi: Regenerate.
8450         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
8451
8452 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
8453
8454         * config/i386/bdver1.md: New file.
8455         * config/i386/i386.md (include "bdver1.md"): Invoke the
8456         pipeline description for bdver1.
8457         (x86_sahf_1): Add "bdver1_decode" attribute.
8458         (*cmpfp_i_mixed): Likewise.
8459         (*cmpfp_i_sse): Likewise.
8460         (*cmpfp_i_i387): Likewise.
8461         (*cmpfp_iu_mixed): Likewise.
8462         (*cmpfp_iu_sse): Likewise.
8463         (*cmpfp_iu_387): Likewise.
8464         (*swap<mode>,*swap<mode>_1): Likewise.
8465         (fixuns_trunc<mode>hi2): Likewise.
8466         (fix_trunc<mode>si_sse): Likewise.
8467         (x86_fnstcw_1): Likewise.
8468         (x86_fldcw_1): Likewise.
8469         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
8470         (*floatsi<mode>2_vector_mixed): Likewise.
8471         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
8472         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
8473         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
8474         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
8475         (*floatsi<mode>2_vector_sse): Likewise.
8476         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
8477         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
8478         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
8479         (*mul<mode>3_1): Likewise.
8480         (*mulsi3_1_zext): Likewise.
8481         (*mulhi3_1): Likewise.
8482         (*mulqi3_1): Likewise.
8483         (*<u>mul<mode><dwi>3_1): Likewise.
8484         (*<u>mulqihi3_1): Likewise.
8485         (*<s>muldi3_highpart_1): Likewise.
8486         (*<s>mulsi3_highpart_1): Likewise.
8487         (*<s>mulsi3_highpart_zext): Likewise.
8488         (x86_64_shld): Likewise.
8489         (x86_shld): Likewise.
8490         (x86_64_shrd): Likewise.
8491         (x86_shrd): Likewise.
8492         (sqrtxf2): Likewise.
8493         (sqrt_extend<mode>xf2_i387): Likewise.
8494         (*sqrt<mode>2_sse): Likewise.
8495         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
8496         (sse_cvtsi2ssq): Likewise.
8497         (sse_cvtss2si): Likewise.
8498         (sse_cvtss2si_2): Likewise.
8499         (sse_cvtss2siq): Likewise.
8500         (sse_cvtss2siq_2): Likewise.
8501         (sse_cvttss2si): Likewise.
8502         (sse_cvttss2siq): Likewise.
8503         (sse2_cvtpi2pd): Likewise.
8504         (sse2_cvttpd2pi): Likewise.
8505         (sse2_cvtsi2sd): Likewise.
8506         (sse2_cvtsi2sdq): Likewise.
8507         (sse2_cvtsd2si): Likewise.
8508         (sse2_cvtsd2si_2): Likewise.
8509         (sse2_cvtsd2siq): Likewise.
8510         (sse2_cvtsd2siq_2): Likewise.
8511         (sse2_cvttsd2si): Likewise.
8512         (sse2_cvttsd2siq): Likewise.
8513         (*sse2_cvtpd2dq): Likewise.
8514         (*sse2_cvttpd2dq): Likewise.
8515         (sse2_cvtsd2ss): Likewise.
8516         (sse2_cvtss2sd): Likewise.
8517         (*sse2_cvtpd2ps): Likewise.
8518         (sse2_cvtps2pd): Likewise.
8519
8520 2010-10-22  Richard Guenther  <rguenther@suse.de>
8521
8522         PR middle-end/46137
8523         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
8524         remove the virtual operands if they are not needed.
8525
8526 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
8527
8528         * config/i386/i386.c (processor_costs bdver1_cost): Update
8529         insn costs and architectural parameters for bdver1.
8530
8531 2010-10-22  Richard Guenther  <rguenther@suse.de>
8532
8533         * gimple.h (gimple_register_canonical_type): Declare.
8534         * gimple.c (gimple_canonical_types): New global hashtable.
8535         (struct gimple_type_leader_entry_s): New type.
8536         (gimple_type_leader): New global cache.
8537         (gimple_lookup_type_leader): New function.
8538         (gtc_visit): Query the proper cache.
8539         (gimple_types_compatible_p): Likewise.
8540         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
8541         (gimple_canonical_type_eq): New function.
8542         (gimple_register_canonical_type): Likewise.
8543         (print_gimple_types_stats): Adjust for gimple_canonical_types.
8544         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
8545         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
8546         gimple_types_compatible_p for LTO.
8547
8548 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
8549
8550         PR target/46098
8551         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
8552         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
8553         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
8554         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
8555         (<sse>_movu<ssemodesuffix>): New expander.
8556         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
8557         (avx_movdqu<avxmodesuffix>): New expander.
8558         (*sse2_movdqu): Rename from sse2_movdqu.
8559         (sse2_movdqu): New expander.
8560
8561 2010-10-22  Richard Guenther  <rguenther@suse.de>
8562
8563         PR tree-optimization/45720
8564         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
8565         Handle negative step.
8566         (vect_enhance_data_refs_alignment): Likewise.
8567         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
8568         (vect_create_cond_for_align_checks): Likewise.
8569         (vect_create_cond_for_alias_checks): Likewise.
8570
8571 2010-10-22  Ira Rosen  <irar@il.ibm.com>
8572
8573         PR tree-optimization/46126
8574         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
8575         vectorizable_shift in case of basic block vectorization.
8576
8577 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
8578
8579         * target.h (enum opt_levels, struct default_options): New.
8580         * target.def (handle_ofast): Remove hook.
8581         (target_option.optimization): Change to
8582         target_option.optimization_table.
8583         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
8584         TARGET_OPTION_OPTIMIZATION_TABLE.
8585         (CAN_DEBUG_WITHOUT_FP): Remove.
8586         * doc/tm.texi: Regenerate.
8587         * opts.c (maybe_default_option, maybe_default_options,
8588         default_options_table): New.
8589         (default_options_optimization): Take extra parameters.  Don't
8590         assert that global_options and global_options_set are in use.  Use
8591         maybe_default_options.
8592         (decode_options): Pass extra parameters to
8593         default_options_optimization.
8594         * common.opt (falign-loops): Use value 0 with Var.
8595         (frerun-cse-after-loop, ftree-ter): Remove Init.
8596         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
8597         TARGET_OPTION_OPTIMIZATION): Remove.
8598         * targhooks.c (empty_optimization_table): New.
8599         * targhooks.h (empty_optimization_table): Declare.
8600         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
8601         * config/alpha/alpha.c (alpha_option_optimization_table,
8602         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8603         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
8604         * config/arm/arm.c (arm_option_optimization: Change to
8605         arm_option_optimization_table.
8606         (TARGET_OPTION_OPTIMIZATION): Change to
8607         TARGET_OPTION_OPTIMIZATION_TABLE.
8608         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
8609         * config/avr/avr.c (avr_option_optimization_table,
8610         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8611         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
8612         * config/cris/cris.c (cris_option_optimization): Change to
8613         cris_option_optimization_table.
8614         (TARGET_OPTION_OPTIMIZATION): Change to
8615         TARGET_OPTION_OPTIMIZATION_TABLE.
8616         * config/crx/crx.c (crx_option_optimization): Change to
8617         crx_option_optimization_table.
8618         (TARGET_OPTION_OPTIMIZATION): Change to
8619         TARGET_OPTION_OPTIMIZATION_TABLE.
8620         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8621         * config/fr30/fr30.c (fr30_option_optimization_table,
8622         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8623         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
8624         * config/frv/frv.c (frv_option_optimization_table,
8625         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8626         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
8627         * config/h8300/h8300.c (h8300_option_optimization): Change to
8628         h8300_option_optimization_table.
8629         (TARGET_OPTION_OPTIMIZATION): Change to
8630         TARGET_OPTION_OPTIMIZATION_TABLE.
8631         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8632         * config/i386/i386.c (ix86_option_optimization): Change to
8633         ix86_option_optimization_table.
8634         (TARGET_OPTION_OPTIMIZATION): Change to
8635         TARGET_OPTION_OPTIMIZATION_TABLE.
8636         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8637         as initializer.
8638         * config/ia64/ia64.c (ia64_option_optimization): Change to
8639         ia64_option_optimization_table.
8640         (TARGET_OPTION_OPTIMIZATION): Change to
8641         TARGET_OPTION_OPTIMIZATION_TABLE.
8642         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
8643         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
8644         initializer.
8645         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8646         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8647         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8648         * config/lm32/lm32.c (lm32_option_optimization_table,
8649         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8650         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
8651         * config/m32r/m32r.c (m32r_option_optimization): Change to
8652         m32r_option_optimization_table.
8653         (TARGET_OPTION_OPTIMIZATION): Change to
8654         TARGET_OPTION_OPTIMIZATION_TABLE.
8655         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
8656         CAN_DEBUG_WITHOUT_FP): Remove.
8657         * config/mcore/mcore.c (mcore_option_optimization): Change to
8658         mcore_option_optimization_table.
8659         (TARGET_OPTION_OPTIMIZATION): Change to
8660         TARGET_OPTION_OPTIMIZATION_TABLE.
8661         * config/mep/mep.c (mep_option_optimization): Change to
8662         mep_option_optimization_table.
8663         (TARGET_OPTION_OPTIMIZATION): Change to
8664         TARGET_OPTION_OPTIMIZATION_TABLE.
8665         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
8666         * config/microblaze/microblaze.c
8667         (microblaze_option_optimization_table,
8668         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8669         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
8670         * config/mips/mips.c (mips_option_optimization_table,
8671         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8672         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
8673         * config/mmix/mmix.c (mmix_option_optimization): Change to
8674         mmix_option_optimization_table.
8675         (TARGET_OPTION_OPTIMIZATION): Change to
8676         TARGET_OPTION_OPTIMIZATION_TABLE.
8677         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
8678         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8679         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8680         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
8681         * config/pa/pa.c (pa_option_optimization_table,
8682         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8683         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8684         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
8685         pdp11_option_optimization_table.
8686         (TARGET_OPTION_OPTIMIZATION): Change to
8687         TARGET_OPTION_OPTIMIZATION_TABLE.
8688         * config/picochip/picochip.c (picochip_option_optimization_table,
8689         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8690         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
8691         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
8692         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8693         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
8694         * config/rx/rx.c (rx_option_optimization_table,
8695         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8696         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
8697         * config/s390/s390.c (s390_option_optimization): Change to
8698         s390_option_optimization_table.
8699         (s390_option_override): Update comment.
8700         (TARGET_OPTION_OPTIMIZATION): Change to
8701         TARGET_OPTION_OPTIMIZATION_TABLE.
8702         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
8703         * config/score/score.c (score_option_optimization_table,
8704         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8705         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
8706         * config/sh/sh.c (sh_option_optimization): Change to
8707         sh_option_optimization_table.
8708         (TARGET_OPTION_OPTIMIZATION): Change to
8709         TARGET_OPTION_OPTIMIZATION_TABLE.
8710         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
8711         (sh_option_override, expand_block_move, multcosts, find_barrier,
8712         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
8713         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
8714         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
8715         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
8716         instead of TARGET_SMALLCODE.
8717         * config/sh/sh.opt (mspace): Make into an alias for -Os.
8718         * config/sparc/sparc.c (sparc_option_optimization_table,
8719         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8720         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
8721         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8722         TARGET_OPTION_OPTIMIZATION_TABLE): New.
8723         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
8724         * config/v850/v850.c (v850_option_optimization): Change to
8725         v850_option_optimization_table.
8726         (TARGET_OPTION_OPTIMIZATION): Change to
8727         TARGET_OPTION_OPTIMIZATION_TABLE.
8728         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
8729         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
8730         xtensa_option_optimization_table.
8731         (TARGET_OPTION_OPTIMIZATION): Change to
8732         TARGET_OPTION_OPTIMIZATION_TABLE.
8733         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
8734
8735 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
8736
8737         Based on the CFString implementation in FSF apple/trunk branch.
8738
8739         * target.def (objc_construct_string): New Hook.
8740         * doc/tm.texi (objc_construct_string): Document.
8741         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
8742         * config/t-darwin: Amend build rules for darwin.o.
8743         * config/darwin.opt: Add cfstrings flags.
8744         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
8745         (darwin_objc_construct_string): New.
8746         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
8747         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
8748         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
8749         (darwin_fold_builtin): Likewise.
8750         (darwin_build_constant_cfstring): Likewise.
8751         (darwin_objc_construct_string): Likewise.
8752         (darwin_cfstring_p): Likewise.
8753         (darwin_enter_string_into_cfstring_table): Likewise.
8754         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
8755         * config/darwin.c (darwin_running_cxx): New var.
8756         (machopic_select_section): Return cfstring_constant_object_section.
8757         (darwin_override_options): Set darwin_running_cxx.
8758         (add_builtin_field_decl): New.
8759         (darwin_init_cfstring_builtins): New.
8760         (darwin_build_constant_cfstring): New.
8761         (darwin_fold_builtin): New.
8762         (cfstring_hash): New.
8763         (cfstring_eq): New.
8764         (darwin_enter_string_into_cfstring_table): New.
8765         * config/darwin-sections.def (cfstring_constant_object_section): New.
8766         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
8767         (TARGET_OBJC_CONSTRUCT_STRING): Define.
8768
8769 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8770
8771         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
8772         TYPE_STUB_DECL instead of TREE_CHAIN.
8773         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
8774         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
8775         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
8776         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
8777         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
8778         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
8779         Likewise.
8780         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
8781
8782 2010-10-22  Jie Zhang  <jie@codesourcery.com>
8783
8784         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
8785         (copy_blkmode_from_reg): Likewise.
8786         (read_complex_part): Likewise.
8787         (expand_expr_real_1): Calculate packedp and pass it to
8788         extract_bit_field.
8789         * expr.h (extract_bit_field): Update declaration.
8790         * calls.c (store_unaligned_arguments_into_pseudos): Update call
8791         to extract_bit_field.
8792         * expmed.c (extract_fixed_bit_field): Update calls to
8793         extract_fixed_bit_field.
8794         (store_split_bit_field): Likewise.
8795         (extract_bit_field_1): Add new argument packedp.
8796         (extract_bit_field): Add new argument packedp.
8797         (extract_fixed_bit_field): Add new argument packedp and let
8798         packed attribute override volatile.
8799         * stmt.c (expand_return): Update call to extract_bit_field.
8800
8801 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8802
8803         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
8804
8805 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8806
8807         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
8808         of gcc_checking_assert.
8809         * sel-sched.c (code_motion_process_successors): Likewise.
8810
8811 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
8812
8813         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
8814         when stopping because of a different locus on edge or insn.
8815         (try_optimize_cfg): Add comment.
8816         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
8817         block is a forwarder block, propagate locus on the edge.
8818         (cfg_layout_merge_blocks): Likewise.
8819
8820 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
8821
8822         PR target/45946
8823         * config/i386/i386.md (*pushti2): New insn pattern.
8824         (pushti2 splitter): New insn splitter.
8825         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
8826         DWI mode iterator.
8827
8828 2010-10-21  Paul Koning  <ni1d@arrl.net>
8829
8830         * config/pdp11/pdp11-protos.md (arith_operand,
8831         const_immediate_operand, expand_shift_operand,
8832         immediate15_operand): Delete
8833         * config/pdp11/pdp11.c: Ditto.
8834         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
8835         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
8836         EXTRA_CONSTRAINT): Delete.
8837         * config/pdp11/pdp11.md (various): Use standard constraints
8838         instead of removed ones.
8839         * config/pdp11/constraints.md: New file.
8840         * config/pdp11/predicates.md: New file.
8841
8842 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
8843
8844         PR c/45834
8845         * alias.c (true_dependence_1): Remove obsolete check for QImode.
8846         (may_alias_p): Ditto.
8847
8848 2010-10-21  Martin Jambor  <mjambor@suse.cz>
8849
8850         PR tree-optimization/45875
8851         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
8852
8853 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8854
8855         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
8856         variables.
8857         (create_new_def_for): Likewise.
8858
8859 2010-10-21  Nick Clifton  <nickc@redhat.com>
8860
8861         * config/mn10300/mn10300.c: Fold code to 80-character width.
8862         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
8863         MEM, CONST_INT and CONST_DOUBLE.
8864         (targetm): Move initialization to end of file.
8865         (print_operand): Rename to mn10300_print_operand.
8866         (print_operand_address): Rename to mn10300_print_operand_address.
8867         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
8868         (expand_prologue): Rename to mn10300_expand_prologue.
8869         (expand_epilogue): Rename to mn10300_expand_epilogue.
8870         (initial_offset): Rename to mn10300_initial_offset.
8871         (function_arg): Rename to mn10300_function_arg.
8872         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
8873         (symbolic_operand): Rename to mn10300_symbolic_operand.
8874         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
8875         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
8876         * config/mn10300/mn10300-protos.h: Update prototypes.
8877         * config/mn10300/mn10300.h: Fold code to 80-character width.
8878         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
8879         MEM, CONST_INT and CONST_DOUBLE.
8880         (CPP_SPEC): Move to...
8881         (TARGET_CPU_CPP_BUILTINS): ... here.
8882         * config/mn10300/mn10300.md: Fold code to 80-character width.
8883         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
8884         MEM, CONST_INT and CONST_DOUBLE.
8885
8886 2010-10-21  Ira Rosen  <irar@il.ibm.com>
8887
8888         PR tree-optimization/46049
8889         PR tree-optimization/46052
8890         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
8891         (vect_get_slp_defs): Add arguments.
8892         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
8893         operands to vect_get_slp_defs.
8894         (vectorizable_reduction): Fix comment, pass scalar operands to
8895         vect_get_slp_defs.
8896         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
8897         type to determine number of units in the created vector.
8898         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
8899         (vectorizable_conversion): Fix comment.
8900         (vectorizable_shift): New function.
8901         (vectorizable_operation): Move code that handles shifts to
8902         vectorizable_shift.
8903         (vectorizable_type_demotion): Fix comment, pass scalar operands to
8904         vect_get_slp_defs.
8905         (vectorizable_type_promotion, vectorizable_store): Likewise.
8906         (vectorizable_condition): Fix comment.
8907         (vect_analyze_stmt): Call vectorizable_shift.
8908         (vect_transform_stmt): Likewise.
8909         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
8910         Use it as the operand to create vectors for, except reduction
8911         initial definition and store.  Use operands type.
8912         (vect_get_slp_defs): Add new arguments.  Pass them to
8913          vect_get_constant_vectors.
8914
8915 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8916
8917         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
8918         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
8919         * cfghooks.c (fixup_reorder_chain): Likewise.
8920         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
8921         * cgraph.c (cgraph_add_thunk): Likewise.
8922         (cgraph_create_edge_1): Likewise.
8923         (cgraph_create_virtual_clone): Likewise.
8924         * ddg.c (add_cross_iteration_register_deps): Likewise.
8925         * dwarf2out.c (modified_type_die): Likewise.
8926         * emit-rtl.c (set_mem_alias_set): Likewise.
8927         * ggc-zone.c (zone_allocate_marks): Likewise.
8928         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
8929         * gimple.c (iterative_hash_gimple_type): Likewise.
8930         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
8931         (create_single_exit_edge): Likewise.
8932         * haifa-sched.c (choose_ready): Likewise.
8933         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8934         * passes.c (execute_todo): Likewise.
8935         * sched-ebb.c (begin_schedule_ready): Likewise.
8936         * sel-sched.c (code_motion_process_successors): Likewise.
8937         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
8938         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
8939         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
8940         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
8941         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
8942         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
8943         (ssa_conflicts_add): Likewise.
8944         * tree-ssa-copy.c (replace_exp): Likewise.
8945         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
8946         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
8947         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
8948         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
8949         (compute_antic): Likewise.
8950         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
8951         (add_dependence): Likewise.
8952         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
8953         * tree-vrp.c (supports_overflow_infinity): Likewise.
8954         (make_overflow_infinity, negative_overflow_infinity): Likewise.
8955         (avoid_overflow_infinity, register_new_assert_for): Likewise.
8956         (process_assert_insertions_for): Likewise.
8957         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
8958         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
8959         (intersect_loc_chains, variable_merge_over_cur): Likewise.
8960
8961 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
8962
8963         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
8964         * reload1.c (has_nonexceptional_receiver): Likewise.
8965         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
8966         (create_new_def_for): Likewise.
8967         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
8968         (merge_phi_nodes): Likewise.
8969         (has_abnormal_incoming_edge_p): Delete.
8970
8971 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8972
8973         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
8974
8975 2010-10-21  Richard Guenther  <rguenther@suse.de>
8976             Michael Matz  <matz@suse.de>
8977
8978         PR tree-optimization/45764
8979         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
8980         Adjust initial misalignment for negative DR_STEP.
8981         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
8982         do not have the same alignment over the whole iteration domain.
8983
8984 2010-10-21  Richard Guenther  <rguenther@suse.de>
8985
8986         PR tree-optimization/46111
8987         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
8988
8989 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8990
8991         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
8992
8993 2010-10-21  Tristan Gingold  <gingold@adacore.com>
8994
8995         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
8996         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
8997
8998 2010-10-21  Tristan Gingold  <gingold@adacore.com>
8999
9000         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
9001         signal_frame.
9002         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
9003
9004 2010-10-21  Tristan Gingold  <gingold@adacore.com>
9005
9006         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
9007         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
9008
9009 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
9010
9011         * basic-block.h (find_fallthru_edge): Define.
9012         * cfgcleanup.c (merge_blocks_move): Use it.
9013         (try_crossjump_bb): Likewise.
9014         * cfglayout.c (fixup_reorder_chains): Likewise.
9015         (fixup_fallthru_exit_predecessor): Likewise.
9016         * cfgrtl.c (rtl_split_edge): Likewise.
9017         (rtl_verify_flow_info): Likewise.
9018         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9019         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
9020         * ifcvt.c (block_fallthru): Likewise.
9021         * reload1.c (fixup_abnormal_edges): Likewise.
9022         * sched-ebb.c (being_schedule_ready): Likewise.
9023         (schedule_ebb): Likwise.
9024         * sched-rgn.c (find_single_block_region): Likewise.
9025         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
9026         * tree-complex.c (expand_complex_move): Likewise.
9027         * sched-int.h (find_fallthru_edge): Rename to...
9028         (find_fallthru_edge_from): ...this.
9029         * haifa-sched.c (find_fallthru_edge): Rename to...
9030         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
9031         (init_before_recovery): Call find_fallthru_edge_from.
9032         * sel-sched-ir.c (merge_fences): Likewise.
9033         * sel-sched.c (in_fallthru_bb_p): Likewise.
9034         (move_cond_jump): Likewise.
9035
9036 2010-10-20  Paul Koning  <ni1d@arrl.net>
9037
9038         * config/pdp11/pdp11.md (various): Fix conditions on a number of
9039         insn to check for target 11/40 or higher.
9040
9041 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
9042
9043         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
9044         bool instead of a tree.
9045         (c_parser_objc_method_decl): Added bool argument.  Updated call to
9046         objc_build_method_signature.
9047         (c_parser_objc_method_definition): Do not call
9048         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
9049         c_parser_objc_method_decl and objc_start_method_definition.
9050         (c_parser_objc_methodproto): Do not call objc_set_method_type.
9051         Updated calls to c_parser_objc_method_type,
9052         c_parser_objc_method_decl and objc_add_method_declaration.
9053
9054 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
9055
9056         PR tree-optimization/45919
9057         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
9058         array members.
9059
9060         PR tree-optimization/46066
9061         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
9062         instead of gsi_last_bb.
9063
9064 2010-10-20  DJ Delorie  <dj@redhat.com>
9065
9066         * config/m32c/m32c.c (m32c_option_override): Always disable
9067         function-cse in 16-bit mode.  Indirect calls are always worse than
9068         direct calls as there is no 16-bit indirect call opcode.
9069         (m32c_override_options_after_change): New, likewise.
9070
9071 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
9072
9073         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
9074         emitting the conditional move in the inner mode of the SUBREG.
9075
9076 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
9077
9078         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
9079         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
9080         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9081         (ia64_preferred_reload_class): Make static.  Change rclass argument
9082         and result types from enum reg_class to reg_class_t.
9083
9084 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
9085
9086         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
9087         call for single operand expression.
9088
9089 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
9090
9091         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
9092         if there is a call statement to pure or const function in the block.
9093
9094 2010-10-20  Paul Koning  <pkoning@equallogic.com>
9095
9096         Fix several build errors for pdp11 target.
9097         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
9098         (cbranchdf4): Conditional on TARGET_FPU.
9099         (movdf): Ditto; correct alternatives check.
9100         (movmemhi): Fix predicate and constraint.
9101         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
9102
9103 2010-10-20  Richard Guenther  <rguenther@suse.de>
9104
9105         PR lto/45667
9106         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
9107         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
9108         (verify_gimple_assign_single): Disable ADDR_EXPR type check
9109         when in LTO.
9110
9111 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
9112
9113         PR fortran/42169
9114         * ira-emit.c (store_can_be_removed_p): Return false instead of
9115         gcc_unreachable.
9116
9117 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
9118
9119         * fold-const.c (fold_binary_loc): New transformation.
9120
9121 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
9122
9123         PR target/46085
9124         * config/i386/sse.md (reduc_splus_v8sf): Updated.
9125         (reduc_splus_v4df): Likewise.
9126
9127 2010-10-20  Richard Guenther  <rguenther@suse.de>
9128
9129         PR tree-optimization/45860
9130         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
9131         conditional store replacement for non-register type stores.
9132
9133 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
9134
9135         * stor-layout.c (skip_simple_constant_arithmetic): New function.
9136         (self_referential_size): Use it instead of skip_simple_arithmetic.
9137
9138 2010-10-20  Olivier Hainque  <hainque@adacore.com>
9139
9140         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
9141         If the current function calls eh_return, claim live all registers
9142         that we need to check for liveness otherwise.
9143
9144 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
9145
9146         * c-decl.c (c_write_global_declarations): Call
9147         objc_write_global_declarations when compiling Objective-C.
9148         * c-lang.c (finish_file): Removed.
9149
9150 2010-10-19  DJ Delorie  <dj@redhat.com>
9151
9152         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
9153         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
9154         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
9155         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
9156         * doc/tm.texi: Regenerate.
9157         * targhooks.h (default_label_align_after_barrier_max_skip,
9158         default_loop_align_max_skip, default_label_align_max_skip,
9159         default_jump_align_max_skip): Declare.
9160         * target.def (label_align_after_barrier_max_skip): New.
9161         (loop_align_max_skip): New.
9162         (label_align_max_skip): New.
9163         (jump_align_max_skip): New.
9164         * system.h (poison): Add those macros to the list.
9165         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
9166         (LOOP_ALIGN_MAX_SKIP): Remove.
9167         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
9168         (JUMP_ALIGN_MAX_SKIP): Remove.
9169         (default_label_align_after_barrier_max_skip): New.
9170         (default_loop_align_max_skip): New.
9171         (default_label_align_max_skip): New.
9172         (default_jump_align_max_skip): New.
9173         (compute_alignments): Use the new hooks.
9174         (shorten_branches): Likewise.
9175
9176 2010-10-19  Richard Henderson  <rth@redhat.com>
9177
9178         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
9179         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
9180         (fma4i_fmadd_<mode>): New.
9181         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
9182         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
9183         standard fma patterns.
9184         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
9185         enable for FMA.
9186         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
9187         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
9188         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
9189
9190 2010-10-19  Paul Koning  <pkoning@equallogic.com>
9191
9192         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
9193         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
9194
9195 2010-10-19  Richard Henderson  <rth@redhat.com>
9196
9197         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
9198         (fmadf4, *fmsdf4, *nfmadf4): New.
9199         (fmaxf4, *fmsxf4, *nfmaxf4): New.
9200
9201 2010-10-19  Michael Eager  <eager@eagercon.com>
9202
9203         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
9204         Use sjlj unwind info for exceptions.
9205
9206 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
9207
9208         PR fortran/43414
9209         * dwarf2out.c (add_calling_convention_attribute): Flag main
9210         Fortran subroutine with DW_AT_main_subprogram.
9211
9212 2010-10-19  Nick Clifton  <nickc@redhat.com>
9213
9214         * config/rx/rx.c (rx_function_value): Small integer types are
9215         promoted to SImode.
9216         (rx_promote_function_mode): New function.
9217         (TARGET_PROMOTE_FUNCTION_MODE): Define.
9218
9219 2010-10-19  Nick Clifton  <nickc@redhat.com>
9220
9221         * config/mep/mep.c (mep_print_operand): Use
9222         targetm.strip_name_encoding.
9223         (mep_output_aligned_common): Likewise.
9224
9225 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
9226
9227         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
9228
9229 2010-10-18  Richard Henderson  <rth@redhat.com>
9230
9231         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
9232         (fma (neg a) (neg b) c) and (fma a (neg b) c).
9233
9234 2010-10-18  Richard Henderson  <rth@redhat.com>
9235
9236         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
9237         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
9238         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
9239         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
9240         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
9241         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
9242         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
9243         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
9244         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
9245         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
9246         (bdesc_multi_arg): Remove the corresponding builtins.
9247         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
9248         (UNSPEC_FMA4_FMSUBADD): Remove.
9249         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
9250         * config/i386/sse.md (FMA4MODEF4): Remove.
9251         (FMAMODE): Add.
9252         (fma<mode>4): New expander.
9253         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
9254         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
9255         (*fma4i_fmsub_<mode>): Similarly.
9256         (*fma4i_fnmadd_<mode>): Similarly.
9257         (*fma4i_fnmsub_<mode>): Similarly.
9258         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
9259         with the first operand.
9260         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
9261         of explicit arithmetic.  Macroize with AVXMODEF2P.
9262         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
9263         (xop_frcz<mode>2): Macroize with FMAMODE.
9264         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
9265         the first operand.
9266         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
9267         extra negations.
9268         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
9269         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
9270         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
9271         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
9272         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
9273         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
9274         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
9275         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
9276
9277 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
9278
9279         PR rtl-optimization/45966
9280         * combine.c (try_combine): If added_sets_2, deal with the case
9281         where i0 feeds i1 and i1 feeds i2.
9282
9283 2010-10-18  Jan Hubicka  <jh@suse.cz>
9284
9285         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
9286         preserve flags before trying to guess on visibility.
9287         (varpool_externally_visible_p): New function.
9288         (function_and_variable_visibility): Use it.
9289
9290 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9291
9292         Implemented parsing @synthesize and @dynamic for Objective-C.
9293         * c-parser.c (c_parser_external_declaration): Recognize
9294         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
9295         (c_parser_objc_at_synthesize_declaration): New.
9296         (c_parser_objc_at_dynamic_declaration): New.
9297
9298 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9299
9300         * c-parser.c (c_parser_objc_class_declaration): After finding an
9301         error, parse the whole declaration then reset parser->error.
9302
9303 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
9304
9305         PR target/46041
9306         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
9307         * builtins.c (mode_has_fma): Ditto.
9308
9309 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
9310
9311         PR target/36898
9312         PR middle-end/43760
9313         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
9314
9315 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
9316
9317         * config/i386/i386.c (ix86_option_override_internal): Define and
9318         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
9319         default.
9320         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
9321         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
9322
9323 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9324
9325         Merge from 'apple/trunk' branch on FSF servers.
9326         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
9327         following Objective-C change:
9328
9329         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
9330
9331         Radar 4301047
9332         * c-parse.in (objc_quals): Build objc qualifier list same way
9333         as gcc-3.3
9334
9335 2010-10-18  Jan Hubicka  <jh@suse.cz>
9336
9337         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
9338         function_and_variable_visibility): Revert accidental commit.
9339
9340 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
9341
9342         Merge from 'apple/trunk' branch on FSF servers.
9343         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
9344         the following Objective-C change:
9345
9346         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
9347
9348         Radar 4204796
9349         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
9350         'volatilized' type used in a typeof operator.
9351
9352 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
9353
9354         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
9355         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
9356         rewrite modelled on gimple_purge_dead_eh_edges.
9357         (gimple_purge_all_dead_abnormal_call_edges): New function.
9358         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
9359         directly instead of through gimple_purge_dead_abnormal_call_edges.
9360         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
9361         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
9362         removed AB side-effects from one of its statements.
9363         (init_pre): Initialize need_ab_cleanup.
9364         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
9365         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
9366
9367 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
9368
9369         PR c/46015
9370         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
9371         on computed goto argument.
9372
9373 2010-10-18  Richard Guenther  <rguenther@suse.de>
9374
9375         PR tree-optimization/45967
9376         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
9377         (could_have_pointers): Likewise.
9378         (handle_rhs_call, handle_const_call, handle_pure_call,
9379         find_func_aliases, intra_create_variable_infos): Remove calls to them.
9380         (struct fieldoff): Add must_have_pointers field.
9381         (type_must_have_pointers): New function.
9382         (field_must_have_pointers): Likewise.
9383         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
9384         Adjust field merging.
9385         (create_function_info_for): May-have-pointers of varinfo is
9386         almost always true.
9387         (create_variable_info_for_1): Likewise.
9388
9389 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
9390
9391         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
9392         of operands to vec_concat.
9393
9394 2010-10-18  Richard Guenther  <rguenther@suse.de>
9395
9396         PR lto/44950
9397         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
9398         also clear references to entries of it.
9399
9400 2010-10-18  Andi Kleen  <ak@linux.intel.com>
9401
9402         PR other/43448
9403         * gccbug.in: Remove.
9404         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
9405         (doc, distclean, install-common): Remove reference to gccbug.
9406         * configure: Regenerate.
9407         * configure.ac (all_outputs): Remove gccbug.
9408         * doc/configfiles.texi: Remove references to gccbug.
9409         * doc/sourcebuild.texi: Dito.
9410
9411 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
9412
9413         PR middle-end/46019
9414         * fold-const.c (fold_binary_loc): If integer_pow2p has
9415         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
9416
9417 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
9418             Jeremie Salvucci  <jeremie.salvucci@free.fr>
9419
9420         * gengtype.c (verbosity_level): Add variable.
9421         (set_gc_used): Count variables for verbosity.
9422         (close_output_files): Backing up files, counting written ones
9423         verbosily.
9424         (write_types): Count emitted functions for verbosity. Added
9425         debug messages.
9426         (write_enum_defn): Count structures for verbosity. Added debug
9427         messages.
9428         (gengtype_long_options): Add "verbose" & "backupdir".
9429         (print_usage): Ditto.
9430         (main): Verbose display of parsed files.
9431
9432         * gengtype.h (verbosity_level): Add declaration.
9433
9434 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
9435
9436         * gengtype.c (parse_program_options): Add allocation of
9437         plugin_files, and correct test on nb_plugin_files.
9438
9439 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9440
9441         Merge from 'apple/trunk' branch on FSF servers.
9442
9443         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
9444
9445         Radar 4133425
9446         * c-decl.c (undeclared_variable): Issue diagnostic on
9447         private 'ivar' access.
9448
9449 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
9450
9451         PR target/46051
9452         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
9453         generated sequence to match *avx_vperm2f128<mode>_nozero.
9454         (vec_interleave_lowv4df): Ditto.
9455         (vec_interleave_highv8sf): Ditto.
9456         (vec_interleave_lowv8sf): Ditto.
9457
9458 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
9459
9460         * libgcov.c (create_file_directory): Enable it for win32 case.
9461         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
9462         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
9463         (GCOV_PREFIX_SKIP): Likewise.
9464
9465 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9466
9467         * doc/objc.texi (GNU Objective-C runtime API): New section.
9468         (Modern GNU Objective-C runtime API): New section.
9469         (Traditional GNU Objective-C runtime API): New section.
9470         (Executing code before main): Mention that this section is
9471         specific to the GNU Objective-C runtime.
9472         (Garbage Collection): Same.
9473
9474 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
9475
9476         * c-parser.c (c_parser_for_statement): Move initialization of
9477         cond and incr before if.
9478
9479 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
9480
9481         * target.def (preferred_output_reload_class): New hook.
9482         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
9483         * doc/tm.texi: Regenerate.
9484         * targhooks.c (default_preferred_output_reload_class): New function.
9485         * targhooks.h (default_preferred_output_reload_class): Declare.
9486         * reload.c (find_dummy_reload): Change rclass argument type from
9487         enum reg_class to reg_class_t. Change this_alternative array type
9488         from enum reg_class to reg_class_t.
9489         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
9490         (push_reload): Change preferred_class variable type to reg_class_t.
9491         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
9492         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
9493         argument type from enum reg_class to reg_class_t. Use
9494         HARD_REGISTER_NUM_P predicate.
9495         * recog.h (reg_fits_class_p): Update prototype.
9496
9497         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9498         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
9499         Remove.
9500         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
9501         static. Change regclass argument and result types from enum reg_class
9502         to reg_class_t.
9503         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9504
9505 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
9506
9507         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
9508         visibility enum, and handle @package.
9509
9510 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
9511
9512         * doc/objc.texi (What you can and what you cannot do in +load):
9513         Document that sending messages to constant string objects in +load
9514         is not guaranteed to work.
9515
9516 2010-10-16  Jan Hubicka  <jh@suse.cz>
9517
9518         PR middle-end/44206
9519         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
9520         existence of refrences before removing the function.
9521
9522 2010-10-16  Jan Hubicka  <jh@suse.cz>
9523
9524         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
9525         only_called_at_startup and only_called_at_exit.
9526         (cgraph_propagate_frequency): Compute only_called_at_startup and
9527         only_called_at_exit.
9528         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
9529         only_called_at_exit.
9530         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
9531         flags.
9532         * predict.c (compute_function_frequency): Initialize the new flags.
9533
9534 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
9535
9536         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
9537         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
9538         on the bounds of its domain.
9539         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
9540
9541 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
9542
9543         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
9544         * config/avr/avr-protos.h (preferred_reload_class): Remove.
9545         * config/avr/avr.c (preferred_reload_class): Remove.
9546         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
9547         * config/pa/pa.c (emit_move_sequence): Update comment
9548         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
9549         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
9550         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
9551         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
9552         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
9553         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
9554         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
9555         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
9556         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
9557         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
9558         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
9559         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
9560         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
9561
9562 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
9563
9564         * opts.c (set_fast_math_flags,
9565         set_unsafe_math_optimizations_flags): Make static.
9566         * toplev.h (set_fast_math_flags,
9567         set_unsafe_math_optimizations_flags): Remove prototypes.
9568
9569 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
9570
9571         * config/arm/arm.c (arm_option_optimization): Set
9572         flag_section_anchors to 1 not 2.
9573         * config/i386/i386.c (ix86_option_override_internal): Check
9574         global_options_set.x_flag_zee and
9575         global_options_set.x_flag_omit_frame_pointer.
9576         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
9577         flag_zee to 2.
9578         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9579         global_options_set.x_flag_omit_frame_pointer.
9580         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
9581         opts->x_flag_section_anchors to 1 not 2.
9582         * config/sh/sh.c (sh_option_optimization): Don't set
9583         flag_schedule_insns to 2.
9584         (sh_option_override): Check
9585         global_options_set.x_flag_schedule_insns.
9586         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
9587
9588 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
9589
9590         * configure.ac: Make sure inhibit_libc remains false for mingw targets
9591         as cross.
9592         * configure: Regenerated.
9593
9594 2010-10-15  Xinliang David Li  <davidxl@google.com>
9595
9596         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
9597         function.
9598         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
9599         into a recursive function.
9600
9601 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
9602
9603         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
9604         (*movdfcc_1): ditto.
9605
9606 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
9607
9608         * target.def (target_option.init_struct): New hook.
9609         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
9610         * doc/tm.texi: Regenerate.
9611         * hooks.c (hook_void_gcc_optionsp): New.
9612         * hooks.h (hook_void_gcc_optionsp): Declare.
9613         * langhooks-def.h (lhd_init_options_struct): Remove.
9614         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
9615         * langhooks.c (lhd_init_options_struct): Remove.
9616         * opts.c (init_options_struct): Also call
9617         targetm.target_option.init_struct.
9618         * config/i386/i386.c (ix86_option_init_struct,
9619         TARGET_OPTION_INIT_STRUCT): New.
9620         (ix86_option_optimization): Move some settings to
9621         ix86_option_init_struct.
9622         * config/pdp11/pdp11.c (pdp11_option_init_struct,
9623         TARGET_OPTION_INIT_STRUCT): New.
9624         (pdp11_option_optimization): Move some settings to
9625         pdp11_option_init_struct.
9626         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
9627         rs6000_option_init_struct.  Use options structure pointer.
9628         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9629         * config/s390/s390.c (s390_option_init_struct,
9630         TARGET_OPTION_INIT_STRUCT): New.
9631         (s390_option_optimization): Don't set
9632         flag_asynchronous_unwind_tables here.
9633         * config/sh/sh.c (sh_option_init_struct,
9634         TARGET_OPTION_INIT_STRUCT): New.
9635         (sh_option_optimization): Don't set flag_finite_math_only here.
9636         * config/spu/spu.c (spu_option_optimization): Replace by
9637         spu_option_optimization.  Use options structure pointer.
9638         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
9639
9640 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9641
9642         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
9643
9644         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
9645         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
9646         (Standard names): Document fma.
9647
9648         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
9649         __FP_FAST_FMAF, __FP_FAST_FMAL.
9650
9651         * builitns.c (expand_builtin_mathfn_ternary): New function for
9652         expanding ternary math functions, like fma.
9653         (expand_builtin): Call it for the fma builtins.
9654
9655         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
9656         ops at present.
9657
9658         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
9659         vectorizable functions to support vectorizing fma.
9660
9661         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9662         Handle fma builtins.
9663
9664         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
9665         (UNSPEC_VSX_MSUB): Ditto.
9666         (UNSPEC_VSX_NMADD): Ditto.
9667         (UNSPEC_VSX_NMSUB): Ditto.
9668         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
9669         of UNSPEC. Renumber combiner patterns.
9670         (vsx_fmsub<mode>4*): Ditto.
9671         (vsx_fnmadd<mode>4*): Ditto.
9672         (vsx_fnmsub<mode>4*): Ditto.
9673
9674         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
9675         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
9676         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
9677         (altivec_vmaddfp_1): Ditto.
9678         (altivec_vmaddfp_2): Ditto.
9679         (atlivec_mulv4sf3): Ditto.
9680         (altivec_vnmsubfp): Ditto.
9681         (altivec_vnmsubfp_1): Ditto.
9682         (altivec_vnmsubfp_2): Ditto.
9683         (altivec_vnmsubfp_3): Delete.
9684
9685         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
9686         (fmasf4_fpr): Ditto.
9687         (fmssf4_fpr): Ditto.
9688         (fnmasf4_fpr): Ditto.
9689         (fnmssf4_fpr): Ditto.
9690         (fmadf4): Ditto.
9691         (fmadf4_fpr): Ditto.
9692         (fmsdf4_fpr): Ditto.
9693         (fnmadf4_fpr): Ditto.
9694         (fnmsdf4_fpr): Ditto.
9695
9696         * optabs.h (OTI_fma): Add fma optab.
9697         (fma_optab): Ditto.
9698
9699         * genopinit.c (optabs): Set fma optab.
9700
9701         * rtl.def (FMA): Add FMA rtl.
9702
9703         * tree.h (mode_has_fma): New function to return if MODE supports a
9704         fast multiply and add instruction.
9705         * builtins.c (mode_has_fma): Ditto.
9706
9707 2010-10-15  Jan Hubicka  <jh@suse.cz>
9708
9709         * lto-streamer-out.c (write_symbol): Use pointer set of seen
9710         objects instead of bitmap.
9711         (produce_symtab): Likewise; output defined symbols first.
9712
9713 2010-10-15  Jie Zhang  <jie@codesourcery.com>
9714
9715         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
9716         Option Summary and Index.
9717
9718 2010-10-15  Richard Guenther  <rguenther@suse.de>
9719
9720         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
9721         for automatic variables again.
9722
9723 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
9724
9725         * doc/extend.texi (Variable Length): Don't refer to VLAs not
9726         conforming to C99.
9727
9728 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
9729
9730         * config/rx/rx.c (rx_option_optimization): Change to
9731         rx_override_options_after_change.  Don't change
9732         flag_lto_compression_level.  Don't check for changes to whether
9733         FPU instructions can be used.  Check and set only
9734         flag_finite_math_only, not other fast-math flags.
9735         (rx_option_override): Call rx_override_options_after_change.
9736         (TARGET_OPTION_OPTIMIZATION): Remove.
9737         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
9738
9739 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
9740
9741         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
9742         disable section anchors for lang_hooks.name[4] != 'O'.
9743
9744 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
9745
9746         * config/frv/frv.c (frv_option_optimization,
9747         TARGET_OPTION_OPTIMIZATION): Remove.
9748         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
9749
9750 2010-10-15  Michael Matz  <matz@suse.de>
9751
9752         * cgraphunit.c (clone_of_p): Define unconditionally.
9753
9754 2010-10-15  Richard Guenther  <rguenther@suse.de>
9755
9756         PR lto/45957
9757         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
9758
9759 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
9760
9761         * ifcvt.c (find_active_insn_before): New function.
9762         (find_active_insn_after): New function.
9763         (cond_exec_process_if_block): Use new functions to replace
9764         prev_active_insn() and next_active_insn().
9765
9766 2010-10-14  Yao Qi  <yao@codesourcery.com>
9767
9768         PR target/45447
9769         * config/arm/arm.c (arm_build_builtin_va_list): Assign
9770         va_list_name to TYPE_STUB_DECL (va_list_type).
9771
9772 2010-10-14  Jan Hubicka  <jh@suse.cz>
9773
9774         PR middle-end/45621
9775         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
9776         redirected to clone, be happy.
9777         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
9778         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
9779         former_clone_of unconditionally.
9780
9781 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
9782
9783         Merge from FSF apple 'trunk' branch.
9784         2006 Fariborz Jahanian  <fjahanian@apple.com>
9785
9786         Radars 4436866, 4505126, 4506903, 4517826
9787         * c-parser.c (c_parser, objc_property_attr_context) New flag.
9788         (c_lex_one_token): Handle property attributes.
9789         (c_parser_external_declaration): Handle @property.
9790         (c_parser_declaration_or_fndef): Warn on invalid attributes before
9791         @alias, @class, @end and @property objc keywords.
9792         (c_parser_objc_methodprotolist): Handle @property.
9793         (c_parser_objc_property_attrlist): New.
9794         (c_parser_objc_at_property): New.
9795         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
9796         (build_modify_expr): Likewise.
9797
9798 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
9799
9800         PR tree-optimization/46008
9801         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
9802
9803 2010-10-14  Richard Guenther  <rguenther@suse.de>
9804
9805         PR tree-optimization/44913
9806         * tree-data-ref.c (disjoint_objects_p): Remove.
9807         (dr_may_alias_p): Simplify.  Only hand the base object to
9808         the alias-oracle.
9809         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9810         some more trees, bail out instead of asserting.
9811         (ptr_derefs_may_alias_p): Likewise.  Export.
9812         (refs_may_alias_p_1): Handle STRING_CSTs.
9813         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
9814
9815 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
9816
9817         PR c/45969
9818         * c-typeck.c (build_binary_op): Don't try to compute a semantic
9819         type with excess precision for boolean operations.
9820
9821 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
9822             Basile Starynkevitch  <basile@starynkevitch.net>
9823
9824         * gengtype.c:  Include getopt.h and version.h.
9825
9826         (lang_bitmap, struct outf, outf_p)
9827         (get_output_file_with_visibility, oprintf): Definitions moved to
9828         gengtype.h
9829         (output_files, header_file, srcdir, srcdir_len, this_file)
9830         (do_dump): No more static variables.
9831         (do_debug): New.
9832         (dbgprint_count_type_at): Added new function.
9833         (gengtype_long_options): New.
9834         (print_usage, print_version, parse_program_options): New.
9835         (main): Call parse_program_options, and removed old option
9836         handling code.  Added some debug output.
9837
9838         * gengtype.h:  Updated copyright year.
9839         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
9840         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
9841         Moved from gengtype.c to here.
9842         (do_debug, read_state_filename, write_state_filename): New variables.
9843         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
9844
9845         * Makefile.in:
9846         (REVISION): Always defined.
9847         (version.o): Removed ifdef REVISION_c.
9848         (s-gtype): Pass arguments to build/gengtype program.
9849         (build/version.o): Added building rule.
9850         (build/gengtype$(build_exeext)): Added build/version.o.
9851
9852 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
9853
9854         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
9855         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
9856         __strong macros.
9857
9858 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
9859
9860         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
9861         may_trap_or_fault_p instead of may_trap_p predicate.
9862         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
9863         (substitute_placeholder_in_expr): Likewise.
9864         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
9865         flag on MEM_REF nodes.
9866         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
9867         flags on INDIRECT_REF nodes.
9868
9869 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
9870
9871         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
9872         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
9873         (arm*-*-eabi*) <tm_file>: Likewise.
9874         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
9875         (frv-*-*linux*) <tm_file>: Likewise.
9876         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
9877         and associated helper macros.
9878         * config/frv/frv-abi.h: Delete.
9879
9880 2010-10-14  Richard Guenther  <rguenther@suse.de>
9881
9882         PR lto/44561
9883         * tree.def (NULLPTR_TYPE): New tree code.
9884         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
9885         * dwarf2out.c (is_base_type): Likewise.
9886         (gen_type_die_with_usage): Likewise.
9887         * sdbout.c (plain_type_1): Likewise.
9888         * tree.c (build_int_cst_wide): Likewise.
9889         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
9890
9891 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
9892
9893         * params.c (params_finished): New.
9894         (add_params): Assert !params_finished.
9895         (finish_params): New.
9896         (set_param_value_internal): Take params and params_set
9897         parameters.  Assert params_finished.
9898         (set_param_value, maybe_set_param_value): Take params and
9899         params_set parameters.  Update calls to set_param_value_internal.
9900         (set_default_param_value): Assert !params_finished.  Don't use
9901         set_param_value_internal.
9902         (default_param_value, init_param_values): New.
9903         * params.h (struct param_info): Change value to default_value.
9904         Remove set.
9905         (set_param_value, maybe_set_param_value): Add params and
9906         params_set parameters.
9907         (PARAM_VALUE): Get parameters from global_options.
9908         (PARAM_SET_P): Remove.
9909         (finish_params, default_param_value, init_param_values): New.
9910         * common.opt (param_values): New Variable.
9911         * config/arm/arm.c (arm_option_override): Pass extra arguments to
9912         maybe_set_param_value.
9913         * config/i386/i386.c (ix86_option_override_internal): Pass extra
9914         arguments to maybe_set_param_value.
9915         * config/picochip/picochip.c (picochip_option_override): Pass
9916         extra arguments to maybe_set_param_value.
9917         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
9918         extra arguments to maybe_set_param_value.
9919         * config/s390/s390.c (s390_option_override): Use
9920         maybe_set_param_value instead of set_param_value.  Pass extra
9921         arguments to maybe_set_param_value.
9922         * config/sparc/sparc.c (sparc_option_override): Pass extra
9923         arguments to maybe_set_param_value.
9924         * config/spu/spu.c (spu_option_override): Pass extra arguments to
9925         maybe_set_param_value.
9926         * opts.c (handle_param): Take opts and opts_set parameters.
9927         Update call to set_param_value.
9928         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
9929         initial_loop_invariant_max_bbs_in_loop): Remove.
9930         (init_options_once): Don't set them.
9931         (init_options_struct): Initialize parameters structures.
9932         (default_options_optimization): Use default_param_value when
9933         restoring defaults.  Update calls to maybe_set_param_value.
9934         (finish_options): Update calls to maybe_set_param_value.
9935         (common_handle_option): Update calls to handle_param and
9936         set_param_value.
9937         * toplev.c (DEFPARAM): Update definition for changes to param_info.
9938         (general_init): Call finish_params.
9939
9940 2010-10-14  Nick Clifton  <nickc@redhat.com>
9941
9942         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
9943         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
9944         (FIRST_PSEUDO_REGISTER): Increase by one.
9945         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
9946         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
9947         (MODES_TIEABLE): Call mn10300_modes_tieable.
9948         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
9949         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
9950         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
9951         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
9952         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
9953         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
9954         (mn10300_cc_status_mdep): Delete.
9955         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
9956         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
9957         the combine-stack-adjust pass.
9958         (print_operand): Use the mode of the comparison operation to
9959         select the comparison suffix.
9960         (notice_update_cc): Delete.
9961         (mn10300_secondary_reload_class): Remove test for stack pointer
9962         based arithmetic.
9963         (output_tst): Rename to mn10300_output_cmp.
9964         (impossible_plus_operand): Move into predicates.md.
9965         (mn10300_legitimize_address): Make static.
9966         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
9967         constant pic operands.
9968         (mn10300_legitimate_constant_p): New function.
9969         (mn10300_case_values_threshold): Make static.
9970         (mn10300_hard_regno_mode_ok): New function.
9971         (mn10300_modes_tieable): New function.
9972         (mn10300_select_cc_mode): New function.
9973         * config/mn10300/predicates.md (impossible_plus_operand): Define.
9974         * config/mn10300/mn10300-protos.h: Tidy.
9975         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
9976         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
9977         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
9978         with clobbers or sets of CC_REG.
9979         (CC_REG): Define.
9980         (mov*): Remove use of CLR instruction.
9981         (cbranch_si4_<code>): New pattern/split.
9982         (integer_conditional_branch): New pattern.
9983         (cbranch_sf4_<code>): New pattern/split.
9984         (float_conditional_branch): New pattern.
9985         (casesi): Use addsi3 pattern instead of movsi pattern to add and
9986         move a value at the same time.
9987         (cc0 peepholes): Remove.
9988
9989 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
9990
9991         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
9992         on RTX_FRAME_RELATED_P insns and the insn to which
9993         NOTE_INSN_EPILOGUE_BEG is attached.
9994         * sched-vis.c (print_value): Allow NULL value.
9995
9996 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
9997
9998         PR rtl-optimization/45570
9999         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
10000         assert that we are pipelining outer loops.  Allow returning
10001         zero predecessors.
10002
10003 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
10004
10005         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
10006         (tidy_control_flow): Tidy vertical space.
10007         (sel_remove_bb): New variable idx.  Use it to remember the basic
10008         block index before deleting the block.
10009         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
10010         (sel_merge_blocks): ... here.
10011         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
10012
10013 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10014
10015         * cse.c (is_dead_reg): Change into inline function that is not
10016         called through for_each_rtx.
10017         (set_live_p): Adjust caller.
10018         (insn_live_p): Don't reset DEBUG_INSNs here.
10019         (struct dead_debug_insn_data): New data.
10020         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
10021         (delete_trivially_dead_insns): If there is just one setter for the
10022         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
10023         and add DEBUG_INSN for it right before the removed setter and
10024         use the DEBUG_EXPR instead of the dead pseudo.
10025
10026 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
10027
10028         * et-forest.c (et_nca): Return NULL immediately when
10029         the dominance forest has disjoint components.
10030
10031 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
10032
10033         * ira.c (setup_class_hard_regs): Fix typo in indexing
10034         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
10035
10036 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
10037
10038         * graph.c (inbb): New variable.
10039         (start_bb): Set inbb to 1 if output is inside of a building block.
10040         (end_bb): Check if output is inside of a building block.
10041
10042 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10043
10044         PR rtl-optimization/45912
10045         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
10046         regno of registers instead of their index to compute the alignment.
10047
10048 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10049
10050         * config/i386/i386.c (ix86_build_const_vector): Check vector
10051         mode instead of scalar mode.
10052         (ix86_build_signbit_mask): Likewise.
10053         (ix86_expand_fp_absneg_operator): Updated.
10054         (ix86_expand_copysign): Likewise.
10055         (ix86_expand_int_vcond): Likewise.
10056         (ix86_emit_swdivsf): Likewise.
10057         (ix86_sse_copysign_to_positive): Likewise.
10058         (ix86_expand_sse_fabs): Likewise.
10059         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
10060         * config/i386/sse.md (copysign<mode>3): Likewise.
10061         (sse2_cvtudq2ps): Likewise.
10062         (vec_unpacku_float_hi_v4si): Likewise.
10063         (vec_unpacku_float_lo_v4si): Likewise.
10064
10065         * config/i386/i386.c (ix86_builtins): Add
10066         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
10067         (bdesc_args): Likewise.
10068         (ix86_builtin_vectorized_function): Support
10069         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
10070         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
10071         and IX86_BUILTIN_CVTPS2DQ256.
10072         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
10073
10074         * config/i386/sse.md (STORENT_MODE): New.
10075         (VEC_FLOAT_MODE): Likewise.
10076         (VEC_EXTRACT_MODE): Likewise.
10077         (*avx_cvtdq2pd256_2): Likewise.
10078         (vec_pack_trunc_v4df): Likewise.
10079         (vec_interleave_highv8sf): Likewise.
10080         (vec_interleave_lowv8sf): Likewise.
10081         (storent<mode>): Macroized.
10082         (<code><mode>2: absneg): Likewise.
10083         (copysign<mode>3): Likewise.
10084         (vec_extract<mode>): Likewise.
10085
10086         PR target/44180
10087         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
10088         for V8SFmode.
10089
10090 2010-10-13  Richard Guenther  <rguenther@suse.de>
10091             H.J. Lu  <hongjiu.lu@intel.com>
10092
10093         * config/i386/sse.md (reduc_splus_v8sf): Add.
10094         (reduc_splus_v4df): Likewise.
10095         (vec_unpacks_hi_v8sf): Likewise.
10096         (vec_unpacks_lo_v8sf): Likewise.
10097         (*avx_cvtps2pd256_2): Likewise.
10098         (vec_unpacks_float_hi_v8si): Likewise.
10099         (vec_unpacks_float_lo_v8si): Likewise.
10100         (vec_interleave_highv4df): Likewise.
10101         (vec_interleave_lowv4df): Likewise.
10102
10103 2010-10-13  Richard Guenther  <rguenther@suse.de>
10104
10105         PR objc/45878
10106         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
10107         alone if there are no virtual methods.
10108
10109 2010-10-13  Richard Henderson  <rth@redhat.com>
10110
10111         * expr.c (build_personality_function): Take parameter LANG instead
10112         of parameter NAME.  Build the name based on the lang prefix and the
10113         unwind method in use.
10114         * tree.c (lhd_gcc_personality): Update call to
10115         build_personality_function.
10116
10117 2010-10-13  Richard Guenther  <rguenther@suse.de>
10118
10119         PR objc/45878
10120         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
10121
10122 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10123
10124         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
10125         Canonicalize input operands of ASM_OPERANDS insns.
10126
10127 2010-10-13  Richard Guenther  <rguenther@suse.de>
10128
10129         PR tree-optimization/45788
10130         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
10131         EH update until fixup-cfg.
10132
10133 2010-10-13  Julian Brown  <julian@codesourcery.com>
10134
10135         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
10136         from CORE_REGS and GENERAL_REGS classes.
10137         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
10138         final constraint for register preferencing.
10139
10140 2010-10-13  Richard Guenther  <rguenther@suse.de>
10141
10142         PR tree-optimization/45970
10143         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
10144         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
10145         (stmt_kills_ref_p): Likewise.
10146         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
10147
10148 2010-10-13  Richard Guenther  <rguenther@suse.de>
10149
10150         PR tree-optimization/45982
10151         * tree-ssa-structalias.c (make_constraints_to): New function.
10152         (make_constraint_to): Implement in terms of make_constraints_to.
10153         (find_func_aliases): Properly make return values of pure/const
10154         functions escape if they assign to sth that is not a pointer.
10155
10156 2010-10-13  Richard Guenther  <rguenther@suse.de>
10157
10158         PR middle-end/45874
10159         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
10160         Fixup the CFG when EH was fixed up.
10161
10162 2010-10-13  Ira Rosen  <irar@il.ibm.com>
10163
10164         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
10165         Use operand's type for POINTER_PLUS_EXPR.
10166
10167 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
10168
10169         * c-parser.c (c_parser_for_statement): Initialize incr.
10170
10171 2010-10-12  Xinliang David Li  <davidxl@google.com>
10172
10173         PR tree-optimization/45972
10174         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
10175         with too many arguments.
10176
10177 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10178
10179         PR fortran/45636
10180         * tree-ssa-forwprop.c: Include expr.h.
10181         (constant_pointer_difference, simplify_builtin_call): New functions.
10182         (tree_ssa_forward_propagate_single_use_vars): Call
10183         simplify_builtin_call on builtin calls.
10184
10185 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
10186
10187         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
10188         (*adddi3_extend_sp32): Likewise.
10189         (*subdi3_insn_sp32): Likewise.
10190         (*subdi3_extend_sp32): Likewise.
10191         (*negdi2_sp32): Use negative test for consistency.
10192
10193 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
10194
10195         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
10196         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
10197         * config/fixed-bit.h: Likewise.
10198         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
10199         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
10200         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
10201         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
10202         (DF_SIZE): Likewise.
10203         * doc/tm.texi: Regenerate.
10204
10205 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
10206
10207         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
10208         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
10209         (*isel_reversed_unsigned_<mode>): New.
10210         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
10211         as valid comparisons and adjust operands and output appropriately.
10212         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
10213
10214 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
10215
10216         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
10217         DATA_ALIGNMENT and add COND parameter. Update comments above.
10218         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
10219         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
10220
10221 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10222
10223         PR bootstrap/45958
10224         * exec-tool.in: Support '-plugin' as the second option to the linker.
10225
10226 2010-10-12  Richard Henderson  <rth@redhat.com>
10227
10228         PR middle-end/45962
10229         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
10230         (expand_stack_vars): Assert large base allocated when used.
10231
10232 2010-10-12  Richard Guenther  <rguenther@suse.de>
10233
10234         * tree-ssa-structalias.c (get_constraint_for_1): Constants
10235         only point to nonlocal, not anything.
10236
10237 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
10238
10239         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
10240         unwind info for exceptions.
10241
10242 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10243
10244         PR testsuite/45851
10245         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
10246         Document optional target selector.
10247
10248 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
10249
10250         * flag-types.h: New.
10251         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
10252         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
10253         options.h.
10254         (OPTIONS_H): Define.
10255         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
10256         of options.h.
10257         * configure.ac (tm_include_list): Include options.h not flags.h.
10258         * configure: Regenerate.
10259         * flags.h: Include flag-types.h.  Include options.h at top of file
10260         again.
10261         (enum debug_info_type, enum debug_info_level, enum
10262         debug_info_usage, enum symbol_visibility, struct visibility_flags,
10263         enum ira_algorithm, enum ira_region, enum excess_precision, enum
10264         graph_dump_types, enum stack_check_type,
10265         enum warn_strict_overflow_code): Move to flag-types.h
10266         * opth-gen.awk: Include flag-types.h in options.h.
10267
10268 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10269
10270         * expr.c (store_expr): Share code for STRING_CST and
10271         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
10272         check if target is a MEM.
10273
10274         * rtl.h: Include hashtab.h.
10275         (iterative_hash_rtx): New prototype.
10276         * rtl.c (iterative_hash_rtx): New function.
10277         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
10278         (output_loc_list): Return immediately if emitted is set, set it.
10279         (hash_loc_operands, hash_locs, hash_loc_list,
10280         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
10281         optimize_location_lists_1, optimize_location_lists): New function.
10282         (dwarf2out_finish): Call optimize_location_lists.
10283         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
10284
10285 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10286
10287         PR testsuite/45974
10288         Revert:
10289         * Makefile.in ($(lang_checks_parallel))
10290         ($(lang_checks_parallelized)): Use single quotes for
10291         $(RUNTESTFLAGS), to allow passing quoted content.
10292
10293 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10294
10295         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
10296         actual_oldval.  Use __builtin_expect.
10297         (SUBWORD_VAL_CAS): Likewise.
10298
10299 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
10300
10301         * recog.c (nonmemory_operand): Call immediate_operand for
10302         CONSTANT_P operands.
10303
10304 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
10305
10306         * config/i386/i386.md (movmem<mode>): Macroize expander from
10307         movmem{si,di} using SWI48 mode iterator.
10308         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
10309         *strmovsi_rex_1 using P mode iterator.
10310         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
10311         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
10312         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
10313         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
10314         (setmem<mode>): Macroize expander from setmem{si,di} using
10315         SWI48 mode iterator.
10316         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
10317         *strsetsi_rex_1 using P mode iterator.
10318         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
10319         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
10320         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
10321         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
10322         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
10323         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
10324         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
10325         mode iterator.
10326         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
10327         *strlenqi_rex_1 using P mode iterator.
10328
10329 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
10330
10331         PR bootstrap/45445
10332         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
10333         static functions.
10334         (mark_ref_live, mark_ref_dead): Use them.
10335         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
10336         Save the original reg, and use the new functions.
10337         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
10338         changed.
10339         (check_and_make_def_conflict): Save the original reg.
10340
10341 2010-10-11  Martin Jambor  <mjambor@suse.cz>
10342
10343         PR middle-end/45699
10344         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
10345         thunks.
10346
10347 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10348
10349         * Makefile.in ($(lang_checks_parallel))
10350         ($(lang_checks_parallelized)): Use single quotes for
10351         $(RUNTESTFLAGS), to allow passing quoted content.
10352
10353         PR bootstrap/35855
10354         * opt-functions.awk (BEGIN): New section.
10355         (lower, upper, digit, alnum): New variables.
10356         (static_var, opt_sanitized_name): Use alnum instead of character
10357         classes, for non-C locale.
10358         * optc-gen.awk: Likewise.
10359         * opth-gen.awk: Likewise.
10360
10361 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
10362
10363         * target.def (preferred_reload_class): New hook.
10364         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
10365         * doc/tm.texi: Regenerate.
10366         * targhooks.c (default_preferred_reload_class): New function.
10367         * targhooks.h (default_preferred_reload_class): Declare.
10368         * reload.c (find_dummy_reload): Change preferred_class variable type
10369         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
10370         target hook.
10371         (find_reloads): Change goal_alternative array type from int to
10372         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
10373         (push_reload, find_reloads_address_part): Use
10374         TARGET_PREFERRED_RELOAD_CLASS target hook.
10375         * reload1.c (emit_input_reload_insns): Ditto.
10376         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
10377         hook. Change rclass argument and secondary_class variable types from
10378         'enum reg_class' to reg_class_t.
10379
10380         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
10381         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
10382         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
10383         Change regclass argument and result types from enum reg_class to
10384         reg_class_t.
10385         (TARGET_PREFERRED_RELOAD_CLASS): Define.
10386
10387 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
10388
10389         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
10390         in masking operations.
10391         (simplify_const_unary_operation): Likewise.
10392         (simplify_binary_operation_1): Likewise.
10393         (simplify_const_binary_operation): Likewise.
10394         (simplify_const_relational_operation): Likewise.
10395         (simplify_ternary_operation): Likewise.
10396         (simplify_immed_subreg): Likewise.
10397
10398 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10399
10400         PR middle-end/45862
10401         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
10402         (TARGET_SUPPORTS_WEAK): New.
10403         * doc/tm.texi: Regenerate.
10404         * defaults.h (SUPPORTS_WEAK): Update comment.
10405         (TARGET_SUPPORTS_WEAK): New.
10406         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
10407         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
10408         SUPPORTS_WEAK.
10409         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
10410         make_decl_one_only): Likewise.
10411         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
10412         TARGET_SUPPORTS_WEAK.
10413         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
10414         instead of SUPPORTS_WEAK.
10415
10416 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10417
10418         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
10419
10420 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
10421
10422         * vec.h (VEC_qsort): Define.
10423         * dbxout.c (output_used_types): Use it.
10424         * df-scan.c (df_sort_and_compress_refs): Likewise.
10425         (df_sort_and_compress_mws): Likewise.
10426         * genautomata.c (uniq_sort_alt_states): Likewise.
10427         (evaluate_equiv_classes): Likewise.
10428         (output_trans_table): Likewise.
10429         (output_state): Likewise.
10430         * gimplify.c (compare_case_labels): Likewise.
10431         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
10432         * ipa.c (build_cdtor_fns): Likewise.
10433         * lto.c (lto_wpa_write_files): Likewise.
10434         * sel-sched.c (fill_vec_av_set): Likewise.
10435         * tree-predcom.c (determine_roots_comp): Likewise.
10436         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
10437         (splice_param_accesses): Likewise.
10438         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
10439         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
10440         (reassociate_bb): Likewise.
10441         * tree-ssa-sccvn.c (sort_scc): Likewise.
10442         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
10443
10444 2010-10-11  Ian Lance Taylor  <iant@google.com>
10445
10446         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
10447         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
10448         TREE_THIS_NOTRAP when appropriate.
10449         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
10450         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
10451         newly created MEM_REF.
10452
10453 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
10454
10455         Nathan Froyds patch to hooks FUNCTION_ARG etc.
10456         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
10457         (picochip_incoming_function_arg): Delete.
10458         (picochip_arg_advance): Delete.
10459         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
10460         (FUNCTION_INCOMING_ARG): Delete.
10461         (FUNCTION_ARG_ADVANCE): Delete.
10462         * config/picochip/picochip.c (picochip_function_arg): Take a
10463         const_tree and a bool.
10464         (picochip_incoming_function_arg): Likewise.
10465         (picochip_arg_advance): Likewise.
10466         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
10467         (TARGET_FUNCTION_ARG_ADVANCE): Define.
10468
10469 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10470
10471         PR middle-end/45955
10472         * ipa.c (build_cdtor): Delete endless loop.
10473
10474 2010-10-07  Andi Kleen  <ak@linux.intel.com>
10475
10476         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
10477         checksum-options.
10478         (checksum-options): Add.
10479         (cc1-dummy): Remove.
10480         (cc1-checksum): Change to run checksum over object files
10481         and options only.
10482         * dummy-checksum.c: Remove.
10483         * genchecksum.c: Update copyright.
10484         (usage): Allow multiple arguments.
10485         (BLOCKSIZE): Add.
10486         (dosum): Change for incremental checksum. Remove C output.
10487         (main): Iterate over all argument files. Add C output.
10488
10489 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
10490
10491         * params.c (set_param_value_internal): New.
10492         (set_param_value): Use set_param_value_internal.
10493         (maybe_set_param_value, set_default_param_value): New.
10494         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
10495         (maybe_set_param_value, set_default_param_value): Declare.
10496         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
10497         * config/i386/i386.c (ix86_option_override_internal): Use
10498         maybe_set_param_value.
10499         * config/ia64/ia64.c (ia64_option_default_params,
10500         TARGET_OPTION_DEFAULT_PARAMS): New.
10501         (ia64_option_optimization): Move some code to
10502         ia64_option_default_params.
10503         * config/picochip/picochip.c (picochip_option_override): Use
10504         maybe_set_param_value.
10505         * config/rs6000/rs6000.c (rs6000_option_default_params,
10506         TARGET_OPTION_DEFAULT_PARAMS): New.
10507         (rs6000_option_override_internal): Use maybe_set_param_value.
10508         (rs6000_option_optimization): Move some code to
10509         rs6000_option_default_params.
10510         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
10511         * config/sh/sh.c (sh_option_default_params,
10512         TARGET_OPTION_DEFAULT_PARAMS): New.
10513         (sh_option_optimization): Move some code to sh_option_default_params.
10514         * config/sparc/sparc.c (sparc_option_override): Use
10515         maybe_set_param_value.
10516         * config/spu/spu.c (spu_option_default_params,
10517         TARGET_OPTION_DEFAULT_PARAMS): New.
10518         (spu_option_optimization): Move some code to spu_option_default_params.
10519         (spu_option_override): Use maybe_set_param_value.
10520         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
10521         * doc/tm.texi: Regenerate.
10522         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
10523         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
10524         compiler_params.
10525         (default_options_optimization): Use maybe_set_param_value.
10526         (finish_options): Use maybe_set_param_value.
10527         * target.def (target_option.default_params): New hook.
10528         * toplev.c (general_init): Call targetm.target_option.default_params.
10529
10530 2010-10-11  Ira Rosen  <irar@il.ibm.com>
10531
10532         PR tree-optimization/45902
10533         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
10534         vector type for constants, unless it's a pointer.
10535
10536 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10537
10538         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
10539
10540 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
10541
10542         PR target/45870
10543         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
10544         (ix86_delegitimize_address): Use it.
10545
10546 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
10547
10548         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
10549
10550 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
10551
10552         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
10553         to cum struct in the call to function_arg_advance.
10554         (alpha_function_arg_advance): Mark named as unused.
10555
10556 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
10557
10558         * config/mips/mips.c (mips_handle_option): Make "value" with
10559         ATTRIBUTE_UNUSED.
10560
10561 2010-10-09  Richard Henderson  <rth@redhat.com>
10562
10563         PR rtl-opt/33721
10564         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
10565         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
10566         required_align, tidy the code a bit.  Emit split_stack code in the
10567         right place.  Mark the return value with the alignment properly.
10568         * expr.h (allocate_dynamic_stack_space): Update decl.
10569         * builtins.c (expand_builtin_apply): Update call to
10570         allocate_dynamic_stack_space.
10571         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
10572         * calls.c (initialize_argument_information): Update call to
10573         allocate_dynamic_stack_space.
10574         (expand_call): Likewise.
10575
10576         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
10577         Don't update_stack_alignment here.
10578         (alloc_stack_frame_space): Make ALIGN unsigned.
10579         (stack_var_cmp): Sort by alignment too.
10580         (partition_stack_vars): Don't merge large and small alignment vars.
10581         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
10582         Take care when BASE is not virtual_stack_vars_rtx.
10583         (expand_stack_vars): Allocate dynamic stack space for large
10584         alignment variables.
10585         (expand_one_stack_var): Update all to expand_one_stack_var_at.
10586         (defer_stack_allocation): True for large alignment vars.
10587         (update_stack_alignment): Merge into ...
10588         (expand_one_var): ... here.
10589         (gimple_expand_cfg): Place code from expand_stack_vars.
10590
10591 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10592
10593         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10594         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
10595         (pdp11_function_arg_advance): New function.
10596         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10597
10598 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10599
10600         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
10601         * libgcc2.c: Likewise.
10602
10603 2010-10-09  Richard Guenther  <rguenther@suse.de>
10604
10605         PR lto/45956
10606         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
10607         Properly check if a decl is an automatic var.
10608
10609 2010-10-09  Richard Guenther  <rguenther@suse.de>
10610
10611         PR lto/45947
10612         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
10613
10614 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10615
10616         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
10617         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10618         * config/mmix/mmix.c (mmix_function_arg): Rename to...
10619         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
10620         bool arguments.
10621         (mmix_function_arg): New function.
10622         (mmix_function_incoming_arg): New function.
10623         (mmix_function_arg_advance): New function.
10624         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
10625         (TARGET_FUNCTION_ARG_ADVANCE): Define.
10626
10627 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10628
10629         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10630         * config/vax/vax.c (vax_function_arg): New function.
10631         (vax_function_arg_advance): New function.
10632         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10633
10634 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10635
10636         * config/pa/pa-protos.h (function_arg): Delete.
10637         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10638         * config/pa/pa.c (function_arg): Rename to...
10639         (pa_function_arg): ...this.  Make static.  Take a const_tree and
10640         a bool.
10641         (pa_function_arg_advance): New function.
10642         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10643
10644 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10645
10646         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10647         * config/m68k/m68k.c (m68k_function_arg): New function.
10648         (m68k_function_arg_advance): New function.
10649         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10650
10651 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10652
10653         * config/avr/avr-protos.h (function_arg): Delete.
10654         (function_arg_advance): Delete.
10655         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10656         * config/avr/avr.c (function_arg): Rename to...
10657         (avr_function_arg): ...this.  Make static.  Take a const_tree and
10658         a bool.
10659         (function_arg_advance): Rename to...
10660         (avr_function_arg_advance): ...this.  Make static.  Take a
10661         const_tree and a bool.
10662         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10663
10664 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10665
10666         * config/alpha/alpha-protos.h (function_arg): Delete.
10667         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10668         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
10669         * config/alpha/alpha.c (function_arg): Rename to...
10670         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
10671         a bool.  Delete TARGET_ABI_UNICOSMK code.
10672         (alpha_function_arg_advance): New function.
10673         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10674
10675 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10676
10677         * config/mep/mep-protos.h (mep_function_arg): Delete.
10678         (mep_function_arg_advance): Delete.
10679         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10680         * config/mep/mep.c (mep_function_arg): Make static.  Take a
10681         const_tree and a bool.
10682         (mep_function_arg_advance): Likewise.
10683         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10684
10685 2010-10-09  Richard Guenther  <rguenther@suse.de>
10686
10687         PR tree-optimization/45945
10688         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
10689
10690 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
10691
10692         PR tree-optimization/45612
10693         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
10694         Test LABEL_DECLs as well.  Fix formatting issues.
10695         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
10696         whose label is present in NON_SSA_VARS.
10697         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
10698         as well.  Fix formatting issues.
10699         (visit_bb): Fix typos and formatting issue.
10700
10701 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
10702
10703         PR tree-optimization/45950
10704         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
10705         before initializing vno->op.
10706
10707 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
10708
10709         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
10710         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
10711
10712 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
10713
10714         PR target/45913
10715         * config/i386/i386.c (ix86_binary_operator_ok): Support
10716         "andhi/andsi/anddi" as a zero-extending move.
10717
10718 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10719
10720         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
10721         into a temporary array.
10722
10723 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
10724
10725         PR tree-optimization/45903
10726         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
10727         of {A,L}SHIFTRT of MEM.
10728
10729 2010-10-08  Richard Guenther  <rguenther@suse.de>
10730
10731         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10732         Re-construct BLOCK_VARS.
10733         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
10734         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10735         * tree.c (free_lang_data_in_block): Remove.
10736         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
10737         Do not touch the BLOCK tree.
10738         * expr.c (expand_expr_real_1): Allow externals.
10739
10740 2010-10-08  Richard Guenther  <rguenther@suse.de>
10741
10742         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
10743         Do not output BLOCK_SUBBLOCKS.
10744         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
10745         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
10746         Re-construct BLOCK_SUBBLOCKS of parent block.
10747         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
10748         for BINFO_BASE_ACCESSES.
10749
10750 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
10751
10752         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
10753         (TREE_H): Include $(FLAGS_H) instead of options.h.
10754         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
10755         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10756         * common.opt (flag_complex_method, flag_evaluation_order,
10757         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
10758         Variable declarations.
10759         * configure.ac (tm_include_list): Include flags.h instead of options.h.
10760         * configure: Regenerate.
10761         * flags.h: Condition out contents for target libraries.  Include
10762         options.h at end of file.
10763         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
10764         flag_evaluation_order, flag_warn_unused_result): Remove.
10765         * gcc.c (main): Intialize global_options with global_options_init.
10766         * langhooks-def.h (lhd_init_options_struct): Declare.
10767         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
10768         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
10769         * langhooks.c (lhd_init_options_struct): New.
10770         * langhooks.h (struct lang_hooks): Add init_options_struct.
10771         Update comment on init_options.
10772         * optc-gen.awk: Generate initializer for global_options_init, not
10773         global_options.
10774         * opth-gen.awk: Condition out structure declarations for target
10775         libraries.  Declare global_options_init.
10776         * opts-common.c: Include flags.h instead of options.h.
10777         * opts.c (flag_warn_unused_result): Remove.
10778         (read_cmdline_options): Take gcc_options parameters.  Pass them to
10779         read_cmdline_option.
10780         (initial_lang_mask, initial_min_crossjump_insns,
10781         initial_max_fields_for_field_sensitive,
10782         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
10783         (init_options_once): New.  Split out of decode_options.
10784         (init_options_struct): New.  Split out of decode_options.
10785         (decode_cmdline_options_to_array_default_mask): New.
10786         (default_options_optimization): New.  Split out of decode_options.
10787         (decode_options): Move most code to other functions.  Update call
10788         to read_cmdline_options.
10789         (finish_options): New.  Split out of decode_options.
10790         * opts.h (decode_options): Add gcc_options parameters.
10791         (init_options_once, init_options_struct,
10792         decode_cmdline_options_to_array_default_mask): New.
10793         * toplev.c (flag_complex_method, flag_ira_algorithm,
10794         flag_ira_region, flag_evaluation_order): Remove.
10795         (general_init): Use global_options_init for initial flag values
10796         for global_dc.
10797         (toplev_main): Call init_options_once, init_options_struct,
10798         lang_hooks.init_options_struct,
10799         decode_cmdline_options_to_array_default_mask and
10800         lang_hooks.init_option before decode_options.  Update arguments to
10801         decode_options.
10802         * tree.h: Include flags.h instead of options.h.
10803
10804 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10805
10806         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10807
10808 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10809
10810         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
10811         Delete.
10812         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10813         (FUNCTION_INCOMING_ARG): Delete.
10814         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
10815         (function_arg_slotno): Likewise.  Take bool arguments.
10816         (sparc_arg_partial_bytes): Update call to it.
10817         (function_arg): Rename to...
10818         (sparc_function_arg_1): ...this.  Take bool arguments.
10819         (sparc_function_arg, sparc_function_incoming_arg): New functions.
10820         (function_arg_advance): Rename to...
10821         (sparc_function_arg_advance): ...this.  Take bool argument.
10822         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
10823         (TARGET_FUNCTION_INCOMING_ARG): Define.
10824
10825 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10826
10827         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
10828         Delete.
10829         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10830         * config/bfin/bfin.c (function_arg_advance): Rename to...
10831         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
10832         and bool arguments.
10833         (function_arg): Rename to...
10834         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
10835         arguments.
10836         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10837
10838 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10839
10840         * config/score/score-protos.h (score_function_arg): Delete.
10841         (score_function_arg_advance): Delete.
10842         * config/score/score3.h (score3_function_arg_advance): Take a
10843         const_tree and a bool.
10844         (score3_function_arg): Likewise.
10845         * config/score/score7.h (score7_function_arg_advance): Likewise.
10846         (score7_function_arg): Likewise.
10847         * config/score/score3.c (score3_classify_arg): Likewise.
10848         (score3_function_arg_advance, score3_function_arg): Likewise.
10849         * config/score/score7.c (score7_classify_arg): Likewise.
10850         (score7_function_arg_advance, score7_function_arg): Likewise.
10851         * config/score/score.c (score_function_arg_advance): Likewise.
10852         (score_function_arg): Likewise.  De-const-ify `cum' argument.
10853         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10854
10855 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10856
10857         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
10858         (s390_function_arg): Delete.
10859         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10860         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
10861         (s390_function_arg_integer): Likewise.
10862         (s390_function_arg_advance): Make static.  Take a const_tree and
10863         a bool.
10864         (s390_function_arg): Likewise.
10865         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10866
10867 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10868
10869         * config/spu/spu-protos.h (spu_function_arg): Delete.
10870         * config/spu/spu.h (FUNCTION_ARG): Delete.
10871         (FUNCTION_ARG_ADVANCE): Move code to ...
10872         * config/spu/spu.c (spu_function_arg_advance): New function.
10873         (spu_function_arg): Make static.  Take a const_tree and a bool.
10874         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
10875         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10876
10877 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10878
10879         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10880
10881 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10882
10883         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
10884         (init_vn_nary_op_from_op): New function.
10885         (init_vn_nary_op_from_stmt): New function.
10886         (vn_nary_op_lookup_1): New function.
10887         (sizeof_vn_nary_op): New function.
10888         (alloc_vn_nary_op_noinit): New function.
10889         (alloc_vn_nary_op): New function.
10890         (vn_nary_op_insert_into): New function.
10891         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
10892         (vn_nary_op_lookup): Likewise.
10893         (vn_nary_op_lookup_stmt): Likewise.
10894         (vn_nary_op_insert_pieces): Likewise.
10895         (vn_nary_op_insert): Likewise.
10896         (vn_nary_op_insert_stmt): Likewise.
10897         (copy_nary): Likewise.
10898         (set_value_id_for_result): New function.
10899         (set_hashtable_value_ids): Call it.
10900
10901 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10902
10903         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10904         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
10905
10906 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
10907
10908         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
10909         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
10910
10911 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
10912
10913         PR debug/45656
10914         * cse.c (cse_extended_basic_block): Preserve cc0 info across
10915         debug isnsn.  Skip them when searching for cc0 setter.
10916         (set_live_p): Skip debug insns when searching for cc0 user.
10917
10918 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
10919
10920         PR debug/45673
10921         PR debug/45604
10922         PR debug/45419
10923         PR debug/45408
10924         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
10925         type of MEM_REFs to INTEGER_CSTs.
10926
10927 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
10928
10929         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
10930         m68hc11_print_operand_address.
10931
10932 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
10933
10934         * builtins.c (rewrite_call_expr): Move code to...
10935         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
10936         (rewrite_call_expr_array): New function.
10937         (fold_builtin_sprintf_chk_1): New function.
10938         (fold_builtin_sprintf_chk): Call it.
10939         (gimple_fold_builtin_sprintf_chk): Likewise.
10940         (fold_builtin_snprintf_chk_1): New function.
10941         (fold_builtin_snprintf_chk): Call it.
10942         (gimple_fold_builtin_snprintf_chk): Likewise.
10943         (gimple_rewrite_call_expr): Delete.
10944
10945 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
10946
10947         * config.host: Update copyright year.
10948
10949 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
10950
10951         * config.host (host_lto_plugin_soname): New shell variable.
10952         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
10953         * config.in: Regenerate.
10954         * configure: Regenerate.
10955         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
10956         LTO plugin shared library.
10957
10958 2010-10-07  Richard Henderson  <rth@redhat.com>
10959
10960         * target.h (enum unwind_info_type): Move ...
10961         * coretypes.h: ... here.
10962
10963 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
10964
10965         * doc/objc.texi (Fast enumeration protocol): Mention that
10966         'unsigned int' can also be used instead of 'unsigned long' in
10967         countByEnumeratingWithState:objects:count:.
10968
10969 2010-10-07  Martin Jambor  <mjambor@suse.cz>
10970
10971         * tree-sra.c (struct access): New field grp_assignment_write.
10972         (dump_access): Dump grp_assignment_write.
10973         (build_accesses_from_assign): Set grp_assignment_write.
10974         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
10975         (mark_read_status): Renamed to mark_rw_status, individual values
10976         renamed too.
10977         (analyze_access_subtree): Changed type of mark_write to
10978         mark_read_status.  Fixed propagating of mark_read and
10979         mark_write.  Changed benefit estimate.  Updated comment.
10980
10981 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
10982
10983         PR Tree-Vect/45847
10984         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
10985         check for vectype_out returned by get_vectype_for_scalar_type().
10986
10987 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
10988
10989         PR target/45805
10990         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
10991         constraint, add register specifier in instruction template.
10992         (neon_vec_pack_trunc_<mode>): Likewise.
10993         (neon_vec_<US>mult_<mode>): Add register specifier to
10994         instruction template.
10995
10996 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
10997
10998         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
10999         cygwin2.o.
11000         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
11001         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
11002         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
11003         (cygwin2.o): Likewise.
11004         * config/i386/cygwin1.c: Delete file.
11005         * config/i386/cygwin2.c: Likewise.
11006         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
11007         make all {%!mno-cygwin} ones unconditional.
11008         (STARTFILE_SPEC): Likewise.
11009         (REAL_LIBGCC_SPEC): Likewise.
11010         (LIB_SPEC): Likewise.
11011         (CXX_WRAP_SPEC): Likewise.
11012         (LINK_SPEC): Likewise.
11013         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
11014         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
11015         (cygwin_gplusplus_include_dir): Delete now-unused array.
11016         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
11017         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
11018         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
11019         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
11020         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
11021         (cygwin_local_include_dir): Delete now-unused array.
11022         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
11023         (cygwin_cross_include_dir): Delete now-unused array.
11024         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
11025         (cygwin_tool_include_dir): Delete now-unused array.
11026         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
11027         (cygwin_standard_include_dir): Delete now-unused array.
11028         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
11029         (GEN_CVT_ARRAY): Delete now-unused macro definition.
11030         (cvt_to_mingw): Delete now-unused array.
11031         (mingw_scan): Remove prototype of deleted function.
11032         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
11033         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
11034         * doc/invoke.texi (-mcygwin): Don't document removed option.
11035         (-mno-cygwin): Likewise.
11036
11037 2010-10-07  Richard Guenther  <rguenther@suse.de>
11038
11039         * machmode.h (mode_for_vector): Declare.
11040         * stor-layout.c (mode_for_vector): New function, split out from ...
11041         (layout_type): ... here.
11042         * tree-vectorizer.h (current_vector_size): Declare.
11043         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
11044         mask vector type is available.
11045         (get_vectype_for_scalar_type): Rename to ...
11046         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
11047         size argument.
11048         (get_vectype_for_scalar_type): New wrapper around
11049         get_vectype_for_scalar_type_and_size using current_vector_size.
11050         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
11051         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
11052         of vect_analyze_loop here.
11053         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
11054         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
11055         to autodetect.
11056         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
11057         V8SF to V8SI conversion builtin.
11058
11059 2010-10-07  Richard Guenther  <rguenther@suse.de>
11060
11061         * target.def (autovectorize_vector_sizes): New target hook.
11062         * targhooks.c (default_autovectorize_vector_sizes): New function.
11063         * targhooks.h (default_autovectorize_vector_sizes): Declare.
11064         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
11065         Document.
11066         * doc/tm.texi: Update.
11067         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
11068         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11069
11070 2010-10-07  Richard Guenther  <rguenther@suse.de>
11071
11072         * target.def (units_per_simd_word): Rename to ...
11073         (preferred_simd_mode): ... this.  Return mode instead of size.
11074         * targhooks.c (default_units_per_simd_word): Rename to ...
11075         (default_preferred_simd_mode): ... this.  Return word_mode.
11076         * targhooks.h (default_preferred_simd_mode): Declare.
11077         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
11078         (arm_preferred_simd_mode): ... this.  Re-implement.
11079         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
11080         (ix86_preferred_simd_mode): ... this.  Re-implement.
11081         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
11082         (sparc_preferred_simd_mode): ... this.  Re-implement.
11083         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
11084         (mips_preferred_simd_mode): ... this.  Re-implement.
11085         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
11086         (rs6000_preferred_simd_mode): ... this.  Re-implement.
11087         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
11088         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
11089         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
11090         * doc/tm.texi: Update.
11091
11092 2010-10-07  Richard Guenther  <rguenther@suse.de>
11093
11094         PR middle-end/45869
11095         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
11096         of pointers.
11097
11098 2010-10-07  Alan Modra  <amodra@gmail.com>
11099
11100         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
11101         rather than sign extension by hand.
11102
11103 2010-10-07  Jan Hubicka  <jh@suse.cz>
11104
11105         PR middle-end/45926
11106         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
11107
11108 2010-10-07  Richard Guenther  <rguenther@suse.de>
11109
11110         PR bootstrap/45914
11111         * configure.ac: Fix typo.
11112         * configure: Regenerated.
11113
11114 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11115
11116         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
11117         define_builtin_std where it's unnecessary.
11118         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
11119
11120 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
11121
11122         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
11123         * doc/tm.texi.in: Regenerate.
11124         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
11125         * targhooks.c (default_class_likely_spilled_p): Don't use the
11126         CLASS_LIKELY_SPILLED_P macro.
11127
11128         * config/arm/arm.md: Update comment.
11129
11130 2010-10-06  Jan Hubicka  <jh@suse.cz>
11131
11132         * ipa.c (cgraph_remove_unreachable_nodes): External references can
11133         always be removed.
11134         (cgraph_externally_visible_p): We can not bring local comdats that
11135         are known to linker; fix handling of internal visibility.
11136         (function_and_variable_visibility): Likewise.
11137
11138 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
11139
11140         PR rtl-optimization/45394
11141         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
11142         (struct rtx_subst_pair): Remove AFTER field.
11143         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
11144         (propagate_for_debug): Remove MOVE parameter and adjust.
11145         (try_combine): In the special case where I2 is a PARALLEL, combine only
11146         destinations of SETs and set I2SRC to the I2 source.
11147         Adjust calls to propagate_for_debug throughout.
11148         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
11149         insns.
11150
11151 2010-10-06  Olivier Hainque  <hainque@adacore.com>
11152
11153         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
11154         switch on insn codes as sequence of ifs.
11155
11156 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
11157
11158         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
11159         be UI_NONE for picochip.
11160         (picochip_option_override): Do not disable exception flags.
11161         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
11162         Declare.
11163
11164 2010-10-06  Richard Guenther  <rguenther@suse.de>
11165
11166         * Makefile.in (regmove.o): Depend on $(TARGET_H).
11167
11168 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
11169
11170         Implemented fast enumeration for Objective-C.
11171         * c-parser.c (objc_could_be_foreach_context): New.
11172         (c_lex_one_token): Recognize RID_IN keyword in a potential
11173         Objective-C foreach context.
11174         (c_parser_declaration_or_fndef): Added parameter.  Accept
11175         Objective-C RID_IN keyword as terminating a declaration; in that
11176         case, return the declaration in the new parameter.
11177         (c_parser_extenral_declaration): Updated calls to
11178         c_parser_declaration_or_fndef.
11179         (c_parser_declaration_or_fndef): Same change.
11180         (c_parser_compound_statement_nostart): Same change.
11181         (c_parser_label): Same change.
11182         (c_parser_objc_methodprotolist): Same change.
11183         (c_parser_omp_for_loop): Same change.
11184         (c_parser_for_statement): Detect and parse Objective-C foreach
11185         statements.
11186         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
11187         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
11188         fast enumeration parsing code to turn off the c99 error but still
11189         perform checks on the loop declarations.
11190         * c-tree.h (check_for_loop_decls): Updated declaration.
11191         * doc/objc.texi: Document fast enumeration.
11192
11193 2010-10-06  Nick Clifton  <nickc@redhat.com>
11194
11195         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
11196         (MDR_REGNUM): Define.
11197         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
11198         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
11199         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
11200         (REGISTER_NAMES): Add MDR.
11201         (DWARF2_DEBUGGING_INFO): Define to 1.
11202         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
11203         (F): New function.  Sets RTX_FRAME_RELATED_P.
11204         (mn10300_gen_multiple_store): Use F.
11205         (expand_prologue): Use F.  Use gen_movsf() to push floating
11206         point registers.
11207         (expand_epilogue): Use gen_movsf() to pop floating point registers.
11208         (mn10300_option_override): Disable combine stack adjust pass.
11209
11210 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
11211
11212         PR target/45901
11213         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
11214         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
11215
11216 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
11217
11218         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
11219         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
11220         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
11221         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
11222         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
11223         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
11224         BUILT_IN_TOUPPER): Mark as leaf.
11225
11226         PR middle-end/45838
11227         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11228         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11229         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11230         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11231         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
11232         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
11233         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
11234
11235 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
11236
11237         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
11238         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11239         (m68hc11_class_likely_spilled_p): New function.
11240
11241 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
11242
11243         * c-parser.c (c_parser_objc_method_definition): Updated comment.
11244
11245 2010-10-05  Jan Hubicka  <jh@suse.cz>
11246
11247         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
11248         Document.
11249         * opts.c (decode_options): Handle lto partitions.
11250         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
11251         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
11252
11253 2010-10-05  Jan Hubicka  <jh@suse.cz>
11254
11255         * cgraphunit.c (assemble_function): Output thunks and aliases before
11256         the function itself.
11257
11258 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
11259
11260         * config/picochip/picochip.c (picochip_option_override): Disable
11261         exception flags for picochip.
11262
11263 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
11264
11265         * opts-common.c (handle_option, handle_generated_option,
11266         read_cmdline_option, set_option): Add diagnostic_context
11267         parameter.  Update calls among these functions.
11268         (set_option): Don't use global_dc.
11269         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
11270         (decode_options): Pass global_dc to enable_warning_as_error.
11271         (common_handle_option): Pass global_dc to enable_warning_as_error.
11272         (enable_warning_as_error): Add diagnostic_context parameter.
11273         Document parameters.  Don't use global_dc.  Pass
11274         diagnostic_context parameter to handle_generated_option.
11275         * opts.h (set_option, handle_option, handle_generated_option,
11276         read_cmdline_option, enable_warning_as_error): Add
11277         diagnostic_context parameter.
11278         * Makefile.in (lto-opts.o): Update dependencies.
11279         * coretypes.h (struct diagnostic_context, diagnostic_context):
11280         Declare here.
11281         * diagnostic.h (diagnostic_context): Don't declare typedef here.
11282         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
11283         * langhooks-def.h (struct diagnostic_context): Don't declare here.
11284         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
11285         using diagnostic_context typedef.
11286         * langhooks.c (lhd_initialize_diagnostics): Declare using
11287         diagnostic_context typedef.
11288         * langhooks.h (struct diagnostic_context): Don't declare here.
11289         (initialize_diagnostics, print_error_function): Declare using
11290         diagnostic_context typedef.
11291         * lto-opts.c: Include diagnostic.h.
11292         (lto_reissue_options): Pass global_dc to set_option.  Pass
11293         DK_UNSPECIFIED not 0.
11294         * plugin.c (plugins_internal_error_function): Declare using
11295         diagnostic_context typedef.
11296         * plugin.h (struct diagnostic_context): Don't declare here.
11297         (plugins_internal_error_function): Declare using
11298         diagnostic_context typedef.
11299
11300 2010-10-05  Olivier Hainque  <hainque@adacore.com>
11301             Nicolas Roche  <roche@adacore.com>
11302
11303         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
11304         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
11305
11306 2010-10-05  Ira Rosen  <irar@il.ibm.com>
11307
11308         PR tree-optimization/45752
11309         * tree-vect-slp.c (vect_get_mask_element): Remove static
11310         variables, make them function arguments.
11311         (vect_transform_slp_perm_load): Pass new arguments to
11312         vect_get_mask_element.
11313
11314 2010-10-05  Richard Guenther  <rguenther@suse.de>
11315
11316         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
11317         (gimple_mod_pow2): Likewise.
11318         (gimple_mod_subtract): Likewise.
11319         (gimple_ic): Likewise.
11320         (gimple_stringop_fixed_value): Likewise.
11321         * tree-profile.c (tree_init_edge_profiler): Mark profile
11322         functions nothrow and leaf.
11323         (add_abnormal_goto_call_edges): Remove.
11324         (tree_gen_edge_profiler): Work on SSA form.
11325         (tree_gen_ic_profiler): Likewise.  Simplify.
11326         (do_tree_profiling): Update SSA form.
11327         (pass_tree_profile): Remove.
11328         (do_tree_profiling): Likewise.
11329         (gate_tree_profile_ipa): New function.
11330         (pass_ipa_tree_profile): New.
11331         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
11332         state of instrumented functions.
11333         * passes.c (init_optimization_passes): Remove early non-SSA
11334         inlining.  Move profiling after early optimizations.
11335         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
11336         (pass_ipa_early_inline): Likewise.
11337         * tree-pass.h (pass_ipa_early_inline): Remove.
11338         (pass_tree_profile): Likewise.
11339         (pass_ipa_tree_profile): Declare.
11340
11341 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11342             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
11343
11344         * config/s390/s390.c (z196_cost): New.
11345         (s390_handle_arch_option): Add -march=z196.
11346         (s390_option_override): Use the new cost function and use the z10
11347         defaults also for z196.
11348         (legitimate_reload_constant_p): Adjust comment.
11349         (legitimate_reload_fp_constant_p): New function.
11350         (s390_preferred_reload_class): Distingiush between FP and Int constants.
11351         (preferred_la_operand_p): Avoid la with index on z196.
11352         (s390_adjust_priority): Trigger also for z196.
11353         (s390_issue_rate): Issue rate for z196 is 3.
11354         (s390_z10_fix_long_loop_prediction): Rename to ...
11355         (s390_fix_long_loop_prediction): ... this.
11356         (s390_reorg): Apply the z10 adjustments also for z196.
11357         (s390_loop_unroll_adjust): Do this also for z196.
11358         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
11359         (enum processor_flags): Add PF_Z196.
11360         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
11361         (TARGET_CPU_Z196, TARGET_Z196): New macros.
11362         * config.gcc: Enable z196 for --with-arch.
11363         * config/s390/2817.md: New file.
11364         * config/s390/2084.md: New type for multiply and add.
11365         * config/s390/2097.md: Likewise.
11366         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
11367         (UNSPECV_ATOMIC_OP): New constants.
11368         (fmadddf, fmaddsf): New values for type attribute.
11369         (z196prop): New insn attribute.
11370         (cpu, cpu_facility): Add z196.
11371         (ATOMIC_Z196): New code iterator.
11372         (noxa): New code attribute.
11373         (gk): New mode attribute.
11374         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
11375         Support load zero for fp constants.
11376         (fixuns_truncdddi2, fixuns_trunctddi2)
11377         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
11378         for z196.
11379         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
11380         (popcounthi2, popcountqi2): New expander.
11381         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
11382         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
11383         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
11384         insn definition.
11385         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
11386         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
11387         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
11388         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
11389         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
11390         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
11391         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
11392         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
11393         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
11394         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
11395         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
11396         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
11397         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
11398         Support new z196 instructions.
11399
11400 2010-10-05  Richard Guenther  <rguenther@suse.de>
11401
11402         PR middle-end/45877
11403         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
11404         case where gimplification optimizes away the stmt.
11405
11406 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
11407
11408         PR debug/45849
11409         * var-tracking.c (strip_pointer_flags): New function.
11410         (emit_note_insn_var_location): If rtx_equal_p check failed,
11411         retry on locations simplified with simplify_replace_fn_rtx
11412         and strip_pointer_flags as its callback.
11413
11414 2010-10-04  Jan Hubicka  <jh@suse.cz>
11415
11416         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
11417         (can_refer_decl_in_current_unit_p): ... this one; reverse return
11418         value; handle comdats too.
11419         (canonicalize_constructor_val): Use it; handle function_decls
11420         correctly.
11421         (gimple_fold_obj_type_ref_known_binfo): Likewise.
11422         * gimple.c (get_base_address): Accept all kinds of decls.
11423
11424 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
11425
11426         * flags.h (g_switch_value, g_switch_set): Remove.
11427         * opts.c (g_switch_value, g_switch_set): Remove.
11428         * config/g.opt (G): Add Var(g_switch_value).
11429         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
11430         (alpha_option_override): Check global_options_set.x_g_switch_value
11431         instead of g_switch_set.
11432         (alpha_in_small_data_p): Remove cast in comparison with
11433         g_switch_value.
11434         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
11435         g_switch_value to unsigned HOST_WIDE_INT.
11436         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
11437         with g_switch_value.
11438         (frv_handle_option): Don't handle -G here.
11439         (frv_option_override): Check global_options_set.x_g_switch_value
11440         instead of g_switch_set.  Don't modify g_switch_set.
11441         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
11442         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
11443         g_switch_value to unsigned HOST_WIDE_INT.
11444         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
11445         (ia64_option_override): Check global_options_set.x_g_switch_value
11446         instead of g_switch_set.
11447         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
11448         Remove.
11449         (lm32_in_small_data_p): Remove cast in comparison with
11450         g_switch_value.
11451         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
11452         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
11453         HOST_WIDE_INT.
11454         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
11455         (m32r_init): Check global_options_set.x_g_switch_value instead of
11456         g_switch_set.
11457         (m32r_in_small_data_p): Remove cast in comparison with
11458         g_switch_value.
11459         (m32r_file_start): Format g_switch_value with %d.
11460         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
11461         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
11462         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
11463         handle -G here.
11464         (microblaze_option_override): Check
11465         global_options_set.x_g_switch_value instead of g_switch_set.
11466         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
11467         (mips_option_override): Check global_options_set.x_g_switch_value
11468         instead of g_switch_set.
11469         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
11470         (rs6000_file_start): Format g_switch_value with %d.
11471         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
11472         comparisons with g_switch_value.
11473         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
11474         global_options_set.x_g_switch_value instead of g_switch_set.
11475         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11476         global_options_set.x_g_switch_value instead of g_switch_set.
11477         * config/score/score.c (score_handle_option): Don't handle -G here.
11478         * config/score/score3.c (score3_option_override): Check
11479         global_options_set.x_g_switch_value instead of g_switch_set.
11480         * config/score/score7.c (score7_option_override): Check
11481         global_options_set.x_g_switch_value instead of g_switch_set.
11482
11483 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
11484
11485         * common.opt (fira-coalesce): Remove.
11486
11487         * doc/invoke.texi (flag_ira_coalesce): Remove.
11488
11489         * ira-color.c (allocno_coalesced_p): Move before
11490         copy_freq_compare_func.
11491         processed_coalesced_allocno_bitmap): Ditto.
11492         (update_conflict_hard_regno_costs): Don't use
11493         ALLOCNO_FIRST_COALESCED_ALLOCNO.
11494         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
11495         (assign_hard_reg): Assume no coalesced allocnos.
11496         (get_coalesced_allocnos_attributes): Remove.
11497         (bucket_allocno_compare_func): Assume no coalesced allocnos.
11498         (push_allocno_to_stack): Ditto.
11499         (remove_allocno_from_bucket_and_push): Use
11500         ira_print_expanded_allocno instead of print_coalesced_allocno.
11501         (push_allocnos_to_stack): Assume uncoalesced allocnos.
11502         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
11503         all_conflicting_hard_regs.
11504         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
11505         (setup_allocno_left_conflicts_size): Ditto.
11506         (put_allocno_into_bucket): Ditto.
11507         (copy_freq_compare_func): Remove.
11508         (copy_freq_compare_func, merge_allocnos): Move before
11509         coalesced_pseudo_reg_freq_compare.
11510         coalesced_allocno_conflict_p): Ditto.
11511         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
11512         parameter.  Assume it true.
11513         (color_allocnos): Assume uncoalesced allocnos.  Use
11514         ira_print_expanded_allocno instead of print_coalesced_allocno.
11515         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
11516         parameter.
11517
11518         * ira.c: Remove comment about coalescing.
11519
11520 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
11521
11522         * config/mips/mips.h (target_flags_explicit): Declare for
11523         GENERATOR_FILE.
11524
11525 2010-10-04  Andi Kleen  <ak@linux.intel.com>
11526
11527         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
11528         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
11529
11530 2010-10-04  Matthias Klose  <doko@ubuntu.com>
11531
11532         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
11533         multilib osdirname if it exists.
11534         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
11535
11536 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
11537
11538         PR middle-end/45876
11539         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
11540         arg0's type or its unsigned counterpart as utype.  Convert
11541         arg1 to utype unconditionally.
11542
11543 2010-10-04  Julian Brown  <julian@codesourcery.com>
11544
11545         * expr.c (expand_assignment): Add assertion to prevent emitting
11546         null rtx for movmisalign pattern.
11547         (expand_expr_real_1): Likewise.
11548         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
11549         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
11550         (arm_vector_alignment_reachable): New.
11551         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
11552         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
11553         (arm_print_operand): Include alignment qualifier in %A.
11554         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
11555         (movmisalign<mode>): New expander.
11556         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
11557         insn patterns.
11558
11559 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
11560
11561         * optc-gen.awk: Define global_options_set.  Don't define
11562         target_flags_explicit.
11563         * opth-gen.awk: Declare global_options_set.  Define
11564         target_flags_explicit as macro.
11565         * opts-common.c (handle_option): Take opts_set and generated_p
11566         parameters.
11567         (handle_generated_option, read_cmdline_option, set_option): Take
11568         opts_set parameter.
11569         (set_option): Use opts_set instead of hardcoding target_flags and
11570         target_flags_explicit.
11571         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
11572         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
11573         flag_value_profile_transformations_set, flag_peel_loops_set,
11574         flag_branch_probabilities_set, flag_inline_functions_set,
11575         flag_ipa_cp_set, flag_ipa_cp_clone_set,
11576         flag_predictive_commoning_set, flag_unswitch_loops_set,
11577         flag_gcse_after_reload_set): Remove.
11578         (common_handle_option, lang_handle_option, target_handle_option):
11579         Take opts_set parameter.  Assert that it is &global_options_set.
11580         (common_handle_option): Don't set _set variables.  Check opts_set
11581         instead of such variables.
11582         (enable_warning_as_error): Pass &global_options_set to
11583         handle_generated_option.
11584         * opts.h (cl_option_handler_func.handler, set_option,
11585         handle_option, handle_generated_option, read_cmdline_option): Add
11586         opts_set parameters.
11587         (handle_option): Add generated_p parameter.
11588         * config/i386/i386.c (ix86_function_specific_save,
11589         ix86_function_specific_restore): Updat for renaming of
11590         target_flags_explicit field.
11591         * config/i386/i386.opt (target_flags_explicit): Rename to
11592         ix86_target_flags_explicit.
11593         * config/ia64/ia64.c (ia64_override_options_after_change): Check
11594         global_options_set.x_flag_selective_scheduling and
11595         global_options_set.x_flag_selective_scheduling2, not
11596         sel_sched_switch_set.
11597         * flags.h (sel_sched_switch_set,
11598         flag_speculative_prefetching_set): Remove.
11599         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
11600         that it is &global_options_set.
11601         (process_command): Pass &global_options_set to read_cmdline_option.
11602         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
11603         set_option.
11604         * toplev.c (target_flags_explicit): Remove.
11605
11606 2010-10-04  Jan Hubicka  <jh@suse.cz>
11607
11608         PR middle-end/45871
11609         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
11610         use get_ref_base_and_offset to handle references.
11611         (fold_const_aggregate_ref): Update.
11612
11613 2010-10-04  Martin Jambor  <mjambor@suse.cz>
11614
11615         PR tree-optimization/45572
11616         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
11617         ipa_check_create_node_params.
11618         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
11619
11620 2010-10-04  Yao Qi  <yao@codesourcery.com>
11621
11622         * doc/passes.texi: Clean up.
11623
11624 2010-10-03  Ian Lance Taylor  <iant@google.com>
11625
11626         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
11627         referring to a field using a typedef name.
11628         (find_anonymous_field_with_type): New static function.
11629         (convert_to_anonymous_field): New static function.
11630         (convert_for_assignment): If -fplan9-extensions, permit converting
11631         pointer to struct to pointer to anonymous field.
11632         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
11633         (is_duplicate_field): New static function.
11634         (detect_field_duplicates_hash): If -fplan9-extensions, check for
11635         typedef names duplicating field names.
11636         (detect_field_duplicates): Likewise.
11637         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
11638         (C Dialect Options): Document -fplan9-extensions.
11639         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
11640
11641 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
11642
11643         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
11644         revision 164914.
11645         (vect_create_data_ref_ptr): Likewise.
11646         * tree-vect-stmts.c (vectorizable_store): Likewise.
11647         (perm_mask_for_reverse): Likewise.
11648         (reverse_vec_elements): Likewise.
11649         (vectorizable_load): Likewise.
11650
11651 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11652
11653         * cppbuiltin.c: New file.
11654         * cppbuiltin.h: New file.
11655         * Makefile.in: Take into account cppbuiltin.{h,c}.
11656
11657 2010-10-03  Andi Kleen  <ak@linux.intel.com>
11658
11659         * lto-cgraph.c (input_cgraph): Check for missing sections.
11660
11661 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
11662
11663         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
11664         to nonimmediate_operand.  Force operand 2 to register when allowed.
11665         (*<shiftrt_insn><mode>3_mask): Ditto.
11666         (*<rotate_insn><mode>3_mask): Ditto.
11667
11668 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
11669
11670         PR tree-optimization/45720
11671         PR tree-optimization/45764
11672         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11673         Don't accept backwards consecutive accesses.
11674         (vect_create_data_ref_ptr): Disallow negative steps.
11675
11676         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
11677         (perm_mask_for_reverse): Removed.
11678         (reverse_vec_elements): Likewise.
11679         (vectorizable_load): Don't handle negative steps.
11680
11681 2010-10-02  Jan Hubicka  <jh@suse.cz>
11682
11683         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
11684         call destination is known.
11685
11686 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11687
11688         PR target/45820
11689         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
11690         earlier.
11691
11692 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11693
11694         * doc/install.texi (Configuration): Document build_configargs,
11695         host_configargs, target_configargs.
11696
11697 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
11698
11699         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
11700         (*<shiftrt_insn><mode>3_mask): Ditto.
11701         (*<rotate_insn><mode>3_mask): Ditto.
11702
11703 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
11704
11705         PR tree-optimization/44716
11706         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
11707         (HOT_TEXT_SECTION_NAME): Define.
11708
11709 2010-10-01  Nick Clifton  <nickc@redhat.com>
11710
11711         * common.opt: Add -fcombine-stack-adjustments.
11712         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
11713         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
11714         flag_combine_stack_adjustments.
11715         * doc/invoke.texi: Document the new option.
11716
11717 2010-10-01  Richard Guenther  <rguenther@suse.de>
11718
11719         PR tree-optimization/45854
11720         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
11721
11722 2010-10-01  Anthony Green  <green@moxielogic.com>
11723
11724         * config.gcc: Fix moxie-*-rtems* configuration.
11725
11726 2010-10-01  Richard Guenther  <rguenther@suse.de>
11727
11728         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
11729         (gen_decl_die): Likewise.
11730
11731 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11732
11733         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
11734         to the function code for SPU MD builtins.
11735         (spu_expand_builtin): Update.
11736         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
11737
11738 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11739
11740         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
11741         sjlj_except_unwind_info.
11742
11743 2010-10-01  Tristan Gingold  <gingold@adacore.com>
11744
11745         * configure.ac: Define the nop insn for avr*-*-*
11746         * configure: Regenerate.
11747
11748 2010-10-01  Alan Modra  <amodra@gmail.com>
11749
11750         PR target/45807
11751         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
11752         extend toc_restore_insn.
11753
11754 2010-09-30  Richard Guenther  <rguenther@suse.de>
11755
11756         PR tree-optimization/43959
11757         * function.c (gimplify_parameters): Use create_tmp_reg instead of
11758         create_tmp_var.
11759
11760 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
11761
11762         * config/sh/sh.c (sh_expand_prologue): Set
11763         current_function_static_stack_size.
11764
11765 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11766
11767         * configure.ac: Check for Solaris 8 ld with .hidden support.
11768         * configure: Regenerate.
11769
11770 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11771
11772         PR middle-end/45758
11773         * graphite.c (graphite_initialize): Call scev_reset.
11774
11775 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11776
11777         * sese.h (scev_analyzable_p): Return false for real or floating
11778         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
11779
11780 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11781
11782         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
11783         and ps.
11784         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
11785         domain.
11786         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
11787         Do not allocate ub_expr, it is passed in initialized.
11788
11789 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11790
11791         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
11792         (build_cloog_prog): Dump CLooG input file when
11793         flag_graphite_dump_cloog is set.  This is disabled on trunk.
11794         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
11795
11796 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11797
11798         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
11799         verify_dominators for CDI_POST_DOMINATORS.
11800         * sese.h: Remove comment about CDI_POST_DOMINATORS.
11801         (recompute_all_dominators): Remove call to free_dominance_info
11802         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
11803         for CDI_POST_DOMINATORS.
11804
11805 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11806
11807         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
11808         over pbb_dim_iter_domain.
11809
11810 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11811
11812         * graphite-flattening.c: Fix comments.
11813
11814 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11815
11816         * Makefile.in (OBJS-common): Add graphite-flattening.o.
11817         (graphite-flattening.o): New rule.
11818         * common.opt (floop-flatten): New flag.
11819         * doc/invoke.texi (-floop-flatten): Documented.
11820         * graphite-flattening.c: New.
11821         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
11822         * graphite-poly.h (flatten_all_loops): Declared.
11823         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
11824         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
11825         is set, also set flag_graphite.
11826
11827 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11828
11829         * graphite-poly.c (cloog_checksum): New.
11830         * graphite-poly.h (cloog_checksum): Declared.
11831
11832 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11833
11834         * graphite-poly.c (pbb_number_of_iterations): Removed.
11835         (pbb_number_of_iterations_at_time): Correctly compute the number
11836         of iterations in the transformed loop.
11837         * graphite-poly.h (pbb_number_of_iterations): Removed.
11838
11839 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11840
11841         * graphite-poly.h (lst_update_scattering_seq): Removed.
11842         (lst_update_scattering): Correctly handle outermost loop dewey
11843         renumbering.
11844
11845 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11846
11847         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
11848         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
11849         * graphite-poly.h (lst_niter_for_loop): New.
11850
11851 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11852
11853         * graphite-poly.c (apply_poly_transforms): Do not abort when the
11854         transform read from disk is not legal.  Call fatal_error instead.
11855
11856 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11857
11858         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
11859         (print_scop_header): Removed.  Inlined in the only call place...
11860         (print_scop): ... here.
11861
11862 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11863
11864         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
11865
11866 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11867
11868         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
11869
11870 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11871
11872         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
11873         (dot_deps_stmt): Same.
11874         * graphite-poly.c (dot_lst): Same.
11875
11876 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11877
11878         * graphite-blocking.c (scop_do_strip_mine): Do not call
11879         graphite_legal_transform.
11880         (scop_do_block): Same.
11881
11882 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
11883
11884         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
11885         description.
11886
11887 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11888
11889         * tree-scalar-evolution.c (instantiate_array_ref): New.
11890         (instantiate_scev_r): Also handle ARRAY_REFs.
11891
11892 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11893
11894         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
11895         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
11896         RESULT_DECL, and FIELD_DECL.  Return false for an
11897         SSA_NAME_IS_DEFAULT_DEF.
11898         (compute_scalar_evolution_in_loop): Do not further analyze the
11899         scalar evolution when no_evolution_in_loop_p returns true.
11900
11901 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11902
11903         * tree-chrec.h (evolution_function_is_affine_p): Do not check
11904         whether CHREC_LEFT is invariant.  A function is affine when
11905         CHREC_RIGHT is invariant.
11906
11907 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11908
11909         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
11910         is_gimple_reg.
11911         (rewrite_degenerate_phi): Same.
11912         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
11913
11914 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
11915
11916         * graphite-scop-detection.c (graphite_can_represent_scev,
11917         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
11918         graphite_can_represent_loop): Remove outermost_loop.
11919
11920 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11921
11922         PR middle-end/45229
11923         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
11924         handle GIMPLE_CALLs with no LHS.
11925
11926 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
11927
11928         * graphite-poly.c (init_graphite_out_file): New.
11929         (init_graphite_in_file): New.
11930         (apply_poly_transforms): Updated to enable reading and writing of
11931         multiple scop files.
11932
11933 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
11934
11935         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
11936         redundant checks.
11937
11938 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11939
11940         * graphite-clast-to-gimple.c (precision_for_value): Adjust
11941         computation of precision by 1.
11942
11943 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
11944
11945         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
11946         (openscop_read_polyhedron_matrix): New.
11947         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
11948         (openscop_read_N_int): Same.
11949         * graphite-poly.c (openscop_read_N_int): New.
11950         (openscop_read_one_int): New.
11951         (openscop_read_N_string): New.
11952         (openscop_read_one_string): New.
11953         (openscop_read_powerset_matrix): New.
11954         (graphite_read_transforms): Remove.
11955         (graphite_read_scatt): New.
11956         (graphite_read_scop_file): New.
11957         (apply_poly_transforms): Updated to call graphite_read_scop_file.
11958
11959 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11960
11961         * graphite-poly.c: Change include order.
11962
11963 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11964
11965         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
11966         (cloog_matrix_nrows): New.
11967
11968 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
11969
11970         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
11971         from matrix lines.
11972         * graphite-poly.c (openscop_print_scattering_function_1): Same.
11973         (print_scattering_function_1): Same.
11974         (openscop_print_pbb_domain): Same.
11975         (openscop_print_scop_context): Same.
11976         (print_scop_context): Same.
11977
11978 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
11979
11980         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
11981         (openscop_print_pdr_polyhedron): Print pph.
11982
11983 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11984
11985         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
11986         priority signed types.
11987
11988 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
11989
11990         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
11991         the call to lang_hooks.types.type_for_size.  Call
11992         build_nonstandard_integer_type.
11993
11994 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
11995
11996         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
11997         (openscop_print_polyhedron_matrix): New.
11998         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
11999         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
12000         (openscop_print_pdr_powerset): New.
12001         (openscop_print_powerset_matrix): New.
12002         (openscop_print_scattering_function_1): New.
12003         (print_scattering_function): Add support for scattering names and
12004         OpenScop format.
12005         (graphite_write_transforms): Remove.
12006         (print_pdr_access_layout): Updated to support OpenScop format.
12007         (print_pdr): Same.
12008         (openscop_print_pbb_domain): New.
12009         (print_pbb_body): Added a parameter to allow indicating that pbb_body
12010         is not provided.
12011         (print_pbb): Updated to call the new print_pbb_body.
12012         (openscop_print_scop_context): New.
12013         (print_scop_header): New.
12014         (print_scop): Updated to call print_scop_header.
12015         * graphite-poly.h: Document OpenScop format.
12016
12017 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
12018
12019         * config/cris/m32c.c (cris_memory_move_cost): New.
12020         (cris_register_move_cost): Make static. Change arguments type from
12021         enum reg_class to reg_class_t.
12022         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12023         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12024         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
12025
12026 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
12027
12028         PR target/45843
12029         * config/i386/i386.c (ix86_gimplify_va_arg): Use
12030         INTVAL (XEXP (slot, 1)) as prev_size.
12031
12032 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
12033
12034         PR target/45837
12035         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
12036         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
12037         defined.
12038         * config/rs6000/option-defaults.h (toplevel): Change #if
12039         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
12040         global option changes.
12041
12042 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
12043
12044         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
12045
12046         PR tree-optimization/31261
12047         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
12048         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
12049
12050 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12051
12052         PR bootstrap/45796
12053         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
12054         special-casing for generators and turn into ...
12055         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
12056         rule, for better error messages in case of toplevel dependency errors.
12057         (genprog): Add hooks, rename to ...
12058         (genprogerr): ... this, and let genprog also contain check,
12059         checksum, condmd.
12060         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
12061         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
12062         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
12063
12064 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
12065             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12066
12067         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
12068         for GMP, MPFR and MPC.
12069
12070 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12071
12072         * config/sparc/sparc.opt (mimpure-text): Move ...
12073         * config/sol2.opt: ... here.  Correct description.
12074         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
12075         * doc/invoke.texi (Option Summary, SPARC Options): Move
12076         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
12077         (Option Summary, Solaris 2 Options): ... here.
12078         (Submodel Options, Solaris 2 Options): New menu entry.
12079         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
12080         (Solaris 2 Options): ... here.
12081
12082 2010-09-30  Michael Eager  <eager@eagercon.com>
12083
12084         * extend.texi (interrupt_handler): Add MicroBlaze to list.
12085         (save_volatiles): Describe option for MicroBlaze.
12086         * invoke.texi: Add MicroBlaze Options.
12087         * contrib.texi: Add acknowledgment.
12088         * md.texi: Add MicroBlaze d and z constraints.
12089         * install.texi: Add microblaze-*-elf.
12090         * configure.ac: Add microblaze-*-* to target list.
12091         * configure: Regenerate.
12092         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
12093         * config/microblaze/microblaze-protos.h: New.
12094         * config/microblaze/crti.s: New.
12095         * config/microblaze/predicates.md: New.
12096         * config/microblaze/linux.h: New.
12097         * config/microblaze/microblaze.md: New.
12098         * config/microblaze/constraints.md: New.
12099         * config/microblaze/crtn.s: New.
12100         * config/microblaze/microblaze.opt: New.
12101         * config/microblaze/microblaze-c.c: New.
12102         * config/microblaze/t-microblaze: New.
12103         * config/microblaze/microblaze.c: New.
12104         * config/microblaze/microblaze.h: New.
12105
12106 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
12107
12108         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
12109         parse @optional/@required and set the flags as appropriate.
12110
12111 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
12112
12113         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
12114
12115 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
12116
12117         * opt-functions.awk (static_var): Update comment.
12118         (var_ref): Return offsetof expression or -1, not variable address.
12119         * optc-gen.awk: Generate structure field initializers instead of
12120         static variables.  Expect -1 for missing variables instead of null
12121         pointer.  Add gcc_options parameters to generated functions.
12122         * opth-gen.awk: Generate structure fields for static variables.
12123         Add gcc_options parameters to generated functions.
12124         * common.opt (optimize, optimize_size): Add variables.
12125         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
12126         &global_options to cl_target_option_restore.
12127         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
12128         &global_options to cl_optimization_restore, cl_target_option_save
12129         and cl_target_option_restore.
12130         (ix86_set_current_function): Pass &global_options to
12131         cl_target_option_restore.
12132         * config/pdp11/pdp11.h (optimize): Remove.
12133         * config/rs6000/rs6000.h (optimize): Remove.
12134         * config/sh/sh.h (optimize): Remove.
12135         * config/xtensa/xtensa.h (optimize): Remove.
12136         * coretypes.h (struct gcc_options): Declare.
12137         * diagnostic.c (diagnostic_initialize): Initialize
12138         context->option_state.
12139         (diagnostic_report_diagnostic): Pass option_state to
12140         option_enabled hook.
12141         * diagnostic.h (diagnostic_context.option_enabled): Add void *
12142         parameter.
12143         (diagnostic_context.option_state): New field.
12144         * final.c (final_start_function, final, final_scan_insn): Rename
12145         optimize parameter to optimize_p.
12146         * flags.h (optimize, optimize_size): Remove.
12147         * function.c (invoke_set_current_function_hook): Pass
12148         &global_options to cl_optimization_restore.
12149         * gcc.c (driver_handle_option): Take gcc_options parameter.
12150         Assert that it is &global_options.
12151         (process_command): Pass &global_options to read_cmdline_option.
12152         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
12153         option_enabled.
12154         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
12155         &global_options to set_option.
12156         * opts-common.c (handle_option, handle_generated_option,
12157         read_cmdline_option, set_option): Take explicit gcc_options
12158         parameters.  Use option_flag_var.
12159         (option_flag_var): New.
12160         * opts.c (common_handle_option, lang_handle_option,
12161         target_handle_option): Take gcc_options parameter.  Assert that it
12162         is &global_options.
12163         (read_cmdline_options): Pass &global_options to read_cmdline_option.
12164         (print_filtered_help): Use option_flag_var.  Pass &global_options
12165         to option_enabled.
12166         (common_handle_option): Use option_flag_var.
12167         (option_enabled): Take opts parameter.  Use option_flag_var.
12168         (get_option_state): Take gcc_options parameter.  Use
12169         option_flag_var.  Pass gcc_options parameter to option_enabled.
12170         (enable_warning_as_error): Pass &global_options to
12171         handle_generated_option.
12172         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
12173         (cl_option_handler_func.handler): Take gcc_options parameter.
12174         (option_enabled, get_option_state, set_option, handle_option,
12175         handle_generated_option, read_cmdline_option): Take gcc_options
12176         parameters.
12177         * toplev.c (optimize, optimize_size): Remove.
12178         (print_switch_values): Pass &global_options to option_enabled.
12179         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
12180         to get_option_state.
12181         (general_init): Initialize global_dc->option_state.
12182         * tree.c (build_optimization_node): Pass &global_options to
12183         cl_optimization_save.
12184         (build_target_option_node): Pass &global_options to
12185         cl_target_option_save.
12186
12187 2010-09-30  Martin Jambor  <mjambor@suse.cz>
12188
12189         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
12190         zero sized bit-fields.
12191
12192 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
12193
12194         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
12195         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
12196         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
12197         (c_parser_objc_class_declaration): Same change.
12198         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
12199         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
12200         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
12201         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
12202         and RID_AT_PUBLIC instead of RID_PUBLIC.
12203         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
12204         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
12205
12206 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
12207
12208         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
12209         Add links to current providers of packages for Solaris and IRIX.
12210
12211 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12212
12213         Merge from 'apple/trunk' branch on FSF servers.
12214         * c-parser.c: Applied change originally in c-parse.in.
12215
12216         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
12217
12218         Radar 4281748
12219         * c-decl.c (start_decl): Check for redeclaration of class name.
12220         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
12221
12222 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
12223
12224         * config/ia64/ia64.c (ia64_builtin_decl): New.
12225         (TARGET_BUILTIN_DECL): Define.
12226         (ia64_builtins): New.
12227         (ia64_init_builtins): Save decls in ia64_builtins.
12228
12229 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
12230
12231         PR target/40457
12232         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
12233         (move2add_use_add3_insn): Likewise.
12234         (reload_cse_move2add): Likewise.
12235         * rtlanal.c (get_full_rtx_cost): New function.
12236         * rtl.h (struct full_rtx_costs): New.
12237         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
12238         costs_add_n_insns): New inline functions.
12239         (get_full_rtx_cost): Declare.
12240
12241         PR c/45054
12242         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
12243         invariants.  Check for reg_equiv_invariant.
12244         (reload): Assert that spilled_pseudos is empty when returning.
12245
12246 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
12247
12248         * config/i386/mingw32.h (TARGET_64BIT): replaced by
12249         TARGET_64BIT_DEFAULT in #if check.
12250
12251 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
12252
12253         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
12254
12255 2010-09-29  Mike Stump  <mikestump@comcast.net>
12256
12257         * config/darwin.h (flag_mkernel): Remove.
12258         (flag_apple_kext): Likewise.
12259
12260 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12261             Jack Howarth  <howarth@bromo.med.uc.edu>
12262
12263         * config/darwin.opt (undefined): Add.
12264
12265 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
12266
12267         PR testsuite/45664
12268         * configure.ac: Add --enable-indirect-function option.
12269         * config.gcc: Add default_gnu_indirect_function.
12270         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
12271         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
12272         * varasm.c (do_assemble_alias): Adjust for macro name change.
12273         * configure: Rebuilt.
12274         * doc/install.texi: Document --enable-indirect-function.
12275
12276 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12277
12278         * doc/options.texi (Variable, Var, Init): Update documentation
12279         without reference to VarExists.
12280         (VarExists): Remove.
12281         * common.opt, config/i386/i386.opt, config/linux.opt,
12282         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
12283         Don't use VarExists.
12284
12285 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
12286
12287         * optc-gen.awk: Generate global_options initializer instead of
12288         individual variables.  Add x_ prefix to names of structure members.
12289         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
12290         names of structure members.
12291         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
12292         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
12293         * doc/tm.texi: Regenerate.
12294         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
12295         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
12296         * c-parser.c (disable_extension_diagnostics,
12297         restore_extension_diagnostics): Update names of cpp_options members.
12298         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
12299         * common.opt (fcompare-debug-second): Don't use Var.
12300         * config/alpha/alpha.h (target_flags): Remove.
12301         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
12302         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
12303         * config/bfin/bfin.h (target_flags): Remove.
12304         * config/cris/cris.h (target_flags): Remove.
12305         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
12306         cl_target_option members.
12307         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
12308         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
12309         ix86_can_inline_p): Update names of cl_target_option members.
12310         * config/i386/i386.h (ix86_isa_flags): Remove.
12311         * config/lm32/lm32.h (target_flags): Remove.
12312         * config/mcore/mcore.h (mcore_stack_increment): Remove.
12313         * config/mcore/mcore.md (addsi3): Remove extern declaration of
12314         flag_omit_frame_pointer.
12315         * config/mep/mep.h (target_flags): Remove.
12316         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
12317         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
12318         * config/mmix/mmix.h (target_flags): Remove.
12319         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
12320         flag_expensive_optimizations): Remove.
12321         * config/s390/s390.h (flag_pic): Remove.
12322         * config/score/score-conv.h (target_flags): Remove.
12323         * config/sh/sh.h (sh_fixed_range_str): Remove.
12324         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
12325         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
12326         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12327         * diagnostic.c (diagnostic_initialize): Update names of
12328         diagnostic_context members.
12329         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
12330         warn_system_headers.
12331         (diagnostic_report_warnings_p): Update for new names.
12332         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
12333         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
12334         HARD_FRAME_POINTER_IS_ARG_POINTER.
12335         * flags.h (flag_compare_debug): Declare.
12336         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
12337         * opts.c (flag_compare_debug): Define.
12338         (common_handle_option): Update names of diagnostic_context
12339         members.  Handle -fcompare-debug-second.
12340         (fast_math_flags_struct_set_p): Update names of cl_optimization
12341         members.
12342         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12343         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12344         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12345         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12346         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
12347         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
12348         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
12349         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
12350         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
12351
12352 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
12353
12354         * config/picochip/picochip.c (picochip_output_internal_label):
12355         This function can now be called for debug CFI labels, which can come
12356         in the middle of a vliw instruction.  Postpone until end of vliw.
12357
12358 2010-09-29  Richard Guenther  <rguenther@suse.de>
12359
12360         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
12361         (DECL_FILE_SCOPE_P): Use it.
12362         (TYPE_FILE_SCOPE_P): New macro.
12363
12364 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12365
12366         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
12367         a CPP_NAME which is a reserved word, clearly separate cases for
12368         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
12369
12370 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12371
12372         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
12373         token->value with the canonical spelling.  Do exactly like C and
12374         C++ and leave it as it is.
12375
12376 2010-09-28  Richard Henderson  <rth@redhat.com>
12377
12378         * config/alpha/alpha.c (alpha_builtins): New.
12379         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
12380         (alpha_builtin_function): New.
12381         (alpha_add_builtins, alpha_init_builtins): Use it.
12382
12383 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
12384
12385         * doc/standards.texi (Standards): Expanded the section on
12386         Objective-C and Objective-C++.
12387
12388 2010-09-28  DJ Delorie  <dj@redhat.com>
12389
12390         PR target/45800
12391         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
12392         volatile MEMs.
12393
12394 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12395
12396         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
12397         attributes on methods.
12398          (c_parser_objc_method_definition): Handle attributes.
12399         (c_parser_objc_methodproto): Likewise.
12400         (c_parser_objc_maybe_method_attributes): New.
12401         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
12402         missing definition, similar to that in ObjC++.
12403
12404 2010-09-28  Richard Henderson  <rth@redhat.com>
12405
12406         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
12407         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
12408         (CONFIG_SJLJ_EXCEPTIONS): Remove.
12409         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
12410         (STACK_CHECK_PROTECT): Likewise.
12411         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
12412         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
12413         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
12414         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
12415         (dwarf2out_assembly_start): Likewise.
12416         * except.c (init_eh): Use targetm.except_unwind_info.
12417         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
12418         (output_one_function_exception_table): Likewise.
12419         * final.c: Unconditionally include dwarf2out.h.
12420         (final_start_function): Unconditionally call dwarf2out routines.
12421         (final_end_function, final_scan_insn): Likewise.
12422         * function.c (expand_function_end): Use targetm.except_unwind_info.
12423         * opts.c (decode_options): Use targetm.except_unwind_info.
12424         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
12425         * target.def (debug_unwind_info, except_unwind_info): New.
12426         * target.h (enum unwind_info_type): New.
12427         * targhooks.c (default_debug_unwind_info): New.
12428         (default_except_unwind_info): New.
12429         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
12430         * targhooks.h: Declare them.
12431         * tree-tailcall.c: Include "target.h"
12432         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
12433         * Makefile.in (tree-tailcall.o): Update.
12434         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
12435         (lhd_gcc_personality): Likewise.
12436
12437         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
12438         (TARGET_EXCEPT_UNWIND_INFO): New.
12439         (DWARF2_UNWIND_INFO): Update.
12440         (TARGET_DEBUG_UNWIND_INFO): New.
12441         * doc/tm.texi: Rebuild.
12442
12443         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
12444         targetm.except_unwind_info.
12445
12446         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
12447         (arm_except_unwind_info): New.
12448         (arm_compute_func_type): Use it.
12449         (arm_expand_prologue, thumb_pushpop): Likewise.
12450         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
12451         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
12452         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
12453         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
12454         (DWARF2_UNWIND_INFO): Remove.
12455         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
12456         (ARM_EABI_UNWIND_TABLES): Remove.
12457
12458         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
12459         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
12460         (ia64_except_unwind_info): New.
12461         (ia64_output_function_prologue): Use it.
12462         (ia64_add_bundle_selector_before): Likewise.
12463         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
12464         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
12465         (TARGET_UNWIND_INFO): Remove.
12466
12467         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
12468
12469 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
12470
12471         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
12472         (c_parser_objc_protocol_definition): Likewise.
12473         (c_parser_external_declaration): Provide dummy attribute arguments.
12474         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
12475         (c_parser_objc_class_definition): Handle attributes.
12476         (c_parser_objc_protocol_definition): Likewise.
12477
12478 2010-09-28  Tobias Burnus  <burnus@net-b.de>
12479
12480         PR fortran/40569
12481         PR fortran/40568
12482         * toplev.h (save_decoded_options, save_decoded_options_count):
12483         New global variables.
12484         * toplev.c (save_decoded_options, save_decoded_options_count):
12485         Export variables.
12486
12487 2010-09-28  Ian Lance Taylor  <iant@google.com>
12488
12489         * config/i386/i386.c (ix86_supports_split_stack): Test
12490         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
12491
12492 2010-09-28  Ian Lance Taylor  <iant@google.com>
12493
12494         PR target/45815
12495         * opts.c (decode_options): Don't test whether the target supports
12496         split stack if flag_split_stack == 0.
12497
12498 2010-09-28  Jan Hubicka  <jh@suse.cz>
12499
12500         * builtin-attrs.def (ATTR_LEAF): New attribute.
12501         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
12502         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
12503         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
12504         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
12505         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
12506         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
12507         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
12508         * sync-builtins.def: Annotate all builtins by leaf.
12509         * omp-builtins.def: Annotate all builtins by leaf.
12510         * builtins.def: Annotate relevant builtins with leaf attribute.
12511         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
12512         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
12513         leaf.
12514
12515 2010-09-28  Jan Hubicka  <jh@suse.cz>
12516
12517         * tree-ssa-ccp.c (fold_ctor_reference): New function.
12518         (fold_const_aggregate_ref): Use it.
12519         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
12520         into external static.
12521
12522 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12523
12524         PR target/44452
12525         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
12526         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
12527         (ix86_solaris_return_in_memory): Remove.
12528         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
12529         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
12530         (TARGET_SUBTARGET_DEFAULT): Redefine.
12531         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
12532         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
12533         (TARGET_SUBTARGET_DEFAULT): Redefine.
12534         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
12535         -mvect8-ret-in-mem.
12536         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
12537
12538 2010-09-29  Alan Modra  <amodra@gmail.com>
12539
12540         PR target/45807
12541         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
12542         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
12543         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
12544         Delete.
12545         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
12546         (rs6000_emit_prologue): Don't just create frame save info for r2,
12547         actually save r2.
12548
12549 2010-09-28  Richard Henderson  <rth@redhat.com>
12550
12551         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
12552         when 8 bytes are requested.
12553
12554 2010-09-28  Tristan Gingold  <gingold@adacore.com>
12555
12556         * config/avr/avr.c (expand_prologue): Set
12557         current_function_static_stack_size.
12558
12559 2010-09-28  Tristan Gingold  <gingold@adacore.com>
12560
12561         * config/alpha/alpha.md: Change the initial condition of the
12562         probing loop.
12563
12564 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
12565
12566         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
12567         Split from *avx_<maxmin:code><mode>3.
12568         (*avx_<smaxmin:code><mode>3): Ditto.
12569         * config/i386/i386.md (maxmin): Remove code iterator.
12570
12571 2010-09-27  Ian Lance Taylor  <iant@google.com>
12572
12573         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
12574         requires assembler support for CFI directives.
12575
12576 2010-09-27  Richard Henderson  <rth@redhat.com>
12577
12578         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
12579
12580 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
12581
12582         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
12583         that AFTER is not in the range FROM..TO, inclusive.
12584
12585 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
12586             Bernd Schmidt  <bernds@codesourcery.com>
12587
12588         PR rtl-optimization/45792
12589         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
12590         If not all insns are to be merged, for each edge, stash the
12591         next candidate after the to-be-merged insns before doing the
12592         merge, and use them for the retry at the new insertion point.
12593         Handle CC0 targets when retrying.
12594
12595 2010-09-27  Ian Lance Taylor  <iant@google.com>
12596
12597         * common.opt (fsplit-stack): New option.
12598         * opts.c (decode_options): Set flag_split_stack to final value.
12599         * target.def (supports_split_stack): New hook.
12600         * gcc.c (STACK_SPLIT_SPEC): Define.
12601         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
12602         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
12603         (Code Gen Options): Document -fsplit-stack.
12604         * doc/extend.texi (Function Attributes): Mention no_split_stack.
12605         (Function Attributes): Document no_split_stack.
12606         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
12607         TARGET_SUPPORTS_SPLIT_STACK.
12608         * doc/tm.texi: Rebuild.
12609         * function.c (thread_prologue_and_epilogue_insns): If
12610         flag_split_stack, add split stack prologue.
12611         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
12612         * varasm.c (saw_no_split_stack): New static variable.
12613         (assemble_start_function): Set saw_no_split_stack if the function
12614         has the no_split_stack attribute.
12615         (file_end_indicate_split_stack): New function.
12616         * output.h (file_end_indicate_split_stack): Declare.
12617         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
12618         and function.
12619         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
12620         routines.
12621         * config/i386/i386.c (ix86_option_override_internal): Don't set
12622         expand_builtin_va_start to NULL if -fsplit-stack.
12623         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
12624         -fsplit-stack.
12625         (ix86_va_start): If -fsplit-stack, get overflow pointer from
12626         scratch register set by prologue.
12627         (ix86_code_end): If -fsplit-stack, call
12628         file_end_indicate_split_stack.
12629         (ix86_supports_split_stack): New static function.
12630         (SPLIT_STACK_AVAILABLE): Define.
12631         (split_stack_prologue_scratch_regno): New static function.
12632         (split_stack_fn): New static variable.
12633         (ix86_expand_split_stack_prologue): New function.
12634         (ix86_live_on_entry): New static function.
12635         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
12636         (output_pic_addr_const): Likewise.
12637         (i386_asm_output_addr_const_extra): Likewise.
12638         (ix86_expand_call): Change return type to rtx.  Return the new
12639         call instruction.
12640         (TARGET_SUPPORTS_SPLIT_STACK): Define.
12641         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12642         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
12643         (split_stack_prologue, split_stack_return): New insns.
12644         (split_stack_space_check): New insn.
12645         * config/i386/i386.h (struct machine_function): Add
12646         split_stack_varargs_pointer field.
12647         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
12648         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12649         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
12650         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
12651         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
12652         Declare.
12653         (ix86_expand_call): Update declaration.
12654
12655 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12656
12657         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
12658         code.  Added byref, which was missing in the list of codes.
12659         Explain that enumeration values are encoded as the integer type
12660         that the compiler uses to store them.  Explain and make examples
12661         of how 'const' interacts with pointers, and the complication of
12662         the encoding of 'const char *'.
12663         (Legacy type encoding): New subsection, explaining that GCC emits
12664         incorrect type encodings for the NeXT runtime for compatibility
12665         reasons.
12666         (@@encode): New subsection, explaining @encode and particularly
12667         that protocol qualifiers are not recognized inside an @encode()
12668         expression.
12669         (Method signatures): New subsection, explaining how method
12670         signatures are encoded.
12671
12672 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
12673
12674         Merge from 'apple/trunk' branch on FSF servers.  Removed small
12675         change in build_conditional_expr that had been added when fixing
12676         PR objc/27377 and which did the same check in a less complete way.
12677
12678         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
12679
12680         Radar 4229905
12681         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
12682         looking for objective-c common pointer types.
12683
12684         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
12685
12686         Radar 4154928
12687         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
12688         use their ObjC common type.
12689
12690 2010-09-27  Richard Guenther  <rguenther@suse.de>
12691
12692         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
12693
12694 2010-09-27  Jie Zhang  <jie@codesourcery.com>
12695
12696         * print-tree.c (print_node): Print in-constant-pool.
12697
12698 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
12699
12700         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
12701         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
12702         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
12703         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
12704
12705 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
12706
12707         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
12708         from pro_epilogue_adjust_stack_<mode>_{1,2}.
12709         (pro_epilogue_adjust_stack_<mode>_add): Rename from
12710         pro_epilogue_adjust_stack_<mode>_3.
12711         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
12712         renamed pro_epilogue_adjust_stack_{si,di}_add.
12713         (ix86_expand_prologue): Use indirect functions.  Update for renamed
12714         pro_epilogue_adjust_stack_{si,di}_sub.
12715
12716 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
12717
12718         * config/i386/i386.md (movmsk_df): New insn.
12719         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
12720         sequence for TARGET_SSE_MATH.
12721
12722 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
12723
12724         * config/mips/mips.c (mips_builtin_decls): Declare.
12725         (mips_init_builtins): Store function declarations in
12726         mips_builtin_decls.
12727         (mips_builtin_decl): New function.
12728         (TARGET_BUILTIN_DECL): Define.
12729
12730 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
12731             Richard Henderson  <rth@redhat.com>
12732
12733         * config/i386/cygwin.asm: Include auto-host.h.
12734         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
12735         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
12736         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
12737         alignment code from the 64-bit path.  Use gas local labels.
12738         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
12739         from _di_2.  Remove the useless constant integer argument.
12740         (pro_epilogue_adjust_stack_<mode>_3): New.
12741         (allocate_stack_worker_probe_<mode>): Macroize from
12742         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
12743         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
12744         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
12745         (__chkstk_ms): New function.
12746         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
12747         * config/i386/t-interix: Likewise.
12748         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
12749         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
12750         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
12751         * configure, config.in: Rebuild.
12752
12753 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
12754
12755         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
12756         statements because of the return slot optimization.
12757
12758 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
12759
12760         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
12761         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
12762         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12763         (class_likely_spilled_p): Rename to...
12764         (avr_class_likely_spilled_p): ...this. Make static. Change argument
12765         type to reg_class_t.
12766
12767 2010-09-24  Jan Hubicka  <jh@suse.cz>
12768
12769         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
12770         (lto_symtab_resolve_symbols): Set it.
12771         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
12772         store resolution field in cgraph/varpool.
12773         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
12774         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
12775         (cgraph_dump_node): Drop used_from_object_file.
12776         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
12777         (cgraph_function_body_availability): Use decl_replaceable_p.
12778         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
12779         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
12780         cgraph_used_from_object_file_p.
12781         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
12782         cgraph_used_from_object_file_p.
12783         (resolution_used_from_other_file_p): New functoin.
12784         (cgraph_used_from_object_file_p): New predicate.
12785         * cgraph.h: Include plugin-api.h
12786         (struct cgraph_local_info): Remove used_from_object_file.
12787         (struct cgraph_node): Add resolution field.
12788         (struct varpool_node): Likewise; remove used_from_object_file;
12789         reove const_value_known.
12790         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
12791         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
12792         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
12793         varpool_used_from_object_file_p): Declare.
12794         (varpool_get_node, varpool_extra_name_alias): Update prototype.
12795         * tree.h (DECL_REPLACEABLE_P): Remove.
12796         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
12797         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
12798         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12799         input_overwrite_node, input_node, input_varpool_node): Stream
12800         resolution.
12801         * expr.c (expand_expr_real_1): Use const_value_known_p
12802         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
12803         const_value_known.
12804         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
12805         (function_and_variable_visibility): Set resolution for local vars
12806         and functions; use varpool_used_from_object_file_p.
12807         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
12808         static functions.
12809         (default_binds_local_p_1): Use resolutoin info.
12810         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
12811         * varpool.c (varpool_get_node): Constify.
12812         (const_value_known_p): Do not use vnode->const_value_known;
12813         use decl_replaceable_p.
12814         (varpool_finalize_decl): Do not set const_value_known.
12815         (cgraph_variable_initializer_availability): Use decl_replaceable_p
12816         (varpool_extra_name_alias): Return new node.
12817         (varpool_used_from_object_file_p): New function.
12818
12819 2010-09-24  Richard Henderson  <rth@redhat.com>
12820
12821         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
12822         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
12823         (do_spill): Use REG_CFA_OFFSET.
12824         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
12825         as appropriate.
12826         (ia64_expand_epilogue): Likewise.
12827         (process_set): Split into ...
12828         (process_cfa_adjust_cfa): this,
12829         (process_cfa_register): this,
12830         (process_cfa_offset): and this new function.
12831         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
12832         instead of REG_FRAME_RELATED_EXPR.
12833
12834 2010-09-24  Olivier Hainque  <hainque@adacore.com>
12835
12836         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
12837
12838 2010-09-24  Jan Hubicka  <jh@suse.cz>
12839
12840         * doc/extend.texi: (attribute leaf): Document.
12841         * tree.c (local_define_builtin): Handle ECF_LEAF.
12842         (build_common_builtin_nodes): Set ECF_LEAF where needed.
12843         * tree.h (ECF_LEAF): New.
12844         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
12845         overwrittable and unavailable functions.
12846         (ipa_init): Put all_module_statics into optimization_summary_obstack.
12847         (copy_global_bitmap): Do not copy all_module_statics.
12848         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
12849         (propagate): Handle overwritable and unavailable leaf functions;
12850         initialize global info for overwritable and unavailable leaf functions;
12851         do not free all module statics.
12852         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
12853         local statics.
12854         * calls.c (flags_from_decl_or_type): Handle leaf.
12855         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
12856         abnormal gotos.
12857
12858 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
12859
12860         * gengtype.c: Reindented.
12861         * gengtype.h: Reindented.
12862         * gengtype-parse.c: Reindented.
12863
12864 2010-09-24  Jan Hubicka  <jh@suse.cz>
12865
12866         PR tree-optimization/45738
12867         PR tree-optimization/45741
12868         * expr.c (string_constant): Allow CONST_DECL too;
12869         check that DECL_INITIAL is set.
12870         * varpool.c (const_value_known_p): Only look into VAR_DECL
12871         and CONST_DECL.
12872
12873 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
12874
12875         * common.opt (undef): New.
12876
12877 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
12878
12879         PR middle-end/45234
12880         * rtl.h (enum global_rtl_index): Add
12881         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
12882         (LAST_VIRTUAL_POINTER_REGISTER): Define.
12883         (virtual_preferred_stack_boundary_rtx,
12884         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
12885         (LAST_VIRTUAL_REGISTER): Increase by one.
12886         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
12887         instead of LAST_VIRTUAL_REGISTER.
12888         * function.c (instantiate_new_reg): Handle
12889         virtual_preferred_stack_boundary_rtx.
12890         * emit-rtl.c (init_virtual_regs): Handle
12891         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12892         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
12893         * explow.c (round_push): If crtl->preferred_stack_boundary
12894         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
12895         virtual_preferred_stack_boundary_rtx alignment instead of
12896         crtl->preferred_stack_boundary alignment.
12897         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
12898         macros.  Never decrease crtl->preferred_stack_boundary,
12899         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
12900         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
12901         stack_pointer_delta in dynamic allocation, even when size
12902         is constant.
12903         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
12904         macro.
12905         * print-rtl.c (print_rtx): Handle
12906         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
12907         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
12908         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
12909         * config/frv/frv.c (frv_emit_movsi): Likewise.
12910         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
12911         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
12912         Likewise.
12913
12914         Revert:
12915         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
12916
12917         PR middle-end/45234
12918         * calls.c (expand_call): Make sure that all variable sized
12919         adjustments are multiple of preferred stack boundary after
12920         stack alignment.
12921
12922 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
12923             Dominique Dhumieres  <dominiq@lps.ens.fr>
12924
12925         PR bootstrap/45751
12926         * config/darwin-driver.c (darwin_default_min_version):
12927         Adjust size passed to memcpy in two places.
12928
12929 2010-09-24  Richard Guenther  <rguenther@suse.de>
12930
12931         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
12932         Make sure to not call set_type_context with error_mark_node.
12933         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
12934
12935 2010-09-24  Richard Guenther  <rguenther@suse.de>
12936
12937         * Makefile.in (OBJS-onestep): Remove.
12938         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
12939         (libbackend.a): Remove onestep support.
12940         (libbackend.o): Remove.
12941         * configure.ac (--enable-intermodule): Remove.
12942         * configure: Regenerate.
12943
12944 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
12945
12946         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
12947         reaching the end of a block if it occurs at a DEBUG_INSN.
12948
12949 2010-09-09  Tristan Gingold  <gingold@adacore.com>
12950
12951         PR target/44242
12952         * config/vms/vms-crt0-64.c: Removed.
12953         * config/vms/vms-crt0.c: Removed.
12954         * config/vms/vms-psxcrt0-64.c: Removed.
12955         * config/vms/vms-psxcrt0.c: Removed.
12956         * config/vms/vms-ucrt0.c: New file.
12957         * config/vms/t-vms64: Removed.
12958         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
12959         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
12960         * config.gcc (alpha-dec-vms): Use t-vms.
12961
12962 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12963
12964         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
12965         underfull hbox in DVI output.
12966         (-fobjc-class-cxx-cdtors): Same change.
12967         (-fobjc-exceptions): Tidied up documentation.  Explain what the
12968         option does, but moved the (lenghty) description of the exception
12969         syntax into objc.texi.
12970         (-fobjc-gc): Explain that the option is not useful with the GNU
12971         runtime.
12972         (-fzero-link): Explain that the GNU runtime always works in
12973         "zero-link" mode.
12974         * doc/objc.texi: All sections: simplified @node declarations
12975         removing specification of next, previous, up node.
12976         (Objective-C): Updated introduction.
12977         (Garbage Collection): Updated.  The bohem-gc library is now
12978         included in gcc itself.  Mention that this section only applies to
12979         the GNU Objective-C runtime.
12980         (compatibility_alias): Small tidy up.
12981         (Exceptions): New section mostly containing text previously in the
12982         description of the -fobjc-exception command-line option.
12983         (Synchronization): Same.
12984
12985 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
12986
12987         * config/i386/i386.md (ix86_code_end): Move the initialization of
12988         xops array near the consumer.  Use AX_REG and SP_REG instead of
12989         numerical constants.
12990
12991 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
12992
12993         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
12994         method [methodname]' for an Objective-C method instead of the less
12995         satisfactory 'too many arguments to function' (with no method name).
12996
12997 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
12998
12999         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
13000         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
13001         (execute_update_addresses_taken): Remove parameter.  Execute the
13002         optimization unconditionally.
13003         * passes.c (execute_function_todo): Call execute_update_addresses_taken
13004         unconditionally if TODO_rebuild_alias is set, else only when optimizing
13005         if TODO_update_address_taken is set.
13006
13007 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
13008
13009         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13010         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
13011         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13012         (arm_output_addr_const_extra): Make static.
13013
13014 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
13015
13016         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
13017         define as unspec_volatile.
13018         ("nops"): Define as unspec_volatile. Use fputs to write to
13019         asm_out_file directly.  Output NOPs on separate lines using while loop.
13020         * config/i386/i386.c (ix86_code_end): Use fputs to write to
13021         asm_out_file directly.  Output NOPs on separate lines using while loop.
13022
13023 2010-09-23  Richard Guenther  <rguenther@suse.de>
13024
13025         PR tree-optimization/45565
13026         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
13027         Make sure to adjust the fndecl before replacing the stmt.
13028
13029 2010-09-23  Richard Guenther  <rguenther@suse.de>
13030
13031         PR middle-end/45750
13032         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
13033         gimplifying MEM_REF.
13034
13035 2010-09-23  Alan Modra  <amodra@gmail.com>
13036
13037         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
13038         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
13039
13040 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
13041
13042         PR rtl-optimization/44374
13043         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
13044         * df-core.c (df_set_bb_dirty): Set it.
13045         * ifcvt.c (find_memory): Remove function.
13046         (dead_or_predicable): Use can_move_insns_across.
13047         * df.h (can_move_insns_across): Declare function.
13048         * cfgcleanup.c (block_was_dirty): New static variable.
13049         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
13050         than df_get_bb_dirty.
13051         (try_head_merge_bb): New static function.
13052         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
13053         is set.
13054         * df-problems.c: Include "target.h"
13055         (df_simulate_find_uses): New static function.
13056         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
13057         (find_memory, find_memory_store): New static functions.
13058         (can_move_insns_across): New function.
13059         * Makefile.in (df-problems.o): Update dependencies.
13060
13061 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13062
13063         PR java/44095
13064         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
13065         is specified and the suffix of the file isn't ".c".
13066         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13067
13068 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13069
13070         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
13071         * doc/cppopts.texi: Fix markup of index entry.
13072         * doc/extend.texi (Constructing Calls): Fix markup of
13073         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
13074         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
13075         (Vague Linkage, C++ Attributes): Fix markup of index entries and
13076         keywords.
13077         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
13078         avoid long lines.
13079         (C Dialect Options, C++ Dialect Options, Warning Options)
13080         (Debugging Options, Spec Files, Darwin Options)
13081         (i386 and x86-64 Options, MIPS Options)
13082         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
13083         index entries, avoid abbreviations, allow URLs to wrap, avoid
13084         long lines, avoid overlong pages from long @itemx lists.
13085         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
13086         * doc/standards.texi (Standards): Likewise.
13087         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
13088
13089 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
13090
13091         * opts-common.c (prune_options): Make static.  Work with decoded
13092         options.
13093         (decode_cmdline_options_to_array): Call prune_options.  Don't
13094         resize option array here.
13095         * opts.h (prune_options): Remove prototype.
13096         * gcc.c (process_command): Take decoded options; don't call
13097         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
13098         (main): Call decode_cmdline_options_to_array here instead of
13099         prune_options.  Update call to process_command.
13100         * config/darwin-driver.c: Include opts.h.
13101         (darwin_default_min_version): Work with decoded options.  Don't
13102         handle -b or -V here.
13103         * config/darwin.h (darwin_default_min_version): Update prototype.
13104         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
13105         darwin_default_min_version.
13106         * config/i386/cygwin.h (mingw_scan): Update prototype.
13107         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
13108         * config/i386/cygwin1.c: Include opts.h.
13109         (mingw_scan): Work with decoded options.
13110         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
13111         * config/t-darwin (darwin-driver.o): Update dependencies.
13112
13113 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
13114
13115         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
13116         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
13117         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
13118         -force-link, -force-link=, -language, -language=,
13119         -library-directory, -library-directory=, -no-canonical-prefixes,
13120         -no-standard-libraries, -no-warnings, -optimize, -output,
13121         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
13122         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
13123         -print-file-name=, -print-libgcc-file-name,
13124         -print-multi-directory, -print-multi-lib,
13125         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
13126         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
13127         -profile, -save-temps, -shared, -specs, -specs=, -static,
13128         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
13129         symbolic): New.
13130         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
13131         * gcc.c (A Short Introduction to Adding a Command-Line Option):
13132         Remove comment.
13133         (cc1_options): Correct specs for passing down --help,
13134         --target-help and --help=*.  Add spec for passing down --version.
13135         (struct option_map, option_map, target_option_translations,
13136         translate_options): Remove.
13137         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
13138         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
13139         OPT_fhelp_ and OPT_ftarget_help.
13140         (process_command): Don't call translate_options.  Call
13141         decode_cmdline_options_to_array before checking for
13142         -no-canonical-prefixes using decoded options.
13143         * opts-common.c (tm.h): Update comment on #include.
13144         (find_opt): Allow abbreviations of long options.
13145         (struct option_map, option_map): New.
13146         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
13147         and -mno handling.
13148         (target_option_translations): New.
13149         (decode_cmdline_options_to_array): Handle
13150         TARGET_OPTION_TRANSLATE_TABLE in driver.
13151         * opts.c (common_handle_option): Don't handle OPT_fhelp,
13152         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
13153
13154 2010-09-22  Richard Guenther  <rguenther@suse.de>
13155
13156         * tree-inline.c (optimize_inline_calls): Schedule cleanups
13157         only if we inlined something.  Block compaction and conditional
13158         folding are done by cfg cleanup.  Schedule update-address-taken.
13159         (tree_function_versioning): Remove redundant call to number_blocks.
13160         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
13161         folding is done by cfg cleanup.
13162         * passes.c (init_optimization_passes): Remove update-address-taken
13163         pass after IPA inlining.
13164
13165 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
13166
13167         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
13168         to update conditions. Fix reg_mode[] check.
13169
13170 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
13171
13172         * config/picochip/picochip.md (movhicc): Use expand to check whether
13173         movhicc is available and split it after reload.
13174
13175 2010-09-22  Richard Guenther  <rguenther@suse.de>
13176
13177         * tree-ssanames.c (release_dead_ssa_names): Do not remove
13178         callee edges here.
13179         * passes.c (init_optimization_passes): Remove early CFG cleanup.
13180         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
13181         (pass_cleanup_cfg): Likewise.
13182         (execute_fixup_cfg): Cleanup.
13183         * tree-pass.h (pass_cleanup_cfg): Remove.
13184
13185 2010-09-22  Martin Jambor  <mjambor@suse.cz>
13186
13187         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
13188         builtins if it is true.
13189         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
13190         parameter.
13191
13192 2010-09-22  Martin Jambor  <mjambor@suse.cz>
13193
13194         * tree-sra.c (struct access): New field grp_no_warning.
13195         (create_access_replacement): Set TREE_NO_WARNING according to
13196          grp_no_warning.
13197         (create_artificial_child_access): Use build_ref_for_model and set
13198         grp_no_warning if build_user_friendly_ref_for_offset fails.
13199         (propagate_subaccesses_across_link): Likewise.
13200
13201 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13202
13203         PR target/35664
13204         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
13205         ('f'): Likewise.
13206
13207 2010-09-22  Tristan Gingold  <gingold@adacore.com>
13208
13209         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
13210
13211 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
13212
13213         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
13214         * config/i386/i386.c (decide_alg): Update for rename.
13215
13216 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
13217
13218         PR rtl-optimization/45739
13219         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
13220         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
13221
13222 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
13223
13224         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
13225         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
13226         Remove.
13227         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
13228         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13229
13230 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13231
13232         PR objc/23710
13233         * c-parser.c (c_parser_objc_method_definition): Check the return
13234         value of objc_start_method_definition and if false is returned,
13235         parse the method definition but emit no code.
13236
13237 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
13238
13239         PR objc/25965
13240         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
13241         call objc_get_interface_ivars ().
13242
13243 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
13244
13245         PR target/45694
13246         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
13247         static chain-register is used for 64-bit.
13248
13249 2010-09-21  Richard Guenther  <rguenther@suse.de>
13250
13251         * dwarf2out.c (is_cu_die): New function.
13252         (add_pubtype): Use it.
13253         (gen_subprogram_die): Likewise.
13254         (gen_struct_or_union_type_die): Likewise.
13255         (dwarf2out_finish): Likewise.
13256         (comp_unit_die): Rename to ...
13257         (single_comp_unit_die): ... this.
13258         (comp_unit_die): New function lazily constructing and
13259         returning single_comp_unit_die.
13260         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
13261         base_type_die, subrange_type_die, modified_type_die,
13262         lower_bound_default, add_bound_info, add_prototyped_attribute,
13263         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
13264         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
13265         force_decl_die, gen_namespace_die, dwarf2out_decl,
13266         dwarf2out_start_source_file, dwarf2out_end_source_file,
13267         prune_unused_types, dwarf2out_finish): Use it.
13268         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
13269         the global list of translation-unit decls.
13270         (dwarf2out_init): Do not create single_comp_unit_die here.
13271         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
13272
13273 2010-09-21  Richard Guenther  <rguenther@suse.de>
13274
13275         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
13276         for bool for C++.
13277
13278 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
13279
13280         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
13281         (qhs_extenddi_cstr): Likewise.
13282         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
13283         them for the source operand.
13284
13285 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
13286
13287         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
13288         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
13289         (ix86_split_ashr): Ditto.
13290         (ix86_split_lshr): Ditto.
13291
13292 2010-09-21  Richard Guenther  <rguenther@suse.de>
13293
13294         PR tree-optimization/45580
13295         * tree-ssa-propagate.c (substitute_and_fold): Always replace
13296         regular uses.
13297         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
13298         virtuals fold the call into a regular indirect one.
13299
13300 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
13301
13302         PR rtl-optimization/42775
13303         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
13304         scheduling is enabled.
13305
13306 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
13307
13308         PR rtl-optimization/45728
13309         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
13310         gen_lowpart_common first and if that fails, force_reg first
13311         before calling gen_lowpart.
13312
13313         PR middle-end/45678
13314         * cfgexpand.c (expand_one_stack_var_at): Use
13315         crtl->max_used_stack_slot_alignment as max_align, instead
13316         of maximum of that and PREFERRED_STACK_BOUNDARY.
13317         Don't call update_stack_alignment.
13318
13319 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
13320
13321         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
13322         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
13323         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
13324         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
13325         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
13326         (build_nonstandard_integer_type): Likewise.
13327         (build_range_type_1): New function, built from...
13328         (build_range_type): ...this.  Call build_range_type_1.
13329         (build_nonshared_range_type): New function.
13330         (build_array_type_1): New function, built from...
13331         (build_array_type: ...this.  Call build_array_type_1.
13332         (build_nonshared_array_type): New function.
13333         * tree.h (build_nonshared_range_type): Declare.
13334         (build_nonshared_array_type): Likewise.
13335
13336 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
13337
13338         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
13339         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13340         (arm_class_likely_spilled_p): New function.
13341
13342 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
13343
13344         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
13345         indirect functions.
13346         (ix86_split_ashl): Ditto.
13347         (ix86_split_ashr): Ditto.
13348         (ix86_split_lshr): Ditto.
13349         (ix86_adjust_counter): Ditto.
13350
13351 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
13352
13353         * c-family/c-common.h (constant_string_class): Documented with
13354         comment identical to the one already in c-common.c.
13355
13356 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
13357
13358         * dwarf2out.c (any_cfis_emitted): New static variable.
13359         (add_fde_cfi): Set it.
13360         (dwarf2out_frame_debug): Clear it before processing,
13361         if it is set afterwards, flush any queued reg saves.
13362
13363         PR debug/45124
13364         * dwarf2out.c (add_accessibility_attribute): Assume
13365         DW_ACCESS_private as the default for dwarf_version > 2
13366         and DW_TAG_class_type parent.
13367         (gen_inheritance_die): Assume DW_ACCESS_public as the default
13368         for dwarf_version > 2 and parent other than DW_TAG_class_type.
13369
13370 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
13371
13372         PR target/45726
13373         * arm.md (arm_movt): Only enable on machines with MOVT.
13374
13375 2010-09-20  Jie Zhang  <jie@codesourcery.com>
13376
13377         * config/arm/arm.c (arm_address_offset_is_imm): New.
13378         (arm_early_store_addr_dep): New.
13379         (arm_early_load_addr_dep): New.
13380         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
13381         (arm_early_load_addr_dep): Declare.
13382         (arm_address_offset_is_imm): Declare.
13383         * config/arm/cortex-m4.md: New file.
13384         * config/arm/cortex-m4-fpu.md: New file.
13385         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
13386         (attr generic_sched): Exclude cortexm4.
13387         (attr generic_vfp): Exclude cortexm4.
13388
13389 2010-09-20  Richard Guenther  <rguenther@suse.de>
13390
13391         PR middle-end/45704
13392         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
13393
13394 2010-09-20  Jan Hubicka  <jh@suse.cz>
13395
13396         PR tree-optimize/45605
13397         * cgraph.h (const_value_known_p): Declare.
13398         (varpool_decide_const_value_known): Remove.
13399         * tree-ssa-ccp.c (get_base_constructor): Use it.
13400         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
13401         * expr.c (string_constant): Likewise.
13402         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
13403         * ipa.c (ipa_discover_readonly_nonaddressable_var,
13404         function_and_variable_visibility): Likewise.
13405         * gimplify.c (gimplify_call_expr): Likewise.
13406         * gimple-fold.c (get_symbol_constant_value): Likewise.
13407         * varpool.c (varpool_decide_const_value_known): Replace by...
13408         (const_value_known_p): ... this one; handle other kinds of DECLs
13409         too and work for automatic vars.
13410         (varpool_finalize_decl): Use const_value_known_p.
13411
13412 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
13413
13414         PR target/45726
13415         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
13416
13417 2010-09-20  Richard Guenther  <rguenther@suse.de>
13418
13419         PR tree-optimization/45705
13420         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
13421
13422 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
13423
13424         PR rtl-optimization/45695
13425         * combine.c (try_combine): When splitting a two set pattern,
13426         make sure the pattern which will be put into i2 doesn't use REGs
13427         or MEMs set by insns in between i2 and i3.
13428
13429 2010-09-19  Jan Hubicka  <jh@suse.cz>
13430
13431         PR lto/44246
13432         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
13433         processing same node twice.
13434
13435 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
13436
13437         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
13438         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13439         (bfin_class_likely_spilled_p): New function
13440
13441 2010-09-19  Ira Rosen  <irar@il.ibm.com>
13442
13443         PR tree-optimization/45714
13444         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
13445         created in vectorizable_call instead of the original statement in
13446         def stmt updates.
13447
13448 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
13449
13450         * config/i386/i386-protos.h (split_double_mode): New prototype.
13451         (split_di, split_ti): Remove prototypes.
13452         * config/i386/i386.c (split_double_mode): New function.
13453         (split_di, split_ti): Remove.
13454         (ix86_expand_branch): Use split_double_mode.
13455         (ix86_split_to_parts): Ditto.
13456         (ix86_split_ashl): Ditto.
13457         (ix86_split_ashr): Ditto.
13458         (ix86_split_lshr): Ditto.
13459         (ix86_force_to_memory): Ditto.
13460         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
13461
13462 2010-09-18  Jan Hubicka  <jh@suse.cz>
13463
13464         PR tree-optimization/45453
13465         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
13466         virtual functions are reachable.
13467         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
13468         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
13469         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
13470         when modifying function.
13471
13472 2010-09-18  Jan Hubicka  <jh@suse.cz>
13473
13474         PR tree-optimization/45605
13475         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
13476         * gimple-fold.c (static_object_in_other_unit_p): New function.
13477         (canonicalize_constructor_val): Use it.
13478         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
13479         returning NULL.
13480         (gimple_fold_obj_type_ref_known_binfo): Use
13481         static_object_in_other_unit_p.
13482
13483 2010-09-18  Richard Guenther  <rguenther@suse.de>
13484
13485         PR tree-optimization/45709
13486         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
13487         insertions until after all PHI nodes of the block are processed.
13488
13489 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
13490
13491         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
13492
13493 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
13494
13495         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
13496
13497 2010-09-18  Richard Guenther  <rguenther@suse.de>
13498
13499         PR tree-optimization/45709
13500         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
13501
13502 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
13503
13504         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
13505         (dot_deps_stmt): Same.
13506         * graphite-poly.c (dot_lst): Same.
13507         * graphite-scop-detection.c (dot_all_scops): Same.
13508         (dot_scop): Same.
13509
13510 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
13511
13512         Revert:
13513         2009-12-16  Ben Elliston  <bje@au.ibm.com>
13514
13515         * tree-data-ref.c (dot_rdg_1): Added back.
13516         (dot_rdg): Same.  Added "#if 0" around system call.
13517
13518 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
13519             Richard Henderson  <rth@redhat.com>
13520
13521         * config/i386/i386.c (initial_ix86_tune_features): Add
13522         X86_TUNE_PAD_SHORT_FUNCTION.
13523         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
13524         (ix86_count_insn): New.
13525         (ix86_pad_short_function): Likewise.
13526         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
13527
13528         * config/i386/i386.h (ix86_tune_indices): Add
13529         X86_TUNE_PAD_SHORT_FUNCTION.
13530         (TARGET_PAD_SHORT_FUNCTION): New.
13531
13532         * config/i386/i386.md (UNSPEC_NOPS): New.
13533         (nops): Likewise.
13534
13535 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
13536
13537         PR middle-end/45234
13538         * calls.c (expand_call): Make sure that all variable sized
13539         adjustments are multiple of preferred stack boundary after
13540         stack alignment.
13541
13542 2010-09-17  DJ Delorie  <dj@redhat.com>
13543
13544         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
13545         passed an invalid value, print an error instead of ICEing.
13546         (valid_psw_flag): New.
13547         (rx_expand_builtin): Call it for setpsw/clrpsw.
13548         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
13549
13550         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
13551         (bitclr_in_memory): Likewise.
13552         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
13553
13554 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
13555
13556         PR middle-end/45678
13557         * cfgexpand.c (update_stack_alignment): New.
13558         (get_decl_align_unit): Use it.
13559         (expand_one_stack_var_at): Call update_stack_alignment.
13560
13561 2010-09-17  Richard Guenther  <rguenther@suse.de>
13562
13563         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
13564         Properly copy the read string.
13565
13566 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
13567
13568         * doc/options.texi (Variable): Document.
13569         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
13570         generate target_flags declarations explicitly.  Don't define
13571         VarExists variables for the driver.
13572         * common.opt (target_flags): New Variable record.
13573         (flag_dump_unnumbered, flag_dump_unnumbered_links,
13574         flag_var_tracking, flag_var_tracking_assignments,
13575         flag_var_tracking_assignments_toggle): Don't mark variables with
13576         VarExists.
13577         * config/i386/i386.c (ix86_isa_flags): Don't define here.
13578         * config/i386/i386.opt (ix86_isa_flags): Define here.
13579         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
13580         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
13581         VarExists.
13582         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
13583         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
13584         Only define for generator programs.
13585         * rtlanal.c (target_flags): Remove.
13586         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
13587         flag_var_tracking_assignments_toggle): Remove.
13588
13589 2010-09-17  Michael Matz  <matz@suse.de>
13590
13591         PR tree-optimization/43432
13592         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
13593         Accept backwards consecutive accesses.
13594         (vect_create_data_ref_ptr): If step is negative generate
13595         decreasing IVs.
13596         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
13597         (perm_mask_for_reverse, reverse_vec_elements): New functions.
13598         (vectorizable_load): Handle loads with negative steps when easily
13599         possible.
13600
13601 2010-09-03  Jan Hubicka  <jh@suse.cz>
13602
13603         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
13604
13605 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
13606
13607         * config/v850/v850.c (v850_function_value_regno_p): Make static.
13608         Adjust comments. Declare.
13609         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
13610         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
13611
13612 2010-09-17  Richard Guenther  <rguenther@suse.de>
13613
13614         * common.opt (combine): Remove.
13615         * gcc.c (default_compilers): Remove specs testing combine.
13616         The C compilers no longer can combine.
13617         (option_map): Remove -combine.
13618         (display_help): Remove -combine.
13619         (driver_handle_option): Remove OPT_combine handling.
13620         (compile_input_file_p): Remove.
13621         (do_spec): Remove code concerning combine.
13622         (main): Likewise.
13623         * doc/invoke.texi: Remove traces of -combine.
13624         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
13625
13626 2010-09-17  Richard Guenther  <rguenther@suse.de>
13627
13628         PR middle-end/45678
13629         * builtins.c (fold_builtin_memory_op): Always properly adjust
13630         alignment of memory accesses.
13631
13632 2010-09-16  Jan Hubicka  <jh@suse.cz>
13633
13634         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
13635         processing clone.
13636
13637 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
13638
13639         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
13640
13641         * config/i386/i386.c (predict_jump): Add prototype.
13642         (flag_opts): Add -m8bit-idiv.
13643         (ix86_split_idivmod): New.
13644
13645         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
13646         Add 2 splitters for SI/DI mode divide.
13647         (divmod<mode>4_1): New pattern.
13648         (udivmod<mode>4_1): Likewise.
13649         (testdi_ccno_1): Likewise.
13650
13651         * config/i386/i386.opt (m8bit-idiv): New.
13652
13653         * doc/invoke.texi: Document -m8bit-idiv.
13654
13655 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
13656
13657         PR bootstrap/45680
13658         * config/i386/i386.c (min_insn_size): Moved out of the
13659         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
13660
13661 2010-09-16  Jan Hubicka  <jh@suse.cz>
13662
13663         * lto-cgraph.c (lto_output_node): Fix handling of clones.
13664         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
13665         unreachable clones with reachable clones.
13666         * tree-inline.c (copy_bb): Fix sanity checking when producing
13667         unreachable clone.
13668
13669 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
13670
13671         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
13672         (TARGET_MEMORY_MOVE_COST): Define.
13673         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
13674
13675 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
13676
13677         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
13678         maybe_tidy_empty_bb.
13679
13680         Revert:
13681         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
13682         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13683
13684 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
13685
13686         * target.def (target_option.optimization): New hook.
13687         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
13688         TARGET_OPTION_OPTIMIZATION hook.
13689         * doc/tm.texi: Regenerate.
13690         * hooks.c (hook_void_int_int): New.
13691         * hooks.h (hook_void_int_int): Declare.
13692         * opts.c: Don't include tm_p.h.
13693         (decode_options): Use targetm.target_option.optimization instead
13694         of OPTIMIZATION_OPTIONS.
13695         * system.h (OPTIMIZATION_OPTIONS): Poison.
13696         * config/arm/arm-protos.h (arm_optimization_options): Remove.
13697         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
13698         (arm_optimization_options): Rename to arm_option_optimization.
13699         Make static.
13700         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
13701         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
13702         (cris_option_optimization): New.
13703         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
13704         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
13705         (crx_option_optimization): New.
13706         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
13707         * config/frv/frv-protos.h (frv_optimization_options): Remove.
13708         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
13709         (frv_optimization_options): Rename to frv_option_optimization.
13710         Make static.
13711         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
13712         * config/h8300/h8300.c (h8300_option_optimization): New.
13713         (TARGET_OPTION_OPTIMIZATION): Define.
13714         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
13715         * config/i386/i386-protos.h (optimization_options): Remove.
13716         * config/i386/i386.c (optimization_options): Rename to
13717         ix86_option_optimization.  Make static.
13718         (TARGET_OPTION_OPTIMIZATION): Define.
13719         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
13720         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
13721         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
13722         (ia64_optimization_options): Rename to ia64_option_optimization.
13723         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
13724         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
13725         commented-out definition.
13726         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
13727         instead of OPTIMIZATION_OPTIONS.
13728         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
13729         (m32r_option_optimization): New.
13730         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
13731         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
13732         Remove.
13733         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
13734         (mcore_option_optimization): New.
13735         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
13736         * config/mep/mep-protos.h (mep_optimization_options): Remove.
13737         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
13738         (mep_optimization_options): Rename to mep_option_optimization.
13739         Make static.  Take unused level and size parameters.
13740         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
13741         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
13742         (mmix_option_optimization): New.
13743         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
13744         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
13745         (pdp11_option_optimization): New.
13746         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
13747         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
13748         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
13749         (optimization_options): Rename to rs6000_option_optimization.
13750         Make static.
13751         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
13752         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
13753         * config/rx/rx.c (rx_set_optimization_options): Rename to
13754         rx_option_optimization.  Make static.  Take unused level and size
13755         parameters.
13756         (TARGET_OPTION_OPTIMIZATION): Define.
13757         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
13758         * config/s390/s390-protos.h (optimization_options): Remove.
13759         * config/s390/s390.c (optimization_options): Rename to
13760         s390_option_optimization.  Make static.  Don't mark size parameter
13761         unused.
13762         (TARGET_OPTION_OPTIMIZATION): Define.
13763         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
13764         * config/sh/sh-protos.h (sh_optimization_options): Remove.
13765         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
13766         (sh_optimization_options): Rename to sh_option_optimization.  Make
13767         static.  Don't mark parameters unused.
13768         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
13769         * config/spu/spu-protos.h (spu_optimization_options): Remove.
13770         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
13771         (spu_optimization_options): Rename to spu_option_optimization.
13772         Make static.
13773         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
13774         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
13775         (v850_option_optimization): New.
13776         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
13777         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
13778         (xtensa_option_optimization): New.
13779         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
13780
13781 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
13782
13783         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
13784         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
13785         * doc/tm.texi: Regenerate.
13786         * system.h (OVERRIDE_OPTIONS): Poison.
13787         * target.def (override): Default to hook_void_void.
13788         * targhooks.c (default_target_option_override): Remove.
13789         * genmodes.c, machmode.def: Update comments mentioning
13790         OVERRIDE_OPTIONS.
13791         * config/alpha/alpha-modes.def: Update comment mentioning
13792         alpha_override_options.
13793         * config/alpha/alpha-protos.h (override_options): Remove.
13794         * config/alpha/alpha.c (override_options): Rename to
13795         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
13796         (TARGET_OPTION_OVERRIDE): Define.
13797         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
13798         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
13799         of OVERRIDE_OPTIONS.
13800         * config/arc/arc-protos.h (arc_init): Remove.
13801         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
13802         (arc_init): Rename to arc_option_override.  Make static.
13803         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
13804         (OVERRIDE_OPTIONS): Remove.
13805         * config/arm/arm-protos.h (arm_override_options): Remove.
13806         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
13807         (arm_override_options): Rename to arm_option_override.  Make
13808         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
13809         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
13810         * config/arm/arm.md: Update comment referring to arm_override_options.
13811         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13812         instead of OVERRIDE_OPTIONS.
13813         * config/avr/avr-protos.h (avr_override_options): Remove.
13814         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
13815         (avr_override_options): Rename to avr_option_override.  Make static.
13816         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
13817         * config/bfin/bfin-protos.h (override_options): Remove (twice).
13818         * config/bfin/bfin.c (override_options): Rename to
13819         bfin_option_override.  Make static.
13820         (TARGET_OPTION_OVERRIDE): Define.
13821         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
13822         * config/cris/cris-protos.h (cris_override_options): Remove.
13823         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
13824         (cris_override_options): Rename to cris_option_override.  Make static.
13825         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
13826         * config/frv/frv-protos.h (frv_override_options): Remove.
13827         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
13828         (frv_override_options): Rename to frv_option_override.  Make static.
13829         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
13830         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
13831         * config/h8300/h8300.c (h8300_init_once): Rename to
13832         h8300_option_override.  Make static.
13833         (TARGET_OPTION_OVERRIDE): Define.
13834         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
13835         * config/i386/i386-protos.h (override_options): Remove.
13836         * config/i386/i386.c (override_options): Rename to
13837         ix86_option_override_internal.  Make static.  Comments referring
13838         to this function and callers changed.
13839         (ix86_option_override): New.
13840         (TARGET_OPTION_OVERRIDE): Define.
13841         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
13842         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
13843         * config/ia64/ia64.c (ia64_file_start): Update comment referring
13844         to ia64_override_options.
13845         * config/iq2000/iq2000-protos.h (override_options): Remove.
13846         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
13847         (override_options): Rename to iq2000_option_override.  Make static.
13848         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
13849         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
13850         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
13851         (lm32_override_options): Rename to lm32_option_override.  Make static.
13852         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
13853         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
13854         (m32r_option_override): New.
13855         (m32r_init): Update comment.
13856         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
13857         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
13858         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
13859         (m68hc11_override_options): Rename to m68hc11_option_override.
13860         Make static.  Return void.
13861         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
13862         * config/m68k/m68k-protos.h (override_options): Remove.
13863         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
13864         (override_options): Rename to m68k_option_override.  Make static.
13865         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
13866         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
13867         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
13868         (mcore_override_options): Rename to mcore_option_override.  Make
13869         static.
13870         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
13871         * config/mep/mep-protos.h (mep_override_options): Remove.
13872         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
13873         (mep_override_options): Rename to mep_option_override.  Make static.
13874         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
13875         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
13876         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
13877         (mmix_override_options): Rename to mmix_option_override.  Make static.
13878         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
13879         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
13880         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
13881         (mn10300_override_options): Rename to mn10300_option_override.
13882         Make static.
13883         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
13884         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
13885         * config/moxie/moxie.c (moxie_override_options): Rename to
13886         moxie_option_override.  Make static.
13887         (TARGET_OPTION_OVERRIDE): Define.
13888         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
13889         * config/picochip/picochip-protos.h (picochip_override_options):
13890         Remove.  Update comment referring to picochip_override_options.
13891         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
13892         (picochip_override_options): Rename to picochip_option_override.
13893         Make static.  Update comment and definition of
13894         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
13895         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
13896         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13897         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13898         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13899         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13900         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13901         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
13902         instead of OVERRIDE_OPTIONS.
13903         * config/rs6000/rs6000-modes.def: Update comment referring to
13904         rs6000_override_options.
13905         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
13906         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
13907         (rs6000_override_options): Rename to
13908         rs6000_option_override_internal.  Make static.  Commented
13909         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
13910         (rs6000_option_override): New.
13911         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
13912         instead of OVERRIDE_OPTIONS.
13913         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
13914         * config/s390/s390-protos.h (override_options): Remove.
13915         * config/s390/s390.c (override_options): Rename to
13916         s390_option_override.  Make static.
13917         (TARGET_OPTION_OVERRIDE): Define.
13918         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
13919         * config/score/score-protos.h (score_override_options): Remove.
13920         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
13921         (score_override_options): Rename to score_option_override.  Make
13922         static.
13923         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
13924         Update comment referring to override_options.
13925         * config/score/score3.c (score3_override_options): Rename to
13926         score3_option_override.
13927         * config/score/score3.h (score3_override_options): Rename to
13928         score3_option_override.
13929         * config/score/score7.c (score7_override_options): Rename to
13930         score7_option_override.
13931         * config/score/score7.h (score7_override_options): Rename to
13932         score7_option_override.
13933         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
13934         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
13935         (sparc_override_options): Rename to sparc_option_override.  Make
13936         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
13937         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
13938         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
13939         instead of OVERRIDE_OPTIONS.
13940         * config/spu/spu-protos.h (spu_override_options): Remove.
13941         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
13942         (spu_override_options): Rename to spu_option_override.  Make
13943         static.
13944         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
13945         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
13946         OVERRIDE_OPTIONS.
13947         * config/vax/vax-protos.h (override_options): Remove.
13948         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
13949         (override_options): Rename to vax_option_override.  Make static.
13950         Call SUBTARGET_OVERRIDE_OPTIONS.
13951         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
13952         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
13953         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
13954         * config/xtensa/xtensa-protos.h (override_options): Remove.
13955         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
13956         (override_options): Rename to xtensa_option_override.  Make static.
13957         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
13958
13959 2010-09-16  Richard Guenther  <rguenther@suse.de>
13960
13961         PR tree-optimization/45623
13962         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
13963         (get_constraint_for_component_ref): If computing a constraint
13964         for the rhs handle type punning through unions.
13965         (get_constraint_for_address_of): Adjust.
13966         (get_constraint_for_1): Likewise.
13967         (get_constraint_for): Likewise.
13968         (get_constraint_for_rhs): New function.
13969         (do_structure_copy): Adjust.
13970         (make_constraint_to): Likewise.
13971         (handle_const_call): Likewise.
13972         (find_func_aliases): Likewise.
13973         (process_ipa_clobber): Likewise.
13974         (create_variable_info_for): Likewise.
13975
13976 2010-09-16  Ira Rosen  <irar@il.ibm.com>
13977
13978         * tree-vectorizer.c: Fix documentation.
13979         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
13980         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
13981         is_pattern_stmt_p, is_loop_header_bb_p,
13982         stmt_vinfo_set_inside_of_loop_cost,
13983         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
13984         known_alignment_for_access_p): Likewise.
13985         * tree-vect-loop.c: Fix documentation.
13986         (vect_get_cost): Start function name from new line.
13987         * tree-vect-data-refs.c: Fix documentation.
13988         * tree-vect_stmts.c: Likewise.
13989         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
13990         (vectorizable_store): Free vec_oprnds if allocated.
13991         (vectorizable_condition): Initialize several variables to avoid
13992         warnings.
13993         * tree-vect-slp.c: Fix documentation.
13994
13995 2010-09-16  Richard Guenther  <rguenther@suse.de>
13996
13997         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
13998         is TS_TRANSLATION_UNIT_DECL.
13999         (initialize_tree_contains_struct): Adjust.
14000         (all_translation_units): New global vector.
14001         (build_translation_unit_decl): New function.
14002         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
14003         (struct tree_translation_unit_decl): New.
14004         (all_translation_units): Declare.
14005         (union tree_node): Add translation_unit_decl member.
14006         (build_translation_unit_decl): Declare.
14007         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
14008         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
14009         New function.
14010         (pack_value_fields): Call it.
14011         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
14012         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
14013         (lto_output_tree_pointers): Call it.
14014         * lto-streamer-in.c (lto_input_tree_ref): Handle references
14015         to TRANSLATION_UNIT_DECL.
14016         (unpack_ts_translation_unit_decl_value_fields): New function.
14017         (unpack_value_fields): Call it.
14018         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
14019         (lto_input_tree_pointers): Call it.
14020         * lto-streamer.c (check_handled_ts_structures): Adjust.
14021         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
14022         * c-decl.c (all_translation_units): Remove.
14023         (pop_scope): Use build_translation_unit_decl.
14024         (collect_all_refs): Adjust.
14025         (for_each_global_decl): Likewise.
14026         (c_write_global_declarations): Likewise.
14027
14028 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
14029
14030         PR bootstrap/45686
14031         * fold-const.c (fold_checksum_tree): Change slot from const void **
14032         to void **, use CONST_CAST_TREE to store into *slot.
14033
14034 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
14035
14036         * config/i386/i386.md: Remove unneeded empty conditions and
14037         preparation statements from expanders.
14038         * config/i386/mmx.md: Ditto.
14039         * config/i386/sse.md: Ditto.
14040
14041 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
14042
14043         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
14044
14045 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14046
14047         PR rtl-optimization/45593
14048         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
14049         insns that were in delay slots as stand-alone insns.
14050
14051 2010-09-15  Ian Lance Taylor  <iant@google.com>
14052
14053         * incpath.c (remove_duplicates): If name is not a directory, issue
14054         a warning rather than an error.
14055
14056 2010-09-15  Martin Jambor  <mjambor@suse.cz>
14057
14058         PR middle-end/45644
14059         * tree-sra.c (create_access): Check for bit-fields directly.
14060
14061 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
14062
14063         PR tree-optimization/45633
14064         * tree-cfg.c (verify_gimple_assign_binary): Allow
14065         MINUS_EXPR with lhs and rhs1 pointer vector and
14066         rhs2 sizetype vector.
14067         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
14068         or vector pointer use TER to optimize pointer subtraction.
14069
14070 2010-09-15  Jie Zhang  <jie@codesourcery.com>
14071
14072         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
14073         fcmpd to fcmps.
14074
14075 2010-09-15  Ian Lance Taylor  <iant@google.com>
14076
14077         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
14078
14079 2010-09-15  Ian Lance Taylor  <iant@google.com>
14080
14081         * function.c (get_arg_pointer_save_area): Set
14082         arg_pointer_save_area_init to true.
14083
14084 2010-09-15  Martin Jambor  <mjambor@suse.cz>
14085
14086         * tree-sra.c (generate_subtree_copies): Updated comment.
14087         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
14088         obtained from the statement iterator instead.
14089         (load_assign_lhs_subreplacements): Removed parameters lhs and
14090         right_offset, which is obtained from top_racc instead.  Parameter lacc
14091         is now expected to be the root of the processed tree rather than root's
14092         first child.  Updated all callers.
14093
14094 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14095
14096         * config/pdp11/pdp11.c (register_move_cost): Rename to
14097         pdp11_register_move_cost.
14098         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
14099         pdp11_register_move_cost.
14100         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
14101         pdp11_register_move_cost instead of register_move_cost.
14102
14103 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
14104
14105         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
14106         pattern for vmovn. Expansion in case of non
14107         -mvectorize-with-neon-quad.
14108         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
14109         non- -mvectorize-with-neon-quad case.
14110         (move_lo_quad_<mode>): New expansion to vmov into low part.
14111         (move_hi_quad_<mode>): New expansion to vmov into high part.
14112         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
14113         (move_lo_quad_v4sf): Likewise.
14114         (move_lo_quad_v8hi): Likewise.
14115         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
14116         low part.
14117         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
14118         high part.
14119         * config/arm/iterators.md (ANY128): New mode iterator.
14120         (V_narrow_pack): New mode attribute.
14121         (V_HALF): Add attribute.
14122         (V_DOUBLE): Add attribute.
14123         (V_mode_nunits): Add attribute.
14124
14125 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14126
14127         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
14128         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
14129
14130 2010-09-15  Olivier Hainque  <hainque@adacore.com>
14131             Jose Ruiz  <ruiz@adacore.com>
14132
14133         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
14134         * config/alpha/osf5-unwind.h: New file.
14135
14136 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14137
14138         PR bootstrap/45672
14139         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
14140         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
14141         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
14142
14143 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14144
14145         * c-lang.h (struct lang_type): Add variable_size GTY option.
14146
14147 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14148
14149         PR bootstrap/45672
14150         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
14151
14152 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14153
14154         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
14155         result isn't used in memory address.
14156
14157 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14158
14159         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
14160         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
14161         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14162         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14163         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14164         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14165
14166         * target.def: Add units_per_simd_word to vectorize.
14167
14168         * targhooks.c (default_units_per_simd_word): New.
14169         * targhooks.h (default_units_per_simd_word): Likewise.
14170         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
14171         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
14172         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
14173         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
14174         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
14175         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
14176         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
14177         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
14178
14179         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
14180         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
14181
14182         * tree-vect-stmts.c: Don't include "tm_p.h".
14183         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
14184         with targetm.vectorize.units_per_simd_word.
14185
14186         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
14187
14188         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
14189
14190         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
14191         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
14192
14193         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
14194         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
14195
14196         * doc/tm.texi: Regenerated.
14197
14198 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
14199
14200         * tree-vect-stmts.c: Include "tm_p.h".
14201
14202         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
14203         out of RTX_CODE.
14204
14205 2010-09-14  Martin Jambor  <mjambor@suse.cz>
14206
14207         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
14208         location of generated statement.  Changed all callers.
14209         (build_ref_for_model): New parameter loc which used to set location of
14210         all generated expressions.  Changed all callers.
14211         (generate_subtree_copies): Likewise.
14212         (init_subtree_with_zero): Likewise.
14213         (sra_modify_expr): Set locations of all generated statements and
14214         expressions to the location the original statement.
14215         (handle_unscalarized_data_in_subtree): Likewise.
14216         (load_assign_lhs_subreplacements): Likewise.
14217         (sra_modify_constructor_assign): Likewise.
14218         (sra_modify_assign): Likewise.
14219
14220 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
14221
14222         PR target/45277
14223         PR target/45363
14224         PR target/45407
14225         * doc/install.texi (sparc*-*-*): New section.
14226         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
14227
14228 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
14229
14230         PR middle-end/45567
14231         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
14232         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
14233         (expand_builtin): Adjust caller.
14234         (expand_builtin_unop): Only use subtarget if it has the right mode.
14235
14236 2010-09-14  Tristan Gingold  <gingold@adacore.com>
14237
14238         * configure.ac (plugins): Fix typos.
14239         * configure: Regenerate.
14240
14241 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
14242
14243         PR debug/45660
14244         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
14245         gen_type_die for function/method return type.
14246
14247 2010-09-14  Ira Rosen  <irar@il.ibm.com>
14248
14249         PR tree-optimization/45470
14250         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
14251         can throw an exception.
14252         * tree-vect-stmts.c (vectorizable_call): Likewise.
14253
14254 2010-09-14  DJ Delorie  <dj@redhat.com>
14255
14256         PR target/44749
14257         * config/mep/mep-protos.h (mep_save_register_info,
14258         mep_reinit_regs, mep_init_regs): Declare.
14259
14260         * config/mep/mep.c: Move all target definitions to the end of the
14261         file to avoid the need for duplicate declarations.
14262         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
14263         (mep_reorg_erepeat): Remove unused variables.
14264         (mep_expand_builtin): Likewise.
14265
14266         * config/mep/mep-pragma.c: Don't include rtl.h.
14267         (INVALID_REGNUM): New.
14268         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
14269         functions.
14270         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
14271         Avoid enum/integer math.
14272
14273 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
14274
14275         PR target/44749
14276         * config/mep/t-mep (GTM_H): Add insn-constants.h.
14277         * config/mep/mep.c (mep_conditional_register_usage): Take no
14278         parameters.
14279         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
14280         prototype.
14281         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
14282         call to mep_conditional_register_usage.
14283
14284 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14285
14286         PR debug/43937
14287         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
14288         the DECL as well.
14289
14290 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
14291
14292         PR rtl-optimization/45617
14293         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
14294         even if low N bits of X aren't known to be zero.
14295
14296 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
14297
14298         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
14299
14300         * config/i386/i386.c (initial_ix86_tune_features): Add
14301         X86_TUNE_VECTORIZE_DOUBLE.
14302         (ix86_units_per_simd_word): New.
14303
14304         * config/i386/i386.h (ix86_tune_indices): Add
14305         X86_TUNE_VECTORIZE_DOUBLE.
14306         (TARGET_VECTORIZE_DOUBLE): New.
14307         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
14308
14309 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
14310
14311         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
14312         (new_temp_expr_table): Allocate call_cnt vector.
14313         (free_temp_expr_table): Free it.
14314         (process_replaceable): Add call_cnt parm and set in vector.
14315         (find_replaceable_in_bb): Skip replacement if def/use span a call.
14316         (debug_ter): Dump call_cnt value, remove stderr uses.
14317
14318 2010-09-13  Jan Hubicka  <jh@suse.cz>
14319
14320         * tree.c (build_zero_cst): New.
14321         * tree.h (build_zero_cst): Declare.
14322         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
14323         (get_base_constructor): Break out from ...
14324         (fold_const_aggregate_ref): Here; handle empty constructors.
14325
14326 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14327
14328         * config/arm/arm.md: (define_attr "conds"): Update comment.
14329         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
14330         conds attribute to clob.
14331         (arm_sync_compare_and_swapsi): Likewise.
14332         (arm_sync_compare_and_swap<mode>): Likewise.
14333         (arm_sync_lock_test_and_setsi): Likewise.
14334         (arm_sync_lock_test_and_set<mode>): Likewise.
14335         (arm_sync_new_<sync_optab>si): Likewise.
14336         (arm_sync_new_nandsi): Likewise.
14337         (arm_sync_new_<sync_optab><mode>): Likewise.
14338         (arm_sync_new_nand<mode>): Likewise.
14339         (arm_sync_old_<sync_optab>si): Likewise.
14340         (arm_sync_old_nandsi): Likewise.
14341         (arm_sync_old_<sync_optab><mode>): Likewise.
14342         (arm_sync_old_nand<mode>): Likewise.
14343
14344 2010-09-13  Olivier Hainque  <hainque@adacore.com>
14345
14346         * fwprop.c (forward_propagate_and_simplify): Only attach a
14347         REG_EQUAL note to an insn if the destination is a register.
14348         * gcse.c (try_replace_reg): Likewise.
14349
14350 2010-09-13  Richard Guenther  <rguenther@suse.de>
14351
14352         PR tree-optimization/45611
14353         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
14354         (copy_ref_info): Likewise.
14355
14356 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
14357
14358         PR debug/45604
14359         PR debug/45419
14360         PR debug/45408
14361         * tree-pretty-print.c (dump_generic_node): Disregard top-level
14362         types of MEM_REF pointer types to the same type.
14363
14364 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
14365
14366         PR rtl-optimization/41087
14367         * ifcvt.c (noce_get_condition): Don't allow conditions with
14368         side-effects.
14369
14370 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
14371
14372         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14373         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
14374         * config/frv/frv.c (frv_register_move_cost): Make static. Change
14375         arguments type to reg_class_t. Add mode argument.
14376         (frv_memory_move_cost): New.
14377         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
14378
14379 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
14380
14381         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
14382         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
14383
14384 2010-09-10  Jan Hubicka  <jh@suse.cz>
14385
14386         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
14387
14388 2010-09-10  Richard Guenther  <rguenther@suse.de>
14389
14390         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
14391         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
14392         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
14393         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
14394         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
14395
14396 2010-09-10  Richard Guenther  <rguenther@suse.de>
14397
14398         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
14399         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
14400         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
14401         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
14402
14403 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
14404
14405         PR middle-end/45634
14406         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
14407         of string folding is of integral type.
14408
14409 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
14410
14411         * doc/invoke.texi (-x): Fix typo.
14412
14413 2010-09-10  Richard Guenther  <rguenther@suse.de>
14414
14415         PR debug/44115
14416         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
14417         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14418         Output DECL_DEBUG_EXPR.
14419         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14420         Input DECL_DEBUG_EXPR.
14421
14422 2010-09-10  Richard Guenther  <rguenther@suse.de>
14423
14424         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
14425         (build_index_type): Implement in terms of build_range_type.
14426         (build_range_type): Do not allow NULL_TREE type, improve
14427         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
14428         if we didn't hash.
14429         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
14430         create a distinct copy of the type.
14431
14432 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
14433
14434         * configure: Regenerated.
14435         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
14436
14437 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14438
14439         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
14440         * config/arm/cortex-a9-neon.md: New and partially generated.
14441         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
14442
14443 2010-09-10  Richard Guenther  <rguenther@suse.de>
14444
14445         * tree.h (build_index_2_type): Remove.
14446         * tree.c (build_index_2_type): Remove.
14447
14448 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
14449
14450         PR bootstrap/45630
14451         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
14452         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
14453         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
14454
14455 2010-09-10  Martin Jambor  <mjambor@suse.cz>
14456
14457         PR tree-optimization/44972
14458         * tree-sra.c: Include toplev.h.
14459         (build_ref_for_offset): Entirely reimplemented.
14460         (build_ref_for_model): New function.
14461         (build_user_friendly_ref_for_offset): New function.
14462         (analyze_access_subtree): Removed build_ref_for_offset check.
14463         (propagate_subaccesses_across_link): Likewise.
14464         (create_artificial_child_access): Use
14465         build_user_friendly_ref_for_offset.
14466         (propagate_subaccesses_across_link): Likewise.
14467         (ref_expr_for_all_replacements_p): Removed.
14468         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
14469         (sra_modify_expr): Use build_ref_for_model.
14470         (load_assign_lhs_subreplacements): Likewise.
14471         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
14472         checks for return values of build_ref_for_offset.
14473         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
14474         build_ref_for_offset.
14475         * ipa-prop.h: Include gimple.h
14476         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
14477         (ipa_analyze_indirect_call_uses): Update comment.
14478         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
14479         (IPA_PROP_H): Likewise.
14480
14481 2010-09-10  Martin Jambor  <mjambor@suse.cz>
14482
14483         PR tree-optimization/44972
14484         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
14485         calling build_ref_for_offset.
14486
14487 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14488
14489         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
14490         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
14491         * config/arm/arm-tune.md: Regenerate.
14492         * doc/invoke.texi (ARM Options): Document it.
14493
14494 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
14495
14496         * config/i386/i386.c: Include sched-int.h.
14497         (TARGET_SCHED_DISPATCH): Defined.
14498         (TARGET_SCHED_DISPATCH_DO): Defined.
14499         (DISPATCH_WINDOW_SIZE): Defined.
14500         (MAX_DISPATCH_WINDOWS): Defined.
14501         (MAX_INSN): Defined.
14502         (MAX_IMM): Defined.
14503         (MAX_IMM_SIZE): Defined.
14504         (MAX_IMM_32): Defined.
14505         (MAX_IMM_64): Defined.
14506         (MAX_LOAD): Defined.
14507         (MAX_STORE): Defined.
14508         (BIG): Defined.
14509         (dispatch_group): New.
14510         (num_allowable_groups): New.
14511         (group_name): New.
14512         (sched_insn_info_s): New.
14513         (dispatch_windows_s): New.
14514         (imm_info_s): New.
14515         (dispatch_window_list): New.
14516         (dispatch_window_list1): New.
14517         (get_mem_group): New.
14518         (is_cmp): New.
14519         (dispatch_violation): New.
14520         (is_branch): New.
14521         (is_prefetch): New.
14522         (init_window): New.
14523         (allocate_window): New.
14524         (init_dispatch_sched): New.
14525         (is_end_basic_block): New.
14526         (process_end_window): New.
14527         (allocate_next_window): New.
14528         (find_constant_1): New.
14529         (find_constant): New.
14530         (get_num_immediates): New.
14531         (has_immediate): New.
14532         (get_insn_path): New.
14533         (get_insn_group): New.
14534         (count_num_restricted): New.
14535         (fits_dispatch_window): New.
14536         (add_insn_window): New.
14537         (add_to_dispatch_window): New.
14538         (debug_dispatch_window_file): New.
14539         (debug_dispatch_window): New.
14540         (debug_insn_dispatch_info_file): New.
14541         (debug_ready_dispatch): New.
14542         (do_dispatch): New.
14543         (has_dispatch): New.
14544         * config/i386/i386.h (debug_ready_dispatch): Declared.
14545         (debug_dispatch_window): Declared.
14546         * config/i386/i386.opt (mdispatch-scheduler): New flag.
14547         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
14548         (TARGET_SCHED_DISPATCH_DO): New.
14549         * doc/tm.texi: Regererated.
14550         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
14551         ready_remove_first_dispatch
14552         (schedule_block): Call targetm.sched.dispatch and
14553         targetm.sched.dispatch_do.
14554         (sched_init): Call targetm.sched.dispatch and
14555         targetm.sched.dispatch_do.
14556         (ready_remove_first_dispatch): New.
14557         (number_in_ready): New.
14558         (get_ready_element): New.
14559         * hooks.c (hook_bool_rtx_int_false): New.
14560         (hook_void_rtx_int): New.
14561         * hooks.h (hook_bool_rtx_int_false): Declared.
14562         (hook_void_rtx_int): Declared.
14563         * sched-int.h (IS_DISPATCH_ON): Defined.
14564         (IS_CMP): Defined.
14565         (DISPATCH_VIOLATION): Defined.
14566         (FITS_DISPATCH_WINDOW): Defined.
14567         (DISPATCH_INIT): Defined.
14568         (ADD_TO_DISPATCH_WINDOW): Defined.
14569         (get_ready_element): Declared.
14570         (number_in_ready): Declared.
14571         * target.def (dispatch): Defined.
14572         (dispatch_do): Defined.
14573
14574 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
14575
14576         PR middle-end/45312
14577         * reload1.c (merge_assigned_reloads): Remove.
14578         (reload_as_needed): Don't call it.
14579
14580 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
14581
14582         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
14583         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14584         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14585
14586 2010-09-09  Matthias Klose  <doko@ubuntu.com>
14587
14588         PR bootstrap/43847
14589         * configure.ac (--enable-plugin): Enhance for cross builds.
14590         * configure: Regenerate.
14591
14592 2010-09-09  Jan Hubicka  <jh@suse.cz>
14593
14594         PR tree-optimization/45598
14595         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
14596         string folding is of integral type.
14597
14598 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
14599
14600         * configure.ac (gnu_indirect_function): New test.
14601         * configure: Rebuilt.
14602         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
14603         * defaults.h (IFUNC_ASM_TYPE): Provide default.
14604
14605         * doc/extend.texi (Function Attributes): Document ifunc.
14606         * varasm.c (do_assemble_alias): Deal with ifuncs too.
14607
14608 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
14609
14610         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
14611         epilogue instruction move.
14612
14613 2010-09-09  Jan Hubicka  <jh@suse.cz>
14614
14615         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
14616         command line to allow more partitions than input files.
14617
14618 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
14619
14620         PR middle-end/44554
14621         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
14622
14623 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
14624
14625         PR middle-end/40386
14626         * ira.c (pseudo_for_reload_consideration_p): Don't use
14627         flag_ira_share_spill_slots.
14628
14629 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14630
14631         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
14632         point zero operands that fit into a single GPR.
14633         (s390_preferred_reload_class): Ensure we only return general-purpose
14634         register classes.
14635         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
14636         floating-point zero operands into GPRs.
14637         ("*mov<mode>_64"): Likewise.
14638         ("mov<mode>"): Likewise using lhi.
14639
14640 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14641
14642         * config/s390/s390.c (s390_symref_operand_p): Return false for
14643         literal pool references.
14644         (s390_check_qrst_address): Update caller.
14645
14646 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
14647
14648         * config/i386/predicates.md (ext_register_operand): Check that
14649         SUBREG_REG is really a register before looking for REGNO.
14650         (reg_not_xmm0_operand): Handle SUBREGs correctly.
14651         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
14652
14653 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
14654
14655         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
14656         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
14657         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
14658         * print-rtl.c (print_rtx): Likewise.
14659         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
14660         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
14661         for ADDR_EXPR with non-addressable object.
14662         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
14663         (struct dw_val_struct): Add v.val_decl_ref.
14664         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
14665         Handle DW_OP_GNU_implicit_pointer.
14666         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
14667         (get_ref_die_offset_label): New function.
14668         (implicit_ptr_descriptor): New function.
14669         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
14670         (loc_descriptor): Likewise.
14671         (gen_variable_die): Put even definitions into decl_die_table.
14672         (resolve_addr_in_expr): Resolve still unresolved
14673         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
14674         return false.
14675         (dwarf2out_finish): Call output_location_lists after outputting
14676         .debug_info and .debug_abbrev instead of before.
14677
14678 2010-09-09  Roland McGrath  <roland@redhat.com>
14679
14680         * dwarf2out.c (DWARF_REF_SIZE): Define.
14681         (size_of_loc_descr): Use it for DW_OP_call_ref.
14682
14683 2010-09-09  Alan Modra  <amodra@gmail.com>
14684
14685         * doc/invoke.text: Reinstate mcmodel=medium.
14686         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
14687         CMODEL_MEDIUM as default.
14688         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
14689         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
14690         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
14691         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
14692
14693 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14694
14695         PR target/45250
14696         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
14697         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
14698         (builtin_longjmp): Likewise.
14699         (allocate_stack): Use hard_frame_pointer_rtx instead of
14700         frame_pointer_rtx.
14701         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
14702         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
14703         (pa_can_eliminate): Likewise.
14704         (TARGET_INTERNAL_ARG_POINTER): Define.
14705         (TARGET_CAN_ELIMINATE): Define.
14706         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
14707         pointer.
14708         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
14709         (pa_internal_arg_pointer, pa_can_eliminate,
14710         pa_initial_elimination_offset): New.
14711         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
14712         (HARD_FRAME_POINTER_REGNUM): Set to register three.
14713         (INITIAL_FRAME_POINTER_OFFSET): Delete.
14714         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
14715         Define.
14716         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
14717         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
14718         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
14719         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
14720         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
14721         new soft frame pointer.
14722         * config/pa/pa64-regs.h: Likewise.
14723
14724 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
14725
14726         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
14727         numerical constant.
14728         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
14729
14730 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
14731
14732         PR debug/45531
14733         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
14734
14735 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
14736
14737         PR debug/45419
14738         PR debug/45408
14739         * tree-pretty-print.c (dump_generic_node): Disregard top-level
14740         qualifiers in otherwise equal MEM_REF pointer types.
14741         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
14742         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
14743
14744 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14745
14746         PR target/44392
14747         * config/arm/arm.md (bswapsi2): Handle condition correctly
14748         for armv6 and optimize_size.
14749
14750 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14751
14752         PR other/18555
14753         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
14754
14755 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
14756
14757         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
14758         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
14759         ix86_expand_strlen, legitimate_pic_address_disp_p,
14760         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
14761         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
14762         ix86_check_movabs, ix86_secondary_memory_needed): Change function
14763         prototype to bool.
14764         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
14765         return_in_memory_ms_64, ix86_check_movabs,
14766         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
14767         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
14768         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
14769         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
14770         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
14771         ix86_secondary_memory_needed): Change to bool.  Return
14772         "true" and "false" values.
14773         * config/i386/i386.md: Return "true" and "false" values.
14774
14775 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14776
14777         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14778         run_expensive_tests.
14779
14780 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14781
14782         * toplev.c (output_stack_usage): Use lbasename instead of basename.
14783
14784 2010-09-08  Martin Jambor  <mjambor@suse.cz>
14785
14786         PR other/45443
14787         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
14788         at -O3.
14789
14790 2010-09-08  Richard Guenther  <rguenther@suse.de>
14791
14792         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
14793         (visit): Adjust.
14794         (iterative_hash_gimple_type): Likewise.
14795         (gimple_type_hash): Likewise.
14796         (gimple_register_type): Likewise.
14797         (print_gimple_types_stats): Likewise.
14798         (free_gimple_type_tables): Likewise.
14799
14800 2010-09-08  Michael Matz  <matz@suse.de>
14801
14802         PR tree-optimization/43430
14803         * tree-vect-stmts.c (vectorizable_condition): Support multiple
14804         copies for conditional statements if it's not part of a reduction.
14805
14806 2010-09-08  Michael Matz  <matz@suse.de>
14807
14808         PR tree-optimization/33244
14809         * tree-ssa-sink.c (statement_sink_location): Don't sink into
14810         empty loop latches.
14811
14812 2010-09-08  Richard Guenther  <rguenther@suse.de>
14813
14814         PR tree-optimization/45578
14815         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
14816         Be more careful when transfering alignment information to
14817         the new induction variable.
14818         (copy_ref_info): Likewise.
14819
14820 2010-09-08  Richard Guenther  <rguenther@suse.de>
14821
14822         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
14823         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
14824
14825 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
14826
14827         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
14828         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
14829
14830 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
14831
14832         PR doc/45587
14833         * doc/md.texi: Fixed modes on several standard pattern names.
14834
14835 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
14836
14837         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
14838         (ashl<mode>3): ...this.
14839         (loongson_psra<V_suffix>): Rename to...
14840         (ashr<mode>3): ...this.
14841         (loongson_psrl<V_suffix>): Rename to...
14842         (lshr<mode>3): ...this.
14843         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
14844         (CODE_FOR_loongson_psllw): Define.
14845         (CODE_FOR_loongson_psrlh): Define.
14846         (CODE_FOR_loongson_psrlw): Define.
14847         (CODE_FOR_loongson_psrah): Define.
14848         (CODE_FOR_loongson_psraw): Define.
14849
14850 2010-09-07  Richard Henderson  <rth@redhat.com>
14851
14852         * tree-vect-data-refs.c: Include tm_p.h.
14853         * Makefile.in (tree-vect-data-refs.o): Update deps.
14854         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
14855         Move delarations outside #ifdef RTX_CODE.
14856
14857 2010-09-07  Richard Henderson  <rth@redhat.com>
14858
14859         * final.c (rest_of_handle_final): Unconditionally do
14860         output_function_exception_table before assemble_end_function.
14861
14862 2010-09-07  Jan Hubicka  <jh@suse.cz>
14863
14864         * tree-inline.c (tree_inlinable_function_p): Do not test
14865         DECL_REPLACEABLE_P.
14866         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
14867         update_callee_keys, cgraph_decide_inlining): Test function availability.
14868         * cif-code.def (OVERWRITABLE): New code.
14869
14870 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
14871             Jack Howarth  <howarth@bromo.med.uc.edu>
14872
14873         PR target/36502
14874         PR target/42313
14875         PR target/44651
14876         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
14877         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
14878         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
14879         MAX macro.
14880
14881 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14882
14883         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
14884         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
14885
14886 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14887
14888         * config.gcc: Don't append t-android for Android targets.
14889
14890         * config/t-android: Removed.
14891
14892 2010-09-07  Richard Henderson  <rth@redhat.com>
14893
14894         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
14895         * doc/tm.texi.in: Add doc marker.
14896         * doc/tm.texi: Rebuild.
14897         * except.c (switch_to_exception_section): Always build.
14898         (output_one_function_exception_table): Move section switch,
14899         personality output, and label output ...
14900         (output_function_exception_table): ... here.  Use the new
14901         personality hook.
14902
14903         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
14904         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
14905         TARGET_ASM_INIT_SECTIONS): New.
14906         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
14907         make static.
14908         (TARGET_ASM_UNWIND_EMIT): Update to match.
14909         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
14910
14911         * config/arm/arm.c (arm_asm_emit_except_personality): New.
14912         (arm_asm_init_sections): New.
14913         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
14914
14915 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14916
14917         * config/arm/arm.md: Remove unused variable.
14918
14919 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
14920
14921         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14922         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
14923         (m32r_memory_move_cost): New function.
14924
14925 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
14926
14927         * config.gcc: Append t-android for Android targets.
14928
14929         * config/t-android: New.
14930
14931 2010-09-07  Richard Henderson  <rth@redhat.com>
14932
14933         * target.def (unwind_emit_before_insn): New hook.
14934         * doc/tm.texi.in: Add @hook marker for it.
14935         * doc/tm.texi: Rebuild.
14936         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
14937
14938 2010-09-07  Martin Jambor  <mjambor@suse.cz>
14939
14940         PR fortran/43665
14941         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
14942         are any type attributes.
14943
14944 2010-09-07  Jan Hubicka  <jh@suse.cz>
14945
14946         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
14947         array_ref_low_bound in string access folding.
14948
14949 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
14950
14951         PR target/45206
14952         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
14953         eh_return fixup sequence.
14954
14955 2010-09-07  Jan Hubicka  <jh@suse.cz>
14956
14957         * gimple-fold.c (maybe_fold_reference): Verify that operand is
14958         gimple_min_invariant.
14959
14960 2010-09-07  Richard Guenther  <rguenther@suse.de>
14961
14962         PR middle-end/45569
14963         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
14964         nor CONSTRUCTOR can trap.
14965         * tree-complex.c (update_complex_assignment): Update EH info.
14966
14967 2010-09-07  Richard Guenther  <rguenther@suse.de>
14968
14969         PR middle-end/45569
14970         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
14971         * passes.c (execute_function_todo): Do not verify anything if
14972         we saw errors.
14973
14974 2010-09-07  Richard Guenther  <rguenther@suse.de>
14975
14976         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
14977
14978 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
14979
14980         PR target/43137
14981         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
14982         New define_mode_attrs.
14983         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
14984         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
14985         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
14986         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
14987         Remove pool_range attribute.
14988         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
14989         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
14990         pool_range and neg_pool_range attributes.
14991         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
14992         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
14993         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
14994
14995 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14996
14997         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
14998         check glibc.
14999
15000 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
15001
15002         PR target/22152
15003         * config/i386/mmx.md (*mov<mode>_internal_rex64,
15004         *mov<mode>_internal_avx, *mov<mode>_internal,
15005         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
15006         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
15007
15008 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
15009
15010         * c-typeck.c (do_warn_double_promotion): Remove.
15011         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
15012         Objective-C++ too.
15013
15014 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
15015
15016         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
15017         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
15018         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
15019         argument type to reg_class_t. Change result type to bool.
15020         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
15021
15022 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
15023
15024         PR libobjc/19850
15025         * gthr-posix.h (__gthread_objc_thread_detach): Use
15026         _objc_thread_attribs when detaching a thread.
15027         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
15028
15029 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15030
15031         PR target/45524
15032         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
15033         * configure: Regenerated.
15034
15035 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15036
15037         * combine.c (try_combine): Set subst_low_luid to i0.
15038
15039 2010-09-06  Richard Guenther  <rguenther@suse.de>
15040
15041         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
15042         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
15043         (build_aligned_type): Declare.
15044         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
15045         (check_aligned_type): New function.
15046         (build_aligned_type): Likewise.
15047         * expr.c (expand_assignment): Handle misaligned stores via
15048         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
15049         (expand_expr_real_1): Likewise.
15050         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
15051         * tree-vect-stmts.c (vectorizable_store): Do not build
15052         MISALIGNED_INDIRECT_REF but initialize alignment information.
15053         (vectorizable_load): Likewise.
15054         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
15055         handling.
15056         * cfgexpand.c (expand_debug_expr): Likewise.
15057         * dwarf2out.c (loc_list_from_tree): Likewise.
15058         * fold-const.c (maybe_lvalue_p): Likewise.
15059         (operand_equal_p): Likewise.
15060         (build_fold_addr_expr_with_type_loc): Likewise.
15061         * gimplify.c (gimplify_addr_expr): Likewise.
15062         (gimplify_expr): Likewise.
15063         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15064         (verify_gimple_assign_single): Likewise.
15065         * tree-dump.c (dequeue_and_dump): Likewise.
15066         (tree_could_trap_p): Likewise.
15067         * tree-predcom.c (ref_at_iteration): Likewise.
15068         * tree-pretty-print.c (dump_generic_node): Likewise.
15069         (op_code_prio): Likewise.
15070         (op_symbol_code): Likewise.
15071         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
15072         * tree-ssa-loop-im.c (for_each_index): Likewise.
15073         (gen_lsm_tmp_name): Likewise.
15074         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15075         (find_interesting_uses_address): Likewise.
15076         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15077         * tree-ssa-operands.c (get_expr_operands): Likewise.
15078         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15079         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15080         (ao_ref_init_from_vn_reference): Likewise.
15081         * tree.c (staticp): Likewise.
15082         (build1_stat): Likewise.
15083         (reference_alias_ptr_type): Likewise.
15084         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15085         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
15086         MISALIGNED_INDIRECT_REF handling.
15087
15088 2010-09-06  Richard Guenther  <rguenther@suse.de>
15089
15090         PR tree-optimization/45534
15091         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
15092         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
15093         on the target.
15094         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
15095         valid on the target.
15096
15097 2010-09-06  Andreas Schwab  <schwab@redhat.com>
15098
15099         * configure.ac: Quote argument of AC_MSG_WARN.
15100         * configure: Regenerate.
15101
15102 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
15103
15104         * sel-sched.c (move_cond_jump): Correct arguments to
15105         maybe_tidy_empty_bb.
15106         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
15107
15108 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
15109
15110         PR rtl-optimization/44919
15111         * sel-sched.c (move_cond_jump): Remove assert, check that
15112         the several blocks case can only happen with mutually exclusive
15113         insns instead.  Rewrite the movement code to support moving through
15114         several basic blocks.
15115
15116 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
15117
15118         * config/i386/i386.md (iptrsize): New mode attribute.
15119         (tp_seg): Ditto.
15120         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
15121         mode iterator.
15122         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
15123         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
15124         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
15125         (stack_tls_protect_set_<mode>): Ditto from
15126         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
15127         of thread base pointer load.
15128         (stack_tls_protect_test_<mode>): Ditto from
15129         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
15130         of thread base pointer load.
15131         (stack_protect_set): Rewrite using indirect functions.
15132         (stack_protect_test): Ditto.
15133         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
15134         (ix86_print_operand): Handle '@'.
15135
15136 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
15137
15138         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
15139         MINUS_EXPR.
15140
15141 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
15142
15143         * doc/invoke.texi: Document -Wdouble-promotion.
15144         * c-typeck.c (convert_arguments): Check for implicit conversions
15145         from float to double.
15146         (do_warn_double_promotion): New function.
15147         (build_conditional_expr): Use it.
15148         (build_binary_op): Likewise.
15149
15150 2010-09-05  Richard Guenther  <rguenther@suse.de>
15151
15152         PR tree-optimization/45535
15153         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
15154         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
15155         dereferencing it.
15156         (indirect_refs_may_alias_p): Likewise.
15157
15158 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
15159
15160         * config/sh/sh.c (sh_option_override): Make static.
15161         Adjust comments.  Declare.
15162         (sh_function_value_regno_p): Likewise.
15163         (sh_register_move_cost): Modify the arguments, make static.
15164         Adjust comments.  Declare.
15165         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
15166         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15167         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
15168         REGISTER_MOVE_COST): Delete.
15169         * config/sh/sh-protos.h (sh_override_options): Delete.
15170         (sh_register_move_cost): Delete.
15171         (sh_function_value_regno_p): Delete.
15172
15173 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
15174
15175         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
15176         m32r_function_value_regno_p): New functions.
15177         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15178         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
15179         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
15180         FUNCTION_VALUE_REGNO_P): Remove.
15181
15182 2010-09-04  Jan Hubicka  <jh@suse.cz>
15183
15184         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
15185         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
15186         fold_read_from_constant_string.
15187
15188         * gimple.h (canonicalize_constructor_val): Declare.
15189         * gimple-fold.c (canonicalize_constructor_val): New function.
15190         (get_symbol_constant_value):Use it.
15191         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
15192
15193 2010-09-04  Jan Hubicka  <jh@suse.cz>
15194
15195         * tree-switch-conversion.c (build_one_array): Set constructor to be
15196         static.
15197         * varpool.c (varpool_finalize_decl): Compute const_value_known.
15198
15199 2010-09-04  Richard Guenther  <rguenther@suse.de>
15200
15201         PR bootstrap/45519
15202         * tree-flow.h (force_gimple_operand_1): Declare.
15203         (force_gimple_operand_gsi_1): Likewise.
15204         * gimplify.c (force_gimple_operand_1): New worker taking a
15205         gimple predicate for ...
15206         (force_gimple_operand): ... which now wraps it.
15207         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
15208         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
15209         last change.
15210         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
15211         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
15212         (create_mem_ref): Likewise.
15213
15214 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
15215
15216         * config/i386/predicates.md (sse_reg_operand): New predicate.
15217         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
15218         predicate for operand 1.
15219         (XFmode push splitter): Use fp_register_operand predicate
15220         for operand 1.
15221         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
15222         (SF-DF float_extend push splitter): Add reload_completed insn
15223         predicate.
15224         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
15225         MODEF mode macro.  Add reload_completed insn predicate.
15226
15227 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
15228
15229         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
15230         (struct df_extract_ref): Remove.
15231         (union df_ref_d): Remove extract_ref member.
15232         (df_ref_create): Remove last three arguments.
15233         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
15234         * df-scan.c (df_ref_record): Remove last three arguments, do not
15235         pass them to df_ref_create_structure.
15236         (df_uses_record): Remove first and last three arguments.  Replace
15237         first argument with DF_REF_REGULAR, adjust calls to remove the
15238         width, offset and mode.  Always call recursively on the second
15239         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
15240         (df_ref_create_structure): Remove first argument.
15241         (struct df_scan_problem_data): Remove ref_extract_pool.
15242         (df_scan_free_internal): Do not free it.
15243         (df_scan_alloc): Do not allocate it.
15244         (df_ref_create): Remove last three arguments, do not pass them to
15245         df_ref_create_structure.
15246         (df_free_ref): Remove DF_REF_EXTRACT case.
15247         (df_notes_rescan): Adjust call to df_uses_record.
15248         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
15249         Remove DF_REF_EXTRACT case.
15250         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
15251         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
15252         and SUBREG definitions.
15253         (df_get_conditional_uses): Remove references to width/offset/mode,
15254         adjust call to df_ref_create_structure.
15255         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
15256         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
15257         calls to df_uses_record and df_ref_record.
15258         * fwprop.c (update_df): Remove references to width/offset/mode,
15259         adjust call to df_ref_create.
15260
15261 2010-09-03  Jan Hubicka  <jh@suse.cz>
15262
15263         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
15264         (build_cdtor_fns): Update use of build_cdtor.
15265
15266 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
15267
15268         * doc/options.texi (SeparateAlias): Document.
15269         * opt-functions.awk (switch_flags): Handle SeparateAlias.
15270         * opth-gen.awk: Generate enumeration names for options marked
15271         SeparateAlias, but not for those marked Ignore.
15272         * opts-common.c (generate_canonical_option): Don't output separate
15273         argument for options marked CL_SEPARATE_ALIAS.
15274         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
15275         * opts.h (CL_SEPARATE_ALIAS): New.
15276         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15277         CL_COMMON): Adjust definitions.
15278         * config/i386/darwin.opt, config/mips/sde.opt: New.
15279         * common.opt (fdump-final-insns): New.
15280         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
15281         i386/darwin.opt.
15282         (mips*-sde-elf*): Add mips/sde.opt.
15283         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
15284         -mno-data-in-code and -mcode-xonly here.
15285         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
15286         * gcc.c (option_map): Add "j" to --dump entry.
15287         (translate_options): Don't translate -d to -foutput-class-dir= here.
15288
15289 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
15290
15291         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
15292         DR_IS_WRITE.
15293         (compute_all_dependences): Same.
15294         (create_rdg_edge_for_ddr): Same.
15295         * tree-data-ref.h (DR_IS_WRITE): New.
15296         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
15297         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
15298         (write_memrefs_written_at_least_once): Same.
15299         * tree-predcom.c (suitable_component_p): Same.
15300         (determine_roots_comp): Same.
15301         (execute_load_motion): Same.
15302         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
15303         (vect_enhance_data_refs_alignment): Same.
15304         (vect_analyze_group_access): Same.
15305
15306 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
15307
15308         PR testsuite/42843
15309         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
15310         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
15311
15312 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
15313
15314         * dwarf2out.c (file scope): Remove #if0'd code.
15315         (gen_subprogram_die): Same.
15316
15317 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
15318
15319         PR middle-end/45484
15320         * dwarf2out.c (flush_queued_reg_saves): Rename to...
15321         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
15322         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
15323         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
15324         * config/i386/i386.c (output_set_got): Call it.
15325
15326 2010-09-03  Michael Matz  <matz@suse.de>
15327
15328         PR middle-end/45415
15329         * tree-sra.c (sra_modify_assign): If we modify the statement,
15330         say so.
15331
15332         * tree-ssa.c (verify_ssa): Check number of operands and links
15333         per statement to agree.
15334
15335 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
15336             Iain Sandoe  <iains@gcc.gnu.org>
15337
15338         PR target/45476
15339         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
15340         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
15341         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
15342
15343 2010-09-03  Richard Guenther  <rguenther@suse.de>
15344
15345         * lto-streamer-out.c (output_function): Output function
15346         start and end loci.
15347         * lto-streamer-in.c (input_function): Input function start
15348         and end loci.
15349
15350 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15351
15352         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
15353         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
15354         * configure: Regenerate.
15355         * aclocal.m4: Regenerate.
15356
15357 2010-09-03  Jan Hubicka  <jh@suse.cz>
15358
15359         PR lto/44812
15360         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
15361         on functions/variables in other partition.
15362
15363 2010-09-03  Jan Hubicka  <jh@suse.cz>
15364
15365         * cgraph.h (struct varpool_node): Add const_value_known.
15366         (varpool_decide_const_value_known): Declare.
15367         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
15368         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
15369         (input_varpool_node): Restore const_value_known.
15370         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
15371         initializer folding.
15372         * ipa.c (ipa_discover_readonly_nonaddressable_var,
15373         function_and_variable_visibility): Compute const_value_known.
15374         * gimple-fold.c (get_symbol_constant_value): Use varpool for
15375         initializer folding.
15376         * varpool.c (varpool_decide_const_value_known): New function.
15377
15378 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
15379
15380         * config/i386/i386.md: Remove empty preparation statements
15381         from splitters.
15382
15383 2010-09-03  Jan Hubicka  <jh@suse.cz>
15384
15385         * passes.c (rest_of_decl_compilation): Do not add local vars into
15386         varpool.
15387         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
15388         static or extern vars are in varpool.
15389         (varpool_finalize_decl): Sanity check that only static vars are
15390         finalized.
15391
15392 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
15393
15394         PR debug/45500
15395         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
15396         not just generic vectors with BLKmode.
15397
15398 2010-09-03  Richard Guenther  <rguenther@suse.de>
15399
15400         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
15401         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
15402         * tree.h (TMR_SYMBOL): Remove.
15403         (TMR_BASE, TMR_OFFSET): Adjust.
15404         (TMR_INDEX2): New.
15405         * alias.c (ao_ref_from_mem): Use TMR_BASE.
15406         * builtins.c (get_object_alignment): Merge TMR_BASE and
15407         TMR_SYMBOL handling.
15408         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
15409         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
15410         handling.  Also allow TARGET_MEM_REF as base address.
15411         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
15412         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
15413         base.  Gimplify TMR_INDEX2.
15414         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
15415         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15416         (get_addr_base_and_unit_offset): Likewise.
15417         * tree-eh.c (tree_could_trap_p): Likewise.
15418         * tree-pretty-print.c (dump_generic_node): Likewise.
15419         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
15420         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
15421         base to index2.
15422         (get_address_description): Reconstruct addres description
15423         from merged TMR_BASE and TMR_INDEX2.
15424         (maybe_fold_tmr): Fold propagated addresses.
15425         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
15426         MEM_REF and TARGET_MEM_REF paths.
15427         (indirect_refs_may_alias_p): Likewise.
15428         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
15429         instead of TMR_SYMBOL.
15430         * tree-ssa-operands.c (get_tmr_operands): Simplify.
15431         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
15432         according to changes ...
15433         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
15434         Split TARGET_MEM_REF into two fields plus the base.
15435         * tree.c (mem_ref_offset): Simplify.
15436         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
15437         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
15438         Strip NOPs when folding MEM_REF addresses.
15439         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
15440         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
15441         (fold_gimple_assign): ... not here.
15442
15443 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
15444
15445         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
15446         * config/mips/mips.c (mips_shift_truncation_mask): New function.
15447         (TARGET_SHIFT_TRUNCATION_MASK): Define.
15448
15449 2010-09-02  Richard Henderson  <rth@redhat.com>
15450
15451         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
15452         instead of readelf in the test.
15453         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
15454         in the .debug_frame section for coff targets.
15455         * configure: Rebuild.
15456
15457 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
15458
15459         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
15460         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
15461         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
15462         (m32c_class_likely_spilled_p): Make static. Change argument type to
15463         reg_class_t. Change result type to bool.
15464
15465 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
15466
15467         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
15468         to convert (double)(long) into a single FRIZ instruction or not
15469         when -ffast-math is used.
15470
15471         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
15472         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
15473         or FRIZ instruction if -ffast-math.
15474         * config/rs6000/rs6000.md (friz): Ditto.
15475
15476         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
15477
15478 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
15479
15480         * opth-gen.awk (quote, comma): Remove unused variables.
15481
15482 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
15483
15484         * arm.c (arm_override_options): Correct fall-back code to use
15485         SUBTARGET_CPU_DEFAULT.
15486
15487 2010-09-02  Julian Brown  <julian@codesourcery.com>
15488
15489         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
15490         unspecs.
15491         (vcond<mode>, vcondu<mode>): New expanders.
15492         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
15493         comparisons with zero.
15494         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
15495         * config/arm/constraints.md (Dz): New constraint.
15496
15497 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
15498
15499         * target.def (class_likely_spilled_p): New hook.
15500         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
15501         * doc/tm.texi: Regenerate.
15502         * targhooks.c (default_class_likely_spilled_p): New function.
15503         * targhooks.h (default_class_likely_spilled_p): Declare.
15504         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
15505         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
15506         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
15507         Use fixed_reg_set instead of fixed_regs.
15508         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
15509         * calls.c (avoid_likely_spilled_reg): Ditto.
15510         * ira-conflicts.c (ira_build_conflicts): Ditto.
15511         * ira.c (update_equiv_regs): Ditto.
15512         * mode-switching.c (create_pre_exit): Ditto.
15513         * regmove.c (find_matches): Ditto.
15514         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
15515         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
15516         (small_register_class_p): New inline function.
15517         (push_secondary_reload, find_reusable_reload, find_reloads): Use
15518         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
15519
15520         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
15521         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
15522         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
15523
15524 2010-09-02  Richard Guenther  <rguenther@suse.de>
15525
15526         PR tree-optimization/44937
15527         PR tree-optimization/45412
15528         * ipa-split.c (split_function): Properly remove PHI nodes.
15529
15530 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
15531
15532         * opts.h (struct cl_option): Add warn_message field.
15533         (struct cl_decoded_option): Add warn_message field.
15534         * doc/options.texi (Ignore, Warn): Document.
15535         * opt-functions.awk (needs_state_p): Don't consider aliases or
15536         ignored options to need state saved.
15537         * optc-gen.awk: Handle Warn and Ignore.
15538         * opth-gen.awk: Output OPT_SPECIAL_ignore.
15539         * opts-common.c (decode_cmdline_option): Set warn_message field.
15540         Handle ignored options.
15541         (decode_cmdline_options_to_array, generate_option,
15542         generate_option_input_file): Set warn_message field.
15543         (read_cmdline_option): Generate warnings from warn_message field.
15544         Handle ignored options.
15545         * common.opt (Wunreachable-code, fargument-alias,
15546         fargument-noalias, fargument-noalias-global,
15547         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
15548         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
15549         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
15550         ftree-salias): Mark Ignore.
15551         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
15552         -mintel-syntax and -mno-intel-syntax here.
15553         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
15554         using Warn.
15555         * opts.c (common_handle_option): Don't handle options marked as
15556         ignored.
15557         (enable_warning_as_error): Handle ignored options.
15558
15559 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
15560
15561         PR driver/44076
15562         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
15563         alias_target fields.
15564         * opt-functions.awk (opt_sanitized_name): Don't handle
15565         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
15566         * optc-gen.awk: Generate alias fields.
15567         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
15568         Don't generate such constants for aliases.
15569         * opts-common.c (generate_canonical_option): New.
15570         (decode_cmdline_option): Handle aliases.  Use
15571         generate_canonical_option for known options instead of copying the
15572         input option text.
15573         * doc/options.texi (Alias): Document.
15574         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
15575         fstack-check, specs): Mark as aliases.
15576         * gcc.c (driver_handle_option): Canonicalize -L options to joined
15577         arguments.
15578         (driver_handle_option): Don't handle OPT_specs.
15579         * opts.c (common_handle_option): Don't handle options marked as
15580         aliases.
15581         (enable_warning_as_error): Handle aliases.
15582         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
15583         OPT_Wlarger_than_eq.
15584         * tree-optimize.c (tree_rest_of_compilation): Use
15585         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
15586
15587 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
15588
15589         * config/i386/i386.md (nonmemory_operand): New mode attribute.
15590         (push memory peephole2): Macroize peepholes using SWI mode iterator.
15591         (move immediate to memory peephole2): Macroize peepholes using
15592         SWI124 mode iterator.
15593         (non-pairable NOT peephole2): Macroize peepholes using SWI124
15594         mode iterator.
15595         (simple lea add peephole2): Macroize peepholes using SWI48
15596         mode iterator.
15597         (simple lea mult peephole2): Ditto.
15598         (imul by 3,5,9 to lea peephole2): Ditto.
15599         (mov $-1, reg peephole2): Macroize peepholes using SWI248
15600         mode iterator.
15601         (imul $32bit_imm,mem,reg peephole2): Ditto.
15602         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
15603
15604 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
15605
15606         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
15607
15608 2010-09-02  Olivier Hainque  <hainque@adacore.com>
15609
15610         PR middle-end/44763
15611         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
15612         (allocno_priority_compare_func): Use it instead of a straight
15613         difference computation over priorities.
15614
15615 2010-09-02  Andi Kleen  <ak@linux.intel.com>
15616
15617         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
15618
15619 2010-09-02  Ira Rosen  <irar@il.ibm.com>
15620
15621         * tree-vectorizer.h (get_later_stmt): New function.
15622         (vect_analyze_data_ref_dependences): Add argument.
15623         * tree-vect-loop.c (vect_analyze_loop): Update call to
15624         vect_analyze_data_ref_dependences.
15625         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
15626         New function.
15627         (vect_analyze_data_ref_dependence): Add argument for basic block
15628         dependencies. Check dependencies in basic block vectorization.
15629         (vect_analyze_data_ref_dependences): Add argument and update call to
15630         vect_analyze_data_ref_dependences.
15631         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
15632         (vect_bb_vectorizable_with_dependencies): New.
15633         (vect_slp_analyze_bb): Check dependencies in basic block.
15634         (vect_schedule_slp_instance): Insert stores before the last store in
15635         SLP instance.
15636
15637 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
15638
15639         PR target/45476
15640         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
15641         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
15642
15643 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
15644
15645         PR middle-end/45458
15646         * bb-reorder.c (add_labels_and_missing_jumps): Treat
15647         bbs ending with throwing insns like blocks ending with a call.
15648         (fix_up_fall_thru_edges): Likewise.
15649
15650 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
15651
15652         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
15653         (m32c_function_arg_advance): Delete.
15654         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15655         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
15656         comments.  Take a const_tree and a bool.  Declare.
15657         (m32c_function_arg_advance): Likewise.
15658         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15659
15660 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
15661
15662         PR target/45476
15663         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
15664         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
15665         * config/i386/mingw32.h: ... here.
15666
15667 2010-09-01  Andi Kleen  <ak@linux.intel.com>
15668
15669         PR lto/45475
15670         * lto-streamer-in.c (lto_input_ts_target_option): Add.
15671         (lto_input_tree_pointers): Call lto_input_ts_target_option.
15672         * lto-streamer-out (lto_output_ts_target_option): Add.
15673         (lto_output_tree_pointers): Call lto_output_ts_target_option.
15674
15675 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
15676
15677         PR/target 45452
15678         * config/i386/cygwin.h: Change order of specified import libraries.
15679         * config/i386/mingw32.h: Likewise.
15680         * config/i386/t-cygwin: Likewise.
15681         * config/i386/t-mingw32: Likewise.
15682         * config/i386/t-mingw-w32: Likewise.
15683         * config/i386/t-mingw-w64: Likewise.
15684
15685 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15686
15687         * config/arm/neon-schedgen.ml (core): New type.
15688         (allCores): List of supported cores.
15689         (availability_table): Add supported cores.
15690         (collate_bypasses): Accept core as a parameter.
15691         (worst_case_latencies_and_bypasses): Accept core as a parameter.
15692         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
15693         and coreStr to get tune attribute and prefix for functional units.
15694         (emit_bypasses): Accept core name and use it.
15695         (calculate_per_core_availability_table): New.
15696         (filter_core): New.
15697         (calculate_core_availability_table): New.
15698         (main): Use calculate_core_availablity_table.
15699         * config/arm/cortex-a8-neon.md: Update copyright year.
15700         Regenerated from ml file and merged in.
15701         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
15702         cortex_a8_neon_mrc.
15703
15704 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
15705
15706         * Makefile.in (tree-switch-conversion.o): Update dependencies.
15707
15708 2010-09-01  Richard Guenther  <rguenther@suse.de>
15709
15710         * alias.c (ao_ref_from_mem): Adjust.
15711         * builtins.c (get_object_alignment): Likewise.
15712         * cfgexpand.c (expand_debug_expr): Likewise.
15713         * gimple.c (get_base_address): Likewise.
15714         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15715         (get_addr_base_and_unit_offset): Likewise.  Fix for
15716         both TMR_SYMBOL and TMR_BASE being set.
15717         * tree-eh.c (tree_could_trap_p): Likewise.
15718         * gimplify.c (gimplify_expr): Do not attempt to gimplify
15719         TMR_SYMBOL.  Always gimplify TMR_BASE.
15720         * tree-cfg.c (verify_types_in_gimple_reference): Verify
15721         TMR_BASE if there is a TMR_SYMBOL.
15722         * tree-pretty-print.c (dump_generic_node): Adjust.
15723         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
15724         (tree_mem_ref_addr): Likewise.
15725         (create_mem_ref_raw): Likewise.
15726         (move_fixed_address_to_symbol): Likewise.
15727         (create_mem_ref): Likewise.
15728         (dump_mem_address): Likewise.
15729         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
15730         Fix for both TMR_SYMBOL and TMR_BASE being set.
15731         (indirect_refs_may_alias_p): Likewise.
15732         * tree-ssa-operands.c (get_tmr_operands): Adjust.
15733         * tree.def (TARGET_MEM_REF): Adjust documentation.
15734
15735 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
15736
15737         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
15738         Rename from X86_TUNE_ADD_ESP_4.
15739         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
15740         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
15741         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
15742         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
15743         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
15744         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
15745         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
15746         * config/i386/i386.c (initial_ix86_tune_features)
15747         <X86_TUNE_SINGLE_POP>: Invert members.
15748         <X86_TUNE_DOUBLE_POP>: Ditto.
15749         <X86_TUNE_SINGLE_PUSH>: Ditto.
15750         <X86_TUNE_DOUBLE_PUSH>: Ditto.
15751         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
15752         No longer exported.
15753         (push peephole2 patterns): Macroize peepholes using P mode iterator.
15754         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
15755         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
15756         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
15757
15758 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
15759
15760         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
15761         a volatile LHS if the constructor has only one element.
15762
15763 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
15764
15765         PR bootstrap/45321
15766         * tree.c (stdarg_p): Make fntype parameter const.
15767         * tree.h (stdarg_p): Likewise.
15768         (function_args_iterator): Remove unused fntype field.
15769         (function_args_iter_init): Do not initialize fntype
15770         field.  Make fntype parameter const.
15771
15772 2010-09-01  Richard Guenther  <rguenther@suse.de>
15773
15774         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
15775         estimate.
15776         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
15777         (execute_vrp): Compute number of iteration estimates.
15778         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
15779         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
15780         * tree-data-ref.c (estimated_loop_iterations): Adjust.
15781         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
15782         Infer loop bounds from undefined behavior based on a new parameter.
15783         (estimate_numbers_of_iterations): Likewise.
15784         (scev_probably_wraps_p): Adjust.
15785         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
15786
15787 2010-09-01  Nick Clifton  <nickc@redhat.com>
15788
15789         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
15790         where appropriate.
15791         (xstormy16_legitimate_address_p): Use true and false instead of 1
15792         and 0.
15793         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
15794         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
15795         magic constant 2.
15796         (xstormy16_expand_call): Fix comment at start of function.
15797
15798 2010-09-01  Nick Clifton  <nickc@redhat.com>
15799
15800         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
15801         when pushing accumulator register.
15802         (rx_get_stack_layout): Always save call clobbered registers inside
15803         interrupt handlers.
15804         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
15805
15806 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
15807
15808         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
15809         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
15810
15811         * libgcc-std.ver (GCC_4.6.0): Define version.
15812
15813 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
15814
15815         * tree-nested.c (convert_all_function_calls): Iterate until after the
15816         sum of static chains in the nest doesn't change.
15817
15818 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
15819
15820         * config/m32c/m32c.c (classes_intersect): Remove.
15821         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
15822         reg_classes_intersect_p instead of classes_intersect.
15823         (class_can_hold_mode): Change arguments type from enum reg_class to
15824         reg_class_t.  Use reg_class_contents instead of class_contents.
15825         (m32c_register_move_cost): Make static. Change arguments type from
15826         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
15827         classes_intersect. Use reg_class_contents instead of class_contents.
15828         (m32c_memory_move_cost): Make static. Change arguments type from
15829         enum reg_class to reg_class_t.
15830         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15831         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15832         * config/m32c/m32c-protos.h (m32c_register_move_cost,
15833         m32c_memory_move_cost): Remove.
15834
15835 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
15836
15837         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
15838         (arm_function_arg): Delete.
15839         (arm_needs_doubleword_align): Take a const_tree.
15840         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15841         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
15842         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
15843         (arm_function_arg): Make static.  Take a const_tree and a bool.
15844         (arm_function_arg_advance): Likewise.
15845         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15846
15847 2010-08-31  Andi Kleen  <ak@linux.intel.com>
15848
15849         * common.opt (fwhopr=): Update for -fwhopr=jobserver
15850         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
15851         * lto-wrapper.c (run_gcc): Add jobserver mode.
15852         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
15853         argument.
15854
15855 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
15856
15857         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
15858         (popsi1): Ditto.
15859         (*popdi1_epilogue): Ditto.
15860         (*popsi1_epilogue): Ditto.
15861         (popsi, popdi peephole2 patterns): Update peepholes for changed
15862         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
15863
15864         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
15865         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
15866
15867         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
15868         (override_options): Do not initialize removed ix86_gen_pop1.
15869         (gen_pop): New static function.
15870         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
15871         (release_scratch_register_on_entry): Ditto.
15872         (ix86_restore_reg_using_pop): Ditto.
15873         (ix86_expand_epilogue): Ditto.
15874
15875 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
15876
15877         PR middle-end/45461
15878         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
15879
15880 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
15881
15882         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
15883         semicolons.
15884
15885 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15886
15887         * doc/extend.texi: Fix documentation of the return value of
15888         __builtin_choose_expr.
15889
15890 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
15891
15892         * config/v850/v850-protos.h (function_arg): Delete.
15893         * config/v850/v850.h (FUNCTION_ARG): Delete.
15894         (FUNCTION_ARG_ADVANCE): Move code to...
15895         * config/v850/v850.c (v850_function_arg_advance): ...here.
15896         (v850_function_arg): Make static.  Take a const_tree and a bool.
15897         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15898
15899 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
15900
15901         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
15902         these...
15903         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15904         ...and these...
15905         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
15906         ..to here..
15907         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
15908         ...and here.
15909         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15910
15911 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
15912
15913         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
15914         Delete.
15915         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
15916         * config/rx/rx.c (rx_function_arg_size): Make static.
15917         (rx_function_arg): Likewise.
15918         (rx_function_arg_advance): New function.
15919         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
15920
15921 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
15922
15923         * config/arm/arm.c (arm_override_options): Remove superfluous test.
15924         Fix indentation.
15925
15926 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
15927
15928         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
15929         (dwarf2out_decl) <CONST_DECL>: Likewise.
15930
15931 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
15932
15933         Stack usage support
15934         * common.opt (-fstack-usage): New option.
15935         * doc/invoke.texi (Debugging options): Document it.
15936         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
15937         allocate_dynamic_stack_space.
15938         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
15939         and propagate it to allocate_dynamic_stack_space.
15940         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
15941         * calls.c (initialize_argument_information): Pass TRUE as 4th
15942         argument to allocate_dynamic_stack_space.
15943         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
15944         to 1 when pushing a variable-sized argument onto the stack.  Pass
15945         TRUE as 4th argument to allocate_dynamic_stack_space.
15946         Update current_function_pushed_stack_size.
15947         (emit_library_call_value_1): Likewise.
15948         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
15949         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
15950         attempt to find an upper bound.  Remove redundant code for the
15951         SETJMP_VIA_SAVE_AREA case.
15952         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
15953         * function.h (struct stack_usage): New structure.
15954         (current_function_static_stack_size): New macro.
15955         (current_function_dynamic_stack_size): Likewise.
15956         (current_function_pushed_stack_size): Likewise.
15957         (current_function_dynamic_alloc_count): Likewise.
15958         (current_function_has_unbounded_dynamic_stack_size): Likewise.
15959         (current_function_allocates_dynamic_stack_space): Likewise.
15960         (struct function): Add new field 'su'.
15961         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
15962         add the value of the dynamic offset to the dynamic stack usage.
15963         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
15964         for variable-sized objects.
15965         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
15966         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
15967         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
15968         BUILT_IN_ALLOCA for variable-sized objects.
15969         * output.h (output_stack_usage): Declare.
15970         * toplev.c (stack_usage_file): New file pointer.
15971         (output_stack_usage): New function.
15972         (open_auxiliary_file): Likewise.
15973         (lang_dependent_init): Open file if flag_stack_usage is set.
15974         (finalize): Close file if stack_usage_file is not null.
15975         * tree.h (ALLOCA_FOR_VAR_P): New macro.
15976         * config/alpha/alpha.c (compute_frame_size): New function.
15977         (alpha_expand_prologue): Use it.
15978         (alpha_start_function): Likewise.
15979         (alpha_expand_epilogue): Likewise.  Set stack usage info.
15980         * config/i386/i386.c (ix86_expand_prologue): Likewise.
15981         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
15982         * config/mips/mips.c (mips_expand_prologue): Likewise.
15983         * config/pa/pa.c (hppa_expand_prologue): Likewise.
15984         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
15985         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
15986
15987 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
15988
15989         PR tree-optimization/45427
15990         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
15991         Handle the case that the exit is never taken correctly.
15992         (number_of_iterations_ne): Pass exit_must_be_taken to
15993         number_of_iterations_ne_max.
15994
15995 2010-08-30  Catherine Moore  <clm@codesourcery.com>
15996
15997         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
15998         Infer -mdspr2 for the the 74K.
15999
16000 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
16001
16002         PR debug/45419
16003         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
16004
16005         PR middle-end/45423
16006         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
16007         and TRUTH_{AND,OR,XOR}_EXPR.
16008         * c-parser.c (c_parser_omp_atomic): Handle boolean
16009         {PRE,POST}_{INC,DEC}REMENT.
16010
16011 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
16012
16013         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
16014         (function_arg): Delete.
16015         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
16016         (FUNCTION_INCOMING_ARG): Delete.
16017         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
16018         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
16019         and a bool.
16020         (function_arg): Rename to...
16021         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
16022         a bool.
16023         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
16024         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
16025         (TARGET_FUNCTION_INCOMING_ARG): Define.
16026
16027 2010-08-30  Richard Guenther  <rguenther@suse.de>
16028
16029         PR tree-optimization/21602
16030         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
16031         using points-to information.
16032
16033 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
16034
16035         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
16036
16037 2010-08-30  Richard Guenther  <rguenther@suse.de>
16038
16039         PR tree-optimization/45449
16040         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
16041         variables.
16042
16043 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
16044
16045         * opts.h (CL_ERR_NEGATIVE): Define.
16046         * opts.c (unknown_option_callback): Don't postpone warnings for
16047         options marked with CL_ERR_NEGATIVE.
16048         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
16049         for negative versions of CL_REJECT_NEGATIVE options.
16050
16051 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
16052
16053         * config/i386/i386.md (zero_extendsidi2_1): Rename from
16054         zero_extendsidi2_32.
16055         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
16056         using SWI12 mode iterator.
16057         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
16058         to define_insn_and_split pattern.
16059         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
16060         using SWI24 mode iterator.
16061         (*zero_extendqi<mode>2_and): Macroize insn from
16062         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
16063         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
16064         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
16065         SWI24 mode iterator.
16066         (*zero_extendqi<mode>2_movzbl): Ditto from
16067         *zero_extendqi{hi,si}2_movzbl.
16068         (extendsidi2_1): Rename from extendsidi2_32.
16069         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
16070         SWI12 mode iterator.
16071
16072 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
16073
16074         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
16075         general purpose registers.
16076         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
16077         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
16078         with general purpose registers and memory operands.  Add associated
16079         CCImode post-reload splitter.
16080         * config/ia64/div.md: Change BImode to CCImode throughout.
16081
16082 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
16083
16084         * config/ia64/ia64.md (cstorebi4): Fix thinko.
16085
16086 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
16087
16088         * config/picochip/picochip.c (reorder_var_tracking_notes): This
16089         function was dropping debug insns which caused PR45299.
16090
16091 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
16092
16093         * config/i386/sse.md (extsuffix): New code attribute.
16094         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
16095         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
16096         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
16097         and sse4_1_zero_extendv4qiv4si2.
16098         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
16099         and sse4_1_zero_extendv2qiv2di2.
16100         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
16101         and sse4_1_zero_extendv4hiv4si2.
16102         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
16103         and sse4_1_zero_extendv2hiv2di2.
16104         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
16105         and sse4_1_zero_extendv2siv2di2
16106
16107         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
16108         using any_extend code iterator.
16109         (*avx_<s>mulv8hi3_highpart): Macroize insn from
16110         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
16111         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
16112
16113         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
16114         gen_sse4_1_sign_extend* functions.
16115         (struct builtin_description bdesc_args): Ditto.
16116
16117 2010-08-27  Xinliang David Li  <davidxl@google.com>
16118
16119         PR/45422
16120         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
16121         (iv_ca_set_no_cp): Update used inv expr count.
16122         (iv_ca_set_cp): Ditto.
16123         (iv_ca_new): Initialize new member.
16124         (iv_ca_free): Free memory.
16125
16126 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
16127
16128         * config/sh/sh-protos.h (sh_function_arg): Delete.
16129         (sh_function_arg_advance): Delete.
16130         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
16131         (PASS_IN_REG_P): Eliminate cast.
16132         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
16133         const_tree and a bool.
16134         (sh_function_arg): Likewise.
16135         (sh_output_mi_thunk): Call sh_function_arg_advance) and
16136         sh_function_arg.
16137         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
16138
16139 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
16140             Kaz Kojima  <kkojima@gcc.gnu.org>
16141
16142         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
16143         when possible.
16144         (sh_expand_epilogue): Likewise.
16145         * config/sh/sh.md (movml_push_banked): New insn.
16146         (movml_pop_banked): Likewise.
16147
16148 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
16149
16150         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
16151         gen_regexp_oneof, gen_regexp_sequence): Use the string found
16152         in vector element 0 rather than the original string when there's
16153         only one element.
16154         (gen_regexp): Remove extra semicolon.
16155
16156         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
16157         thumb2_movsf_vfp): Set attribute "insn".
16158         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
16159         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
16160         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
16161         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
16162         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
16163         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
16164         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
16165         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
16166         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
16167         if_not_arith, if_arith_not, cond_move_not): Likewise.
16168
16169 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16170
16171         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
16172         New declaration.
16173         (rs6000_allocate_stack_temp): Ditto.
16174         (rs6000_expand_convert_si_to_sfdf): Ditto.
16175
16176         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
16177         line.  Update the options set if power6 or power7 server/embedded
16178         type options are used.  If we give a warning for no vsx under
16179         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
16180         (rs6000_allocate_stack_temp): New function to allocate a stack
16181         tempoary and adjust the address so it meets either REG+OFFSET or
16182         REG+REG addressing requirements.
16183         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
16184         that they can be used with the LFIWAX/LFIWZX instrucitons.
16185         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
16186         converting signed/unsigned SImode to either SFmode/DFmode.
16187
16188         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
16189         whether certain instructions can be generated.
16190         (TARGET_FCTIDZ): Ditto.
16191         (TARGET_STFIWX): Ditto.
16192         (TARGET_LFIWAX): Ditto.
16193         (TARGET_LFIWZX): Ditto.
16194         (TARGET_FCFIDS): Ditto.
16195         (TARGET_FCFIDU): Ditto.
16196         (TARGET_FCFIDUS): Ditto.
16197         (TARGET_FCTIDUZ): Ditto.
16198         (TARGET_FCTIWUZ): Ditto.
16199
16200         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
16201         (UNSPEC_FCTID): Ditto.
16202         (UNSPEC_LFIWAX): Ditto.
16203         (UNSPEC_LFIWZX): Ditto.
16204         (UNSPEC_FCTIWUZ): Ditto.
16205         (rreg): Use correct constraints.
16206         (SI_CONVERT_FP): New mode attribute for floating point conversion
16207         tests.
16208         (E500_CONVERT): Ditto.
16209         (lfiwax): New insns for converting from integer to floating point
16210         utilizing newer instructions.  Attempt to optimize conversions
16211         that come from memory so that we don't load the value into a GPR,
16212         spill it to the stack and reload it into a FPR.
16213         (floatsi<mode>2_lfiwax): Ditto.
16214         (floatsi<mode>2_lfiwax_mem): Ditto.
16215         (floatsi<mode>2_lfiwax_mem2): Ditto.
16216         (lfiwzx): Ditto.
16217         (floatunssi<mode>2_lfiwzx): Ditto.
16218         (floatunssi<mode>2_lfiwzx_mem): Ditto.
16219         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
16220         (floatdidf2_mem): Ditto.
16221         (floatunsdidf2_fcfidu): Ditto.
16222         (floatunsdidf2_mem): Ditto.
16223         (floatunsdisf2): Ditto.
16224         (floatunsdisf2_fcfidus): Ditto.
16225         (floatunsdisf2_mem): Ditto.
16226         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
16227         Use FCFID on 32-bit hosts that support it.
16228         (floatsidf2_internal): Ditto.
16229         (floatunssisf2): Ditto.
16230         (floatunssidf2): Ditto.
16231         (floatunssidf2_internal): Ditto.
16232         (floatsisf2): Ditto.
16233         (floatdidf2): Ditto.
16234         (floatdidf2_fpr): Ditto.
16235         (floatunsdidf2): Ditto.
16236         (floatdisf2): Ditto.
16237         (floatdisf2_fcfids): Ditto.
16238         (floatdisf2_internal1): Ditto.
16239         (fixuns_truncsfsi2): Delete, merge into common pattern for both
16240         SF/DF.  Add power7 support.
16241         (fix_truncsfsi2): Ditto.
16242         (fixuns_truncdfsi2): Ditto.
16243         (fixuns_truncdfdi2): Ditto.
16244         (fix_truncdfsi2): Ditto.
16245         (fix_truncdfsi2_internal): Ditto.
16246         (fix_truncdfsi2_internal_gfxopt): Ditto.
16247         (fix_truncdfsi2_mfpgpr): Ditto.
16248         (fctiwz): Ditto.
16249         (btruncdf2): Ditto.
16250         (btruncdf2_fpr): Ditto.
16251         (btructsf2): Ditto.
16252         (ceildf2): Ditto.
16253         (ceildf2_fpr): Ditto.
16254         (ceilsf2): Ditto.
16255         (floordf2): Ditto.
16256         (floordf2_fpr): Ditto.
16257         (floorsf2): Ditto.
16258         (rounddf2): Ditto.
16259         (rounddf2_fpr): Ditto.
16260         (roundsf2): Ditto.
16261         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
16262         (fix_trunc<mode>di2): Ditto.
16263         (fixuns_trunc<mode>si2): Ditto.
16264         (fixuns_trunc<mode>di2): Ditto.
16265         (fctiwz_<mode>): Ditto.
16266         (btrunc<mode>2): Ditto.
16267         (btrunc<mode>2_fpr): Ditto.
16268         (ceil<mode>2): Ditto.
16269         (ceil<mode>2_fpr): Ditto.
16270         (floor<mode>2): Ditto.
16271         (float<mode>2_fpr): Ditto.
16272         (round<mode>2): Ditto.
16273         (round<mode>2_fpr): Ditto.
16274         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
16275         (fixuns_trunc<mode>si2_stfiwx): Ditto.
16276         (fix_truncdfsi2_internal): Ditto.
16277         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
16278         converted value on stack, loaded into GPR, and then stored into
16279         the final destination.
16280         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
16281         FCTIDZ.
16282         (lrint<mode>di2): New insn, provide the lrint builtin functions.
16283         (ftruncdf2): Delete, unused.
16284         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
16285
16286         * config/rs6000/vsx.md (toplevel): Update copyright year.
16287         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
16288         (VSr3): Ditto.
16289
16290 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
16291             Jeremie Salvucci  <jeremie.salvucci@free.fr>
16292
16293         * gengtype.c (output_type_enum): Test the right union member.
16294
16295 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
16296
16297         PR target/41484
16298         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
16299         operands for operand 1.
16300         (sse4_1_extendv4qiv4si2): Ditto.
16301         (sse4_1_extendv2qiv2di2): Ditto.
16302         (sse4_1_extendv4hiv4si2): Ditto.
16303         (sse4_1_extendv2hiv2di2): Ditto.
16304         (sse4_1_extendv2siv2di2): Ditto.
16305         (sse4_1_zero_extendv8qiv8hi2): Ditto.
16306         (sse4_1_zero_extendv4qiv4si2): Ditto.
16307         (sse4_1_zero_extendv2qiv2di2): Ditto.
16308         (sse4_1_zero_extendv4hiv4si2): Ditto.
16309         (sse4_1_zero_extendv2hiv2di2): Ditto.
16310         (sse4_1_zero_extendv2siv2di2): Ditto.
16311         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
16312         (*sse4_1_extendv4qiv4si2): Ditto.
16313         (*sse4_1_extendv2qiv2di2): Ditto.
16314         (*sse4_1_extendv4hiv4si2): Ditto.
16315         (*sse4_1_extendv2hiv2di2): Ditto.
16316         (*sse4_1_extendv2siv2di2): Ditto.
16317         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
16318         (*sse4_1_zero_extendv4qiv4si2): Ditto.
16319         (*sse4_1_zero_extendv2qiv2di2): Ditto.
16320         (*sse4_1_zero_extendv4hiv4si2): Ditto.
16321         (*sse4_1_zero_extendv2hiv2di2): Ditto.
16322         (*sse4_1_zero_extendv2siv2di2): Ditto.
16323
16324 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
16325
16326         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
16327         (mips_function_arg): Delete.
16328         (mips_function_arg_boundary): Take a const_tree.
16329         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
16330         (mips_arg_info): Likewise.
16331         (mips_setup_incoming_varargs): Call mips_function_arg_advance
16332         instead of FUNCTION_ARG_ADVANCE.
16333         (mips_function_arg_advance): Adjust prototype.  Make static.
16334         (mips_function_arg): Likewise.
16335         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
16336         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
16337
16338 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
16339
16340         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
16341         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
16342         (function_arg): Delete.
16343         (function_arg_boundary): Take a const_tree.
16344         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
16345         (rs6000_spe_function_arg): Likewise.
16346         (rs6000_parm_start): Likewise.
16347         (rs6000_arg_size): Likewise.
16348         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
16349         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
16350         (rs6000_mixed_function_arg): Likewise.
16351         (function_arg): Rename to...
16352         (rs6000_function_arg): ...this.
16353         (function_arg_advance): Rename to...
16354         (rs6000_function_arg_advance_1): ...this
16355         (rs6000_function_arg_advance): New function.  Call it.
16356         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
16357         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
16358         (rs6000_function_value): Likewise.
16359         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
16360
16361 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16362
16363         * config/arm/arm.md (enabled): Test the value of arch_enabled
16364         rather than just using it.
16365
16366 2010-08-27  Olivier Hainque  <hainque@adacore.com>
16367             Eric Botcazou  <ebotcazou@adacore.com>
16368
16369         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
16370         cover all the possible offsets from this base.
16371         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
16372
16373 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
16374
16375         PR tree-optimization/44485
16376         * calls.c (flags_from_decl_or_type): For const or pure
16377         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
16378         together with ECF_CONST resp. ECF_PURE.
16379         * builtins.c (expand_builtin): Use flags_from_decl_or_type
16380         instead of querying flags directly.
16381         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
16382         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
16383
16384 2010-08-26  Richard Guenther  <rguenther@suse.de>
16385
16386         PR tree-optimization/45255
16387         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
16388         and externals are also invariant.
16389
16390 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
16391
16392         PR rtl-optimization/44858
16393         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
16394         newi2pat, make sure they don't affect newpat.
16395
16396         PR rtl-optimization/45400
16397         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
16398         SUBREG_REG if both modes are of MODE_INT class.
16399
16400 2010-08-25  Julian Brown  <julian@codesourcery.com>
16401
16402         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
16403         * config/arm/arm.md (generic_sched): No for Cortex-A5.
16404         (generic_vfp): Likewise.
16405         (cortex-a5.md): Include.
16406         * config/arm/cortex-a5.md: New.
16407
16408 2010-08-25  Richard Guenther  <rguenther@suse.de>
16409
16410         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
16411         * gimple.c (gimple_get_alias_set): Remove special handling
16412         for pointers.
16413
16414 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
16415
16416         PR middle-end/45355
16417         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
16418         dead_or_set_p when computing i0_feeds_i2_n.
16419
16420         * combine.c (find_split_point): Undo canonicalization of multiply-add
16421         to (minus x (mult)) when it seems likely that this will increase the
16422         chances of a split.
16423
16424 2010-08-25  Richard Guenther  <rguenther@suse.de>
16425
16426         PR lto/44562
16427         * lto-streamer.c (lto_record_common_node): Do not mess with
16428         TYPE_CANONICAL when not in lto.
16429         * gimple.c (gimple_register_type): Likewise.
16430
16431 2010-08-25  Richard Guenther  <rguenther@suse.de>
16432
16433         PR tree-optimization/45316
16434         * tree-ssa-pre.c (eliminate): Properly clean EH info.
16435
16436 2010-08-25  Richard Guenther  <rguenther@suse.de>
16437
16438         PR tree-optimization/45393
16439         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
16440         and clean EH info.  Avoid SSA update.
16441         (execute_cse_sincos): Cleanup the CFG if it has changed.
16442
16443 2010-08-25  Richard Guenther  <rguenther@suse.de>
16444
16445         PR middle-end/45379
16446         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
16447         TARGET_MEM_REF in alignment computation.
16448
16449 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
16450
16451         PR tree-optimization/45059
16452         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
16453         type conversions from newop{1,2}.  Assert t is a comparison and
16454         newop{1,2} after the stripping are gimple vals.
16455
16456 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
16457
16458         * config/arm/iterators.md (VU, SE, V_widen_l): New.
16459         (V_unpack, US): New.
16460         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
16461         (vec_unpack<US>_lo_<mode>): Likewise.
16462         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
16463         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16464         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
16465         (vec_widen_<US>mult_hi_<mode>): Likewise.
16466         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
16467         (neon_vec_<US>mult_hi_<mode>"): Likewise.
16468         (neon_unpack<US>_<mode>): Widening move intermediate step for
16469         vectorizing without -mvectorize-with-neon-quad.
16470         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
16471         for vectorizing without -mvectorize-with-neon-quad.
16472         * config/arm/predicates.md (vect_par_constant_high): Check for
16473         high-half lanes of a vector.
16474         (vect_par_constant_low): Check for low-half lanes of a vector.
16475
16476 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
16477
16478         * tree-if-conv.c (struct ifc_dr): New.
16479         (IFC_DR): New.
16480         (DR_WRITTEN_AT_LEAST_ONCE): New.
16481         (DR_RW_UNCONDITIONALLY): New.
16482         (memref_read_or_written_unconditionally): Use the cached values
16483         when possible.
16484         (write_memref_written_at_least_once): Same.
16485         (if_convertible_loop_p): Initialize and free DR->aux fields.
16486
16487 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
16488
16489         * gimple.c (gimple_could_trap_p_1): Not static anymore.
16490         Pass an extra bool parameter include_mem.
16491         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
16492         (gimple_assign_rhs_could_trap_p): Same.
16493         * gimple.h (gimple_could_trap_p_1): Declared.
16494         * tree-data-ref.h (same_data_refs_base_objects): New.
16495         (same_data_refs): New.
16496         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
16497         (write_memrefs_written_at_least_once): New.
16498         (ifcvt_memrefs_wont_trap): New.
16499         (operations_could_trap): New.
16500         (ifcvt_could_trap_p): New.
16501         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
16502         Gets a vector of data refs.
16503         (if_convertible_stmt_p): Same.
16504         (if_convertible_loop_p_1): New.
16505         (if_convertible_loop_p): Call if_convertible_loop_p_1.
16506
16507 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
16508
16509         * common.opt (ftree-loop-if-convert-stores): New flag.
16510         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
16511         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
16512         the created statement before GSI.
16513         (if_convertible_phi_p): Allow virtual phi nodes when
16514         flag_loop_if_convert_stores is set.
16515         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
16516         Do not handle types that do not match is_gimple_reg_type.
16517         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
16518         when flag_loop_if_convert_stores is set, as LHS can contain
16519         memory refs.
16520         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
16521         to if_convertible_gimple_assign_stmt_p.
16522         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
16523         (replace_phi_with_cond_gimple_assign_stmt): Renamed
16524         predicate_scalar_phi.  Do not handle virtual phi nodes.
16525         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
16526         Call predicate_scalar_phi.
16527         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
16528         just after the labels for flag_loop_if_convert_stores, otherwise
16529         insert the predicate in the end of the BB.
16530         (predicate_mem_writes): New.
16531         (combine_blocks): Call predicate_all_scalar_phis.  When
16532         flag_loop_if_convert_stores is set, call predicate_mem_writes.
16533         (tree_if_conversion): Call mark_sym_for_renaming when
16534         flag_loop_if_convert_stores is set.
16535         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
16536         flag_loop_if_convert_stores is set.
16537
16538 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
16539
16540         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
16541         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
16542         (pa_function_value): Make static.
16543         (override_options): Rename to...
16544         (pa_option_override): ...this. Make static.
16545         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
16546         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
16547         TARGET_OPTION_OVERRIDE): Define.
16548         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
16549         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
16550         Remove.
16551         * config/pa/pa-protos.h (override_options): Remove.
16552
16553 2010-08-24  Richard Guenther  <rguenther@suse.de>
16554
16555         PR middle-end/45379
16556         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
16557         if addr->index is NULL or zero.
16558         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
16559         TARGET_MEM_REF more properly.
16560         (indirect_ref_may_alias_decl_p): Likewise.
16561         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
16562         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
16563
16564 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
16565
16566         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
16567         (m32c_override_options): Rename to...
16568         (m32c_option_override): ...this. Make static.
16569         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
16570         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
16571         Remove.
16572         * config/m32c/m32c-protos.h (m32c_override_options,
16573         m32c_function_value_regno_p): Remove.
16574
16575 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
16576
16577         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
16578         Fix a typo in a previous commit.
16579
16580 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
16581
16582         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
16583         Pre-initialize innerloop_iters to one.
16584
16585 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
16586
16587         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
16588         existing static function global.
16589
16590         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
16591         is changed to global.
16592
16593         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
16594         may_be_nonaddressable_p on base, and don't collect this reference
16595         if the address of the base could not be taken.
16596
16597 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
16598
16599         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
16600         enable the compiler to autovectorize mathmetical functions for
16601         power7 using the Mathematical Acceleration Subsystem library.
16602
16603         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
16604         handle which vector math library we have.
16605         (rs6000_override_options): Add -mveclibabi=mass support.
16606         (rs6000_builtin_vectorized_libmass): New function to handle auto
16607         vectorizing math functions that are in the MASS library.
16608         (rs6000_builtin_vectorized_function): Call it.
16609
16610         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
16611         -mveclibabi=mass.
16612
16613 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16614
16615         PR boehm-gc/34544
16616         * gthr-posix.h (__gthread_active_init): Delete.
16617         (__gthread_active_p): Do activity check here.
16618         Don't include errno.h on hppa-hpux.  Update comment.
16619         * gthr-posix95.h (__gthread_active_init): Delete.
16620         (__gthread_active_p): Do activity check here.
16621         Don't include errno.h on hppa-hpux.  Update comment.
16622         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
16623         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
16624         add -lpthread when -mt or -pthread is specified.
16625         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
16626         (LINK_GCC_C_SEQUENCE_SPEC): Define.
16627         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
16628         (stublib.c, pthread_default_stacksize_np-stub.o,
16629         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
16630         $(T)libgcc_stub.a): Add methods.
16631         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
16632         (stublib.c, pthread_default_stacksize_np-stub.o,
16633         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
16634         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16635         pthread_mutex_unlock): New stubs.
16636
16637 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
16638
16639         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
16640         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
16641         options.
16642         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
16643         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
16644         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
16645         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
16646         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
16647         "-l".
16648         * cppspec.c: Include opts.h.
16649         (lang_specific_driver): Use cl_decoded_option structures.
16650         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
16651         * doc/tm.texi: Regenerate.
16652         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
16653         (driver_handle_option): Allow driver options needing no special
16654         processing.
16655         (process_command): Decode options before call to
16656         lang_specific_driver.  Pass decoded options to
16657         lang_specific_driver.
16658         * gcc.h (lang_specific_driver): Update prototype.
16659         * gccspec.c: Include opts.h.
16660         (lang_specific_driver): Use cl_decoded_option structures.
16661         * opts-common.c (option_ok_for_language, generate_option,
16662         generate_option_input_file): New.
16663         (decode_cmdline_option): Use option_ok_for_language.
16664         (decode_cmdline_options_to_array): Use generate_option_input_file.
16665         (handle_generated_option): Use generate_option.
16666         * opts.h (generate_option, generate_option_input_file): Declare.
16667
16668 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
16669
16670         * config/mips/mips.c (mips_override_options): Rename to...
16671         (mips_option_override): ...this. Make static.
16672         (TARGET_OPTION_OVERRIDE): Define.
16673         (mips_in_small_data_p): Update comment.
16674         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
16675         (FIXED_REGISTERS): Update comment.
16676         * config/mips/mips-protos.h (mips_override_options): Remove.
16677
16678 2010-08-21  Olivier Hainque  <hainque@adacore.com>
16679
16680         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
16681
16682 2010-08-21  Olivier Hainque  <hainque@adacore.com>
16683
16684         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
16685         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
16686
16687 2010-08-20  Jan Hubicka  <jh@suse.cz>
16688
16689         * tree-pass.h (pass_ipa_cdtor_merge): New function.
16690         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
16691         heap allocated.
16692         (record_cdtor_fn): Move to ipa.c; do not test for
16693         have_ctors_dtors.
16694         (build_cdtor): Move to ipa.c; add code avoiding construction
16695         when target have ctors/dtors and there is only one ctor/dtor at given
16696         priority.
16697         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
16698         sort; reverse order of constructors.
16699         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
16700         (cgraph_finalize_function): Do not call record_cdtor_fn.
16701         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
16702         (cgraph_build_static_cdtor): Move to ipa.c.
16703         * ipa.c: Include target.h and tree-iterator.h.
16704         (cgraph_build_static_cdtor, static_ctors, static_dtors,
16705         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
16706         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
16707         pass_ipa_cdtor_merge): New.
16708         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
16709         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
16710         bounds access.
16711
16712 2010-08-20  Jan Hubicka  <jh@suse.cz>
16713
16714         PR c++/45307
16715         PR c++/17736
16716         * cgraph.h (cgraph_only_called_directly_p,
16717         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
16718         static cdtors.
16719         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
16720         are not needed.
16721         (cgraph_finalize_function): Static cdtors are reachable.
16722         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
16723
16724 2010-08-20  Jan Hubicka  <jh@suse.cz>
16725
16726         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
16727         flag_wpa.
16728         * lto-streamer-out.c (lto_output): Likewise.
16729         * passes.c (ipa_write_optimization_summaries): Initialize statement
16730         uids.
16731
16732 2010-08-20  Olivier Hainque  <hainque@adacore.com>
16733
16734         * tree.h (alias_diag_flags): New enum.
16735         (alias_pair): Add an 'emitted_diags' field.
16736         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
16737         (assemble_alias): Initialize emitted_diags of new pairs.
16738
16739 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
16740
16741         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16742         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16743         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16744         (STACK_CHECK_PROTECT): Define.
16745         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
16746         (output_probe_stack_range): Likewise.
16747         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
16748         builtin stack checking is enabled.
16749         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
16750         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16751         (probe_stack_range): New insn.
16752
16753 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
16754
16755         PR target/45336
16756         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
16757         short first.
16758
16759         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
16760         char first.
16761
16762 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
16763
16764         PR target/45336
16765         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
16766         to cover zero extension into 64-bit register.
16767         (*sse2_pextrw): Likewise.
16768         (*sse4_1_pextrd_zext): New insn.
16769
16770 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
16771
16772         revert r163410, partially revert r163267.
16773         * config/rs6000/darwin.h (LIB_SPEC): Remove.
16774         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
16775         Darwin versions.
16776
16777 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
16778
16779         PR middle-end/44974
16780         * builtins.c (expand_builtin): Don't optimize away
16781         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
16782
16783 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
16784
16785         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
16786         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
16787         alternative 1 of operand 2.
16788
16789 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
16790             Paolo Bonzini  <bonzini@gnu.org>
16791
16792         * simplify-rtx.c (simplify_unary_operation_1): Optimize
16793         (sign_extend (zero_extend (...)) and
16794         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
16795
16796 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
16797
16798         PR rtl-optimization/45353
16799         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
16800         after bb_note is a BARRIER.
16801
16802 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
16803
16804         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
16805         linking libgcc.a.
16806
16807 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
16808             Michael Matz  <matz@suse.de>
16809
16810         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
16811
16812 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
16813
16814         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
16815         (ggc_mark_roots): ...here.
16816
16817 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
16818
16819         * vec.h (FOR_EACH_VEC_ELT): Define.
16820         * c-decl.c: Use it.
16821         * cfgloop.c: Likewise.
16822         * cfgloopmanip.c: Likewise.
16823         * cgraph.c: Likewise.
16824         * cgraphunit.c: Likewise.
16825         * combine.c: Likewise.
16826         * config/bfin/bfin.c: Likewise.
16827         * config/mips/mips.c: Likewise.
16828         * config/rs6000/rs6000.c: Likewise.
16829         * dbxout.c: Likewise.
16830         * df-scan.c: Likewise.
16831         * dominance.c: Likewise.
16832         * dse.c: Likewise.
16833         * dwarf2out.c: Likewise.
16834         * except.c: Likewise.
16835         * expr.c: Likewise.
16836         * function.c: Likewise.
16837         * gcse.c: Likewise.
16838         * genattr.c: Likewise.
16839         * ggc-common.c: Likewise.
16840         * gimplify.c: Likewise.
16841         * graphite-blocking.c: Likewise.
16842         * graphite-clast-to-gimple.c: Likewise.
16843         * graphite-dependences.c: Likewise.
16844         * graphite-interchange.c: Likewise.
16845         * graphite-poly.c: Likewise.
16846         * graphite-scop-detection.c: Likewise.
16847         * graphite-sese-to-poly.c: Likewise.
16848         * graphite.c: Likewise.
16849         * haifa-sched.c: Likewise.
16850         * ifcvt.c: Likewise.
16851         * implicit-zee.c: Likewise.
16852         * ipa-prop.c: Likewise.
16853         * ipa-struct-reorg.c: Likewise.
16854         * ipa.c: Likewise.
16855         * ira-build.c: Likewise.
16856         * ira-color.c: Likewise.
16857         * ira-emit.c: Likewise.
16858         * lambda-code.c: Likewise.
16859         * loop-invariant.c: Likewise.
16860         * loop-unroll.c: Likewise.
16861         * lower-subreg.c: Likewise.
16862         * lto-cgraph.c: Likewise.
16863         * lto-opts.c: Likewise.
16864         * lto-streamer-in.c: Likewise.
16865         * lto-streamer-out.c: Likewise.
16866         * lto-streamer.c: Likewise.
16867         * lto-symtab.c: Likewise.
16868         * matrix-reorg.c: Likewise.
16869         * opts.c: Likewise.
16870         * predict.c: Likewise.
16871         * print-tree.c: Likewise.
16872         * sdbout.c: Likewise.
16873         * sel-sched-dump.c: Likewise.
16874         * sel-sched-ir.c: Likewise.
16875         * sel-sched.c: Likewise.
16876         * sese.c: Likewise.
16877         * stor-layout.c: Likewise.
16878         * tree-cfg.c: Likewise.
16879         * tree-cfgcleanup.c: Likewise.
16880         * tree-chrec.c: Likewise.
16881         * tree-data-ref.c: Likewise.
16882         * tree-emutls.c: Likewise.
16883         * tree-inline.c: Likewise.
16884         * tree-into-ssa.c: Likewise.
16885         * tree-loop-distribution.c: Likewise.
16886         * tree-loop-linear.c: Likewise.
16887         * tree-mudflap.c: Likewise.
16888         * tree-outof-ssa.c: Likewise.
16889         * tree-parloops.c: Likewise.
16890         * tree-predcom.c: Likewise.
16891         * tree-pretty-print.c: Likewise.
16892         * tree-scalar-evolution.c: Likewise.
16893         * tree-ssa-live.c: Likewise.
16894         * tree-ssa-loop-im.c: Likewise.
16895         * tree-ssa-loop-ivcanon.c: Likewise.
16896         * tree-ssa-loop-ivopts.c: Likewise.
16897         * tree-ssa-loop-manip.c: Likewise.
16898         * tree-ssa-loop-niter.c: Likewise.
16899         * tree-ssa-loop-prefetch.c: Likewise.
16900         * tree-ssa-phiprop.c: Likewise.
16901         * tree-ssa-pre.c: Likewise.
16902         * tree-ssa-reassoc.c: Likewise.
16903         * tree-ssa-sccvn.c: Likewise.
16904         * tree-ssa-structalias.c: Likewise.
16905         * tree-ssa.c: Likewise.
16906         * tree-vect-data-refs.c: Likewise.
16907         * tree-vect-loop-manip.c: Likewise.
16908         * tree-vect-loop.c: Likewise.
16909         * tree-vect-patterns.c: Likewise.
16910         * tree-vect-slp.c: Likewise.
16911         * tree-vect-stmts.c: Likewise.
16912         * tree-vrp.c: Likewise.
16913         * tree.c: Likewise.
16914         * value-prof.c: Likewise.
16915         * var-tracking.c: Likewise.
16916         * varasm.c: Likewise.
16917         * vmsdbgout.c: Likewise.
16918
16919 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
16920             Richard Guenther  <richard.guenther@gmail.com>
16921
16922         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
16923         copy the src value and return a copy.
16924         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
16925         (C++ Volatiles): Adjust to describe C++ semantics only.
16926
16927 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
16928
16929         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
16930         be zero or nonzero.
16931         * doc/tm.texi: Regenerate.
16932         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
16933         * df-scan.c (df_get_exit_block_use_set), reginfo.c
16934         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
16935         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
16936         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
16937         to 1.
16938
16939 2010-08-20  Olivier Hainque  <hainque@adacore.com>
16940
16941         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
16942         an extra nop past a sibling call at the very end.
16943
16944 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
16945
16946         PR bootstrap/45350
16947         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
16948         a comment.
16949
16950 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
16951
16952         * target.def (function_arg, function_incoming_arg): Remove const
16953         qualifier on CUMULATIVE_ARGS parameter.
16954         * targhooks.h (default_function_arg, default_function_incoming_arg):
16955         Likewise.
16956         * targhooks.c (default_function_arg, default_function_incoming_arg):
16957         Likewise.
16958         * config/i386/i386.c (ix86_function_arg): Likewise.
16959
16960 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
16961
16962         PR target/45336
16963         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
16964         SIGN_EXTENDs or ZERO_EXTENDs.
16965
16966 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
16967
16968         PR target/42172
16969         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
16970         Take its cost into account if nonnull.
16971         (insn_a_feeds_b): New static function.
16972         (combine_instructions): Look for four-insn combinations.
16973         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
16974         them into account when computing all_adjacent and looking for other
16975         uses.
16976         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
16977         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
16978         (try_combine): New arg I0.  Handle four-insn combinations.
16979         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
16980         like ELIM_I1.
16981
16982 2010-08-19  Jason Merrill  <jason@redhat.com>
16983
16984         PR c++/45307
16985         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
16986         if ctor is empty.
16987         (gimplify_modify_expr_rhs): Adjust.
16988
16989 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
16990
16991         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
16992         bitmap_bit_p.
16993         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
16994         * dominance.c (iterate_fix_dominators): Likewise.
16995         * dse.c (set_usage_bits): Likewise.
16996         (set_position_unneeded, record_store): Likewise.
16997         * gimple-fold.c (get_maxval_strlen): Likewise.
16998         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
16999         * ipa-inline.c (update_caller_keys): Likewise.
17000         * ipa-split.c (verify_non_ssa_vars): Likewise.
17001         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
17002         (close_type_exposed_parameter, close_type_full_escape): Likewise.
17003         (close_addressof_down): Likewise.
17004         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
17005         (setup_allocno_left_conflicts_size): Likewise.
17006         (ira_reassign_conflict_allocnos): Likewise.
17007         (ira_reassign_pseudos): Likewise.
17008         * ira-emit.c (change_loop): Likewise.
17009         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
17010         * lto-streamer-out.c (write_symbol): Likewise.
17011         * predict.c (expr_expected_value_1): Likewise.
17012         * regstat.c (regstat_bb_compute_ri): Likewise.
17013         * sel-sched.c (create_block_for_bookkeeping): Likewise.
17014         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
17015         * stmt.c (expand_case): Likewise.
17016         * tree-eh.c (emit_eh_dispatch): Likewise.
17017         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
17018         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
17019         Likewise.
17020         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
17021         (rdg_build_components): Likewise.
17022         * tree-object-size.c (collect_object_sizes_for): Likewise.
17023         * tree-sra.c (convert_callers): Likewise.
17024         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
17025         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
17026         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
17027
17028 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
17029
17030         * config/i386/i386.md (*lea_1): Use P mode iterator.
17031         (lea add splitter): Also handle DImode operands.
17032         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
17033         predicate.  Do not use ix86_lea_for_add_ok.
17034         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
17035         (lea ashift splitter): Also handle DImode operands.
17036         (DImode lea ashift splitter): Remove splitter.
17037
17038 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
17039
17040         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
17041         ix86_binary_operator_ok.
17042
17043 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
17044
17045         PR rtl-optimization/44691
17046         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
17047         is not a register.
17048
17049 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
17050
17051         PR target/45070
17052         * config/arm/arm.c (arm_output_epilogue): Ensure that return
17053          value of size 1-3 is handled correctly.
17054
17055 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
17056
17057         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
17058         type for the conditional has wide enough range.
17059
17060 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
17061
17062         PR target/45327
17063         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
17064         ix86_binary_operator_ok.
17065
17066 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
17067
17068         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
17069         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
17070         code to output insn mnemonic.  Fix comment.
17071         (*addsi_1_zext): Add r-r-0 alternative 1.
17072         <TYPE_LEA>: Split insn to lea.
17073         <default>: Handle alternative 1.
17074         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
17075         multi-level if_then_else RTX to set "type" attribute.
17076         <default>: Handle alternative 2.
17077         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
17078         Use cond RTX instead of multi-level if_then_else RTX to set
17079         "type" attribute.
17080         <default>: Handle alternatives 2 and 4.
17081         (lea splitters): Update calls to ix86_lea_for_add_ok.
17082
17083         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
17084         argument.
17085         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
17086
17087 2010-08-18  Richard Guenther  <rguenther@suse.de>
17088
17089         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
17090         use operand helpers.
17091
17092 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
17093
17094         PR middle-end/45292
17095         * optabs.c (expand_bool_compare_and_swap): Expand pending
17096         pops before trying the optab.
17097
17098 2010-08-18  Yao Qi  <yao@codesourcery.com>
17099
17100         PR target/45094
17101         * config/arm/arm.c (output_move_double): Fix typo generating
17102         instructions ('ldr'->'str').
17103
17104 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
17105
17106         PR rtl-optimization/42575
17107         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
17108         live ranges.
17109
17110 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17111
17112         * config/arm/arm-protos.h (arm_expand_sync): New.
17113         (arm_output_memory_barrier, arm_output_sync_insn): New.
17114         (arm_sync_loop_insns): New.
17115         * config/arm/arm.c (FL_ARCH7): New.
17116         (FL_FOR_ARCH7): Include FL_ARCH7.
17117         (arm_arch7): New.
17118         (arm_print_operand): Support %C markup.
17119         (arm_legitimize_sync_memory): New.
17120         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
17121         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
17122         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
17123         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
17124         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
17125         (arm_process_output_sync_insn, arm_output_sync_insn): New.
17126         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
17127         * config/arm/arm.h (struct arm_sync_generator): New.
17128         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
17129         (TARGET_HAVE_MEMORY_BARRIER): New.
17130         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
17131         * config/arm/arm.md: Include sync.md.
17132         (UNSPEC_MEMORY_BARRIER): New.
17133         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
17134         (VUNSPEC_SYNC_OP):New.
17135         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
17136         (sync_result, sync_memory, sync_required_value): New attributes.
17137         (sync_new_value, sync_t1, sync_t2): Likewise.
17138         (sync_release_barrier, sync_op): Likewise.
17139         (length): Add logic to length attribute defintion to call
17140         arm_sync_loop_insns when appropriate.
17141         * config/arm/sync.md: New file.
17142
17143 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
17144
17145         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
17146         ENABLE_TREE_CHECKING.
17147         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
17148         and GCC >= 4.3.
17149
17150 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
17151
17152         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
17153         or optimizing for size, always avoid lea if possible.
17154
17155         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
17156
17157 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
17158
17159         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
17160         Dunmmy function with NULL return unless the target is
17161         OSX >= 10.6 (Darwin10).
17162
17163 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
17164
17165         * gcc.c (spec_function): Add remove-outfile.
17166         (remove_outfile_spec_function): New function.
17167         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
17168         * invoke.texi (replace-outfile): Document.
17169
17170 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
17171
17172         PR target/45296
17173         * reginfo.c (globalize_reg): Reject stack registers.
17174
17175 2010-08-17  Richard Guenther  <rguenther@suse.de>
17176
17177         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
17178         list of conditional equivalences.
17179         (free_all_edge_infos): Adjust.
17180         (record_equivalences_from_incoming_edge): Likewise.
17181         (record_cond): Likewise.
17182         (build_and_record_new_cond): Likewise.
17183         (record_conditions): Likewise.
17184         (dom_opt_leave_block): Likewise.
17185
17186 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
17187
17188         * doc/invoke.texi (ms-extension): Add documentation.
17189
17190 2010-08-17  Richard Guenther  <rguenther@suse.de>
17191
17192         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
17193
17194 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
17195
17196         PR c/40563
17197         * c-decl.c (diagnose_uninitialized_cst_member): New function.
17198         (finish_decl): Use it to issue a -Wc++-compat warning about
17199         uninitialized const field in struct or union.
17200
17201         (finish_struct): Use strip_array_types.
17202
17203 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
17204
17205         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
17206         functions.
17207         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
17208         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
17209         call block_nreverse here.
17210         (blocks_nreverse): Rename decl temporary to block.
17211
17212 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
17213
17214         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
17215         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
17216         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
17217         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
17218         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
17219         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
17220         thumb2_iorsi3): Delete.
17221         (orsi_notsi_si): No longer a named pattern.
17222         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
17223         * config/arm/predicates.md (shift_amount_operand): New.
17224         (mult_operator): New.
17225         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
17226         attr enabled): New.
17227         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
17228         arch matches t2.
17229         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
17230         (not_shiftsi_compare0): Likewise, renamed from
17231         arm_notsi_shiftsi_compare0.
17232         (not_shiftsi_compare0_scratch): Likweise, renamed from
17233         arm_notsi_shiftsi_compare0_scratch.
17234         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
17235         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
17236         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
17237         so that the register alternative is disabled when the shift_operator
17238         is MULT.  Use "M" as the constraint for constants.
17239         (arith_shiftsi splitter): Enable for TARGET_32BIT.
17240         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
17241         constraint for constants.
17242         (arith_shiftsi_compare0_scratch): Likewise.
17243         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
17244         Handle Thumb2 alternative.
17245
17246 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
17247
17248         * doc/options.texi (NoDriverArg): Document.
17249         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
17250         -MDX and -MMDX.
17251         * opt-functions.awk (switch_flags): Handle NoDriverArg.
17252         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
17253         marking for CL_NO_DRIVER_ARG options when in the driver.
17254         * opts.h (CL_NO_DRIVER_ARG): Define.
17255         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
17256         CL_COMMON): Update values.
17257
17258 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
17259
17260         * common.opt: Add driver options.
17261         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
17262         * doc/options.texi (Driver, RejectDriver): Document.
17263         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
17264         print_prog_name, print_multi_directory, print_sysroot,
17265         print_multi_os_directory, print_multi_lib,
17266         print_sysroot_headers_suffix, report_times, combine_flag,
17267         use_pipes, wrapper_string): Remove.
17268         (save_switch, driver_unknown_option_callback,
17269         driver_wrong_lang_callback, driver_post_handling_callback,
17270         driver_handle_option): New.
17271         (spec_lang, last_language_n_infiles): Make file-scope static
17272         instead of local to process_command.
17273         (process_command): Use decode_cmdline_options_to_array and
17274         read_cmdline_option for option processing.  Compute have_c in
17275         prescan of decoded options.
17276         * opt-functions.awk (switch_flags): Handle Driver and
17277         RejectDriver.
17278         (var_type, var_type_struct): Handle Separate options as generating
17279         const char * variables.
17280         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
17281         CL_TARGET to be passed by caller if required.
17282         (decode_cmdline_options_to_array): Update comment.
17283         * opts.c (complain_wrong_lang): Handle options only valid for the
17284         driver.
17285         (decode_options): Update call to decode_cmdline_options_to_array.
17286         (print_filtered_help): Ignore driver-only options.
17287         (print_specific_help): Ignore CL_DRIVER.
17288         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
17289         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
17290         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
17291         Update values.
17292
17293 2010-08-16  Richard Guenther  <rguenther@suse.de>
17294
17295         * tree-cfg.c (verify_types_in_gimple_reference): Verify
17296         TARGET_MEM_REF a bit.
17297         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
17298         (create_mem_ref_raw): Always create TMR_OFFSET, store the
17299         alias pointer type via it.
17300         (copy_mem_ref_info): Adjust.
17301         (maybe_fold_tmr): Likewise.
17302         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
17303         (reference_alias_ptr_type): Likewise.
17304         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
17305         adjust documentation of TMR_OFFSET operand.
17306         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
17307         use the alias pointer type.
17308         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
17309         initialize mem attrs but the TMR itself.
17310         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
17311         similar to MEM_REF.
17312         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
17313         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
17314         (unshare_and_remove_ssa_names): Likewise.
17315         (copy_ref_info): Adjust.
17316         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
17317         TARGET_MEM_REF case.
17318         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
17319         at TMR_ORIGINAL.
17320         * tree.h (TMR_ORIGINAL): Remove.
17321         * gimple.c (get_base_address): For TARGET_MEM_REF with a
17322         symbol return that.
17323         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
17324         with a symbol.
17325         (get_addr_base_and_unit_offset): Likewise.
17326         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
17327         TARGET_MEM_REFs.
17328         (indirect_ref_may_alias_decl_p): Likewise.
17329         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
17330
17331 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
17332
17333         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
17334         with GCC version 4.6, the default setting (when not optimizing
17335         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
17336         been changed to -fomit-frame-pointer.
17337
17338 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
17339
17340         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
17341         Darwin10.  Do not link libgcc.a for Darwin >= 9.
17342
17343 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
17344
17345         * doc/invoke.texi (Warning Options): Fix terminology and markup
17346         in the description of how unknown warning options are handled.
17347
17348 2010-08-15  Ira Rosen  <irar@il.ibm.com>
17349
17350         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
17351         in basic blocks.
17352         (vect_supportable_dr_alignment): Check alignment for basic blocks.
17353         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
17354         data references.
17355         (vect_bb_vectorization_profitable_p): New function.
17356         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
17357         check if it's worthwhile to vectorize the basic block.
17358
17359 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
17360
17361         * reload.h (register_move_cost, memory_move_secondary_cost,
17362         secondary_reload_class): Adjust prototype.
17363         * rtl.h (reg_class_subset_p): Adjust prototype.
17364         * reload.c (secondary_reload_class): Change arguments type from
17365         enum reg_class to reg_class_t. Change result type to reg_class_t.
17366         * reginfo.c (register_move_cost, reg_class_subset_p): Change
17367         arguments type from enum reg_class to reg_class_t.
17368         (memory_move_secondary_cost): Change arguments type from
17369         enum reg_class to reg_class_t. Change type of saved_flags to
17370         reg_class_t.
17371
17372         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17373         Remove macros.
17374         (mips_cost): Remove.
17375         (struct mips_rtx_cost_data): Moved to mips.c.
17376         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
17377         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
17378         (mips_cost): Make static.
17379         (mips_canonicalize_move_class): Change argument type to reg_class_t.
17380         Change result type to reg_class_t.
17381         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
17382         type from enum reg_class to reg_class_t.
17383         (mips_register_move_cost): Make static. Change arguments
17384         type from enum reg_class to reg_class_t.
17385         (mips_memory_move_cost): New function.
17386         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
17387
17388 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
17389
17390         PR rtl-optimization/43358
17391         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
17392         of a single hard register, using simplify_subreg_regno to decide
17393         what that register should be.
17394
17395 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
17396
17397         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
17398         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
17399         (loongson_pmull<V_suffix>): Rename to...
17400         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
17401
17402 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
17403
17404         * configure.ac: Enable -fomit-frame-pointer on darwin
17405         which support dwarf2.
17406         * config/i386/i386.c (override_options): Same.
17407
17408 2010-08-13  Jie Zhang  <jie@codesourcery.com>
17409
17410         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
17411
17412 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
17413
17414         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
17415         -MMD.
17416
17417 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
17418
17419         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
17420         up dot_prod pattern searching if a stmt is outside the loop.
17421
17422 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
17423             Uros Bizjak  <ubizjak@gmail.com>
17424
17425         * config.gcc: Handle --enable-frame-pointer.
17426
17427         * configure.ac: Add --enable-frame-pointer.
17428         * configure: Regenerated.
17429
17430         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
17431         (override_options): If not configured with --enable-frame-pointer,
17432         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
17433         optimizing for size), -fasynchronous-unwind-tables and
17434         -maccumulate-outgoing-args by default.
17435
17436 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
17437
17438         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
17439
17440         PR middle-end/45262
17441         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
17442         -a overflows.  Normalize the range.
17443
17444 2010-08-12  Richard Guenther  <rguenther@suse.de>
17445
17446         PR tree-optimization/45232
17447         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
17448         for types with undefined overflow.
17449         (reassociate_bb): Allow re-associating of bit and min/max
17450         operations for types with undefined overflow.
17451         * tree-ssa-forwprop.c (associate_plusminus): New function.
17452         (tree_ssa_forward_propagate_single_use_vars): Call it.
17453
17454 2010-08-12  Richard Guenther  <rguenther@suse.de>
17455
17456         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
17457         * tree-ssa-alias.c (get_ptr_info): Move ...
17458         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
17459         align and misalign fields conservatively.
17460         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
17461         derive alignment information.
17462         (evaluate_stmt): Derive alignment information from memory
17463         allocation functions.
17464         * tree.h (get_pointer_alignment): Make unsigned.
17465         * builtins.c (get_object_alignment): Use alignment information we
17466         have computed for pointers.
17467         (get_pointer_alignment): Likewise.  Make conservative, return
17468         and unsigned value.
17469         (expand_builtin_strlen): Adjust.
17470         (expand_builtin_memcmp): Likewise.
17471         (expand_builtin_strcmp): Likewise.
17472         (expand_builtin_strncmp): Likewise.
17473         (get_builtin_sync_mem): Use at least mode alignment.
17474         (fold_builtin_memset): Adjust.
17475         (fold_builtin_memory_op): Likewise.
17476         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
17477         information also dump pointer alignment knowledge.
17478         (dump_gimple_stmt): Likewise.
17479
17480 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
17481
17482         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
17483         (EMPTY_FIELD_BOUNDARY): Remove.
17484         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
17485
17486 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
17487
17488         PR debug/45259
17489         * caller-save.c (save_call_clobbered_regs): Only swap notes with
17490         DEBUG_INSNs if n_regs_saved.
17491
17492 2010-08-12  Wei Guozhi  <carrot@google.com>
17493
17494         PR target/44999
17495         * config/arm/arm.md (andsi3): Change to zero extension if possible.
17496         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
17497
17498 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
17499
17500         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
17501
17502         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
17503
17504 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17505
17506         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
17507         the case removed in the previous patch, when the only phi argument
17508         is defined in the same loop as the phi node itself.  Handle it
17509         separately from the invariant case by both propagating it outside
17510         the region and replacing the phi node with an assign.
17511
17512 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17513
17514         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
17515         constant phi nodes with one argument are is_gimple_min_invariant
17516         and SSA_NAME_IS_DEFAULT_DEF.
17517
17518 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17519
17520         * graphite-cloog-util.c (oppose_constraint):
17521         Extend loop counter's value range (CLOOG_ORG).
17522         (cloog_matrix_to_ppl_constraint): Same.
17523         (new_Constraint_System_from_Cloog_matrix): Same.
17524         * graphite-cloog-compat.h (matrix_num_type): New.
17525
17526 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17527
17528         * graphite.c (graphite_initialize): Do not initialize
17529         CLooG and initialize the Parma Polyhedra Library
17530         manually when using CLOOG_ORG.
17531         (graphite_finalize): Do not finalize CLooG and finalize
17532         the Parma Polyhedra Library manually when using CLOOG_ORG.
17533         * graphite-cloog-compat.h (cloog_initialize): Hide function
17534         when using CLOOG_ORG.
17535         (cloog_finalize): Same.
17536
17537 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17538
17539         * graphite-clast-to-gimple.c (free_scattering): Change
17540         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
17541         (CLOOG_ORG).
17542         (build_cloog_prog): Same.
17543         * graphite-cloog-compat.h (cloog_domain): Removed.
17544         (cloog_scattering): New.
17545         (cloog_set_domain): Removed.
17546         (cloog_set_scattering): New.
17547         (cloog_next_domain): Removed.
17548         (cloog_next_scattering): New.
17549         (cloog_set_next_domain): Removed.
17550         (cloog_set_next_scattering): New.
17551         (CloogScatteringList): New.
17552         (CloogScattering): New.
17553         (cloog_scattering_free): New.
17554         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
17555         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
17556         New.
17557
17558 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17559
17560         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
17561         CloogState.
17562         (set_cloog_options): Same.
17563         (print_clast_stmt): Same.
17564         (scop_to_clast): Same.
17565         (print_generated_program): Same.
17566         (gloog): Same.
17567         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
17568         (scop_to_clast): Extend with CloogState.
17569         * graphite-cloog-util.c: Include graphite-cloog-compat.h
17570         (new_Cloog_Domain_from_ppl_Polyhedron):
17571         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
17572         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
17573         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17574         * graphite-cloog-util.h (build_cloog_prog): Same.
17575         * graphite-cloog-copat.h (build_cloog_prog): New.
17576         (CloogState): New.
17577         (cloog_state_malloc): New.
17578         (cloog_state_free): New.
17579         (cloog_loop_malloc): New.
17580         (cloog_options_malloc): New.
17581         (cloog_statement_alloc): New.
17582         (cloog_domain_from_cloog_matrix): New.
17583         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
17584         (new_Cloog_Domain_from_ppl_Polyhedron): New.
17585
17586 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17587
17588         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
17589         type of NAME now depends on used CLooG version.
17590         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
17591         (gcc_type_for_clast_expr): Same.
17592         (print_clast_stmt): Replace pprint with clast_pprint.
17593         * graphite-cloog-compat.h: Provide compatibility macros for
17594         CLooG Legacy.
17595         (clast_name_p): New.
17596         (clast_expr_term): New.
17597         (clast_expr_red): New.
17598         (clast_expr_bin): New.
17599         (clast_pprint): New.
17600
17601 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17602
17603         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
17604         compatible to newer CLooG releases (CLOOG_ORG).
17605         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
17606         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
17607         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
17608         (build_cloog_prog) : New.
17609         (cloog_program_extract_scalars): New.
17610         (cloog_program_scatter): New.
17611
17612 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17613
17614         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
17615         conditionally (CLOOG_ORG).
17616         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
17617         (cloog_statement_usr): New.
17618         (cloog_domain): Same.
17619         (cloog_set_domain): Same.
17620         (cloog_next_domain): Same.
17621         (cloog_set_next_domain): Same.
17622         (cloog_program_nb_scattdims): Same.
17623         (cloog_program_set_nb_scattdims): Same.
17624         (cloog_program_names): Same.
17625         (cloog_program_set_names): Same.
17626         (cloog_program_set_context): Same.
17627         (cloog_program_set_loop): Same.
17628         (cloog_program_blocklist): Same.
17629         (cloog_program_set_blocklist): Same.
17630         (cloog_program_scaldims): Same.
17631         (cloog_program_set_scaldims): Same.
17632         (cloog_names_nb_parameters): Same.
17633         (cloog_names_set_nb_parameters): Same.
17634         (cloog_names_parameters): Same.
17635         (cloog_names_set_parameters): Same.
17636         (cloog_names_set_nb_iterators): Same.
17637         (cloog_names_set_iterators): Same.
17638         (cloog_names_set_nb_scattering): Same.
17639         (cloog_names_set_scattering): Same.
17640         (cloog_statement_set_usr): Same.
17641         (cloog_loop_set_next): Same.
17642         (cloog_loop_set_domain): Same.
17643         (cloog_loop_set_block): Same.
17644         (cloog_block_list_next): Same.
17645         (cloog_block_list_set_next):
17646         (cloog_block_list_set_block): Same.
17647
17648 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17649
17650         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
17651         a bool.
17652         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
17653         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
17654         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
17655         when something has been changed.
17656         (rewrite_commutative_reductions_out_of_ssa): Same.
17657
17658 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17659
17660         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
17661         handle the case when def is in the sese region.
17662         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
17663         for invariant expressions.
17664         (rewrite_cross_bb_phi_deps): Removed.
17665         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
17666         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
17667         rewrite_cross_bb_phi_deps.
17668
17669 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17670
17671         * graphite-sese-to-poly.c
17672         (rewrite_commutative_reductions_out_of_ssa_loop): Call
17673         scev_analyzable_p only on is_gimple_reg
17674
17675 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17676
17677         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
17678         (rewrite_close_phi_out_of_ssa): Propagate constant values or
17679         parametric expressions outside the scop region.
17680         (rewrite_cross_bb_scalar_deps): Same.
17681         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
17682
17683 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17684
17685         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
17686         SSA_NAME_DEF_STMT only on SSA_NAMEs.
17687
17688 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17689
17690         * tree-scalar-evolution.c (instantiate_scev_name): Do not
17691         instantiate default definitions.
17692
17693 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
17694             Sebastian Pop  <sebastian.pop@amd.com>
17695
17696         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
17697         (loop_exits_from_bb_p): New.
17698         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
17699         (loop_exits_from_bb_p): Declared.
17700         * graphite-scop-detection.c (scopdet_basic_block_info): Call
17701         loop_exits_to_bb_p.
17702
17703 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17704
17705         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
17706         extra parameter for the region.  Call scev_analyzable_p.
17707         (rewrite_reductions_out_of_ssa): Update call to
17708         rewrite_close_phi_out_of_ssa.
17709         (rewrite_cross_bb_phi_deps): Same.
17710         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
17711         parameter for the region.  Call scev_analyzable_p.
17712         (rewrite_commutative_reductions_out_of_ssa): Update call to
17713         rewrite_commutative_reductions_out_of_ssa_loop.
17714
17715 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17716
17717         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
17718
17719 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17720
17721         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
17722         SSA scalar phi nodes that can be scev_analyzable_p.
17723
17724 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17725
17726         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
17727         handle SSA_NAME_IS_DEFAULT_DEF.
17728
17729 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17730
17731         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
17732
17733 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17734
17735         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
17736         case non close-phi nodes with one argument.
17737
17738 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17739
17740         * sese.h (scev_analyzable_p): Scevs could be expressions without
17741         chrecs and still be scev_analyzable_p.
17742
17743 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17744
17745         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17746
17747 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17748
17749         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
17750         * cfgloop.h (struct loop): Remove single_iv field.
17751         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
17752         (scop_canonicalize_loops): Removed.
17753         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
17754         over all the loop phi nodes in loop->header.
17755         (build_poly_scop): Remove use of scop_canonicalize_loops.
17756
17757 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17758
17759         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
17760         handle GIMPLE_CALL.
17761
17762 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17763
17764         * tree-chrec.c (chrec_apply): Should only apply to the specified
17765         variable.  Also handle multivariate chains of recurrences that
17766         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
17767
17768 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17769
17770         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
17771         (debug_clast_name_indexes_1): Removed.
17772         (debug_clast_name_indexes): Removed.
17773         (pbb_to_depth_to_oldiv): Removed.
17774         (build_iv_mapping): Replace the use of rename_map with iv_map.
17775         (translate_clast_user): Remove uses of rename_map.  Allocate and
17776         free iv_map.
17777         (translate_clast_for_loop): Remove uses of rename_map.
17778         (translate_clast_for): Same.
17779         (translate_clast_guard): Same.
17780         (translate_clast): Same.
17781         (gloog): Same.
17782         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
17783         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
17784         * sese.c (set_rename): Now static.
17785         (rename_variables_in_stmt): Removed.
17786         (rename_uses): New.
17787         (is_parameter): Removed.
17788         (is_iv): Removed.
17789         (expand_scalar_variables_call): Removed.
17790         (expand_scalar_variables_ssa_name): Removed.
17791         (expand_scalar_variables_expr): Removed.
17792         (expand_scalar_variables_stmt): Removed.
17793         (expand_scalar_variables): Removed.
17794         (rename_variables): Removed.
17795         (remove_condition): Removed.
17796         (get_true_edge_from_guard_bb): Removed.
17797         (get_false_edge_from_guard_bb): Removed.
17798         (struct igp): Removed.
17799         (default_before_guard): Removed.
17800         (convert_for_phi_arg): Removed.
17801         (add_guard_exit_phis): Removed.
17802         (insert_guard_phis): Removed.
17803         (graphite_copy_stmts_from_block): Now also uses iv_map and a
17804         region.  Do not copy conditions.  Do not copy induction variables.
17805         Call rename_uses.
17806         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
17807         the translated statement.  Use the iv_map for the induction
17808         variable renaming.
17809         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
17810         (set_rename): Removed declaration.
17811         (scev_analyzable_p): ...here.
17812         * tree-chrec.c (chrec_apply_map): New.
17813         * tree-chrec.h (chrec_apply_map): Declared.
17814
17815 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17816
17817         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
17818         insert_loop_close_phis.
17819         * sese.c (name_defined_in_loop_p): Removed.
17820         (expr_defined_in_loop_p): Removed.
17821         (alive_after_loop): Removed.
17822         (close_phi_not_yet_inserted_p): Removed.
17823         (struct alep): Removed.
17824         (add_loop_exit_phis): Removed.
17825         (insert_loop_close_phis): Removed.
17826
17827 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17828
17829         * graphite-cloog-util.c
17830         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
17831         * graphite-poly.c
17832         (psct_scattering_dim_for_loop_depth): Same.
17833
17834 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17835
17836         * graphite-cloog-util.h: Added cloog.h.
17837         * graphite-blocking.c: Removed cloog.h.
17838         * graphite-dependences.c: Same.
17839         * graphite-interchange.c: Same.
17840         * graphite-poly.c: Same.
17841         * graphite-ppl.c: Same.
17842         * graphite-scop-detection.c: Same.
17843         * graphite-sese-to-poly.c:
17844         Removed cloog.h.
17845         Removed graphite-clast-to-gimple.h.
17846         (check_poly_representation): Removed (unused).
17847         * graphite-sese-to-poly.h
17848         (check_poly_representation): Removed (unused).
17849
17850 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17851
17852         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
17853         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
17854         (graphite-cloog-util.o): New.
17855         (graphite-ppl.o): Added graphite-cloog-util.h.
17856         * graphite-clast-to-gimple.c:
17857         Added graphite-cloog-util.h to include statements.
17858         * graphite-cloog-util.c: New.
17859         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
17860         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17861         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17862         (new_C_Polyhedron_from_Cloog_Matrix): Same.
17863         (insert_constraint_into_matrix): Same.
17864         (ppl_Constrain_System_number_of_constraints): Same.
17865         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17866         (oppose_constraint): Same.
17867         (cloog_matrix_to_ppl_constraint): Same.
17868         (new_Constraint_System_from_Cloog_Matrix): Same.
17869         * graphite-cloog-util.h: New.
17870         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
17871         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17872         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17873         (new_C_Polyhedron_from_Cloog_Matrix): Same.
17874         (insert_constraint_into_matrix): Same.
17875         * graphite-ppl.c:
17876         Added graphite-cloog-util.h to include statements.
17877         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
17878         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17879         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17880         (new_C_Polyhedron_from_Cloog_Matrix): Same.
17881         (insert_constraint_into_matrix): Same.
17882         (ppl_Constrain_System_number_of_constraints): Same.
17883         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
17884         (oppose_constraint): Same.
17885         (cloog_matrix_to_ppl_constraint): Same.
17886         (new_Constraint_System_from_Cloog_Matrix): Same.
17887         * graphite-ppl.h:
17888         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
17889         graphite-cloog-util.h.
17890         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
17891         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
17892         (new_C_Polyhedron_from_Cloog_Matrix): Same.
17893         (insert_constraint_into_matrix): Same.
17894
17895 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
17896
17897         * graphite-clast-to-gimple.c
17898         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
17899         (precision_for_interval): Same.
17900         (gcc_type_for_interval): Same.
17901         (compute_type_for_level): Same.
17902         * graphite-interchange.c
17903         (lst_interchange_profitable_p): Same.
17904         * graphite-poly.c
17905         (psct_scattering_dim_for_loop_depth): Same.
17906         * graphite-ppl.c
17907         (ppl_max_for_le_pointset): Same.
17908         (ppl_min_for_le_pointset): Same.
17909
17910 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17911
17912         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
17913         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
17914
17915 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17916
17917         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
17918         rewrite_close_phi_out_of_ssa.
17919
17920 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17921
17922         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
17923
17924 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17925
17926         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
17927         rename_map.
17928         * sese.c (debug_rename_map): Same.
17929         (get_rename): Same.
17930         (set_rename): Same.
17931         (rename_variables_in_stmt): Same.
17932         (expand_scalar_variables_call): Same.
17933         (expand_scalar_variables_ssa_name): Same.
17934         (expand_scalar_variables_expr): Same.
17935         (expand_scalar_variables_stmt): Same.
17936         (expand_scalar_variables): Same.
17937         (rename_variables): Same.
17938         (graphite_copy_stmts_from_block): Same.
17939         (copy_bb_and_scalar_dependences): Same.
17940
17941 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17942
17943         * graphite-clast-to-gimple.c (copy_renames): Removed.
17944         (translate_clast_for): Do not call copy_renames.
17945         (translate_clast_guard): Same.
17946
17947 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17948
17949         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
17950         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
17951         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
17952         before rewrite_cross_bb_scalar_deps.
17953
17954 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17955
17956         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
17957         Early return in when flag_associative_math is not set.
17958
17959 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17960
17961         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
17962         of SSA copies on edges except for loop->latch.
17963
17964 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17965
17966         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
17967         Split out of rewrite_reductions_out_of_ssa.
17968         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
17969         Declared.
17970         * graphite.c (graphite_transform_loops): Call it.
17971
17972 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17973
17974         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
17975
17976 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
17977
17978         * dbgcnt.def (graphite_scop): New counter.
17979         * graphite.c: Include dbgcnt.h.
17980         (graphite_transform_loops): Use new counter to limit transformations.
17981         * Makefile.in (graphite.o): Depend on DBGCNT_H.
17982
17983 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17984
17985         * passes.c (init_optimization_passes): Add pass_graphite.
17986         Schedule a pass_copy_prop before pass_graphite_transforms.
17987         * timevar.def (TV_GRAPHITE): Declared.
17988         * tree-pass.h (pass_graphite): Declared.
17989         * tree-ssa-loop.c (pass_graphite): New.
17990
17991 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
17992
17993         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
17994         Remove calls to rename_nb_iterations and rename_sese_parameters.
17995         * graphite-clast-to-gimple.h (gloog): Update declaration.
17996         * graphite.c (graphite_transform_loops): Update call to gloog.
17997         * sese.c (rename_variables_in_expr): Removed.
17998         (rename_nb_iterations): Removed.
17999         (rename_sese_parameters): Removed.
18000         * sese.h (rename_nb_iterations): Removed.
18001         (rename_sese_parameters): Removed.
18002
18003 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
18004
18005         * graphite-clast-to-gimple.c (gloog): Remove call to
18006         sese_adjust_liveout_phis.
18007         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
18008         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
18009         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
18010         rewrite_phi_out_of_ssa.
18011         * sese.c (get_vdef_before_sese): Removed.
18012         (sese_adjust_vphi): Removed.
18013         (sese_adjust_liveout_phis): Removed.
18014         * sese.h (sese_adjust_liveout_phis): Removed.
18015
18016 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
18017
18018         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
18019         argument for the place after which to insert the out of SSA copy.
18020         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
18021         (rewrite_phi_out_of_ssa): Same.
18022         (rewrite_cross_bb_scalar_deps): Same.
18023         (insert_copyout): Removed.
18024         (insert_copyin): Removed.
18025         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
18026         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
18027         insert_copyin.
18028
18029 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
18030
18031         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
18032         (rewrite_reductions_out_of_ssa): Same.
18033         (rewrite_commutative_reductions_out_of_ssa): Same.
18034         (build_poly_scop): Do not call these functions.
18035         * graphite-sese-to-poly.h (build_poly_scop): Declared.
18036         (rewrite_reductions_out_of_ssa): Declared.
18037         (rewrite_commutative_reductions_out_of_ssa): Declared.
18038         * graphite.c (graphite_transform_loops): Call on every scop
18039         rewrite_commutative_reductions_out_of_ssa before calling
18040         rewrite_reductions_out_of_ssa and build_scop_bbs.
18041
18042 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
18043
18044         * graphite-dependences.c (dot_deps): Make system call to dotty run
18045         in background.
18046         (dot_deps_stmt): Same.
18047         * graphite-poly.c (dot_lst): Same.
18048
18049 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
18050
18051         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
18052         phi_arg_in_outermost_loop.
18053         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
18054         (remove_invariant_phi): Same.
18055
18056 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
18057
18058         * target.def (output_addr_const_extra): New hook.
18059         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
18060         * doc/tm.texi: Regenerate.
18061         * targhooks.c (default_asm_output_addr_const_extra): New function.
18062         * targhooks.h (default_asm_output_addr_const_extra): Declare.
18063         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
18064         target hook.
18065
18066         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
18067         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
18068         * config/i386/i386.h (output_addr_const_extra): Rename to...
18069         (i386_asm_output_addr_const_extra): ...this. Make static.
18070         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
18071
18072 2010-08-11  Richard Henderson  <rth@redhat.com>
18073
18074         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
18075
18076 2010-08-11  Nick Clifton  <nickc@redhat.com>
18077
18078         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
18079         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
18080         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
18081         stormy16-lib2-cmpsi.c.
18082
18083         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
18084         -O2.
18085
18086 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
18087
18088         * opts.h (struct cl_option_handler_func): Make handler take
18089         cl_decoded_option structure as parameter, not individual elements.
18090         (struct cl_option_handlers): Make callbacks take cl_decoded_option
18091         structure as parameter, not individual elements.
18092         (handle_option): Take cl_decoded_option structure as parameter,
18093         not individual elements.
18094         (handle_generated_option): Declare.
18095         * opts-common.c (handle_option): Take cl_decoded_option structure
18096         as parameter, not individual elements.  Update calls to callback
18097         and handler functions.
18098         (handle_generated_option): New.
18099         (read_cmdline_option): Update calls to callback functions and
18100         handle_option.
18101         * opts.c (common_handle_option, complain_wrong_lang,
18102         unknown_option_callback, post_handling_callback,
18103         lang_handle_option, target_handle_option): Take cl_decoded_option
18104         structure as parameter, not individual elements.
18105         (lang_handle_option, target_handle_option, common_handle_option):
18106         Assert option has at most one argument.
18107         (enable_warning_as_error): Call handle_generated_option instead of
18108         handle_option.  Do not pass -Werror argument as argument of
18109         generated option.
18110
18111 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18112
18113         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
18114         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
18115         (SUBWORD_BOOL_CAS): Likewise.
18116         (SUBWORD_SYNC_OP): Likewise.
18117         (SUBWORD_TEST_AND_SET): Likewise.
18118         (FETCH_AND_OP_WORD): Parenthesise INF_OP
18119         (SUBWORD_SYNC_OP): Likewise.
18120         (OP_AND_FETCH_WORD): Likewise.
18121
18122 2010-08-10  Xinliang David Li  <davidxl@google.com>
18123
18124         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
18125         compute max/min offset in address.
18126
18127 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
18128
18129         * ira-live.c: Include sbitmap.h.
18130         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
18131         Compress live ranges even more.
18132
18133 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
18134
18135         * coverage.c (ctr_labels): Delete.
18136
18137 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
18138
18139         PR bootstrap/45177
18140         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
18141         test here from arm_gen_load_multiple_1.
18142         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
18143         multiple_operation_profitable_p.
18144
18145 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
18146
18147         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
18148         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
18149
18150 2010-08-10  Richard Henderson  <rth@redhat.com>
18151
18152         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
18153         after saving registers.  Assert that SSE registers are only saved
18154         with a sufficiently aligned frame.
18155         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
18156         remove stack_realign_fp handling.
18157         (ix86_expand_prologue): Save int registers before stack_realign_fp,
18158         and do not mark the stack alignment as frame related.
18159         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
18160
18161         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
18162         saves when re-aligning the stack.
18163
18164 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
18165
18166         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
18167         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
18168         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
18169
18170 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
18171
18172         * dwarf2out.c (struct die_struct): Move die_tag to the end.
18173
18174 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
18175
18176         * config/arm/iterators.md: New file.
18177         * config/arm/arm.md: Include iterators.md.
18178         (QHSI): Move to new file.
18179         (LTUGEU, cnb, optab, ior_xor): Likewise.
18180         * config/arm/iwmmxt.md (VMMX): Move to new file.
18181         (VSHFT, MMX_char): Likewise.
18182         * config/arm/neon.md (VD): Move to new file.
18183         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
18184         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
18185         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
18186         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
18187         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
18188         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
18189         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
18190         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
18191         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
18192         (Is_d_reg, V_mode_nunits): Likewise.
18193         * config/arm/vec-common.md (VALL): Move to new file.
18194         (VALLW, VINT, VINTW): Likewise.
18195
18196 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
18197
18198         PR middle-end/45182
18199         * combine.c (make_compound_operation): Don't try to convert
18200         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
18201
18202 2010-08-10  Richard Guenther  <rguenther@suse.de>
18203
18204         * tree.h (get_object_alignment): Adjust prototype.
18205         * builtins.c (get_object_alignment): Return unsigned int,
18206         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
18207         and TARGET_MEM_REF properly.
18208         (get_pointer_alignment): Adjust.
18209         * emit-rtl.c (get_mem_align_offset): Adjust comment.
18210         (set_mem_attributes_minus_bitpos): Adjust.
18211         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
18212
18213 2010-08-10  Richard Guenther  <rguenther@suse.de>
18214
18215         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
18216         (copy_prop_visit_assignment): Simplify.
18217         (copy_prop_visit_stmt): Also visit assignments from
18218         constants.
18219         (copy_prop_visit_phi_node): Use operand_equal_p.
18220
18221 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
18222
18223         * ipa-split.c (find_split_points): Free stack.
18224
18225 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
18226
18227         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
18228         * tree.c (tree_node_kind): Delete corresponding entries.
18229
18230 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
18231
18232         * alias.c (may_alias_p): Remove unused ret.
18233
18234 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
18235
18236         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
18237         alias_sets_conflict_p.
18238         (walk_mems_1): Moved from alias.c.
18239         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
18240         in alias.c.
18241         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
18242         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
18243         * alias.c (walk_mems_2): Moved to ddg.c.
18244         (walk_mems_1): Ditto.
18245         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
18246         to ddg.c.
18247         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
18248         disambiguation.
18249         *(may_alias_p): New function to check whether two memory expression
18250         may alias or not. Currently used in buidling inter-iteration memory
18251         dependence.
18252         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
18253         (insn_alias_sets_conflict_p): Removed
18254         *rtl.h (may_alias_p): New function prototype.
18255
18256 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
18257
18258         * tree.c (nreverse): Assert that we don't have a BLOCK.
18259
18260 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
18261
18262         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
18263         * config/arm/arm.c (arm_get_pcs_model): Likewise.
18264         * config/avr/avr.c (init_cumulative_args): Likewise.
18265         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18266         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
18267         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
18268         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
18269         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
18270         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
18271         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
18272         * dwarf2out.c (gen_subprogram_die): Likewise.
18273         * function.c (allocate_struct_function): Likewise.
18274         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
18275         (deserves_ellipsis): Delete.
18276
18277 2010-08-09  Richard Guenther  <rguenther@suse.de>
18278
18279         * tree-ssa-copy.c (cached_last_copy_of): Remove.
18280         (valueize_val): New function.
18281         (get_last_copy_of): Remove.
18282         (set_copy_of_val): Simplify.
18283         (dump_copy_of): Likewise.
18284         (copy_prop_visit_cond_stmt): Use valueize_val.
18285         (copy_prop_visit_phi_node): Properly handle unvisited names.
18286         Drop code managing copy-of chains.
18287         (init_copy_prop): Adjust.
18288         (fini_copy_prop): Likewise.
18289         (execute_copy_prop): Remove obsolete comment.
18290
18291 2010-08-09  Richard Guenther  <rguenther@suse.de>
18292
18293         PR middle-end/44632
18294         * function.c (gimplify_parameters): Do not clear addressable
18295         bit of the original parameter.
18296
18297 2010-08-09  Richard Guenther  <rguenther@suse.de>
18298
18299         PR middle-end/45212
18300         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
18301         alignment from MEM_REF offset only if we took it from the
18302         base object.
18303
18304 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
18305
18306         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
18307
18308 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
18309
18310         * c-tree.h (build_arg_info): Declare.
18311         * c-decl.c (build_arg_info): Define.
18312         (get_parm_info): Call it.  Delete initialization code.
18313         * c-parser.c (c_parser_parms_declarator): Likewise.
18314         (c_parser_parms_list_declaractor): Likewise.
18315
18316 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
18317
18318         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
18319         (struct c_arg_info): Change type of tags field.
18320         * c-decl.c (grokdeclarator): Update for changed type of tags field.
18321         (get_parm_info): Likewise.
18322         (store_parm_decls_newstyle): Likewise.
18323
18324 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
18325
18326         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
18327         (branch_island_list): Delete.
18328         (branch_islands): Declare.
18329         (add_compiler_branch_island): Adjust for branch_islands instead of
18330         branch_island_list.
18331         (macho_branch_islands): Likewise.
18332         (no_previous_def): Likewise.
18333         (get_prev_label): Likewise.
18334
18335 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18336
18337         PR boehm-gc/34544
18338         * gthr-posix.h (__gthread_start): Delete.
18339         (__gthread_active_init): Use pthread_default_stacksize_np instead of
18340         pthread_create to determine if hpux pthreads are active.
18341         * gthr-posix95.h (__gthread_start): Delete.
18342         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
18343
18344 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
18345
18346         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
18347         _WIN64 not expanded.
18348
18349 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
18350             H.J. Lu  <hongjiu.lu@intel.com>
18351
18352         PR target/45213
18353         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
18354         to output 32bit SFmode immediate as 8 byte sign extended value.
18355
18356 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
18357
18358         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
18359         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
18360         (SUBWORD_BOOL_CAS): Likewise.
18361         (SUBWORD_SYNC_OP): Likewise.
18362         (SUBWORD_TEST_AND_SET): Likewise.
18363         (FETCH_AND_OP_WORD): Parenthesise INF_OP
18364         (SUBWORD_SYNC_OP): Likewise.
18365         (OP_AND_FETCH_WORD): Likewise.
18366
18367 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18368
18369         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
18370         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
18371         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
18372         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
18373         generic part.
18374         (cortex_a9_sched_adjust_cost): New function.
18375         (xscale_sched_adjust_cost): New function.
18376         * config/arm/arm-protos.h (struct tune_params): New field
18377         sched_adjust_cost.
18378         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
18379
18380 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
18381
18382         PR target/44942
18383         * config/sparc/sparc.c (function_arg_advance): Always take into account
18384         the padding, if any.
18385
18386 2010-08-06  Richard Guenther  <rguenther@suse.de>
18387
18388         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
18389         (dump_lattice_value): Dump it.
18390         (get_default_value): Adjust.
18391         (get_constant_value): Likewise.
18392         (set_value_varying): Likewise.
18393         (set_lattice_value): Make sure to not go up the lattice
18394         with bitwise constant values.
18395         (get_value_for_expr): Handle ADDR_EXPRs.
18396         (value_to_double_int): New function.
18397         (get_value_from_alignment): Likewise.
18398         (do_dbg_cnt): Adjust.
18399         (ccp_lattice_meet): Handle partially constant values.
18400         (bit_value_unop_1): New function.
18401         (bit_value_binop_1): Likewise.
18402         (bit_value_unop): Likewise.
18403         (bit_value_binop): Likewise.
18404         (evaluate_stmt): Track partially constant values if
18405         flag_tree_bit_ccp is set.
18406         (ccp_fold_stmt): Dump if we folded a predicate.
18407         (ccp_visit_stmt): Adjust.
18408         * common.opt (ftree-bit-ccp): New flag.
18409         * doc/invoke.texi (ftree-bit-ccp): Document.
18410         * opts.c (decode_options): Enable bit-CCP at -O1.
18411
18412 2010-08-06  Alan Modra  <amodra@gmail.com>
18413
18414         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
18415         and -mrelocatable-lib description.
18416
18417 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
18418
18419         From Martin Thuresson  <martint@google.com>
18420         * postreload.c (reload_cse_simplify_operands): Use
18421         SET_REGNO_RAW instead of SET_REGNO.
18422         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
18423         SET_REGNO.
18424         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
18425         instead of SET_REGNO.
18426         * rtl.h (SET_REGNO_RAW): New macro.
18427
18428 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
18429
18430         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
18431         computations.  Fix formatting issues.
18432         (num_sign_bit_copies1): Likewise.
18433         (canonicalize_condition): Likewise.
18434
18435 2010-08-05  Richard Henderson  <rth@redhat.com>
18436
18437         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
18438         (floor_log2): Use clz_hwi.
18439         (exact_log2): Use ctz_hwi.
18440         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
18441         * builtins.c (fold_builtin_bitop): Use them.
18442         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18443         * combine.c (get_pos_from_mask): Use ctz_hwi.
18444         * double-int.c (double_int_ctz): Likewise.
18445         * explow.c (force_reg): Likewise.
18446         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
18447
18448 2010-08-05  Richard Henderson  <rth@redhat.com>
18449
18450         PR target/45189
18451         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
18452         the alignment constant is properly sign-extended.
18453
18454 2010-08-05  Richard Guenther  <rguenther@suse.de>
18455
18456         * expr.c (store_expr): Use emit_block_move only if both
18457         source and target are MEMs.  Use store_bit_field if only
18458         the target is a MEM.
18459
18460 2010-08-05  Richard Henderson  <rth@redhat.com>
18461
18462         PR debug/45188
18463         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
18464         (INCOMING_RETURN_ADDR_RTX): Likewise.
18465         (dwarf2out_do_frame): Remove conditional compilation.
18466         (dwarf2out_frame_init): Likewise.
18467
18468 2010-08-05  Nicolas Setton  <setton@adacore.com>
18469
18470         * gcov.c (flag_display_progress): New static variable.
18471         (main): Display progress info on standard output if requested.
18472         (options): Add -d/--display-progress.
18473         (print_usage): Print them.
18474         (process_args): Handle them.
18475         * doc/gcov.texi: Document them.
18476
18477 2010-08-05  Martin Jambor  <mjambor@suse.cz>
18478
18479         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
18480         (ipcp_insert_stage): Redirect only edges not flagged with
18481         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
18482         discovered constants.
18483
18484 2010-08-05  Martin Jambor  <mjambor@suse.cz>
18485
18486         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
18487         (struct ipa_param_descriptor): New fields types and
18488         cannot_devirtualize.
18489         (ipa_param_cannot_devirtualize_p): New function.
18490         (ipa_param_types_vec_empty): Likewise.
18491         (ipa_make_edge_direct_to_target): Declare.
18492         * ipa-cp.c: Fixed first stage driver name in initial comment,
18493         described devirtualization there too.
18494         (ipcp_analyze_node): Call ipa_analyze_params_uses.
18495         (ipcp_print_all_lattices): Print devirtualization info.
18496         (ipa_set_param_cannot_devirtualize): New function.
18497         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
18498         lattice to BOTTOM.
18499         (ipcp_init_stage): Merged into...
18500         (ipcp_generate_summary): ...its caller.
18501         (ipcp_change_tops_to_bottom): Also process type lists.
18502         (ipcp_add_param_type): New function.
18503         (ipcp_copy_types): Likewise.
18504         (ipcp_propagate_types): Likewise.
18505         (ipcp_propagate_stage): Also propagate types.
18506         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
18507         Also return true if propagated types require it.
18508         (ipcp_update_callgraph): Dump redirection info.
18509         (ipcp_process_devirtualization_opportunities): New function.
18510         (ipcp_const_param_count): Include known type information.
18511         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
18512         on new node.  Fixed formatting.
18513         * ipa-prop.c (make_edge_direct_to_target): Renamed to
18514         ipa_make_edge_direct_to_target and changed all callers.  Made
18515         externally visible.
18516         (ipa_node_duplication_hook): Duplicate types vector.
18517         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
18518         redirect outgoing calls for which we can't get a decl from the
18519         statement.  Check that we can get a decl from the call statement.
18520         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
18521         ipa_analyze_params_uses only when ipa-cp is disabled.
18522         * tree-inline.c (get_indirect_callee_fndecl): Removed.
18523         (expand_call_inline): Do not call get_indirect_callee_fndecl.
18524         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
18525         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
18526
18527 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
18528
18529         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
18530         temporary. Emit move from temporary to accum, so REG_EQUAL note will
18531         be attached to this insn in correct mode.
18532
18533 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
18534
18535         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
18536         using REGNO of base_reg directly.
18537
18538 2010-08-05  Jie Zhang  <jie@codesourcery.com>
18539
18540         PR tree-optimization/45144
18541         * tree-sra.c (type_consists_of_records_p): Return false
18542         if the record contains bit-field.
18543
18544 2010-08-04  Richard Henderson  <rth@redhat.com>
18545
18546         * config/i386/i386.c (struct ix86_frame): Remove padding and
18547         to_allocate members.
18548         (ix86_compute_frame_layout): Don't store them.
18549         (ix86_can_use_return_insn_p): Use a more direct and more obviously
18550         correct condition for the position of the stack pointer.
18551         (ix86_expand_prologue): Compute remaining stack allocation based
18552         on the ultimate stack pointer offset.
18553         (ix86_expand_epilogue): Use more obvious expressions testing for
18554         the stack pointer already pointing to the saved registers.
18555
18556         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
18557         duplication deconstructing the frame pointer.  Simplify
18558         deallocation of the local stack frame.
18559
18560         * reg-notes.def (CFA_EXPRESSION): New.
18561         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
18562         (dwarf2out_frame_debug_cfa_expression): New.
18563         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
18564
18565         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
18566         * config/i386/i386.c (ix86_expand_prologue): Set it.
18567         (ix86_expand_epilogue): Clear it.
18568         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
18569         context, add REG_CFA_EXPRESSION notes.
18570
18571         * config/i386/i386.h (struct machine_frame_state): Rename from
18572         machine_cfa_state.  Add members tracking SP and FP regardless
18573         of the current CFA register.
18574         (ix86_cfa_state): Remove.
18575         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
18576         and sse_reg_save_offset members.
18577         (ix86_compute_frame_layout): Set them.
18578         (gen_push): Increment sp_offset too.
18579         (choose_baseaddr_len, choose_baseaddr): New.
18580         (ix86_emit_save_reg_using_mov): New.
18581         (ix86_emit_save_regs_using_mov): Use it.
18582         (ix86_emit_save_sse_regs_using_mov): Likewise.
18583         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
18584         compare vs the saved red_zone_offset.
18585         (pro_epilogue_adjust_stack): Adjust sp_offset.
18586         (ix86_adjust_stack_and_probe): Likewise.
18587         (ix86_expand_prologue): Set up, use, and validate the new
18588         frame_state_info members.  Use gen_frame_mem.
18589         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
18590         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
18591         new frame_state_info members.
18592         (ix86_emit_leave): Likewise.
18593         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
18594         out-of-range stack pointer offsets here.
18595         (ix86_emit_restore_sse_regs_using_mov): Likewise.
18596         (ix86_expand_epilogue): Use and validate the new frame_state_info
18597         members.  Break up and simplify the logic selecting the
18598         restore_regs_via_mov code path.  Ensure that there will be no
18599         out-of-range stack pointer offsets.
18600
18601         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
18602
18603         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
18604         argument name to reflect the expected tree; fix indentation.
18605         (ix86_asm_output_function_label): Output the entire 32-bit
18606         ms_hook here as bytes ...
18607         (ix86_expand_prologue): ... not here as insns.  Attach the
18608         unwind info for the ms_hook to a blockage insn.
18609         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
18610         (ix86_ms_bitfield_layout_p): Fix indentation.
18611         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
18612
18613         * config/i386/i386.c (ix86_using_red_zone): New.
18614         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
18615         ix86_expand_prologue, ix86_force_to_memory): Use it.
18616
18617         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
18618         saving the int registers.
18619
18620         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
18621         and DWARF2_UNWIND_INFO conditional compilation.
18622
18623 2010-08-04  Richard Henderson  <rth@redhat.com>
18624
18625         PR debug/45171
18626         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
18627         an is_naming_typedef_decl.
18628
18629 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
18630
18631         PR rtl-optimization/45162
18632         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
18633         * dce.c (word_dce_process_block): Likewise.
18634
18635 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
18636
18637         PR target/44583
18638         * config/ia64/constraints.md (Z): New.
18639         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
18640         (xfreg_or_signed_fp01_operand): New.
18641         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
18642         with fr_reg_or_signed_fp01_operand and constraint G with Z.
18643         (subsf3): Ditto.
18644         (*maddsf4): Ditto.
18645         (*msubsf4): Ditto.
18646         (adddf3): Ditto.
18647         (adddf3_trunc): Ditto.
18648         (subdf3): Ditto.
18649         (*subdf3_trunc): Ditto.
18650         (*madddf4): Ditto.
18651         (*madddf4_trunc): Ditto.
18652         (*msubdf4): Ditto.
18653         (*msubdf4_trunc): Ditto.
18654         (addxf3): Replace xfreg_or_fp01_operand with
18655         xfreg_or_signed_fp01_operand and constraint G with Z.
18656         (*addxf3_truncsf): Ditto.
18657         (*addxf3_truncdf): Ditto.
18658         (subxf3): Ditto.
18659         (*subxf3_truncsf): Ditto.
18660         (*subxf3_truncdf): Ditto.
18661         (*maddxf4): Ditto.
18662         (*maddxf4_truncsf): Ditto.
18663         (*maddxf4_truncdf): Ditto.
18664         (*msubxf4): Ditto.
18665         (*msubxf4_truncsf): Ditto.
18666         (*msubxf4_truncdf): Ditto.
18667
18668 2010-08-04  Richard Guenther  <rguenther@suse.de>
18669
18670         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
18671         if either alias-set is zero.
18672
18673 2010-08-04  Richard Guenther  <rguenther@suse.de>
18674
18675         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
18676         * tree-ssa-ccp.c: ... here.
18677         * tree-ssa-copy.c: ... and here.
18678         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
18679         value_range_t): Move ...
18680         * tree-vrp.c: ... here.
18681         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
18682         (substitute_and_fold): Adjust prototype.
18683         * tree-ssa-propagate.c (replace_uses_in): Adjust.
18684         (replace_phi_args_in): Likewise.
18685         (substitute_and_fold): Take callback to query lattice instead
18686         of pointer to lattice.  Replace SSA name defs with lattice
18687         values first.
18688         * tree-ssa-ccp.c (ccp_finalize): Adjust.
18689         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
18690         (get_value): New function.
18691         (fini_copy_prop): Adjust.
18692         * tree-vrp.c (vrp_finalize): Adjust.
18693
18694 2010-08-04  Richard Guenther  <rguenther@suse.de>
18695
18696         PR middle-end/45176
18697         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
18698         points-to set for original MEM_REF.
18699
18700 2010-08-04  Richard Guenther  <rguenther@suse.de>
18701
18702         * tree-ssa-ccp.c (get_constant_value): New function.
18703         (get_rhs_assign_op_for_ccp): Remove.
18704         (valueize_op): New function.
18705         (ccp_fold): Use get_constant_value and valueize_op.
18706         (fold_const_aggregate_ref): Likewise.
18707         (ccp_fold_stmt): Likewise.
18708         (visit_assignment): Simplify.
18709
18710 2010-08-04  Richard Guenther  <rguenther@suse.de>
18711
18712         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
18713         * double-int.h (double_int_ctz): Declare.
18714         * double-int.c (double_int_ctz): New function.
18715
18716 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
18717
18718         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
18719         Define.
18720         picochip_expand_movmemhi : Expand movmem pattern.
18721         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
18722         Declare.
18723         * config/picochip/picochip.md (movmemhi) : New pattern.
18724
18725 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
18726
18727         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
18728
18729 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
18730
18731         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
18732         NEG as operand of a MULT by merging it with the other operand.
18733         * combine.c (make_compound_operation): Use trunc_int_for_mode when
18734         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
18735         MULT.
18736         * config/arm/constraints.md (M): Examine only 32 bits of a
18737         HOST_WIDE_INT.
18738         * config/arm/predicates.md (power_of_two_operand): Likewise.
18739
18740 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18741
18742         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
18743         non-NOTE insns.
18744
18745 2010-08-03  Jan Hubicka  <jh@suse.cz>
18746
18747         * ipa-split.c (struct split_point): Add split_part_set_retval.
18748         (find_retval): Forward declare.
18749         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
18750         (consider_split): Compute current->split_part_set_retval.
18751         (visit_bb): Do not look into return value.
18752         (split_function): Handle !split_part_set_retval
18753
18754 2010-08-03  Martin Jambor  <mjambor@suse.cz>
18755
18756         * tree-sra.c (completely_scalarize_record): New parameter REF, create
18757         its own access->expr intead of using build_ref_for_offset.
18758
18759 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
18760
18761         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
18762         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
18763         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
18764         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
18765         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
18766         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
18767         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
18768         DEFAULT_SWITCH_TAKES_ARG.
18769         * config/rx/rx.opt (-patch=): Remove option.
18770         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
18771         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
18772         * doc/invoke.texi (RX Options): Remove -patch=.
18773         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
18774         (option_map): Remove --profile-blocks, --quiet and --silent.
18775
18776 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
18777
18778         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
18779         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
18780         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
18781         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18782         Update calls to ix86_expand_compare and ix86_expand_branch.
18783         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
18784         ix86_expand_compare.
18785         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
18786         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
18787         Make static.
18788         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
18789         and ix86_compare_op1.  Update calls to ix86_expand_compare.
18790         (ix86_expand_int_movcc): Ditto.
18791         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
18792         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
18793         (ix86_expand_setcc): Ditto.
18794         (ix86_expand_compare): Remove prototype.
18795         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
18796         ix86_compare_op0 and ix86_compare_op1.  Update calls
18797         to ix86_expand_branch to directly pass operands[1] and operands[2].
18798         (cbranchxf4): Ditto.
18799         (cbranch<MODEF:mode>4): Ditto.
18800         (cbranchcc4): Ditto.
18801         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
18802         Update calls to ix86_expand_setcc to directly pass operands[2] and
18803         operands[3].
18804         (cstorexf4): Ditto.
18805         (cstore<MODEF:mode>4): Ditto.
18806         (cstorecc4): Ditto.
18807
18808 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
18809
18810         PR target/45063
18811         * caller-save.c (save_call_clobbered_regs): Remove regs from
18812         hard_regs_saved when they are set.
18813
18814 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
18815
18816         PR target/41089
18817         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
18818         as volatile.
18819
18820 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
18821
18822         * common.opt (ftree-loop-distribute-patterns): New.
18823         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
18824         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
18825         at -O3.
18826         * tree-data-ref.c (stores_zero_from_loop): New.
18827         * tree-data-ref.h (stores_zero_from_loop): Declared.
18828         * tree-loop-distribution.c (tree_loop_distribution): Call
18829         stores_zero_from_loop.
18830         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
18831
18832 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
18833
18834         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
18835         into account.
18836
18837         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
18838         * config/arm/arm.c (thumb1_code): New variable.
18839         (arm_override_options): Set it.
18840         (thumb1_final_prescan_insn): Keep track of condition code status.
18841         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
18842         jumps that depend on them.
18843         * config/arm/arm.h (thumb1_code): Declare variable.
18844         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
18845         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
18846         thumb1_cc_mode.
18847         (CC_STATUS_INIT): New macro.
18848         * config/arm/constraints.md (Pd): New constraint.
18849         * config/arm/predicates.md (noov_comparison_operator): New predicate.
18850         * config/arm/arm.md (is_thumb1): New define_attr.
18851         (conds): Set default to "clob" when generating Thumb1 code.
18852         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
18853         code are set.  Use two-operand assembly syntax.
18854         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
18855         pattern.
18856         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
18857         codes are set.  Use two-operand assembly syntax.
18858         (zero_extendhisi splitter): Remove constraints.
18859         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
18860         thumb1_movsf_insn): Set conds attribute as appropriate.
18861         (cbranchsi4_insn): Use condition code status from struct
18862         machine_function to determine whether the comparison can be eliminated.
18863         Discourage the alternative using high registers.
18864         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
18865         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
18866         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
18867         subsi3_cbranch): Delete.
18868         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
18869         one subtract and one cbranch insn.
18870
18871         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
18872         thumb2_movdf_soft_insn): Delete patterns.
18873         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
18874         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
18875         (pool_range, neg_pool_range): Use them to define defaults.
18876         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
18877         and allow for TARGET_32BIT.
18878
18879         PR target/40457
18880         * config/arm/arm.h (arm_regs_in_sequence): Declare.
18881         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
18882         load_multiple_sequence, store_multiple_sequence): Delete
18883         declarations.
18884         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
18885         declarations.
18886         * config/arm/ldmstm.md: New file.
18887         * config/arm/arm.c (arm_regs_in_sequence): New array.
18888         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
18889         CHECK_REGS.  All callers changed.
18890         If SAVED_ORDER is nonnull, copy the computed order into it.
18891         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
18892         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
18893         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
18894         If SAVED_ORDER is nonnull, copy the computed order into it.
18895         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
18896         like REGS.  Handle Thumb mode.
18897         (arm_gen_load_multiple_1): New function, broken out of
18898         arm_gen_load_multiple.
18899         (arm_gen_store_multiple_1): New function, broken out of
18900         arm_gen_store_multiple.
18901         (arm_gen_multiple_op): New function, with code from
18902         arm_gen_load_multiple and arm_gen_store_multiple moved here.
18903         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
18904         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
18905         changed.
18906         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
18907         * config/arm/predicates.md (commutative_binary_operator): New.
18908         (load_multiple_operation, store_multiple_operation): Handle more
18909         variants of these patterns with different starting offsets.  Handle
18910         Thumb-1.
18911         * config/arm/arm.md: Include "ldmstm.md".
18912         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
18913         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
18914         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
18915         peepholes): Delete.
18916         * config/arm/ldmstm.md: New file.
18917         * config/arm/arm-ldmstm.ml: New file.
18918
18919         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
18920         if statement which adds extra costs to frame-related expressions.
18921
18922 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18923
18924         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
18925
18926 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
18927
18928         PR target/45142
18929         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
18930         alternative 2.
18931         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
18932         split V4SI operands.
18933
18934 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
18935
18936         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18937         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
18938         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
18939         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
18940
18941 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
18942
18943         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
18944         LOCAL_INCLUDE_DIR.
18945
18946 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
18947
18948         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
18949         used in the call to optab_for_tree_code.  Fix the second
18950         is_widening_mult_p call.  Check that both unwidened operands
18951         have the same sign.
18952
18953 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
18954
18955         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
18956
18957 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
18958
18959         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
18960
18961 2010-07-30  DJ Delorie  <dj@redhat.com>
18962
18963         * config/rx/predicates.md (rx_constshift_operand): New.
18964         * config/rx/rx.md (zs_cond): New.
18965         (cbranchsi4): Remove mode.
18966         (*cbranchsi4_<code>): Likewise.
18967         (*tstbranchsi4_<code>): New.
18968         (*tstbranchsi4r_<code>): New.
18969         (*tstbranchsi4m_eq): New.
18970         (*tstbranchsi4m_ne): New.
18971         (cbranchsf4): Remove mode.
18972         (*cbranchsf4_<code>): Likewise.
18973
18974 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
18975
18976         * rtlanal.c (simplify_subreg_regno): Don't treat
18977         HARD_FRAME_POINTER_REGNUM specially.
18978
18979 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
18980
18981         * common.opt (-G): Don't define option here.
18982         * config/g.opt: New.
18983         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
18984         rs6000/powerpc and score targets.
18985         * opts.c (common_handle_option): Don't handle -G here.
18986         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
18987         * config/frv/frv.c (frv_handle_option): Handle -G.
18988         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
18989         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
18990         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
18991         * config/mips/mips.c (mips_handle_option): Handle -G.
18992         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
18993         * config/score/score.c (score_handle_option): Handle -G.
18994
18995 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
18996
18997         * config/mmix/mmix.c: Include basic-block.h.
18998
18999 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
19000
19001         PR debug/45055
19002         PR rtl-optimization/45137
19003         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
19004         prototypes.
19005         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
19006         New functions.
19007         * combine.c (next_nonnote_nondebug_insn): Removed.
19008         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
19009         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
19010         * sched-deps.c (sched_analyze_insn): Likewise.
19011         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
19012         * rtlanal.c (canonicalize_condition): Likewise.
19013         * postreload.c (reload_combine_recognize_pattern): Likewise.
19014         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
19015
19016 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
19017
19018         * config/i386/i386.md (int_cond): Remove code iterator.
19019         (fp_cond): Ditto.
19020         (cbranch<mode>4): Use ordered_comparison_operator predicate
19021         for operator0.
19022         (cstore<mode>4): Ditto for operator1.
19023         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
19024         (add<mode>cc): ditto.
19025
19026 2010-07-30  Richard Guenther  <rguenther@suse.de>
19027
19028         PR middle-end/45141
19029         * expr.c (expand_expr_real_1): Check for not handled base address.
19030
19031 2010-07-30  Richard Guenther  <rguenther@suse.de>
19032
19033         * ipa-prop.c (ipa_modify_formal_parameters): Use
19034         build_distinct_type_copy.
19035
19036 2010-07-30  Anthony Green  <green@moxielogic.com>
19037
19038         * config/moxie/rtems.h: New file.
19039         * config.gcc: Add moxie-rtems support.
19040
19041 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
19042
19043         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
19044         df flags as in run_fast_df_dce.
19045
19046 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
19047
19048         Revert:
19049         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
19050
19051         * rtl.def (NOTE): Swap operands 4 and 5.
19052         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
19053         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
19054         Adjust accordingly.
19055         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
19056
19057 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
19058
19059         PR debug/45110
19060         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
19061         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
19062         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
19063         formal parameters.
19064         (gen_decl_die): Change return type to dw_die_ref, return what
19065         gen_formal_parameter_die returned.
19066
19067 2010-07-29  Martin Jambor  <mjambor@suse.cz>
19068
19069         * dbgcnt.def (eipa_sra): New counter.
19070         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
19071
19072 2010-07-29  Xinliang David Li  <davidxl@google.com>
19073
19074         PR bootstrap/45119
19075         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
19076         in revision 162652.
19077
19078 2010-07-29  Richard Guenther  <rguenther@suse.de>
19079
19080         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
19081         (TV_TREE_STORE_CCP): Likewise.
19082         (TV_TREE_REDPHI): Likewise.
19083
19084 2010-07-29  Richard Guenther  <rguenther@suse.de>
19085
19086         * double-int.h (double_int_and_not): New function.
19087         * combine.c (try_combine): Use it.
19088         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
19089
19090 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
19091
19092         PR rtl-optimization/42575
19093         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
19094         Argument AU removed.  All callers changed.  Ignore artificial refs.
19095         Use return value of df_word_lr_simulate_defs to decide whether an insn
19096         is necessary.
19097         (fast_dce): Rename arg to WORD_LEVEL.
19098         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
19099         static.
19100         (pass_fast_rtl_byte_dce): Delete.
19101         * dce.h (run_word_dce): Declare.
19102         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
19103         All callers changed.  Simplify code to only deal with two-word regs.
19104         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
19105         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
19106         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
19107         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
19108         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
19109         (df_word_lr_mark_ref): Declare.
19110         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
19111         df_word_lr_simulate_uses): Declare or rename from byte variants.
19112         (df_byte_lr_simulate_artificial_refs_at_top,
19113         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
19114         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
19115         declarations.
19116         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
19117         (enum df_mm): Delete.
19118         * df-byte-scan.c: Delete file.
19119         * df-problems.c (df_word_lr_problem_data): Renamed from
19120         df_byte_lr_problem_data, all members deleted except for
19121         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
19122         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
19123         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
19124         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
19125         df_byte_lr_confluence_0): Delete functions.
19126         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
19127         callers changed.
19128         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
19129         Don't initialize members that were deleted, don't try to discover data
19130         about registers.  Ignore hard regs.
19131         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
19132         (df_word_lr_mark_ref): New function.
19133         (df_word_lr_bb_local_compute): Renamed from
19134         df_byte_bb_lr_local_compute; all callers changed.  Use
19135         df_word_lr_mark_ref.  Assert that artificial refs don't include
19136         pseudos.  Ignore hard registers.
19137         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
19138         Assert that exit block uses don't contain pseudos.
19139         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
19140         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
19141         callers changed.  Ignore hard regs.
19142         (df_word_lr_transfer_function): Renamed from
19143         df_byte_lr_transfer_function; all callers changed.
19144         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
19145         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
19146         changed.
19147         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
19148         callers changed.
19149         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
19150         confluence operator 0 set to NULL.
19151         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
19152         callers changed.
19153         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
19154         Return bool, true if bitmap changed or insn otherwise necessary.
19155         All callers changed.  Simplify using df_word_lr_mark_ref.
19156         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
19157         all callers changed.  Simplify using df_word_lr_mark_ref.
19158         * lower-subreg.c: Include "dce.h"
19159         (decompose_multiword_subregs): Call run_word_dce if df available.
19160         * Makefile.in (lower-subreg.o): Adjust dependencies.
19161         (df-byte-scan.o): Delete.
19162         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
19163
19164 2010-07-29  Richard Guenther  <rguenther@suse.de>
19165
19166         * tree.c (build_vector): Assert that the vector constant
19167         has enough elements.
19168         (build_vector_from_ctor): Pad with trailing zeros.
19169
19170 2010-07-29  Richard Guenther  <rguenther@suse.de>
19171
19172         PR tree-optimization/45120
19173         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19174         Handle offset in DEREFs properly.
19175         (get_constraint_for_1): Handle MEM_REF offset properly.
19176
19177 2010-07-29  Richard Guenther  <rguenther@suse.de>
19178
19179         PR middle-end/45034
19180         * convert.c (convert_to_integer): Always use an unsigned
19181         type for narrowed negate and bitwise not.
19182
19183 2010-07-29  Ira Rosen  <irar@il.ibm.com>
19184
19185         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
19186         to outer loop when creating reduction epilogue for double reduction,
19187         and switch back to the inner loop when updating the phi nodes.
19188         Update uses of outer loop exit phi nodes in double reduction (instead
19189         of uses of reduction).
19190
19191 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
19192
19193         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
19194         popcount on power7 and parity on power6 systems.
19195         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
19196         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
19197         instructions.
19198
19199         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
19200         (UNSPEC_PARITY): Ditto.
19201         (SFDF): New iterator for SF/DF.
19202         (rreg2): New mode attribute for floating register constraint.
19203         (TARGET_FLOAT): New mode attribute for whether single/double float
19204         is supported.
19205         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
19206         pattern.
19207         (parity<mode>2_cmpb): New insn for parity on power6 and newer
19208         machines.
19209         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
19210         pattern.  Add support for fcpsgn instruction added in power6.
19211         (copysignsf3): Delete.
19212         (copysigndf3): Delete.
19213         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
19214         instead of if_then_else in RTL to avoid problems with -0.
19215
19216         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
19217         of if_then_else to mirror scalar code.
19218         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
19219         rs6000.md.
19220
19221         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
19222         instead of if_then_else.
19223
19224 2010-07-28  Xinliang David Li  <davidxl@google.com>
19225
19226         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
19227         (dump_cand): Dump var_before/after.
19228         (htab_inv_expr_eq): New function.
19229         (htab_inv_expr_hash): New function.
19230         (tree_ssa_iv_optimize_init): Support pseudo invariants.
19231         (add_candidate_1): consider base type precision.
19232         (set_use_iv_cost): New parameter.
19233         (adjust_setup_cost): Use profile information.
19234         (get_address_cost): Do not hard code width in computing address
19235         offset limits.
19236         (compare_aff_trees): New function.
19237         (get_loop_invariant_expr_id): New function.
19238         (get_computation_cost_at): New parameter and use profile information.
19239         (get_computation_cost): New parameter.
19240         (determine_use_iv_cost_generic): Pass new parameter.
19241         (determine_use_iv_cost_address): Ditto.
19242         (determine_use_iv_cost_condition): Ditto.
19243         (autoinc_possible_for_pair): Ditto.
19244         (determine_use_iv_costs): More dumps.
19245         (iv_ca_get_num_inv_exprs): New function.
19246         (iv_ca_recount_cost): Consider loop invariants in register pressure
19247         cost.
19248         (iv_ca_add_use): New parameter.
19249         (iv_ca_dump): Better dumping.
19250         (iv_ca_extend): New parameter.
19251         (try_add_cand_for): Attempt to get better partial solution.
19252         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
19253         (create_new-ivs): More dumps.
19254         (rewrite_use_compare): Ditto.
19255         (free_loop_data): More cleanup.
19256         (treee_ssa_iv_optimize_finalize): Ditto.
19257
19258 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
19259
19260         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
19261         * config/i386/i386.c (ix86_profile_before_prologue): New.
19262         (override_options): Add special handling for -mfentry.
19263         (ix86_function_regparm): Likewise.
19264         (ix86_function_sseregparm): Likewise.
19265         (ix86_frame_pointer_required): Likewise.
19266         (ix86_expand_prologue): Check for ms_hook_prologue.
19267         (x86_function_profiler): Adjust mcount output.
19268         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
19269         * config/i386/i386.opt (mfentry): New.
19270         * doc/invoke.texi (mfentry): Add documentation.
19271         * doc/tm.texi: Regenerated..
19272         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
19273         * final.c (final_start_function): Replace macro
19274         PROFILE_BEFORE_PROLOGUE by target hook.
19275         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19276         * target.def (profile_before_prologue): New hook.
19277         * targhooks.c (default_profile_before_prologue): New.
19278         * targhooks.h (default_profile_before_prologue): New.
19279
19280 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
19281
19282         PR debug/45105
19283         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
19284
19285         PR debug/45103
19286         * dwarf2out.c (dwarf2out_var_location): Always consider
19287         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
19288
19289 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
19290
19291         PR rtl-optimization/45107
19292         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
19293
19294 2010-07-28  Richard Guenther  <rguenther@suse.de>
19295
19296         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
19297         (set_lattice_value): Do not query an old default value.
19298         (get_value_for_expr): New function.  Properly canonicalize
19299         float values.
19300         (ccp_visit_phi_node): Use it.
19301
19302 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
19303
19304         * config/arm/arm.c (arm_pcs_default): Remove static.
19305         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
19306         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
19307         (arm_pcs_default): Declare.
19308
19309 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
19310
19311         * config/rs6000/rs6000.c (rs6000_override_options):
19312         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
19313         ... to darwin_rs6000_override_options.
19314         (rs6000_return_in_memory): Update preceding comment for darwin
19315         64 bit ABI.  Use TARGET_MACHO inline.
19316         (rs6000_darwin64_struct_check_p): New.
19317         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
19318         (function_arg): Likewise.
19319         (rs6000_arg_partial_bytes): Likewise.
19320         (rs6000_function_value): Likewise.
19321
19322 2010-07-28  Andi Kleen  <ak@linux.intel.com>
19323
19324         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
19325
19326 2010-07-28  Richard Guenther  <rguenther@suse.de>
19327
19328         PR middle-end/44903
19329         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
19330         targets try harder to not generate unaligned accesses.
19331
19332 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
19333
19334         PR rtl-optimization/45101
19335         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
19336         for gcse-las.
19337
19338 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
19339
19340         PR tree-optimization/44885
19341         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
19342         with non-aliased component.
19343
19344 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * config/darwin-driver.c (SWITCH_TAKES_ARG,
19347         WORD_SWITCH_TAKES_ARG): Remove.
19348         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
19349         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
19350         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
19351         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
19352         definitions from gcc.c.
19353         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
19354         defaults.h.
19355         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
19356         Move to defaults.h.
19357         * opts-common.c: Include tm.h.
19358         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
19359         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
19360         Handle more than one argument.  Set canonical_option_num_elements.
19361         (decode_cmdline_options_to_array): Set
19362         canonical_option_num_elements and trailing elements of
19363         canonical_option.
19364         * opts.h (struct cl_decoded_option): Allow four elements in
19365         canonical_option.  Add field canonical_option_num_elements.
19366         * Makefile.in (opts-common.o): Update dependencies.
19367
19368 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
19369
19370         PR middle-end/44790
19371         PR middle-end/44993
19372         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
19373         sure the base has address_mode before adding the offset.
19374
19375 2010-07-27  Xinliang David Li  <davidxl@google.com>
19376
19377         * tree-flow.h (create_mem_ref): Add one new parameter.
19378         * tree-ssa-address.c (create_mem_ref): New parameter.
19379         (addr_to_parts): Ditto.
19380         (move_variant_to_index): New function.
19381         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
19382
19383 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
19384
19385         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
19386         4 and 5.
19387         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
19388         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
19389         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
19390         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
19391         CODE_LABELs and NOTEs.
19392         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
19393         * combine.c (try_combine): Likewise.
19394         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19395         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
19396
19397 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
19398
19399         * coretypes.h (struct cl_option_handlers): Declare.
19400         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
19401         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
19402         * langhooks-def.h (lhd_handle_option): Declare.
19403         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
19404         * langhooks.c (lhd_handle_option): New.
19405         * langhooks.h (struct lang_hooks): Update prototype and return
19406         value type of handle_option hook.
19407         * optc-gen.awk: Generate target_flags_explicit definition for the
19408         driver.
19409         * opts-common.c: Include diagnostic.h.
19410         (handle_option): Move from opts.c.  Update prototype and return
19411         value type.  Use handlers structure.
19412         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
19413         handlers structure.
19414         (set_option): Move from opts.c.
19415         * opts.c (common_handle_option): Update prototype and return value
19416         type.  Update calls to handle_option and enable_warning_as_error.
19417         (unknown_option_callback, post_handling_callback,
19418         lang_handle_option, target_handle_option): New.
19419         (handle_option, read_cmdline_option): Move to opts-common.c.
19420         (read_cmdline_options): Update prototype.  Update call to
19421         read_cmdline_option.
19422         (decode_options): Initialize and use handlers structure.
19423         (set_option): Move to opts-common.c.
19424         (enable_warning_as_error): Update prototype.  Update call to
19425         handle_option.
19426         * opts.h (struct cl_option_handler_func, struct
19427         cl_option_handlers): New.
19428         (handle_option, enable_warning_as_error): Update prototypes.
19429         (read_cmdline_option): Declare.
19430         * Makefile.in (opts-common.o): Update dependencies.
19431
19432 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19433
19434         * config/arm/arm.c (params.h): Include.
19435         (arm_override_options): Tune gcse-unrestricted-cost.
19436         * config/arm/t-arm (arm.o): Define dependencies.
19437
19438 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19439
19440         PR target/42495
19441         PR middle-end/42574
19442         * basic-block.h (get_dominated_to_depth): Declare.
19443         * dominance.c (get_dominated_to_depth): New function, use
19444         get_all_dominated_blocks as a base.
19445         (get_all_dominated_blocks): Use get_dominated_to_depth.
19446
19447         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
19448         (hoist_exprs): Remove.
19449         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
19450         (compute_code_hoist_vbeinout): Add debug print outs.
19451         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
19452
19453         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
19454         quadratic behavior.
19455         * params.h (MAX_HOIST_DEPTH): New macro.
19456         * doc/invoke.texi (max-hoist-depth): Document.
19457
19458 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19459
19460         PR rtl-optimization/40956
19461         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
19462         constants.
19463
19464 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19465
19466         PR target/42495
19467         PR middle-end/42574
19468         * config/arm/arm.c (legitimize_pic_address): Use
19469         gen_calculate_pic_address pattern to emit calculation of PIC address.
19470         (will_be_in_index_register): New function.
19471         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
19472         (thumb1_legitimate_address_p): Use it provided !strict_p.
19473         * config/arm/arm.md (calculate_pic_address): New expand and split.
19474
19475 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19476
19477         PR target/42495
19478         PR middle-end/42574
19479         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
19480         * config/arm/arm.md (define_split "J", define_split "K"): Make
19481         IRA/reload friendly.
19482
19483 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19484
19485         * gcse.c (insert_insn_end_basic_block): Update signature, remove
19486         unused checks.
19487         (pre_edge_insert, hoist_code): Update.
19488
19489 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19490
19491         PR target/42495
19492         PR middle-end/42574
19493         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
19494
19495 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19496
19497         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
19498
19499 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19500
19501         PR rtl-optimization/40956
19502         PR target/42495
19503         PR middle-end/42574
19504         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
19505         for hoisting.
19506         (hoist_code): Count occurences in current block too.
19507
19508 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19509
19510         * gcse.c (struct expr:max_distance): New field.
19511         (doing_code_hoisting_p): New static variable.
19512         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
19513         simple expressions, don't change behavior for PRE.  Set max_distance.
19514         (insert_expr_in_table): Set new max_distance field.
19515         (hash_scan_set): Update.
19516         (hoist_expr_reaches_here_p): Stop search after max_distance
19517         instructions.
19518         (find_occr_in_bb): New static function.  Use it in ...
19519         (hoist_code): Calculate sizes of basic block before any changes are
19520         done.  Pass max_distance to hoist_expr_reaches_here_p.
19521         (one_code_hoisting_pass): Set doing_code_hoisting_p.
19522
19523         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
19524         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
19525         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
19526         macros.
19527         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
19528         Document.
19529
19530 2010-07-27  Jeff Law  <law@redhat.com>
19531             Maxim Kuvyrkov  <maxim@codesourcery.com>
19532
19533         * gcse.c (compute_transpout, transpout): Remove, move logic
19534         to prune_expressions.
19535         (compute_pre_data): Move pruning of trapping expressions ...
19536         (prune_expressions): ... here.  New static function.
19537         (compute_code_hoist_data): Use it.
19538         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
19539
19540 2010-07-27  Xinliang David Li  <davidxl@google.com>
19541
19542         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
19543         (rewrite_use_address): Adjust iv update position when needed.
19544
19545 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
19546
19547         * dbgcnt.def (hoist_insn): New debug counter.
19548         * gcse.c (hoist_code): Use it.
19549
19550 2010-07-27  Xinliang David Li  <davidxl@google.com>
19551
19552         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
19553         (niter_for_single_dom_exit): Passes additional parameter.
19554         (iv_period): Fix comments.
19555         (may_eliminate_iv): Handles multiple exit loops properly.
19556         (free_tree_niter_desc): New function.
19557         (free_loop_data): Frees up loop iteration descriptors.
19558
19559 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
19560
19561         PR target/44542
19562         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
19563         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
19564         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
19565         (expand_one_var): Don't consider DECL_ALIGN for variables for
19566         which expand_one_stack_var_at has been already called.
19567
19568         PR testsuite/44701
19569         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
19570         constraints on IA-64.
19571
19572 2010-07-27  Jie Zhang  <jie@codesourcery.com>
19573
19574         PR target/44290
19575         Revert:
19576         2010-07-23  Jie Zhang  <jie@codesourcery.com>
19577
19578         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
19579         false if ! tree_versionable_function_p.
19580
19581 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
19582
19583         * dwarf2out.c (add_data_member_location_attribute): Use
19584         add_AT_unsigned instead of add_AT_int if offset is non-negative.
19585
19586 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
19587
19588         * postreload.c (try_replace_in_use): New static function.
19589         (reload_combine_recognize_const_pattern): Use it here.  Allow
19590         substituting into a final add insn, and substituting into a memory
19591         reference in an insn that sets the reg.
19592
19593 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
19594
19595         * common.opt (o): Add MissingArgError.
19596         * doc/options.texi (MissingArgError): Document.
19597         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
19598         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
19599         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
19600         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
19601         * langhooks.h (struct lang_hooks): Remove missing_argument.
19602         * optc-gen.awk: Handle MissingArgError and output new structure
19603         field initializers.
19604         * opts.c (read_cmdline_option): Use missing_argument_error field
19605         instead of missing_argument langhook.
19606         * opts.h (struct cl_option): Add missing_argument_error field.
19607         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
19608
19609 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
19610
19611         PR target/29090
19612         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
19613         Darwin64 ABI, for zero-sized objects.
19614
19615 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
19616
19617         PR target/35491
19618         PR target/29090
19619
19620         Merge from Apple local 4.2.1.
19621         2005-05-11  Stan Shebs  <shebs@apple.com>
19622         Fix 64-bit varargs for Darwin (Radar 4028089).
19623         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
19624         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
19625         Add argument, add case for 8-byte register half-filled with a float.
19626         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
19627         single-precision floats specially.
19628
19629 2010-07-27  Ira Rosen  <irar@il.ibm.com>
19630
19631         PR tree-optimization/44152
19632         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
19633         complex numbers for further check.
19634         (vect_supported_load_permutation_p): Check nodes with
19635         complex numbers.
19636
19637 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
19638
19639         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
19640         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
19641         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
19642         (LANG_HOOKS_INITIALIZER): Add new hooks.
19643         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
19644         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
19645         and complain_wrong_lang_p.  Update init_options prototype.
19646         * c-objc-common.c (c_initialize_diagnostics): First call
19647         c_common_initialize_diagnostics.
19648         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
19649         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
19650         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
19651         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
19652         (hook_uint_void_0): New.
19653         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
19654         (hook_uint_void_0): New.
19655         * opts-common.c (decode_cmdline_option,
19656         decode_cmdline_options_to_array): Also fill in canonical_option field.
19657         * opts.c (complain_wrong_lang): Use langhook to determine whether
19658         to complain instead of special-casing LTO.
19659         (decode_options): Separate lang_mask determination with
19660         option_lang_mask hook from call of init_options hook.
19661         * opts.h (struct cl_decoded_option): Add canonical_option.
19662
19663 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
19664
19665         PR tree-optimization/45083
19666         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
19667
19668 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
19669
19670         * postreload.c (reload_combine_recognize_const_pattern): Move test
19671         for limiting the insn movement to the right scope.
19672
19673         PR rtl-optimization/45051
19674         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
19675         than reg_mentioned_p.
19676
19677 2010-07-26  Richard Henderson  <rth@redhat.com>
19678
19679         PR target/44132
19680         * tree-emutls.c: New file.
19681         * Makefile.in (OBJS-common): Add it.
19682         * tree-pass.h (pass_ipa_lower_emutls): Declare.
19683         * passes.c (init_optimization_passes): Add it.
19684
19685         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
19686         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
19687         * expr.c (emutls_var_address): Delete.
19688         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
19689         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
19690         (emutls_finish): Delete.
19691         * toplev.c (compile_file): Don't call it.
19692         * tree.h (emutls_decl): Delete.
19693         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
19694         (emutls_finish, emutls_finalize_control_var): Delete.
19695         (emutls_object_type): Move to tree-emutls.c.
19696         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
19697         default_emutls_var_fields, get_emutls_object_type,
19698         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
19699         default_emutls_var_init): Likewise.
19700         (get_variable_section): Don't special case emutls.
19701         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
19702         default_elf_select_section, default_unique_section,
19703         default_encode_section_info): Likewise.
19704         * varpool.c (decide_is_variable_needed): Likewise.
19705         * gimple-iterator.c (update_call_edge_frequencies): New
19706         (gsi_insert_on_edge_immediate): Use it.
19707         (gsi_insert_seq_on_edge_immediate): Likewise.
19708         (gsi_commit_one_edge_insert): Likewise.
19709
19710         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
19711         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
19712         (x86_64_elf_unique_section): Likewise.
19713
19714 2010-07-26  Jan Hubicka  <jh@suse.cz>
19715
19716         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
19717         GTY((skip)).
19718
19719 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
19720
19721         * target.def (output_source_filename): New hook.
19722         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
19723         * doc/tm.texi: Regenerate.
19724         * toplev.c (output_file_directive) Remove function.
19725         * toplev.h (output_file_directive) Remove.
19726         * output.h (default_asm_output_source_filename,
19727         output_file_directive): Declare.
19728         * varasm.h (default_asm_output_source_filename,
19729         output_file_directive): New functions.
19730
19731         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
19732         * config/mips/mips-protos.h (mips_output_filename): Remove.
19733         * config/mips/mips.c (mips_output_filename): Make Static.
19734         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
19735
19736 2010-07-26  Richard Guenther  <rguenther@suse.de>
19737
19738         PR tree-optimization/43784
19739         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
19740         if the destination is used by the call.
19741
19742 2010-07-26  Richard Guenther  <rguenther@suse.de>
19743
19744         PR middle-end/45073
19745         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
19746         SSA updating on being in SSA form.
19747
19748 2010-07-26  Richard Guenther  <rguenther@suse.de>
19749
19750         PR middle-end/45056
19751         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
19752
19753 2010-07-26  Richard Guenther  <rguenther@suse.de>
19754
19755         PR tree-optimization/45071
19756         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
19757         adjust op->opcode.
19758
19759 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
19760
19761         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
19762         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
19763         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
19764         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
19765         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
19766         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
19767         save_r31, return_r31, save_interrupt, return_interrupt,
19768         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
19769         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
19770         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
19771         new ABI requirements.
19772         (save_r6_r9, L_callt_save_r6_r9): Remove.
19773         * config/v850/predicates.md (even_reg_operand, disp23_operand,
19774         const_float_1_operand const_float_0_operand): New Predicates.
19775         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
19776         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
19777         * config/v850/t-v850: Update multilibs for new target variants.
19778         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
19779         * config/v850/t-v850e: Likewise.
19780         * config/v850/v850.c (v850_issue_rate): New.
19781         (v850_strict_argument_naming): New.
19782         (function_arg): Modify to generate a different ABI.
19783         (print_operand): Update case 'z' to support float modes.
19784         (output_move_single): Modify to generate appropriate and better
19785         assembly.
19786         (v850_float_z_comparison_operator, v850_select_cc_mode,
19787         v850_float_nz_comparison_operator,  v850_gen_float_compare,
19788         v850_gen_compare): New functions to support comparison of float values.
19789         (ep_memory_offset): Add support for V850E2 targets.
19790         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
19791         (INTERRUPT_REGPARM_NUM): Remove.
19792         (compute_register_save_size): Add extra case to save/restore long call.
19793         (use_prolog_function): New function to support prologue.
19794         (expand_prologue): Add support for V850E2 targets and modified
19795         as per the current ABI requirements.
19796         (expand_epilogue): Likewise.
19797         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
19798         (construct_save_jarl): Likewise.
19799         (construct_dispose_instruction): Update as per the current ABI
19800         requirements.
19801         (construct_prepare_instruction): Likewise.
19802         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
19803         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
19804         (CPP_SPEC): Updated to support v850e2 targets.
19805         (STRICT_ALIGNMENT): Modified.
19806         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
19807         (FIXED_REGISTERS): Likewise.
19808         (CALL_USED_REGISTERS): Likewise.
19809         (CONDITIONAL_REGISTER_USAGE): Updated.
19810         (HARD_REGNO_MODE_OK): Updated.
19811         (reg_class): Updated to add even registers.
19812         (REG_CLASS_NAMES): Likewise.
19813         (REG_CLASS_CONTENTS): Likewise.
19814         (REGNO_REG_CLASS): Updated for CC registers.
19815         (REG_CLASS_FROM_LETTER): Added support for even registers.
19816         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
19817         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
19818         ARG_POINTER_REGNUM): Updated.
19819         (FUNCTION_ARG_ADVANCE): Define.
19820         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
19821         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
19822         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
19823         (GO_IF_LEGITIMATE_ADDRESS): Updated.
19824         (SELECT_CC_MODE): Define.
19825         (REGISTER_NAMES): Updated to add psw and fcc registers.
19826         (ADDITIONAL_REGISTER_NAMES): Updated.
19827         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
19828         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
19829         * config/v850/v850.md (define_constants): Define new constants.
19830         (type): Update store,bit1,macc,div,fpu and single attributes.
19831         (cpu): New attribute.
19832         (cc): Add set_z attribute.
19833         (unsign23byte_load, sign23byte_load, unsign23hword_load,
19834         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
19835         23word_store): New instructions for 23-bit displacement load and store.
19836         (movqi_internal, movhi_internal): Update the attributes.
19837         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
19838         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
19839         the attributes.
19840         (v850_tst1): Modified using CC_REGNUM.
19841         (tstsi): Remove.
19842         (cmpsi): Modified as define_expand from define_insn.
19843         (cmpsi_insn, cmpsf, cmpdf): New instructions.
19844         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
19845         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
19846         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
19847         one_cmplsi2): Clobber the CC_REGNUM register.
19848         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
19849         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
19850         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
19851         (setf_insn, set_z_insn, set_nz_insn): New instructions for
19852         v850e2v3 target.
19853         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
19854         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
19855         targets.
19856         (sasf_1, sasf_2): Remove.
19857         (sasf): New instruction.
19858         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
19859         targets. CC_REGNUM register is clobbered and attributes are
19860         updated.
19861         (branch_z_normal, branch_z_invert, branch_nz_normal,
19862         branch_nz_invert): New branch related instructions.
19863         (jump): Updated the attributes.
19864         (switch): Update to support new targets. CC_REGNUM register is
19865         clobbered and attributes are updated.
19866         (call_internal_short, call_internal_long, call_value_internal_short,
19867         call_value_internal_long): Updated the attributes.
19868         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
19869         clobbered and attributes are updated.
19870         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
19871         Update to support new targets. CC_REGNUM register is clobbered.
19872         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
19873         instructions.
19874         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
19875         are updated.
19876         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
19877         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
19878         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
19879         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
19880         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
19881         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
19882         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
19883         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
19884         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
19885         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
19886         point instructions defined for V850e2v3 target.
19887         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
19888         Add support for V850E2 targets and CC_REGNUM register is clobbered.
19889         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
19890         support for new targets.
19891         * config/v850/v850-modes.def: New file.
19892         * config/v850/v850.opt(mstrict-align): Remove.
19893         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
19894         mv850e2v3): New command line options for V850.
19895         * config.gcc: Update the newly added files.
19896         * doc/invoke.texi: Update the newly added command line options for
19897         V850 target.
19898
19899 2010-07-26  Richard Guenther  <rguenther@suse.de>
19900
19901         PR tree-optimization/45052
19902         * ipa-pure-const.c (check_stmt): Check volatileness.
19903
19904 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19905
19906         PR target/44707
19907         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
19908         * config/sparc/sparc.c: Include reload.h.
19909         (legitimize_tls_address): Rename into...
19910         (sparc_legitimize_tls_address): ...this.
19911         (legitimize_pic_address): Rename into...
19912         (sparc_legitimize_pic_address): ...this.
19913         (sparc_expand_move): Adjust to above renaming.
19914         (sparc_tls_referenced_p): Likewise.
19915         (sparc_legitimize_tls_address): Likewise.
19916         (sparc_legitimize_pic_address): Likewise.
19917         (sparc_legitimize_address): Likewise.
19918         (sparc_output_mi_thunk): Likewise.
19919         (sparc_legitimize_reload_address): New global function.  Recognize
19920         (lo_sum (high ...) ...) patterns generated by earlier passes.
19921         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
19922
19923 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
19924
19925         PR target/44484
19926         * config/sparc/predicates.md (memory_reg_operand): Delete.
19927         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
19928         (*sync_compare_and_swap): Encode the address form in the pattern.
19929         (*sync_compare_and_swapdi_v8plus): Likewise.
19930
19931 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
19932
19933         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
19934         Streamline paragraph on compatibility with the system compiler.
19935
19936 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
19937
19938         PR middle-end/45035
19939         * alias.c (true_dependence_1): Fix thinko in merge of old
19940         true_dependence and canon_true_dependence.
19941
19942 2010-07-23  Jan Hubicka  <jh@suse.cz>
19943
19944         * lto-streamer-out.c (write_symbol): Fix visibilities of external
19945         references.
19946
19947 2010-07-23  Le-Chun Wu  <lcwu@google.com>
19948
19949         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
19950         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
19951         and an unnecessary assignment.
19952         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
19953         self-assign warning.
19954         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
19955         unnecessary self-init.
19956
19957 2010-07-23  Richard Guenther  <rguenther@suse.de>
19958
19959         PR lto/43071
19960         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
19961         for -flto and -fwhopr.
19962
19963 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
19964
19965         PR target/41943
19966         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
19967         (stmp-int-hdrs): Prefix/postfix headers by include_next.
19968         * config.gcc (user_headers_inc_next_pre): New.
19969         (user_headers_inc_next_post): Likewise.
19970         (*-w64-mingw*): Use for float.h post-fixing, and for
19971         stddef.h/stdarg.h pre-fixing by include_next.
19972         * configure.ac (user_headers_inc_next_post): New.
19973         (user_headers_inc_next_pre): New.
19974         * configure: Regenerated.
19975
19976 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19977
19978         * configure.ac: Don't disable TLS on Solaris 8/9 by default
19979         Set tga_func for Solaris 2/x86 resp. SPARC.
19980         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
19981         (LIB_THREAD_LDFLAGS_SPEC): Define.
19982         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
19983         * configure: Regenerate.
19984         * config.in: Regenerate.
19985         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
19986         -pthread, -threads, LIB_TLS_SPEC with -pthread.
19987         * doc/install.texi (Specific, *-*-solaris2*): Document use of
19988         alternate thread libraries on Solaris 8.
19989         Document TLS patch requirements.
19990         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
19991         Document tls.
19992
19993         PR target/18788
19994         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
19995         -shared.
19996
19997 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
19998
19999         * tree.h (struct tree_base): Add nameless_flag bitfield.
20000         (TYPE_NAMELESS, DECL_NAMELESS): Define.
20001         * omp-low.c (create_omp_child_function, scan_omp_parallel,
20002         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
20003         DECL_ARTIFICIAL where needed.
20004         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
20005         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
20006         has DECL_NAMELESS set.
20007
20008 2010-07-23  Martin Jambor  <mjambor@suse.cz>
20009
20010         PR tree-optimization/44915
20011         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
20012         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
20013         (analyze_function): Likewise.
20014
20015 2010-07-23  Martin Jambor  <mjambor@suse.cz>
20016
20017         PR tree-optimization/44914
20018         * tree-sra.c (sra_modify_function_body): Return true if CFG was
20019         changed, add purging dead eh edges.
20020         (ipa_sra_modify_function_body): Return true if CFG was changed,
20021         simplify purging dead eh edges.
20022         (modify_function): Return true if CFG was changed.
20023         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
20024         was changed.
20025         (ipa_early_sra): Likewise.
20026
20027 2010-07-23  Jie Zhang  <jie@codesourcery.com>
20028
20029         PR target/44290
20030         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
20031         if "naked".
20032         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
20033         false if ! tree_versionable_function_p.
20034
20035 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
20036
20037         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
20038         * ipa-pure-const.c (special_builtlin_state): Remove
20039         BUILT_IN_ARGS_INFO case.
20040         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20041         * builtins.c (expand_builtin): Likewise.
20042         (expand_builtin_args_info): Remove.
20043         * doc/tm.texi (__builtin_args_info): Remove.
20044         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
20045         * doc/tm.text.in: Likewise.
20046
20047 2010-07-23  Richard Guenther  <rguenther@suse.de>
20048
20049         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
20050         (lto_symtab_merge_decls_2): Likewise.
20051         * tree-ssa.c (useless_type_conversion_p): Likewise.
20052         * lto-streamer-in.c (input_gimple_stmt): Likewise.
20053         * gimple.c (gtc_visited2, gtc_ob2): Remove.
20054         (struct type_pair_d): Make same_p an array indexed by mode.
20055         Update comment.
20056         (lookup_type_pair): Update initialization.
20057         (struct sccs): Adjust same_p type.
20058         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
20059         Adjust.
20060         (print_gimple_types_stats): Likewise.
20061         * gimple.h (enum gtc_mode): New.
20062         (gimple_types_compatible_p): Adjust prototype.
20063
20064 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
20065
20066         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
20067         again after processing insn.
20068
20069 2010-07-23  Jie Zhang  <jie@codesourcery.com>
20070
20071         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
20072         proper words when !tree_versionable_function_p.
20073
20074 2010-07-23  Richard Guenther  <rguenther@suse.de>
20075
20076         PR tree-optimization/45037
20077         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
20078
20079 2010-07-23  Jie Zhang  <jie@codesourcery.com>
20080
20081         * doc/extend.texi: Remove IP2K from the description of naked attribute.
20082         Add MCORE instead.
20083
20084 2010-07-10  Andi Kleen  <ak@linux.intel.com>
20085
20086         PR lto/44992
20087         * lto-opts.c (lto_write_options): Add NULL file_data argument to
20088         lto_get_section_name.
20089         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
20090         * lto-streamer-out.c (produce_asm): Likewise.
20091         (copy_function): Likewise.
20092         (produce_symtab): Likewise.
20093         (produce_asm_for_decls): Likewise.
20094         * lto-streamer.c (lto_get_section_name): Add file_data argument.
20095         Rewrite to add random postfix to LTO sections.
20096         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
20097         (lto_get_section_name): Add file_data argument to prototype.
20098
20099 2010-07-10  Andi Kleen  <ak@linux.intel.com>
20100
20101         * lto-section-in.c (lto_section_name): Synchronize names
20102         with lto_get_section_name.
20103
20104 2010-07-10  Andi Kleen  <ak@linux.intel.com>
20105
20106         * lto-opts.c (lto_read_file_options): Check for missing section.
20107
20108 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20109
20110         * ira.c (check_allocation): Correctly handle the case where an allocno
20111         with two objects was allocated to a single reg.
20112
20113 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
20114
20115         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
20116         (is_widening_mult_p): Likewise.
20117         (convert_to_widen): Use them.
20118         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
20119         well as integer ones.
20120
20121 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
20122
20123         * alias.c (true_dependence_1): New function, merged version of
20124         true_dependence and canon_true_dependence.
20125         (true_dependence): Simplify.
20126         (canon_true_dependence): Simplify.
20127
20128 2010-07-22  Richard Henderson  <rth@redhat.com>
20129
20130         PR target/45027
20131         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
20132         of V4SFmode for the SSE saves; increase stack alignment if needed.
20133         (ix86_gimplify_va_arg): Don't increase stack alignment here.
20134
20135 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
20136
20137         PR bootstrap/45028
20138         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
20139         call cprop_find_used_regs again via note_uses.
20140
20141 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
20142
20143         * alias.c (get_alias_set): Fix formatting issues.
20144
20145 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
20146
20147         PR middle-end/44878
20148         * stmt.c (expand_value_return):  Call promote_function_mode with
20149         a for_return argument of 2 when returning by reference.
20150
20151 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
20152
20153         PR debug/45024
20154         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
20155         unit DIE if we can find the scope DIE.
20156
20157 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20158
20159         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
20160         changed.  Initialize OBJECT_SUBWORD.
20161         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
20162         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
20163         all callers changed.
20164         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
20165         (finish_allocno): Likewise.
20166         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
20167         (remove_low_level_allocnos): Likewise.
20168         (update_bad_spill_attribute): Likewise.
20169         (setup_min_max_allocno_live_range_point): Likewise.
20170         (sort_conflict_id_map): Likewise.
20171         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
20172         (ior_hard_reg_conflicts): New function.
20173         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
20174         (compress_conflict_vecs): Iterate over objects, not allocnos.
20175         (ira_add_live_range_to_object): New function.
20176         (object_range_compare_func): Renamed from allocno_range_compare_func.
20177         All callers changed.
20178         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
20179         subobjects, widen the min/max range of the lowest-order object to
20180         potentially include all other such low-order objects.
20181         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
20182         (check_allocation): Likewise.  Use more fine-grained tests for register
20183         conflicts.
20184         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
20185         allocno subobjects.
20186         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
20187         choices about which bits to set in each set.  Don't use
20188         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
20189         using the multiple sets we computed.
20190         (push_allocno_to_stack): Iterate over allocno subobjects.
20191         (all_conflicting_hard_regs_coalesced): New static function.
20192         (setup_allocno_available_regs_num): Use it.
20193         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
20194         subobjects.
20195         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
20196         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
20197         by ALLOCNO_NUM_OBJECTS.
20198         (calculate_spill_cost): Likewise.
20199         (color_pass): Express if statement in a more normal way.
20200         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
20201         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
20202         (setup_slot_coalesced_allocno_live_ranges): Likewise.
20203         (allocno_reload_assign): Likewise.
20204         (ira_reassign_pseudos): Likewise.
20205         (fast_allocation): Likewise.
20206         * ira-conflicts.c (build_conflict_bit_table): Likewise.
20207         (print_allocno_conflicts): Likewise.
20208         (ira_build_conflicts): Likewise.
20209         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
20210         callers changed.  Test subword 0 of each allocno for conflicts.
20211         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
20212         callers changed.  Iterate over allocno subobjects.
20213         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
20214         * ira-int.h (struct ira_allocno): New member: num_objects.
20215         Rename object to objects and change it into an array.
20216         (ALLOCNO_OBJECT): Add new argument N.
20217         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
20218         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
20219         (ior_hard_reg_conflicts): Declare.
20220         (ira_add_live_range_to_object): Declare.
20221         (ira_allocno_object_iterator): New.
20222         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
20223         (FOR_EACH_ALLOCNO_OBJECT): New macro.
20224         * ira-lives.c (objects_live): Renamed from allocnos_live; all
20225         uses changed.
20226         (allocnos_processed): New sparseset.
20227         (make_object_born): Renamed from make_allocno_born; take an
20228         ira_object_t argument.  All callers changed.
20229         (make_object_dead): Renamed from make_allocno_dead; take an
20230         ira_object_t argument.  All callers changed.
20231         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
20232         All callers changed.
20233         (mark_pseudo_regno_live): Iterate over allocno subobjects.
20234         (mark_pseudo_regno_dead): Likewise.
20235         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
20236         functions.
20237         (mark_ref_live): Detect subword accesses and call
20238         mark_pseudo_regno_subword_live as appropriate.
20239         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
20240         (process_bb_nodes_live): Deal with object-related updates first; set
20241         and test bits in allocnos_processed to avoid computing allocno
20242         statistics more than once.
20243         (create_start_finish_chains): Iterate over objects, not allocnos.
20244         (print_object_live_ranges): New function.
20245         (print_allocno_live_ranges): Use it.
20246         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
20247         and objects_live.
20248
20249 2010-07-22  Richard Guenther  <rguenther@suse.de>
20250
20251         PR lto/42451
20252         * gimple.c (gtc_next_dfs_num): New global.
20253         (struct sccs): Make value a union, add integer same_p member.
20254         (gtc_visit): New function.
20255         (gimple_types_compatible_p_1): New function, split out from ...
20256         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
20257         (iterative_hash_gimple_type): Adjust for sccs change.
20258
20259 2010-07-22  Martin Jambor  <mjambor@suse.cz>
20260
20261         PR tree-optimization/44891
20262         * tree-sra.c: Include gimple-pretty-print.h.
20263         (replace_uses_with_default_def_ssa_name): Renamed to
20264         get_repl_default_def_ssa_name, return the new SSA name instead of
20265         replacing the old one.
20266         (sra_modify_assign): Dump a message when removing a load, if the LHS
20267         is an SSA_NAME, do not do any propagation, just set the RHS to a
20268         default definition SSA NAME, type convert if necessary.
20269         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
20270
20271 2010-07-22  Richard Guenther  <rguenther@suse.de>
20272
20273         PR tree-optimization/45017
20274         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
20275         TYPE_PRECISION of integral types in addition to size.
20276
20277 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
20278
20279         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
20280         when no C library is specified.
20281
20282 2010-07-22  Martin Jambor  <mjambor@suse.cz>
20283
20284         * ipa-prop.h (struct ipa_node_params): Updated comment.
20285         (struct ipa_edge_args): Likewise.
20286         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
20287
20288 2010-07-22  Martin Jambor  <mjambor@suse.cz>
20289
20290         * cgraphunit.c (verify_edge_count_and_frequency): New function.
20291         (verify_cgraph_node): Verify frequencies of indirect edges.
20292         * tree-inline.c (tree_function_versioning): Update frequencies of
20293         indirect edges.
20294
20295 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20296
20297         PR target/43698
20298         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
20299         Set *arm_rev to be predicable.
20300
20301 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
20302
20303         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
20304         (LINK_COMMAND_SPEC_A): New.
20305         (DSYMUTIL): New.
20306         (DSYMUTIL_SPEC): New.
20307         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
20308         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
20309
20310 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
20311
20312         * calls.c (load_register_parameters): Move check for zero
20313         sized items so that only the call to
20314         mem_overlaps_already_clobbered_arg_p () is protected.
20315
20316 2010-07-22  Jan Hubicka  <jh@suse.cz>
20317
20318         * ipa-pure-const.c (varying_state): Break out from ...
20319         (get_function_state): ... here; always return varying_state
20320         when state would be NULL otherwise.
20321         (remove_node_data): Do not free varying state.
20322
20323 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20324
20325         PR bootstrap/44970
20326         PR middle-end/45009
20327         * postreload.c: Include "target.h".
20328         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
20329         into account.
20330         (fixup_debug_insns): Don't copy the rtx.
20331         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
20332         Don't copy when replacing.  Call fixup_debug_insns in the case where
20333         we merged one add with another.
20334         (reload_combine_recognize_pattern): Fail if there aren't any uses.
20335         Try harder to determine whether we're picking a valid index register.
20336         Don't set store_ruid for an insn we're going to scan in the
20337         next iteration.
20338         (reload_combine): Remove unused code.
20339         (reload_combine_note_use): When updating use information for
20340         an old insn, ignore a use that occurs after store_ruid.
20341         * Makefile.in (postreload.o): Update dependencies.
20342
20343         * function.c (record_hard_reg_sets): Restrict the previous change
20344         to cases where the incoming nominal mode is the same as the
20345         incoming promoted mode and everything happens in MODE_INT.
20346
20347 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
20348
20349         PR debug/45015
20350         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
20351         ASM_OPERANDS_OUTPUT_IDX.
20352         (adjust_insn): For inline asm with multiple sets ensure first
20353         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
20354         the insn.
20355
20356 2010-07-21  Richard Henderson  <rth@redhat.com>
20357
20358         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
20359         comparison for avoiding xmm register saves.  Emit the xmm register
20360         saves explicitly.
20361         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
20362         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
20363         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
20364         Remove patterns and the associated splitters.
20365
20366 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
20367
20368         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
20369         and imagine parts of a complex, so that they can have the same
20370         base and fall into the same group.
20371
20372 2010-07-21  Richard Guenther  <rguenther@suse.de>
20373
20374         PR lto/45018
20375         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
20376         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
20377         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
20378
20379 2010-07-21  Martin Jambor  <mjambor@suse.cz>
20380
20381         PR tree-optimization/44900
20382         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
20383         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
20384
20385 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
20386
20387         PR middle-end/44738
20388         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
20389
20390 2010-07-21  Richard Guenther  <rguenther@suse.de>
20391
20392         PR middle-end/45013
20393         * tree-ssa.c (useless_type_conversion_p): Dispatch to
20394         gimple_types_compatible_p only when in lto.
20395         * gimple.c (gimple_types_compatible_p): Use canonical types
20396         to speed up comparison.
20397
20398 2010-07-21  Richard Guenther  <rguenther@suse.de>
20399
20400         * tree-flow.h (referenced_var): Move define ...
20401         * tree-flow-inline.h (referenced_var): ... here as an inline
20402         function.  Assert here ...
20403         * tree-dfa.c (referenced_var_lookup): ... instead of here.
20404         * tree-ssa.c (maybe_optimize_var): Check if the variable
20405         is in referenced vars.
20406         (execute_update_addresses_taken): Remove old broken check.
20407         * gimple-pretty-print.c (pp_points_to_solution): Use
20408         referenced_var_lookup.
20409         * tree-into-ssa.c (dump_decl_set): Likewise.
20410
20411 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
20412
20413         PR debug/45003
20414         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
20415         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
20416         ZERO_EXTEND here.
20417
20418 2010-07-20  Richard Henderson  <rth@redhat.com>
20419
20420         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
20421
20422 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
20423
20424         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
20425         computing the sum of the stack pointer and a large constant.
20426         * config/arm/constraints.md (M): Remove superfluous parentheses.
20427         (Pc): New constraint.
20428
20429 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
20430
20431         PR debug/45006
20432         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
20433         operand's type if exp is tcc_unary class tree.
20434
20435 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
20436
20437         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
20438         Reverse sense of if_then_else condition.
20439
20440 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
20441
20442         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
20443         * config/rs6000/rs6000.c (rs6000_override_options): Set
20444         rs6000_block_move_inline_limit appropriately.
20445         (expand_block_move): Use rs6000_block_move_inline_limit.
20446         * doc/invoke.texi (mblock-move-inline-limit): Document.
20447
20448 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
20449
20450         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
20451         FROM and TO.  All callers changed.  Don't look for tracked uses,
20452         just scan the RTL for DEBUG_INSNs and substitute.
20453         (reload_combine_recognize_pattern): Call fixup_debug_insns.
20454         (reload_combine): Ignore DEBUG_INSNs.
20455
20456 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
20457
20458         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
20459         depth to 8 from 5.
20460
20461         PR debug/45003
20462         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
20463         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
20464         instead of the result's type.
20465
20466 2010-07-20  Richard Guenther  <rguenther@suse.de>
20467
20468         PR tree-optimization/44977
20469         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
20470         SSA form.
20471
20472 2010-07-20  Richard Guenther  <rguenther@suse.de>
20473
20474         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
20475         (lto_symtab_merge_decls_2): Likewise.
20476         * gimple.h (gimple_types_compatible_p): Declare.
20477         * gimple.c (gimple_queue_type_fixup): Remove.
20478         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
20479         (gimple_compatible_complete_and_incomplete_type_p): New function.
20480         (gimple_types_compatible_p): Adjust.
20481         (gimple_register_type): Remove type fixup code.
20482         (print_gimple_types_stats): Adjust.
20483         (free_gimple_type_tables): Likewise.
20484         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
20485         * tree-ssa.c (useless_type_conversion_p): Likewise.
20486
20487 2010-07-20  Richard Guenther  <rguenther@suse.de>
20488
20489         PR middle-end/44971
20490         PR middle-end/44988
20491         * tree-ssa.c (maybe_optimize_var): New function split out from ...
20492         (execute_update_addresses_taken): ... here.
20493         (non_rewritable_mem_ref_base): Likewise.
20494         (execute_update_addresses_taken): Do not iterate over all referenced
20495         vars but just all local decls and parms.
20496         Properly check call and asm arguments and rewrite call arguments.
20497
20498 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
20499
20500         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
20501         to top level.
20502         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
20503         definitions ...
20504         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
20505         New macro.
20506         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
20507
20508 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
20509
20510         * gengtype.c (start_root_entry): New function, split out from
20511         write_root.  Check whether V is null and raise an error if so.
20512         (write_field_root): Check for V being null.  Don't raise an error here;
20513         set V to null instead.
20514         (write_root): Update comment above function.  Use start_root_entry.
20515
20516 2010-07-19  Xinliang David Li  <davidxl@google.com>
20517
20518         PR testsuite/44932
20519         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
20520         def edges.
20521         (find_uninit_use): Add dump.
20522         (is_use_properly_guarded): Ditto.
20523         (warn_uninitialized_phi): Ditto.
20524         (execute_late_warn_uninitialized): Ditto.
20525
20526 2010-07-19  Richard Guenther  <rguenther@suse.de>
20527
20528         PR middle-end/44941
20529         * expr.c (emit_block_move_hints): Move zero size check first.
20530         Move asserts to more useful places.
20531         * calls.c (load_register_parameters): Check for zero size.
20532
20533 2010-07-19  Richard Henderson  <rth@redhat.com>
20534
20535         * tree-optimize.c (execute_all_early_local_passes): New.  Change
20536         cgraph_state here ...
20537         (execute_early_local_optimizations): ... not here.  Remove.
20538         (pass_early_local_passes, pass_all_early_optimizations): Update.
20539
20540 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
20541
20542         * postreload.c (reload_combine_closest_single_use): Ignore the
20543         number of uses for DEBUG_INSNs.
20544         (fixup_debug_insns): New static function.
20545         (reload_combine_recognize_const_pattern): Use it.  Don't let the
20546         main loop be affected by DEBUG_INSNs.
20547         Really disallow moving adds past a jump insn.
20548         (reload_combine_recognize_pattern): Don't update use_ruid here.
20549         (reload_combine_note_use): Do it here.
20550         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
20551
20552 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
20553
20554         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
20555         of a loop.
20556         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
20557
20558 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
20559
20560         * config/i386/darwin.h: Define darwin_emit_branch_islands.
20561         (TARGET_MACHO_BRANCH_ISLANDS): New.
20562         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
20563         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
20564         default value.
20565         * config/i386/i386.c (output_pic_addr_const): Do not emit
20566         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
20567         (x86_output_mi_thunk): Adjust symbol creation.
20568         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
20569         Remove out of date comment.
20570         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
20571         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20572         (DARWIN_GENERATE_ISLANDS): Ditto.
20573         (output_call):  Do not emit branch islands unless
20574         darwin_emit_branch_islands is set.
20575         * config/darwin.c: Declare darwin_emit_branch_islands.
20576         (machopic_indirect_data_reference): Do not emit unless
20577         darwin_emit_branch_islands is set.
20578         (darwin_override_options): Set darwin_emit_branch_islands
20579         where it is needed.
20580         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
20581
20582 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20583
20584         * doc/sourcebuild.texi (Effective-Target Keywords): Document
20585         sse_runtime, sse2_runtime.
20586
20587 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
20588
20589         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
20590         low half of a single-register SCmode return value before ORing
20591         it with the high half.
20592         * config/mips/mips16.S (MERGE_GPRf): Likewise.
20593
20594 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20595
20596         PR target/44805
20597         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
20598         on all targets.
20599
20600 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
20601
20602         PR target/42235
20603         * postreload.c (reload_cse_move2add): Return bool, true if anything.
20604         changed.  All callers changed.
20605         (move2add_use_add2_insn): Likewise.
20606         (move2add_use_add3_insn): Likewise.
20607         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
20608         reload_combine.
20609         (RELOAD_COMBINE_MAX_USES): Bump to 16.
20610         (last_jump_ruid): New static variable.
20611         (struct reg_use): New members CONTAINING_MEM and RUID.
20612         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
20613         (reload_combine_split_one_ruid, reload_combine_split_ruids,
20614         reload_combine_purge_insn_uses, reload_combine_closest_single_use
20615         reload_combine_purge_reg_uses_after_ruid,
20616         reload_combine_recognize_const_pattern): New static functions.
20617         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
20618         is true for our reg and that we have available index regs.
20619         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
20620         callers changed.  Use them to initialize fields in struct reg_use.
20621         (reload_combine): Initialize last_jump_ruid.  Be careful when to
20622         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
20623         Call reload_combine_recognize_const_pattern.
20624         (reload_combine_note_store): Update REAL_STORE_RUID field.
20625
20626 2010-07-16  Jason Merrill  <jason@redhat.com>
20627
20628         * Makefile.in (opts-common.o): Depend on options.h.
20629
20630 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
20631
20632         * tree.c (build_common_builtin_nodes): Use build_function_type_list
20633         instead of build_function_type.
20634         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
20635         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20636
20637 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
20638
20639         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
20640         do all the work.
20641         (rs6000_emit_int_cmove): Use function pointers for insn generation.
20642         Don't force values into registers unnecessarily.
20643         (output_isel): Assert that we're not given conditions we can't handle.
20644         Delete corresponding code.
20645         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
20646         scc_comparison_operator constraint.  Permit 0 for the consequent
20647         operand.  Permit any GPR for the alternative operand.
20648         (isel_unsigned_<mode>): Likewise.
20649
20650 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
20651
20652         PR target/44942
20653         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
20654         argument to const_tree.
20655         * config/i386/i386.c (function_arg_advance): If padding needs to be
20656         inserted before argument, increment cum->words by number of padding
20657         words as well.
20658         (contains_aligned_value_p): Change argument to const_tree.
20659         (ix86_function_arg_boundary): Change second argument to const_tree.
20660
20661 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
20662
20663         PR target/42235
20664         * function.c (record_hard_reg_sets): New static function.
20665         (assign_parm_setup_reg): If an optab for extending exists and the
20666         generated code clobbbers no hard regs, emit the insn directly and
20667         create a REG_EQUIV note.
20668
20669 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
20670
20671         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
20672         TREE_CHAIN.
20673         * c-typeck.c (push_init_level): Likewise.
20674         (process_init_element): Likewise.
20675
20676 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
20677
20678         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
20679         (integer_three_node): Add.
20680         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
20681         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
20682         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
20683         of call build_int_cst.
20684         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
20685         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
20686         (find_interesting_uses_address): Ditto.
20687         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
20688         * tree-eh.c (lower_eh_constructs_2): Ditto.
20689         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
20690         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
20691         * expmed.c (expand_divmod): Ditto.
20692         * tree-mudflap.c (mx_register_decls): Ditto.
20693         * varasm.c (array_size_for_constructor): Ditto.
20694         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
20695         * c-parser.c (c_parser_postfix_expression): Ditto.
20696
20697 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
20698
20699         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
20700         New static variables.
20701         (reload_combine_recognize_pattern): New static function, broken out
20702         of reload_combine.
20703         (reload_combine): Use it.  Only initialize first_index_reg and
20704         last_index_reg once.
20705
20706 2010-07-15  Richard Henderson  <rth@redhat.com>
20707
20708         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
20709         when done.
20710
20711 2010-07-15  Jan Hubicka  <jh@suse.cz>
20712
20713         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
20714         comdats for broken gold.
20715         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
20716
20717 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
20718
20719         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
20720
20721 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
20722
20723         * tree.h (DECL_CHAIN): Define.
20724         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
20725         * c-decl.c: Likewise.
20726         * c-parser.c: Likewise.
20727         * c-typeck.c: Likewise.
20728         * cfgexpand.c: Likewise.
20729         * cgraph.c: Likewise.
20730         * cgraphunit.c: Likewise.
20731         * combine.c: Likewise.
20732         * config/alpha/alpha.c: Likewise.
20733         * config/arm/arm.c: Likewise.
20734         * config/frv/frv.c: Likewise.
20735         * config/i386/i386.c: Likewise.
20736         * config/i386/winnt-cxx.c: Likewise.
20737         * config/ia64/ia64.c: Likewise.
20738         * config/iq2000/iq2000.c: Likewise.
20739         * config/mep/mep.c: Likewise.
20740         * config/mips/mips.c: Likewise.
20741         * config/pa/som.h: Likewise.
20742         * config/rs6000/rs6000.c: Likewise.
20743         * config/s390/s390.c: Likewise.
20744         * config/sh/sh.c: Likewise.
20745         * config/sh/symbian-cxx.c: Likewise.
20746         * config/sparc/sparc.c: Likewise.
20747         * config/spu/spu.c: Likewise.
20748         * config/stormy16/stormy16.c: Likewise.
20749         * config/vxworks.c: Likewise.
20750         * config/xtensa/xtensa.c: Likewise.
20751         * coverage.c: Likewise.
20752         * dbxout.c: Likewise.
20753         * dwarf2out.c: Likewise.
20754         * emit-rtl.c: Likewise.
20755         * expr.c: Likewise.
20756         * function.c: Likewise.
20757         * gimple-low.c: Likewise.
20758         * gimple-pretty-print.c: Likewise.
20759         * gimplify.c: Likewise.
20760         * integrate.c: Likewise.
20761         * ipa-inline.c: Likewise.
20762         * ipa-prop.c: Likewise.
20763         * ipa-split.c: Likewise.
20764         * ipa-struct-reorg.c: Likewise.
20765         * ipa-type-escape.c: Likewise.
20766         * langhooks.c: Likewise.
20767         * lto-cgraph.c: Likewise.
20768         * omp-low.c: Likewise.
20769         * stor-layout.c: Likewise.
20770         * tree-cfg.c: Likewise.
20771         * tree-complex.c: Likewise.
20772         * tree-dfa.c: Likewise.
20773         * tree-dump.c: Likewise.
20774         * tree-inline.c: Likewise.
20775         * tree-mudflap.c: Likewise.
20776         * tree-nested.c: Likewise.
20777         * tree-object-size.c: Likewise.
20778         * tree-pretty-print.c: Likewise.
20779         * tree-sra.c: Likewise.
20780         * tree-ssa-live.c: Likewise.
20781         * tree-ssa-loop-niter.c: Likewise.
20782         * tree-ssa-math-opts.c: Likewise.
20783         * tree-ssa-reassoc.c: Likewise.
20784         * tree-ssa-sccvn.c: Likewise.
20785         * tree-ssa-structalias.c: Likewise.
20786         * tree-tailcall.c: Likewise.
20787         * tree-vrp.c: Likewise.
20788         * tree.c: Likewise.
20789         * var-tracking.c: Likewise.
20790         * varasm.c: Likewise.
20791
20792 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20793
20794         PR target/44877
20795         * config/spu/spu.c (spu_expand_builtin_1): Allow references
20796         (as well as pointers) as argument to mask_for_load builtins.
20797
20798 2010-07-15  Richard Guenther  <rguenther@suse.de>
20799
20800         PR tree-optimization/44946
20801         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
20802         with accessing only padding properly.
20803
20804 2010-07-15  Jan Hubicka  <jh@suse.cz>
20805
20806         * ipa.c (function_and_variable_visibility): Variables marked as used
20807         should not be localized.
20808
20809 2010-07-15  Jan Hubicka  <jh@suse.cz>
20810
20811         * cgraph.c: Include lto-streamer.h
20812         (change_decl_assembler_name): Work when assembler name hash is at place.
20813         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
20814         be sure to rename it to avoid name clash.
20815         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
20816         Localize hidden symbols only when locally defined.
20817
20818 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
20819
20820         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
20821
20822 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
20823             Kevin F. Quinn  <kevquinn@gentoo.org>
20824
20825         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
20826         * common.opt: Add -Wtrampolines.
20827         * doc/invoke.texi: Add -Wtrampolines.
20828
20829 2010-07-15  Jie Zhang  <jie@codesourcery.com>
20830
20831         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
20832         cortex_a8_issue_ls.
20833
20834 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
20835
20836         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
20837         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
20838
20839 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20840
20841         * config/spu/spu.c (reg_names): Remove prototype.
20842         (call_used_regs): Likewise.
20843
20844 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
20845
20846         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
20847         "unused" with attribute "used".
20848         (__JCR_END__): Likewise.
20849         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
20850         "used" attribute.
20851         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
20852
20853 2010-07-14  Richard Guenther  <rguenther@suse.de>
20854
20855         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
20856         (maybe_fixup_decls): Likewise.
20857         (input_gimple_stmt): Do not fixup anything.
20858         * lto-streamer-out.c (output_gimple_stmt): Make sure all
20859         non-automatic variable uses are wrapped inside a MEM_REF.
20860
20861 2010-07-14  Richard Henderson  <rth@redhat.com>
20862
20863         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
20864         for functions.
20865         * varasm.c (assemble_variable): Remove early exit for functions;
20866         assert that we're given a variable.
20867
20868 2010-07-14  Jie Zhang  <jie@codesourcery.com>
20869
20870         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
20871         cortex_a8_default when neon_type is not none.
20872
20873 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
20874
20875         * lower-subreg.c (subreg_context): New static bitmap.
20876         (decompose_multiword_subregs): Allocate and free it.
20877         (find_decomposable_subregs): Set a bit in it for a register that
20878         occurs in a subreg that changes mode but not size.
20879         (can_decompose_p): Test it instead of non_decomposable_context.
20880
20881 2010-07-14  Richard Guenther  <rguenther@suse.de>
20882
20883         PR tree-optimization/44824
20884         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
20885         is_gimple_mem_ref_addr.
20886         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
20887         non-decl_address_invariant_p addresses.
20888
20889 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
20890
20891         * reload.c (find_reloads): Revert code to penalize small register
20892         classes that was brought in with the IRA merge.
20893
20894 2010-07-14  Richard Guenther  <rguenther@suse.de>
20895
20896         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
20897         as base of ARRAY_REFs.
20898
20899 2010-07-14  Richard Guenther  <rguenther@suse.de>
20900
20901         PR middle-end/44930
20902         * tree-pretty-print.c (do_niy): Do not print a newline.
20903
20904 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
20905
20906         * ira-int.h (struct ira_object): New.
20907         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
20908         (struct ira_allocno): Remove members min, max,
20909         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
20910         conflict_allocnos_num and conflict_vec_p.  Add new member object.
20911         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
20912         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
20913         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
20914         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
20915         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
20916         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
20917         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
20918         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
20919         an ira_object_t rather than ira_allocno_t.  All uses changed.
20920         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20921         contains a vector of ira_object_t; all uses changed.
20922         (ira_objects_num): Declare variable.
20923         (ira_create_allocno_object): Declare function.
20924         (ira_conflict_vector_profitable_p): Adjust prototype.
20925         (ira_allocate_conflict_vec): Renamed from
20926         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
20927         (ira_allocate_object_conflicts): Renamed from
20928         ira_allocate_allocno_conflicts; first arg now ira_object_t.
20929         (struct ira_object_iterator): New.
20930         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
20931         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
20932         to conflict_vec_p.  All uses changed.
20933         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
20934         Changed to take into account that conflicts are now tracked for
20935         objects.
20936         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
20937         Args changed to accept ira_object_t.  All uses changed.
20938         (allocnos_conflict_p): New static function.
20939         (collected_conflict_objects): Renamed from collected_allocno_objects;
20940         now a vector of ira_object_t.  All uses changed.
20941         (build_conflict_bit_table): Changed to take into account that
20942         conflicts are now tracked for objects.
20943         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
20944         (print_allocno_conflicts, ira_build_conflicts): Likewise.
20945         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
20946         setup_allocno_left_conflicts_size, allocno_reload_assign,
20947         fast_allocation): Likewise.
20948         * ira-lives.c (make_hard_regno_born, make_allocno_born)
20949         process_single_reg_class_operands, process_bb_node_lives): Likewise.
20950         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
20951         Likewise.
20952         * ira-build.c (ira_objects_num): New variable.
20953         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
20954         contains a vector of ira_object_t; all uses changed.
20955         (ira_object_id_map_vec): Corresponding change.
20956         (object_pool): New static variable.
20957         (initiate_allocnos): Initialize it.
20958         (finish_allocnos): Free it.
20959         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
20960         New functions.
20961         (ira_create_allocno): Don't set members that were removed.
20962         (ira_set_allocno_cover_class): Don't change conflict hard regs.
20963         (merge_hard_reg_conflicts): Changed to take into account that
20964         conflicts are now tracked for objects.
20965         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
20966         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
20967         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
20968         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
20969         setup_min_max_conflict_allocno_ids, ):  Likewise.
20970         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
20971         to ira_object_t; all callers changed.
20972         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
20973         to ira_object_t, all callers changed.
20974         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
20975         to ira_object_t, all callers changed.
20976         (conflict_check, curr_conflict_check_tick): Renamed from
20977         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
20978         changed.
20979         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
20980         arg changed to ira_object_t, all callers changed.
20981         (create_cap_allocno): Call ira_create_allocno_object.
20982         (finish_allocno): Free the corresponding object.
20983         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
20984         callers changed.  Adjusted for dealing with objects.
20985         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
20986         dealing with objects.
20987         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
20988
20989         * ira-int.h (struct live_range): Rename allocno member to object
20990         and change type to ira_object_t.
20991         (struct ira_object): New member live_ranges.
20992         (struct ira_allocno): Remove member live_ranges.
20993         (ALLOCNO_LIVE_RANGES): Remove.
20994         (OBJECT_LIVE_RANGES): New macro.
20995         (ira_create_live_range, ira_copy_live_range_list,
20996         ira_merge_live_range_list, ira_live_ranges_intersect_p,
20997         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
20998         * ira-build.c (ira_create_object): Initialize live ranges here.
20999         (ira_create_allocno): Not here.
21000         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
21001         changed to ira_object_t, all callers changed.
21002         (copy_live_range): Rename from copy_allocno_live_range, all callers
21003         changed.
21004         (ira_copy_live_range_list): Rename from
21005         ira_copy_allocno_live_range_list, all callers changed.
21006         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
21007         all callers changed.
21008         (ira_live_ranges_intersect_p): Rename from
21009         ira_allocno_live_ranges_intersect_p, all callers changed.
21010         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
21011         callers changed.
21012         (ira_finish_live_range_list): Rename from
21013         ira_finish_allocno_live_range_list, all callers changed.
21014         (change_object_in_range_list): Rename from change_allocno_in_range_list,
21015         last arg changed to ira_object_t, all callers changed.
21016         (finish_allocno): Changed to expect live ranges in the allocno's object.
21017         (move_allocno_live_ranges, copy_allocno_live_ranges,
21018         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
21019         ira_flattening, ira_build): Likewise.
21020         * ira-color.c (allocnos_have_intersected_live_ranges_p,
21021         slot_coalesced_allocno_live_ranges_intersect,
21022         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
21023         * ira-conflicts.c (build_conflict_bit_table): Likewise.
21024         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
21025         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
21026         make_allocno_dead, create_start_finish_chains,
21027         remove_some_program_points_and_update_live_ranges,
21028         ira_debug_live_range_list): Likewise.
21029
21030         * ira-int.h (ira_object_conflict_iterator): Rename from
21031         ira_allocno_conflict_iterator.
21032         (ira_object_conflict_iter_init): Rename from
21033         ira_allocno_conflict_iter_init, second arg changed to
21034         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
21035         FOR_EACH_ALLOCNO_CONFLICT.
21036         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
21037         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
21038         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
21039         * ira-conflicts.c (print_allocno_conflicts): Likewise.
21040
21041 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
21042
21043         PR other/44874
21044         * tree-dump.c (dump_options): Add enumerate_locals entry.
21045         Add TDF_NOID exclusion to all entry.
21046         * tree-dump.h (dump_enumerated_decls): Declare.
21047         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
21048         Don't display type uid.
21049         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
21050         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
21051         * tree-ssa-live.c: Include gimple.h.
21052         (numbered_tree_d): New struct.
21053         (numbered_tree): New typedef.
21054         (DEF_VEC_O (numbered_tree): New.
21055         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
21056         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
21057         (dump_enumerated_decls): Likewise.
21058         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
21059         debug info and flag_dump_final_insns, call dump_enumerated_decls.
21060         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
21061         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
21062
21063 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
21064
21065         * expmed.h (MAX_BITS_PER_WORD): Move to...
21066         * defaults.h (MAX_BITS_PER_WORD): ...here.
21067
21068 2010-07-13  DJ Delorie  <dj@redhat.com>
21069
21070         * config/h8300/h8300.c (h8300_init_once): Default to
21071         -fstrict_volatile_bitfields.
21072
21073         * config/sh/sh.c (sh_override_options): Default to
21074         -fstrict_volatile_bitfields.
21075
21076         * config/rx/rx.c (rx_option_override): New.
21077
21078         * config/m32c/m32c.c (m32c_override_options): Default to
21079         -fstrict_volatile_bitfields.
21080
21081 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
21082
21083         * tree.h (build_function_call_expr): Delete.
21084         (build_call_expr_loc_array): New function.
21085         (build_call_expr_loc_vec): New function.
21086         * tree-flow.h (struct omp_region): Change type of ws_args field
21087         to a VEC.
21088         * builtins.c (build_function_call_expr): Delete.
21089         (build_call_expr_loc_array): New function.
21090         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
21091         (build_call_expr): Likewise.
21092         (build_call_expr_loc_vec): New function.
21093         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
21094         build_function_call_expr.
21095         * expr.c (emutls_var_address): Likewise.
21096         * varasm.c (emutls_common_1): Likewise.
21097         * omp-low.c (expand_omp_atomic_mutex): Likewise.
21098         (expand_omp_taskreg): Adjust for new type of region->ws_args.
21099         (get_ws_args_for): Return a VEC instead of a tree.
21100         (expand_parallel_call): Call build_call_expr_loc_vec instead of
21101         build_function_call_expr.
21102         * stor-layout.c (self_referential_size): Likewise.
21103
21104 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
21105
21106         PR testsuite/44701
21107         * recog.c (constrain_operands): Allow side-effects in memory
21108         operands if either < or > constraint is used, rather than if
21109         both < and > is used.
21110
21111 2010-07-13  Richard Guenther  <rguenther@suse.de>
21112
21113         PR middle-end/44911
21114         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
21115         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
21116         without name.
21117
21118 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
21119
21120         PR target/44761
21121         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
21122         to variable emited.
21123         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
21124         * config/sh/sh.md (symGOT_load): Likewise.
21125         (symDTPOFF2reg): Likewise.
21126         (symTPOFF2reg): Likewise.
21127
21128 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21129
21130         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
21131         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
21132
21133 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21134
21135         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
21136         explanation.
21137         Find ucontext_t * on Solaris 11.
21138         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
21139         Handle new Solaris 11 __sighndlr patterns.
21140
21141 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
21142
21143         PR debug/44901
21144         * vec.h (VEC_block_remove): Fix comment.
21145         * tree-ssa-live.c (remove_unused_locals): Don't use
21146         VEC_unordered_remove on local_decls, instead replace a single
21147         vector element in each iteration if at least one element had
21148         to be removed and VEC_truncate at the end.
21149         * omp-low.c (expand_omp_taskreg): Likewise.
21150
21151 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21152
21153         * c-decl.c (finish_function): Fix typo in comment.
21154
21155 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
21156
21157         PR bootstrap/44921
21158         * postreload.c (move2add_use_add3_insn): Silence gcc warning
21159         on min_regno.
21160
21161 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
21162
21163         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
21164         (simplify_stmt_using_ranges): Use it.
21165
21166 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21167
21168         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
21169         member.  Do not mark as GTY(()).
21170         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
21171         (spu_builtin_decls): New static variable.
21172         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
21173         (spu_init_builtins): Likewise.
21174         (spu_builtin_mul_widen_even): Likewise.
21175         (spu_builtin_mul_widen_odd): Likewise.
21176         (spu_builtin_mask_for_load): Likewise.
21177         (spu_builtin_vec_perm): Likewise.
21178         * config/spu/spu-c.c: Include "target.h".
21179         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
21180         of using spu_builtins[].fndecl.
21181
21182 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21183
21184         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
21185         imply -minterlink-mips16.
21186
21187 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21188
21189         * config/mips/mips.h (mips16_globals): Declare.
21190         (SWITCHABLE_TARGET): Define.
21191         * config/mips/mips.c: Include target-globals.h.
21192         (mips16_globals): New variable.
21193         (mips_set_mips16_mode): Use save_target_globals and
21194         restore_target_globals instead of target_reinit.
21195
21196 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21197
21198         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
21199         to say that the function can be called more than once.
21200         * target-globals.c (save_target_globals): Call init_reg_sets.
21201
21202 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21203
21204         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
21205         * bb-reorder.h: New file.
21206         * bb-reorder.c (default_target_bb_reorder): New variable.
21207         (this_target_bb_reorder): New conditional variable.
21208         (uncond_jump_length): Redefine as a macro.
21209         * target-globals.h (this_target_bb_reorder): Declare.
21210         (target_globals): Add a bb_reorder field.
21211         (restore_target_globals): Copy the bb_reorder field to
21212         this_target_bb-reorder.
21213         * target-globals.c: Include bb-reorder.h.
21214         (default_target_globals): Initialize the bb_reorder field.
21215         (save_target_globals): Likewise.
21216
21217 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21218
21219         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
21220         * gcse.h: New file.
21221         * gcse.c: Include gcse.h.
21222         (default_target_gcse): New variable.
21223         (this_target_gcse): New conditional variable.
21224         (can_copy): Redefine as a macro.
21225         (can_copy_init_p): New macro.
21226         (can_copy_p): Remove can_copy_init_p.
21227         * target-globals.h (this_target_gcse): Declare.
21228         (target_globals): Add a gcse field.
21229         (restore_target_globals): Copy the gcse field to this_target_gcse.
21230         * target-globals.c: Include gcse.h.
21231         (default_target_globals): Initialize the gcse field.
21232         (save_target_globals): Likewise.
21233
21234 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21235
21236         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
21237         and x_ira_prohibited_mode_move_regs_initialized_p.
21238         (ira_prohibited_mode_move_regs): Redefine as a macro.
21239         * ira.c (ira_prohibited_mode_move_regs): Delete.
21240         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
21241
21242 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21243
21244         * reload.h (target_reload): Add x_cached_reg_save_code and
21245         x_cached_reg_restore_code.
21246         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
21247         Redefine as macros.
21248
21249 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21250
21251         * Makefile.in (target-globals.o): Depend on builtins.h.
21252         * builtins.h: New file.
21253         * builtins.c: Include builtins.h.
21254         (default_target_builtins): New variable.
21255         (this_target_builtins): New conditional variable.
21256         (apply_args_mode, apply_result_mode): Redefine as macros.
21257         * target-globals.h (this_target_builtins): Declare.
21258         (target_globals): Add a builtins field.
21259         (restore_target_globals): Copy the builtins field to
21260         this_target_builtins.
21261         * target-globals.c: Include builtins.h.
21262         (default_target_globals): Initialize the builtins field.
21263         (save_target_globals): Likewise.
21264
21265 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21266
21267         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
21268         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
21269         from expmed.c.
21270         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
21271         (alg_hash, alg_hash_used_p): New macros.
21272         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
21273         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
21274         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
21275
21276 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21277
21278         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
21279         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
21280         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
21281         (this_op_costs, costs_classes): Redefine as macros.
21282         (record_reg_classes): Don't take op_costs as a parameter.
21283         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
21284         (scan_one_insn): Update call to record_operand_costs.
21285
21286 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21287
21288         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
21289         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
21290         (target_ira_int): New structure.
21291         (default_target_ira_int): Declare.
21292         (this_target_ira_int): Declare as a variable or define as a macro.
21293         (ira_reg_mode_hard_regset, ira_register_move_cost)
21294         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
21295         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
21296         (prohibited_class_mode_regs, ira_important_classes_num)
21297         (ira_important_classes, ira_reg_class_intersect)
21298         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
21299         (ira_reg_class_union): Redefine as macros.
21300         * ira.h (target_ira): New structure.
21301         (default_target_ira): Declare.
21302         (this_target_ira): Declare as a variable or define as a macro.
21303         (ira_available_class_regs, ira_hard_regno_cover_class)
21304         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
21305         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
21306         (ira_class_hard_regs_num): Redefine as macros.
21307         * ira.c (default_target_ira, default_target_ira_int): New variables.
21308         (this_target_ira, this_target_ira_int): New conditional variables.
21309         (ira_reg_mode_hard_regset, ira_memory_move_cost)
21310         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
21311         (ira_class_subset_p): Delete.
21312         (no_unit_alloc_regs): Redefine as a macro.
21313         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
21314         (ira_class_hard_regs_num, ira_class_hard_reg_index)
21315         (ira_available_class_regs): Delete.
21316         (alloc_reg_class_subclasses): Redefine as a macro.
21317         (ira_reg_class_cover_size, ira_reg_class_cover)
21318         (ira_important_classes_num, ira_important_classes)
21319         (ira_important_class_nums, ira_class_translate): Delete.
21320         (cover_class_order): Document the variable's lifetime.
21321         (reorder_important_classes): Don't set ira_important_class_nums.
21322         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
21323         (ira_reg_class_super_classes, ira_reg_class_union)
21324         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
21325         Delete.
21326         (setup_reg_class_nregs): Don't set ira_max_regs.
21327         (prohibited_class_mode_regs): Delete.
21328         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
21329         (target_globals): Add ira and ira_int fields.
21330         (restore_target_globals): Copy the ira field to this_target_ira
21331         and the ira_int field to this_target_ira_int.
21332         * target-globals.c: Include ira-int.h.
21333         (default_target_globals): Initialize the ira and ira_int fields.
21334         (save_target_globals): Likewise.
21335
21336 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21337
21338         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
21339         * cfgloop.h (target_cfgloop): New structure.
21340         (default_target_cfgloop): Declare.
21341         (this_target_cfgloop): Declare as a variable or define as a macro.
21342         (target_avail_regs, target_clobbered_regs, target_res_regs)
21343         (target_reg_cost, target_spill_cost): Redefine as macros.
21344         * cfgloopanal.c (default_target_cfgloop): New variable.
21345         (this_target_cfgloop): New conditional variable.
21346         (target_avail_regs, target_clobbered_regs, target_res_regs)
21347         (target_reg_cost, target_spill_cost): Delete.
21348         * target-globals.h (this_target_cfgloop): Declare.
21349         (target_globals): Add a cfgloop field.
21350         (restore_target_globals): Copy the cfgloop field to
21351         this_target_cfgloop.
21352         * target-globals.c: Include cfgloop.h.
21353         (default_target_globals): Initialize the cfgloop field.
21354         (save_target_globals): Likewise.
21355
21356 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21357
21358         * regs.h (target_regs): Add x_direct_load, x_direct_store and
21359         x_float_extend_from_mem.
21360         (direct_load, direct_store, float_extend_from_mem): New macros.
21361         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
21362
21363 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21364
21365         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
21366         (target-globals.o): Depend on $(LIBFUNCS_H).
21367         * libfuncs.h: Include hashtab.h.
21368         (libfunc_entry): Moved from optabs.c.
21369         (target_libfuncs): New structure.
21370         (default_target_libfuncs): Declare.
21371         (this_target_libfuncs): Declare as a variable or define as a macro.
21372         (libfunc_table): Redefine as a macro.
21373         * optabs.c (default_target_libfuncs): New variable.
21374         (this_target_libfuncs): New conditional variable.
21375         (libfunc_table): Delete.
21376         (libfunc_entry): Moved to optabs.h.
21377         (libfunc_hash): Redefine as a macro.
21378         (hash_libfunc, eq_libfunc): Fix comments.
21379         (init_optabs): Use libfunc_hash to detect cases where the function
21380         has already been called.  Clear the hash table instead of
21381         recreating it.
21382         * target-globals.h (this_target_libfuncs): Declare.
21383         (target_globals): Add a libfuncs field.
21384         (restore_target_globals): Copy the libfuncs field to
21385         this_target_libfuncs.
21386         * target-globals.c: Include libfuncs.h.
21387         (default_target_globals): Initialize the libfuncs field.
21388         (save_target_globals): Likewise.
21389
21390 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21391
21392         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
21393         in all dependency lists.
21394
21395 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21396
21397         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
21398         * optabs.h (target_optabs): New structure.
21399         (default_target_optabs): Declare.
21400         (this_target_optabs): Declare as a variable or define as a macro.
21401         (optab_table, convert_optab_table, direct_optab_table): Redefine
21402         as macros.
21403         * optabs.c (default_target_optabs): New variable.
21404         (this_target_optabs): New conditional variable.
21405         (optab_table, convert_optab_table, direct_optab_table): Delete.
21406         * target-globals.h (this_target_optabs): Declare.
21407         (target_globals): Add a optabs field.
21408         (restore_target_globals): Copy the optabs field to
21409         this_target_optabs.
21410         * target-globals.c: Include expr.h and optabs.h.
21411         (default_target_globals): Initialize the optabs field.
21412         (save_target_globals): Likewise.
21413
21414 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21415
21416         * flags.h (target_flagstate): Add x_flag_excess_precision.
21417         (flag_excess_precision): Redefine as a macro.
21418         * toplev.c (flag_excess_precision): Delete.
21419
21420 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21421
21422         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
21423         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
21424         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
21425         (no_caller_save_reg_set): Redefine as a macro.
21426         * reload.h (target_reload): Add x_caller_save_initialized_p and
21427         x_regno_save_mode.
21428         (caller_save_initialized_p): Redefine as a macro.
21429         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
21430         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
21431         (regno_save_mode): Redefine as a macro.
21432
21433 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21434
21435         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
21436         * expmed.h: New file.
21437         * expmed.c (default_target_costs): New variable.
21438         (this_target_costs): New conditional variable.
21439         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
21440         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
21441         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
21442         * target-globals.h (this_target_expmed): Declare.
21443         (target_globals): Add a expmed field.
21444         (restore_target_globals): Copy the expmed field to
21445         this_target_expmed.
21446         * target-globals.c: Include expmed.h.
21447         (default_target_globals): Initialize the expmed field.
21448         (save_target_globals): Likewise.
21449
21450 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21451
21452         * Makefile.in (target-globals.o): Depend on reload.h.
21453         * reload.h (target_reload): New structure.
21454         (default_target_reload): Declare.
21455         (this_target_reload): Declare as a variable or define as a macro.
21456         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
21457         * reload1.c (default_target_reload): New variable
21458         (this_target_reload): New conditional variable.
21459         (indirect_symref_ok, double_reg_address_ok): Delete.
21460         (spill_indirect_levels): Redefine as a macro.
21461         * target-globals.h (this_target_reload): Declare.
21462         (target_globals): Add a reload field.
21463         (restore_target_globals): Copy the reload field to
21464         this_target_reload.
21465         * target-globals.c: Include hard-reg-set.h.
21466         (default_target_globals): Initialize the reload field.
21467         (save_target_globals): Likewise.
21468
21469 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21470
21471         * rtl.h (target_rtl): Add x_static_reg_base_value.
21472         * alias.c (static_reg_base_value): Redefine as a macro.
21473
21474 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21475
21476         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
21477         (GTFILES): Remove reginfo.c.
21478         * rtl.h (target_rtl): Add x_top_of_stack.
21479         (top_of_stack): New macro.
21480         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
21481         (top_of_stack): Delete.
21482
21483 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21484
21485         * regs.h (target_regs): Add x_hard_regs_of_mode,
21486         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
21487         x_may_move_out_cost and x_last_mode_for_init_move_cost.
21488         (have_regs_of_mode, contains_reg_of_mode, move_cost)
21489         (may_move_in_cost, may_move_out_cost): Redefine as macros.
21490         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
21491         (may_move_in_cost, may_move_out_cost): Delete.
21492         (last_mode_for_init_move_cost): Redefine as a macro.
21493
21494 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21495
21496         * hard-reg-set.h (target_hard_regs): New structure.
21497         (default_target_hard_regs): Declare.
21498         (this_target_hard_regs): Declare as a variable or define as a macro.
21499         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
21500         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
21501         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
21502         (reg_class_size, reg_class_subclasses, reg_class_subunion)
21503         (reg_class_superunion, reg_names): Redefine as macros.
21504         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
21505         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
21506         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
21507         (reg_class_contents, reg_class_size, reg_class_subclasses)
21508         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
21509         (default_target_hard_regs): New variable
21510         (this_target_hard_regs, initial_call_really_used_regs)
21511         (initial_reg_alloc_order): New conditional variables.
21512         (initial_reg_names): New variable.
21513         (init_reg_sets): Assert that initial_call_really_used_regs,
21514         initial_reg_alloc_order and initial_reg_names
21515         are all the same size as their variable counterparts.  Use them to
21516         initialize those counterparts.
21517         * target-globals.h (this_target_hard_regs): Declare.
21518         (target_globals): Add a hard_regs field.
21519         (restore_target_globals): Copy the hard_regs field to
21520         this_target_hard_regs.
21521         * target-globals.c: Include hard-reg-set.h.
21522         (default_target_globals): Initialize the hard_regs field.
21523         (save_target_globals): Likewise.
21524
21525 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21526
21527         * Makefile.in (target-globals.o): Depend on $(RTL_H).
21528         * rtl.h (target_rtl): New structure.
21529         (default_target_rtl): Declare.
21530         (this_target_rtl): Declare as a variable or define as a macro.
21531         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
21532         Redefine as macros.
21533         * emit-rtl.c (default_target_rtl): New variable.
21534         (this_target_rtl): New conditional variable.
21535         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
21536         (return_address_pointer_rtx): Delete.
21537         (initial_regno_reg_rtx): New macro.
21538         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
21539         (init_emit_regs): Likewise.
21540         * target-globals.h (this_target_rtl): Declare.
21541         (target_globals): Add a rtl field.
21542         (restore_target_globals): Copy the rtl field to this_target_rtl.
21543         * target-globals.c: Include rtl.h.
21544         (default_target_globals): Initialize the rtl field.
21545         (save_target_globals): Likewise.
21546
21547 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21548
21549         * Makefile.in (target-globals.o): Depend on $(REGS_H).
21550         * regs.h (target_reg_modes): New structure.
21551         (default_target_reg_modes): Declare.
21552         (this_target_reg_modes): Declare as a variable or define as a macro.
21553         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
21554         * reginfo.c (default_target_reg_modes): New variable.
21555         (this_target_reg_modes): New conditional variable.
21556         (hard_regno_nregs, reg_raw_mode): Delete.
21557         * target-globals.h (this_target_regs): Declare.
21558         (target_globals): Add a regs field.
21559         (restore_target_globals): Copy the regs field to this_target_regs.
21560         * target-globals.c: Include regs.h.
21561         (default_target_globals): Initialize the regs field.
21562         (save_target_globals): Likewise.
21563
21564 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
21565
21566         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
21567         * doc/tm.texi: Regenerate.
21568         * Makefile.in (OBJS-common): Add target-globals.o.
21569         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
21570         and target-globals.h.
21571         (target-globals.o): New rule.
21572         (GTFILES): Include $(srcdir)/target-globals.h.
21573         * defaults.h (SWITCHABLE_TARGET): Define.
21574         * gengtype.c (open_base_files): Add target-globals.h to the
21575         list of includes.
21576         * target-globals.h: New file.
21577         * target-globals.c: Likewise.
21578
21579         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
21580         * flags.h (target_flag_state): New structure.
21581         (default_target_flag_state): Declare.
21582         (this_target_flag_state): Declare as a variable or define as a macro.
21583         (align_loops_log): Redefine as a macro.
21584         (align_loops_max_skip, align_jumps_log): Likewise.
21585         (align_jumps_max_skip, align_labels_log): Likewise.
21586         (align_labels_max_skip, align_functions_log): Likewise.
21587         * toplev.c (default_target_flag_state): New variable.
21588         (this_target_flag_state): New conditional variable.
21589         (align_loops_log): Delete.
21590         (align_loops_max_skip, align_jumps_log): Likewise.
21591         (align_jumps_max_skip, align_labels_log): Likewise.
21592         (align_labels_max_skip, align_functions_log): Likewise.
21593         * target-globals.h (this_target_flag_state): Declare.
21594         (target_globals): Add a flag_state field.
21595         (restore_target_globals): Copy the flag_state field to
21596         this_target_flag_state.
21597         * target-globals.c: Include flags.h.
21598         (default_target_globals): Initialize the flag_state field.
21599         (save_target_globals): Likewise.
21600
21601 2010-07-12  Jie Zhang  <jie@codesourcery.com>
21602
21603         * postreload.c (reg_symbol_ref[]): New.
21604         (move2add_use_add2_insn): New.
21605         (move2add_use_add3_insn): New.
21606         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
21607         (move2add_note_store): Likewise.
21608
21609 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
21610
21611         PR rtl-optimization/44752
21612         * genautomata.c (main): Don't emit an empty file even if there
21613         is no automaton.
21614
21615 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21616
21617         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
21618         ix86_solaris_return_in_memory.
21619         * config/i386-protos.h: Reflect this.
21620         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21621         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
21622         Move ...
21623         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
21624
21625 2010-07-12  Jie Zhang  <jie@codesourcery.com>
21626
21627         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
21628         align the stack when it's going to be saved.
21629
21630 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21631
21632         PR pch/14940
21633         * config/host-solaris.c (mmap_fixed): New function.
21634         (sol_gt_pch_get_address): Use it.
21635         (sol_gt_pch_use_address): Likewise.
21636
21637 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21638
21639         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
21640         pentiumpro on Solaris 8 and 9/x86.
21641         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
21642         Document SSE/SSE2 support.
21643         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
21644
21645 2010-07-12  Andi Kleen  <ak@linux.intel.com>
21646
21647         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
21648         instead of gcc_assert to print better error message for multiple
21649         prevailing defs.
21650
21651 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
21652
21653         * config/i386/i386.c (ix86_asm_output_function_label): Change format
21654         string placeholder from 0x%x to %#x.
21655         (ix86_code_end): Use putc to output '\n'.
21656         (ix86_print_operand) <case ';'>: Use putc to output ';'.
21657
21658 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
21659
21660         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
21661         in directive -export.
21662
21663 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
21664
21665         * reginfo.h (reg_classes_intersect_p): Change arguments type to
21666         reg_class_t.
21667         * rtl.h (reg_classes_intersect_p): Adjust prototype.
21668
21669         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21670         Remove macros.
21671         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
21672         rs6000_memory_move_cost): Remove
21673         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
21674         TARGET_MEMORY_MOVE_COST): Define.
21675         (rs6000_register_move_cost): Make static. Change arguments type from
21676         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
21677         (rs6000_memory_move_cost): Make static. Change arguments type from
21678         'enum reg_class' to reg_class_t.
21679
21680 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
21681
21682         PR middle-end/42505
21683         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
21684         lookup code into....
21685         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
21686         new functions.
21687         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
21688         * cfgloopanal.c (target_clobbered_regs): Define.
21689         (init_set_costs): Initialize target_clobbered_regs.
21690         (estimate_reg_pressure_cost): Add call_p argument.  When true,
21691         adjust the number of available registers to exclude the
21692         call-clobbered registers.
21693         * cfgloop.h (target_clobbered_regs): Declare.
21694         (estimate_reg_pressure_cost): Adjust declaration.
21695         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
21696         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
21697         (determine_set_costs): Dump target_clobbered_regs.
21698         (loop_body_includes_call): New function.
21699         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
21700         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
21701         call_p flag through.
21702         (best_gain_for_invariant): Likewise.
21703         (find_invariants_to_move): Likewise.
21704         (move_single_loop_invariants): Likewise, using already-computed
21705         has_call field.
21706
21707 2010-07-10  Richard Guenther  <rguenther@suse.de>
21708             Joern Rennecke  <joern.rennecke@embecosm.com>
21709
21710         PR debug/44832
21711         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
21712         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
21713         unless they have DECL_IGNORED_P set.
21714
21715 2010-07-10  Richard Guenther  <rguenther@suse.de>
21716
21717         PR lto/44889
21718         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
21719         helper function.
21720         (gimple_types_compatible_p): Similar to pointed-to
21721         types allow and merge a mix of complete and incomplete aggregate.
21722         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
21723         (iterative_hash_gimple_type): Adjust for that.
21724
21725 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
21726
21727         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
21728
21729 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
21730
21731         PR objc/44140
21732         * config/darwin.c (output_objc_section_asm_op): Save and restore
21733         section when outputting ObjC section list.
21734
21735 2010-07-09  Jan Hubicka  <jh@suse.cz>
21736
21737         * lto-streamer-out.c (produce_symtab): Do not write alias
21738         cgraph/varpool nodes.
21739
21740 2010-07-09  Jan Hubicka  <jh@suse.cz>
21741
21742         * tree-inline.c (declare_return_variable): Fix ICE while
21743         inlining DECL_BY_VALUE function not in SSA form
21744
21745 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
21746
21747         PR tree-optimization/44576
21748         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
21749         New.  Pull out from is_loop_prefetching_profitable to implement
21750         the trip count to ahead ratio heuristic.
21751         (mem_ref_count_reasonable_p): New.  Pull out from
21752         is_loop_prefetching_profitable to implement the instruction to
21753         memory reference ratio heuristic.  Also consider not reasonable if
21754         the memory reference count is above a threshold (to avoid
21755         explosive compilation time.
21756         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
21757         is_loop_prefetching_profitable to implement the instruction to
21758         prefetch ratio heuristic.
21759         (is_loop_prefetching_profitable): Removed.
21760         (loop_prefetch_arrays): Distribute the cost analysis across the
21761         function to allow early exit of the prefetch analysis.
21762         is_loop_prefetching_profitable is splitted into three functions,
21763         with each one called as early as possible.
21764         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
21765         number of memory references in a loop is considered too many.
21766
21767 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
21768
21769         * reload.c (find_reloads): Don't clear badop if we have a winreg
21770         alternative, but not win, and the class only has fixed regs.
21771         * hard-reg-set.h (class_only_fixed_regs): Declare.
21772         * reginfo.c (class_only_fixed_regs): New array.
21773         (init_reg_sets_1): Initialize it.
21774         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
21775         discourage alternatives using the stack pointer.
21776
21777         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
21778
21779         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
21780
21781         * config/arm/arm.md (cbranchqi4): Fix array size.
21782         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
21783         calculating length.
21784
21785 2010-07-09  Richard Guenther  <rguenther@suse.de>
21786
21787         * gimple.c (struct type_fixup_s): New struct and VEC type.
21788         (gimple_register_type_fixups): New static global.
21789         (gimple_queue_type_fixup): New function.
21790         (gimple_types_compatible_p): Queue type fixups instead of
21791         applying them here.
21792         (gimple_register_type): Apply queued fixups for the
21793         canonical type.  Empty the type fixup queue.
21794
21795 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
21796
21797         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
21798         * configure: Regenerate.
21799         * config.in: Ditto.
21800
21801 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
21802             Denys Vlasenko  <dvlasenk@redhat.com>
21803             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21804
21805         PR tree-optimization/28632
21806         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
21807         (extract_range_from_binary_expr): Further optimize
21808         BIT_AND_EXPR and BIT_IOR_EXPR.
21809
21810 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
21811
21812         * tree-if-conv.c (fold_or_predicates): New.
21813         (add_to_predicate_list): Call it.
21814
21815 2010-07-09  Richard Guenther  <rguenther@suse.de>
21816
21817         PR middle-end/44890
21818         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
21819         if base is a pointer.
21820         * tree-cfg.c (verify_expr): Update MEM_REF checking.
21821
21822 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
21823
21824         PR target/44877
21825         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
21826         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
21827         builtin mask for load/store builtins.
21828
21829 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
21830
21831         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
21832         for "lock addl".
21833         * configure: Regenerate.
21834         * config/i386/i386.c (ix86_print_operand) <case ';'>:
21835         Remove TARGET_MACHO.
21836
21837 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
21838
21839         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
21840         default ISA flags.
21841         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
21842
21843 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
21844
21845         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
21846
21847 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
21848
21849         * config/picochip/picochip.md (commsTestPort): Emit more
21850         efficient sequence for tstport instruction.
21851
21852 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
21853
21854         * config/i386/i386.c (ix86_veclib_handler): Make static.
21855
21856 2010-07-09  Richard Guenther  <rguenther@suse.de>
21857
21858         PR tree-optimization/44852
21859         * tree-ssa-alias.c: Include toplev.h for exact_log2.
21860         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
21861         in MEM_REF.
21862         (indirect_refs_may_alias_p): Likewise.
21863         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
21864
21865 2010-07-09  Richard Guenther  <rguenther@suse.de>
21866
21867         PR tree-optimization/44882
21868         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
21869         sets do conflict.
21870         (vectorizable_load): Likewise.
21871
21872 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
21873
21874         PR target/40657
21875         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
21876         All callers changed.
21877         Handle the case when we're called for the epilogue.
21878         (thumb_unexpanded_epilogue): Use it.
21879         (thumb1_expand_epilogue): Likewise.
21880
21881 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
21882
21883         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
21884         both ranges are range_int_cst_p with non-negative minimum,
21885         try harder to derive smaller range.
21886
21887 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21888
21889         * genrecog.c: Include diagnostic-core.h before toplev.h.
21890         * genoutput.c: Likewise.
21891         * genextract.c: Likewise.
21892         * genautomata.c: Likewise.
21893         * genemit.c: Likewise.
21894         * genpeep.c: Likewise.
21895         * genattrtab.c: Likewise.
21896         * genconditions.c: Likewise.
21897         * genpreds.c: Likewise.
21898
21899 2010-07-08  Andi Kleen  <ak@linux.intel.com>
21900
21901         * lto-section-in.c (lto_section_name): Add missing comma.
21902
21903 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
21904
21905         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
21906         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
21907         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
21908         (ia64_override_options): Rename to...
21909         (ia64_option_override): ... this one. Make static.
21910
21911 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21912
21913         PR middle-end/44843
21914         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
21915         pointed-to type of the offset in a MEM_REF to compute the alignment.
21916
21917 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
21918
21919         * final.c (final_scan_insn): Replace
21920         TARGET_UNWIND_INFO macro check by unwind_emit
21921         hook NULL check.
21922         * targhooks.c (default_unwind_emit): Removed.
21923         * targhooks.h (default_unwind_emit): Likewise.
21924         * target.def (unwind_emit): Set default value to NULL.
21925
21926         * config/i386/i386-protos.h (ix86_asm_output_function_label):
21927         New prototype.
21928         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
21929         for NULL fntype argument and allow 64-bit targets.
21930         (ix86_asm_output_function_label): New function.
21931         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
21932         (ix86_handle_fndecl_attribute): Likewise.
21933         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
21934         * doc/doc/tm.texi: Regenerated.
21935         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
21936         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
21937         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
21938         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
21939         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21940         * config/elfos.h: Likewise.
21941         * config/i386/cygming.h: Likewise.
21942         * config/netbsd-aout.h: Likewise.
21943         * config/openbsd.h: Likewise.
21944         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
21945         by ix86_asm_output_function_label function call.
21946         * varasm.c (assemble_start_function): Use
21947         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
21948
21949 2010-07-08  Jan Hubicka  <jh@suse.cz>
21950
21951         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
21952         New function.
21953         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
21954         Declare.
21955         * ipa-cp.c (ipcp_estimate_growth): Use it.
21956         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
21957         Likewise.
21958
21959 2010-07-08  Jan Hubicka  <jh@suse.cz>
21960
21961         * tree-inline.c (declare_return_variable): Allocate annotation for new
21962         temporary.
21963
21964 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
21965
21966         PR tree-optimization/44710
21967         * tree-if-conv.c (parse_predicate): New.
21968         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
21969         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
21970
21971 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
21972
21973         * common.opt (ftree-loop-if-convert): New flag.
21974         * doc/invoke.texi (ftree-loop-if-convert): Documented.
21975         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
21976         when flag_tree_loop_if_convert is set.
21977
21978 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
21979
21980         * config/i386/i386.c: Use short syntax for function calls
21981         through function pointers.
21982         * config/i386/i386.md: Ditto.
21983
21984 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21985
21986         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
21987
21988 2010-07-08  Richard Guenther  <rguenther@suse.de>
21989
21990         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
21991         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
21992
21993 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
21994
21995         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
21996         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
21997         (loc_list_from_tree): Likewise.
21998         (output_loc_operands): Handle outputting DW_OP_const[48]u
21999         with loc->dtprel set.
22000         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
22001
22002 2010-07-08  Jan Hubicka  <jh@suse.cz>
22003
22004         * ipa.c: Include pointer-set.h
22005         (cgraph_externally_visible_p): New attribute ALIASED;
22006         when in LTO, hidden symbols are local unless they are aliased.
22007         (function_and_variable_visibility): Compute aliased nodes;
22008         handle LTO and hidden symbol on functions and vars.
22009         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
22010         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
22011
22012 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22013
22014         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
22015         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22016         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22017         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22018         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22019         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
22020         (ix86_gen_probe_stack_range): Likewise.
22021         (override_options): Set them.
22022         (ix86_target_stack_probe): New function.
22023         (ix86_compute_frame_layout): Force use of push instructions to
22024         save registers if stack checking with probes is enabled.
22025         (get_scratch_register_on_entry): New function.
22026         (release_scratch_register_on_entry): Likewise.
22027         (ix86_adjust_stack_and_probe): Likewise.
22028         (output_adjust_stack_and_probe): Likewise.
22029         (ix86_emit_probe_stack_range): Likewise.
22030         (output_probe_stack_range): Likewise.
22031         (ix86_expand_prologue): Emit stack checking code if static built-in
22032         stack checking is enabled.
22033         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
22034         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
22035         (output_adjust_stack_and_probe): Likewise.
22036         (output_probe_stack_range): Likewise.
22037         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
22038         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
22039         TARGET_STACK_PROBE.
22040         (allocate_stack_worker_64): Likewise.
22041         (allocate_stack): Likewise.
22042         (adjust_stack_and_probe): New insn.
22043         (probe_stack_range): Likewise.
22044
22045 2010-07-08  Richard Guenther  <rguenther@suse.de>
22046
22047         PR tree-optimization/44831
22048         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
22049         a MEM_REF preserving TBAA info of the original dereference.
22050         Dereference the original pointer if the address is not invariant.
22051         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
22052         at least one invariant address that we are going to dereference.
22053
22054 2010-07-08  Richard Guenther  <rguenther@suse.de>
22055
22056         PR tree-optimization/44861
22057         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
22058         information when building MEM_REFs.
22059         (vectorizable_load): Likewise.
22060         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
22061
22062 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22063
22064         * config/sol2-c.c: Do not include diagnostic-core.h.
22065
22066 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22067
22068         PR bootstrap/44768
22069         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
22070         with respect to current_function_decl. Pass decl of the function.
22071         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
22072         * ipa-inline.c (compute_inline_parameters): Pass decl to
22073         estimated_stack_frame_size.
22074
22075 2010-07-08  Richard Guenther  <rguenther@suse.de>
22076
22077         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22078         New function.
22079         (valueize_refs): Call it.
22080
22081 2010-07-08  Richard Guenther  <rguenther@suse.de>
22082
22083         PR rtl-optimization/44838
22084         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
22085         SSA form do not use pointer equivalence.
22086
22087 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22088
22089         * dwarf2out.c (AT_linkage_name): Delete.
22090         (add_linkage_attr): New function.
22091         (add_linkage_name): Call it to emit the linkage attribute.
22092         (dwarf2out_finish): Likewise.
22093         (move_linkage_attr): Explicitly accept both attribute variants.
22094
22095 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22096
22097         * toplev.h: Do not include diagnostic-core.h.
22098         Include diagnostic-core.h in every file that includes toplev.h.
22099         * c-tree.h: Do not include toplev.h.
22100         * pretty-print.h: Update comment.
22101         * Makefile.in: Update dependencies.
22102         * alias.c: Include diagnostic-core.h in every file that includes
22103         toplev.h.
22104         * attribs.c: Likewise.
22105         * auto-inc-dec.c: Likewise.
22106         * bb-reorder.c: Likewise.
22107         * bt-load.c: Likewise.
22108         * caller-save.c: Likewise.
22109         * calls.c: Likewise.
22110         * cfg.c: Likewise.
22111         * cfganal.c: Likewise.
22112         * cfgbuild.c: Likewise.
22113         * cfgcleanup.c: Likewise.
22114         * cfghooks.c: Likewise.
22115         * cfgloop.c: Likewise.
22116         * combine.c: Likewise.
22117         * config/alpha/alpha.c: Likewise.
22118         * config/arc/arc.c: Likewise.
22119         * config/arm/arm.c: Likewise.
22120         * config/arm/pe.c: Likewise.
22121         * config/avr/avr.c: Likewise.
22122         * config/bfin/bfin.c: Likewise.
22123         * config/cris/cris.c: Likewise.
22124         * config/crx/crx.c: Likewise.
22125         * config/darwin-c.c: Likewise.
22126         * config/darwin.c: Likewise.
22127         * config/fr30/fr30.c: Likewise.
22128         * config/frv/frv.c: Likewise.
22129         * config/h8300/h8300.c: Likewise.
22130         * config/host-darwin.c: Likewise.
22131         * config/i386/i386.c: Likewise.
22132         * config/i386/netware.c: Likewise.
22133         * config/i386/nwld.c: Likewise.
22134         * config/i386/winnt-cxx.c: Likewise.
22135         * config/i386/winnt-stubs.c: Likewise.
22136         * config/i386/winnt.c: Likewise.
22137         * config/ia64/ia64-c.c: Likewise.
22138         * config/ia64/ia64.c: Likewise.
22139         * config/iq2000/iq2000.c: Likewise.
22140         * config/lm32/lm32.c: Likewise.
22141         * config/m32c/m32c-pragma.c: Likewise.
22142         * config/m32c/m32c.c: Likewise.
22143         * config/m32r/m32r.c: Likewise.
22144         * config/m68hc11/m68hc11.c: Likewise.
22145         * config/m68k/m68k.c: Likewise.
22146         * config/mcore/mcore.c: Likewise.
22147         * config/mep/mep-pragma.c: Likewise.
22148         * config/mep/mep.c: Likewise.
22149         * config/mmix/mmix.c: Likewise.
22150         * config/mn10300/mn10300.c: Likewise.
22151         * config/moxie/moxie.c: Likewise.
22152         * config/pa/pa.c: Likewise.
22153         * config/pdp11/pdp11.c: Likewise.
22154         * config/picochip/picochip.c: Likewise.
22155         * config/rs6000/rs6000-c.c: Likewise.
22156         * config/rs6000/rs6000.c: Likewise.
22157         * config/rx/rx.c: Likewise.
22158         * config/s390/s390.c: Likewise.
22159         * config/score/score.c: Likewise.
22160         * config/score/score3.c: Likewise.
22161         * config/score/score7.c: Likewise.
22162         * config/sh/sh.c: Likewise.
22163         * config/sh/symbian-base.c: Likewise.
22164         * config/sh/symbian-c.c: Likewise.
22165         * config/sh/symbian-cxx.c: Likewise.
22166         * config/sol2-c.c: Likewise.
22167         * config/sol2.c: Likewise.
22168         * config/sparc/sparc.c: Likewise.
22169         * config/spu/spu.c: Likewise.
22170         * config/stormy16/stormy16.c: Likewise.
22171         * config/v850/v850-c.c: Likewise.
22172         * config/v850/v850.c: Likewise.
22173         * config/vax/vax.c: Likewise.
22174         * config/vxworks.c: Likewise.
22175         * config/xtensa/xtensa.c: Likewise.
22176         * convert.c: Likewise.
22177         * cse.c: Likewise.
22178         * cselib.c: Likewise.
22179         * dbgcnt.c: Likewise.
22180         * dbxout.c: Likewise.
22181         * ddg.c: Likewise.
22182         * dominance.c: Likewise.
22183         * emit-rtl.c: Likewise.
22184         * explow.c: Likewise.
22185         * expmed.c: Likewise.
22186         * fixed-value.c: Likewise.
22187         * fold-const.c: Likewise.
22188         * fwprop.c: Likewise.
22189         * gcse.c: Likewise.
22190         * ggc-common.c: Likewise.
22191         * ggc-page.c: Likewise.
22192         * ggc-zone.c: Likewise.
22193         * gimple-low.c: Likewise.
22194         * gimplify.c: Likewise.
22195         * graph.c: Likewise.
22196         * haifa-sched.c: Likewise.
22197         * ifcvt.c: Likewise.
22198         * implicit-zee.c: Likewise.
22199         * integrate.c: Likewise.
22200         * ira-build.c: Likewise.
22201         * ira-color.c: Likewise.
22202         * ira-conflicts.c: Likewise.
22203         * ira-costs.c: Likewise.
22204         * ira-lives.c: Likewise.
22205         * ira.c: Likewise.
22206         * lists.c: Likewise.
22207         * loop-doloop.c: Likewise.
22208         * loop-iv.c: Likewise.
22209         * lto-opts.c: Likewise.
22210         * lto-symtab.c: Likewise.
22211         * main.c: Likewise.
22212         * modulo-sched.c: Likewise.
22213         * optabs.c: Likewise.
22214         * params.c: Likewise.
22215         * plugin.c: Likewise.
22216         * postreload-gcse.c: Likewise.
22217         * postreload.c: Likewise.
22218         * predict.c: Likewise.
22219         * profile.c: Likewise.
22220         * real.c: Likewise.
22221         * regcprop.c: Likewise.
22222         * reginfo.c: Likewise.
22223         * regmove.c: Likewise.
22224         * reorg.c: Likewise.
22225         * resource.c: Likewise.
22226         * rtl.c: Likewise.
22227         * rtlanal.c: Likewise.
22228         * sched-deps.c: Likewise.
22229         * sched-ebb.c: Likewise.
22230         * sched-rgn.c: Likewise.
22231         * sdbout.c: Likewise.
22232         * sel-sched-dump.c: Likewise.
22233         * sel-sched-ir.c: Likewise.
22234         * simplify-rtx.c: Likewise.
22235         * stmt.c: Likewise.
22236         * stor-layout.c: Likewise.
22237         * store-motion.c: Likewise.
22238         * targhooks.c: Likewise.
22239         * tree-cfg.c: Likewise.
22240         * tree-cfgcleanup.c: Likewise.
22241         * tree-dump.c: Likewise.
22242         * tree-eh.c: Likewise.
22243         * tree-inline.c: Likewise.
22244         * tree-nomudflap.c: Likewise.
22245         * tree-object-size.c: Likewise.
22246         * tree-optimize.c: Likewise.
22247         * tree-outof-ssa.c: Likewise.
22248         * tree-phinodes.c: Likewise.
22249         * tree-profile.c: Likewise.
22250         * tree-ssa-ccp.c: Likewise.
22251         * tree-ssa-coalesce.c: Likewise.
22252         * tree-ssa-live.c: Likewise.
22253         * tree-ssa-loop-niter.c: Likewise.
22254         * tree-ssa-loop-prefetch.c: Likewise.
22255         * tree-ssa-loop.c: Likewise.
22256         * tree-ssa-structalias.c: Likewise.
22257         * tree-ssa-uninit.c: Likewise.
22258         * tree-ssa.c: Likewise.
22259         * tree-vect-data-refs.c: Likewise.
22260         * tree-vect-loop-manip.c: Likewise.
22261         * tree-vect-loop.c: Likewise.
22262         * tree-vect-patterns.c: Likewise.
22263         * tree-vect-stmts.c: Likewise.
22264         * tree-vrp.c: Likewise.
22265         * varasm.c: Likewise.
22266         * vec.c: Likewise.
22267         * web.c: Likewise.
22268         * xcoffout.c: Likewise.
22269
22270 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
22271
22272         * gengtype.c (write_field_root): New function.
22273         (write_root): Use it.
22274
22275 2010-07-07  Wei Guozhi  <carrot@google.com>
22276
22277         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
22278         of lowest bits to lshift/compare): Add a missing line.
22279
22280 2010-07-07  Wei Guozhi  <carrot@google.com>
22281
22282         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
22283         of lowest bits to lshift/compare): New.
22284
22285 2010-07-07  Tom Tromey  <tromey@redhat.com>
22286
22287         * doc/tm.texi: Update.
22288         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
22289         Add @hook.
22290         * target.def (want_debug_pub_sections): New hook.
22291         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
22292         * dwarf2out.c (add_pubname_string): Check
22293         targetm.want_debug_pub_sections.
22294         (add_pubname): Likewise.
22295         (add_pubtype): Likewise.
22296
22297 2010-07-07  Jie Zhang  <jie@codesourcery.com>
22298
22299         * genautomata.c (output_automata_list_min_issue_delay_code):
22300         Correctly decompress min_issue_delay.
22301
22302 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
22303
22304         PR rtl-optimization/44404
22305         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
22306         possible, use reg_overlap_mentioned_p instead.
22307
22308 2010-07-07  Duncan Sands  <baldrick@free.fr>
22309
22310         PR middle-end/41355
22311         * tree.c (build_function_type_skip_args): Copy the original type using
22312         build_distinct_type_copy rather than copy_node.
22313
22314 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
22315
22316         PR target/44850
22317         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
22318         revision 161876.
22319         (ix86_expand_prologue): Likewise.
22320         (ix86_handle_fndecl_attribute): Likewise.
22321         (ix86_asm_declare_function_name): Likewise.
22322         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22323         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
22324         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
22325         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
22326         * doc/extend.texi: Likewise.
22327
22328 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
22329
22330         PR target/44844
22331         * config/i386/i386.md (rdrand<mode>): Changed to expand to
22332         retry if the carry flag isn't valid.
22333         (rdrand<mode>_1): New.
22334
22335 2010-07-07  Richard Guenther  <rguenther@suse.de>
22336
22337         PR middle-end/44790
22338         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
22339         for expanding the constant offset for MEM_REFs.
22340
22341 2010-07-07  Richard Guenther  <rguenther@suse.de>
22342
22343         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
22344         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
22345         * gimple.h (is_gimple_operand): Remove.
22346         * gimple.c (is_gimple_operand): Likewise.
22347         (walk_gimple_op): Fix wi->val_only setting for calls.
22348         * tree-cfg.c (verify_gimple_call): Fix argument validation.
22349         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
22350         invalid gimple calls.
22351
22352 2010-07-06  Jan Hubicka  <jh@suse.cz>
22353
22354         * lto-cgraph.c (output_cgraph): Add missing declaration.
22355
22356 2010-07-06  Jan Hubicka  <jh@suse.cz>
22357
22358         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
22359         partition.
22360
22361 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
22362
22363         * doc/gimple.texi (GIMPLE_DEBUG): Document.
22364         * doc/rtl.texi (Debug Information): New node.
22365         (NOTE_INSN_VAR_LOCATION): Document.
22366         (debug_insn): Likewise.
22367         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
22368
22369 2010-07-07  Jan Hubicka  <jh@suse.cz>
22370
22371         With parts by Richard Guenther.
22372
22373         PR middle-end/44813
22374         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
22375         for functions passed by reference.
22376         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
22377         in memory when passed by reference.
22378         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
22379         beggining.
22380         * ipa-split.c (split_function): Cleanup way return value is passed;
22381         handle SSA DECL_BY_REFERENCE retvals.
22382         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
22383         DECL_BY_REFERENCE is set.
22384         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
22385         find_what_p_points_to): Handle RESULT_DECL.
22386         * tree-inline.c (declare_return_variable): Get new entry_block argument;
22387         when passing by reference ensure that RESULT_DECL is gimple_val.
22388         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
22389         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
22390
22391 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
22392
22393         PR rtl-optimization/44787
22394         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
22395         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
22396
22397 2010-07-06  Jan Hubicka  <jh@suse.cz>
22398
22399         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
22400         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
22401         with body can prevail.
22402         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
22403         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
22404         * cgraph.c (cgraph_get_node_or_alias): New function.
22405         * cgraph.h (cgraph_get_node_or_alias): Declare.
22406
22407 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
22408
22409         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
22410         support.
22411         (ix86_expand_prologue): Likewise.
22412         (ix86_handle_fndecl_attribute): Likewise.
22413         (ix86_asm_declare_function_name): New function for
22414         ASM_DECLARE_FUNCTION_NAME.
22415         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
22416         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
22417         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
22418         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
22419         * doc/extend.texi: Adjust documentation about ms_hook_prologue
22420         attribute.
22421
22422 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
22423
22424         * config/i386/i386.md (immediate_operand): New mode attribute.
22425
22426         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
22427         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
22428         using P mode iterator.
22429         (pro_epilogue_adjust_stack_di_2): Rename from
22430         pro_epilogue_adjust_stack_rex64_2.
22431
22432         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
22433
22434 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
22435
22436         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
22437         through gen_mov_insv_1 function pointer.
22438         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
22439         gen_truncxf<mode>2 through gen_truncxf function pointer.
22440         (remainder<mode>3): Ditto.
22441         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
22442         (allocate_stack): Call gen_allocate_stack_worker_64 or
22443         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
22444         function pointer.
22445         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
22446         function pointer.
22447
22448 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
22449
22450         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
22451         operand constraint instead of <r><i>m.
22452
22453 2010-07-06  Richard Guenther  <rguenther@suse.de>
22454
22455         PR middle-end/44828
22456         * convert.c (convert_to_integer): Watch out for overflowing
22457         MULT_EXPR as well.
22458
22459 2010-07-05  Jan Hubicka  <jh@suse.cz>
22460
22461         * lto-streamer.c (write_symbol_vec): Rename to ...
22462         (write_symbol) ... this one; write only symbol given and when
22463         present in cache. Sanity check that what is defined is present
22464         in cgraph/varpool with body/finalized decl.
22465         (write_symbols_of_kind): Remove.
22466         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
22467         pairs to produce symtab.
22468         (produce_asm_for_decls): Update call of produce_symtab; don't do so
22469         when doing WPA streaming.
22470
22471 2010-07-05  Jan Hubicka  <jh@suse.cz>
22472
22473         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
22474         function is still available to fold into.
22475
22476 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
22477
22478         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
22479         * function.h (struct_function): Change type of local_decls field
22480         to a VEC.
22481         (add_local_decl): New function.
22482         (FOR_EACH_LOCAL_DECL): New macro.
22483         * cfgexpand.c (init_vars_expansion): Adjust for new type of
22484         cfun->local_decls.
22485         (estimated_stack_frame_size): Likewise.
22486         (expand_used_vars): Likewise.
22487         * cgraphbuild.c (build_cgraph_edges): Likewise.
22488         * function.c (instantiate_decls_1): Likewise.
22489         * ipa-struct-reorg.c (build_data_structure): Likewise.
22490         * ipa-type-escape.c (analyze_function): Likewise.
22491         * lto-streamer-in.c (input_function): Likewise.
22492         * lto-streamer-out.c (output_function): Likewise.
22493         * tree-ssa-live.c (remove_unused_locals): Likewise.
22494         * tree.c (free_lang_data_in_decl): Likewise.
22495         (find_decls_types_in_node): Likewise.
22496         * omp-low.c (remove_exit_barrier): Likewise.
22497         (expand_omp_taskreg): Likewise.
22498         (list2chain): Rename to...
22499         (vec2chain): ...this.  Adjust.
22500         * cgraphunit.c (assemble_thunk): Call add_local_decl.
22501         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
22502         * gimple-low.c (record_vars_into): Likewise.
22503         * tree-inline.c (remap_decls): Likewise.
22504         (declare_return_variable): Likewise.
22505         (declare_inline_vars): Likewise.
22506         (copy_forbidden): Adjust for new type of cfun->local_decls.
22507         (add_local_variables): New function.
22508         (expand_call_inline): Call it.
22509         (tree_function_versioning): Likewise.
22510
22511 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
22512
22513         AVX Programming Reference (June, 2010)
22514         * config/i386/cpuid.h (bit_F16C): New.
22515         (bit_RDRND): Likewise.
22516         (bit_FSGSBASE): Likewise.
22517
22518         * config/i386/i386-builtin-types.def: Add
22519         "DEF_FUNCTION_TYPE (UINT16)", function types for
22520         float16 <-> float conversions and
22521         "DEF_FUNCTION_TYPE (VOID, UINT64)".
22522
22523         * config/i386/i386-c.c (ix86_target_macros_internal): Support
22524         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
22525         OPTION_MASK_ISA_F16C.
22526
22527         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
22528         (OPTION_MASK_ISA_RDRND_SET): Likewise.
22529         (OPTION_MASK_ISA_F16C_SET): Likewise.
22530         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
22531         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
22532         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
22533         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
22534         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
22535         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
22536         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
22537         (override_options): Handle them.
22538         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
22539         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
22540         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
22541         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
22542         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
22543         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
22544         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
22545         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
22546         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
22547         (bdesc_args): Likewise.
22548         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
22549         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
22550         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
22551         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
22552         Handle non-memory store.
22553
22554         * config/i386/i386.h (TARGET_FSGSBASE): New.
22555         (TARGET_RDRND): Likewise.
22556         (TARGET_F12C): Likewise.
22557
22558         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
22559         (UNSPEC_VCVTPS2PH): Likewise.
22560         (UNSPECV_RDFSBASE): Likewise.
22561         (UNSPECV_RDGSBASE): Likewise.
22562         (UNSPECV_WRFSBASE): Likewise.
22563         (UNSPECV_WRGSBASE): Likewise.
22564         (UNSPECV_RDRAND): Likewise.
22565         (rdfsbase<mode>): Likewise.
22566         (rdgsbase<mode>): Likewise.
22567         (wrfsbase<mode>): Likewise.
22568         (wrgsbase<mode>): Likewise.
22569         (rdrand<mode>): Likewise.
22570
22571         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
22572
22573         * config/i386/immintrin.h (_rdrand_u16): New.
22574         (_rdrand_u32): Likewise.
22575         (_readfsbase_u32): Likewise.
22576         (_readfsbase_u64): Likewise.
22577         (_readgsbase_u32): Likewise.
22578         (_readgsbase_u64): Likewise.
22579         (_writefsbase_u32): Likewise.
22580         (_writefsbase_u64): Likewise.
22581         (_writegsbase_u32): Likewise.
22582         (_writegsbase_u64): Likewise.
22583         (_rdrand_u64): Likewise.
22584         (_cvtsh_ss): Likewise.
22585         (_mm_cvtph_ps): Likewise.
22586         (_mm256_cvtph_ps): Likewise.
22587         (_cvtss_sh): Likewise.
22588         (_mm_cvtps_ph): Likewise.
22589         (_mm256_cvtps_ph): Likewise.
22590
22591         * config/i386/sse.md (vcvtph2ps): New.
22592         (*vcvtph2ps_load): Likewise.
22593         (vcvtph2ps256): Likewise.
22594         (vcvtps2ph): Likewise.
22595         (*vcvtps2ph): Likewise.
22596         (*vcvtps2ph_store): Likewise.
22597         (vcvtps2ph256): Likewise.
22598
22599         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
22600
22601         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
22602
22603 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
22604
22605         PR bootstrap/44512
22606         * genenums.c (main): Output include of insn-constants.h
22607         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
22608
22609 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
22610
22611         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
22612         (override_options): Initialize it.
22613         (ix86_expand_prologue): Use it.
22614
22615 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
22616
22617         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
22618
22619 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
22620
22621         * double-int.h (fit_double_type): Remove declaration.
22622         * double-int.c (fit_double_type): Remove function.
22623         * tree.h (int_fits_type_p): Adjust prototype.
22624         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
22625         instead of fit_double_type.
22626         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
22627         instead of fit_double_type and build_int_cst_wide.
22628         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
22629         instead of fit_double_type and build_int_cst_wide.
22630         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
22631         of fit_double_type.
22632
22633 2010-07-05  Jan Hubicka  <jh@suse.cz>
22634
22635         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
22636         in_other_partition.
22637         * lto-cgraph.c (referenced_from_other_partition_p,
22638         reachable_from_other_partition_p): Use in_other_partition flags.
22639         (output_node, output_varpool_node): COMDAT nodes always have private
22640         copies and thus are never used from other partition.
22641
22642 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
22643
22644         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22645         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
22646         * config/ia64/ia64.c Include reload.h.
22647         (ia64_memory_move_cost): New function.
22648         (TARGET_MEMORY_MOVE_COST): Define.
22649         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
22650         memory_move_cost.
22651
22652 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
22653
22654         PR middle-end/42505
22655         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
22656         comments about cost model.
22657         (try_add_cand_for):  Add second strategy for choosing initial set
22658         based on original IVs, controlled by ORIGINALP argument.
22659         (get_initial_solution): Add ORIGINALP argument.
22660         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
22661         (find_optimal_iv_set): Try two different strategies for choosing
22662         the IV set, and return the one with lower cost.
22663
22664 2010-07-05  Richard Guenther  <rguenther@suse.de>
22665
22666         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
22667
22668 2010-07-05  Richard Guenther  <rguenther@suse.de>
22669
22670         * tree.c (reference_alias_ptr_type): New function.
22671         * tree.h (reference_alias_ptr_type): Declare.
22672         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
22673         allow non-TARGET_MEM_REF new refs.
22674         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
22675         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
22676         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
22677         (create_mem_ref): Get alias pointer type.  Adjust calls to
22678         create_mem_ref_raw.
22679         (maybe_fold_tmr): Likewise.
22680         * tree-flow.h (create_mem_ref): Adjust prototype.
22681
22682 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
22683
22684         PR c++/44808
22685         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
22686         *from_p is VAR_DECL.
22687
22688 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
22689
22690         * tree.h (build_call_list): Remove.
22691         * tree.c (build_call_list): Remove.
22692
22693 2010-07-05  Richard Guenther  <rguenther@suse.de>
22694
22695         * double-int.h (double_int_sub): Declare.
22696         * double-int.c (double_int_sub): New function.
22697         * dwarf2out.c (field_byte_offset): Use it.
22698         * fixed-value.c (do_fixed_add): Likewise.
22699         (do_fixed_multiply): Likewise.
22700         (do_fixed_divide): Likewise.
22701         * tree-predcom.c (add_ref_to_chain): Likewise.
22702         (determine_roots_comp): Likewise.
22703         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
22704
22705 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
22706
22707         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
22708         implementations.
22709
22710 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
22711
22712         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
22713         * arm-modes.def (CC_NOTB): Don't define.
22714         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
22715         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
22716         (LTUGEU): New code_iterator.
22717         (cnb, optab): New corresponding code_attrs.
22718         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
22719         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
22720         using LTUGEU.
22721         (addsi3_carryin_shift_<optab>): Likewise.
22722         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
22723         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
22724         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
22725         (subsi3_compare): Renamed from subsi3_compare0_c.
22726         Change CC_NOTB to CC.
22727         (arm_subsi3_insn): Allow constants for operand 0.
22728         (compare_scc peephole for eq case): New.
22729         (compare_scc splitters): Change CC_NOTB to CC.
22730
22731 2010-07-05  Richard Guenther  <rguenther@suse.de>
22732
22733         * tree-ssa-loop-im.c (for_each_index): Do not handle
22734         ALIGN_INDIRECT_REF.
22735         (gen_lsm_tmp_name): Likewise.
22736         * tree-dump.c (dequeue_and_dump): Likewise.
22737         * tree-pretty-print.c (dump_generic_node): Likewise.
22738         (op_code_prio): Likewise.
22739         (op_symbol_code): Likewise.
22740         * tree.c (staticp): Likewise.
22741         (build1_stat): Likewise.
22742         * tree.h (INDIRECT_REF_P): Likewise.
22743         * fold-const.c (maybe_lvalue_p): Likewise.
22744         (operand_equal_p): Likewise.
22745         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22746         (ao_ref_init_from_vn_reference): Likewise.
22747         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
22748         (find_interesting_uses_address): Likewise.
22749         * dwarf2out.c (loc_list_from_tree): Likewise.
22750         * gimplify.c (gimplify_expr): Likewise.
22751         * tree-eh.c (tree_could_trap_p): Likewise.
22752         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22753         * cfgexpand.c (expand_debug_expr): Likewise.
22754         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
22755         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
22756         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
22757         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
22758         * tree-ssa-operands.c (get_expr_operands): Likewise.
22759         * expr.c (safe_from_p): Likewise.
22760         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
22761         * tree-vect-data-refs.c (vect_setup_realignment): Build
22762         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
22763         * tree-vect-stmts.c (vectorizable_load): Likewise.
22764         * tree.def (ALIGN_INDIRECT_REF): Remove.
22765
22766 2010-07-05  Richard Guenther  <rguenther@suse.de>
22767
22768         PR tree-optimization/44784
22769         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
22770         for inserted stmts.
22771         (find_or_generate_expression): Fix SCCVN insertion check.
22772
22773 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
22774
22775         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
22776         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22777         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
22778         directives.
22779
22780 2010-07-05  Ira Rosen  <irar@il.ibm.com>
22781
22782         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
22783         statements that are not vectorized.
22784         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
22785         in INSIDE_COST.
22786
22787 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
22788
22789         PR bootstrap/44820
22790         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
22791
22792 2010-07-05  Richard Guenther  <rguenther@suse.de>
22793
22794         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
22795         RESULT_DECLs properly.
22796
22797 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
22798
22799         PR rtl-optimization/44695
22800         * config/i386/i386.md (extract_code): Removed.
22801         (<u>divmodqi4): Likewise.
22802         (divmodqi4): New.
22803         (udivmodqi4): Likewise.
22804         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
22805         (udivmodhiqi3): Likewise.
22806
22807 2010-07-04  Jan Hubicka  <jh@suse.cz>
22808
22809         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
22810
22811 2010-07-04  Jan Hubicka  <jh@suse.cz>
22812
22813         * cgraphunit.c (init_cgraph): Only initialize dump file if it
22814         is not already initialized.
22815
22816 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
22817
22818         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
22819         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
22820         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
22821         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
22822         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
22823         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
22824         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
22825         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
22826         (sync_new_nand_optab): Redefine as macros.
22827         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
22828         Delete.
22829         (direct_optab_index): New enum.
22830         (direct_optab_d): New structure.
22831         (direct_optab): New typedef.
22832         (direct_optab_table): Declare.
22833         (direct_optab_handler, set_direct_optab_handler): New functions.
22834         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
22835         (sync_lock_release_optab): New macros.
22836         * optabs.c (direct_optab_table): New variable.
22837         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
22838         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
22839         cmpstr_optab and cmpstrn_optab.
22840         (emit_conditional_move): Likewise for movcc_optab.
22841         (can_conditionally_move_p): Likewise for movcc_gen_code.
22842         (init_insn_codes): Clear direct_optab_table.
22843         (init_optabs): Don't initialize the new "direct optabs" here.
22844         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
22845         vcond_gen_code.
22846         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
22847         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
22848         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
22849         (expand_sync_operation): Likewise other sync_*_optabs.
22850         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
22851         to sync_compare_and_swap_optab.
22852         (expand_sync_lock_test_and_set): Use direct_optab_handler for
22853         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
22854         to the names of both.
22855         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
22856         cmpstr_optab and cmpstrn_optab.
22857         (expand_builtin_lock_release): Likewise sync_lock_release.
22858         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
22859         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
22860         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
22861         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
22862         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
22863         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
22864         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
22865         (sync_lock_test_and_set, sync_lock_release): Delete.
22866         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
22867         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
22868         * genopinit.c (optabs): Use set_direct_optab_handler for the new
22869         macro optabs.
22870         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
22871         the "optab" local variable.  Use direct_optab_handler for optab and
22872         sync_compare_and_swap_optab.
22873         * reload1.c (reload_in_optab, reload_out_optab): Delete.
22874         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
22875         reload_in_optab and reload_out_optab.
22876         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
22877         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
22878         * config/pa/pa.c (pa_secondary_reload): Likewise.
22879         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
22880         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
22881         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
22882         (VMSupportsCS8_builtin): Likewise.
22883
22884 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
22885
22886         * optabs.h (optab_handlers): Change type of insn_code to int.
22887         (optab_handler, set_optab_handler, convert_optab_handler)
22888         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
22889         CODE_FOR_nothing".
22890         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
22891         (init_insn_codes): Zero both the above arrays.
22892         (init_optabs): Never call init_insn_codes first time around.
22893
22894 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
22895
22896         * optabs.h (optab_handler, convert_optab_handler): Turn into
22897         inline functions that return an insn code.
22898         (set_optab_handler, set_convert_optab_handler): New functions.
22899         * builtins.c: Replace optab_handler(X)->insn_code with
22900         optab_handler or set_optab_handler thoughout.  Likewise
22901         convert_optab_handler(X)->insn_code with convert_optab_handler
22902         and set_convert_optab_handler.
22903         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
22904         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
22905         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
22906         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
22907         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
22908         config/spu/spu.c: Likewise.
22909
22910 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
22911
22912         PR target/44531
22913         * config.gcc (sh*-*-*): Use regular expressions instead of
22914         the 'i' modifier for sed substitutions.
22915
22916 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
22917
22918         * gimple.c (gimple_body): Comments added.
22919
22920 2010-07-04  Richard Guenther  <rguenther@suse.de>
22921
22922         PR middle-end/44809
22923         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
22924         of an INDIRECT_REF.
22925
22926 2010-07-04  Richard Guenther  <rguenther@suse.de>
22927
22928         PR tree-optimization/44479
22929         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
22930         extra SSA name copy statements which preserves points-to
22931         information.
22932         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22933         Copy points-to information for all pointers.  Properly handle
22934         MEM_REFs.
22935         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
22936         copy statements.
22937         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
22938         dependency.
22939
22940 2010-07-04  Richard Guenther  <rguenther@suse.de>
22941
22942         PR middle-end/44785
22943         * tree-inline.c (initialize_inlined_parameters): Do not
22944         re-use pointer-map slot over remap_type call.
22945
22946 2010-07-04  Richard Guenther  <rguenther@suse.de>
22947
22948         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
22949
22950 2010-07-04  Richard Guenther  <rguenther@suse.de>
22951
22952         PR tree-optimization/44656
22953         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
22954         again after value-replacing in the defintions lhs.
22955
22956 2010-07-04  Ira Rosen  <irar@il.ibm.com>
22957             Revital Eres  <eres@il.ibm.com>
22958
22959         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
22960         Document new arguments.
22961         * doc/tm.texi: Regenerate.
22962         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
22963         Handle unaligned store.
22964         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
22965         * target.def (builtin_vectorization_cost): Add new arguments.
22966         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
22967         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
22968         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
22969         (vect_vfa_segment_size): Fix indentation.
22970         * tree-vectorizer.h (struct _vect_peel_info): New.
22971         (struct _vect_peel_extended_info): New.
22972         (struct _loop_vec_info): Add new field for peeling hash table and a
22973         macro for its access.
22974         (VECT_MAX_COST): Define.
22975         (vect_get_load_cost): Declare.
22976         (vect_get_store_cost, vect_get_known_peeling_cost,
22977         vect_get_single_scalar_iteraion_cost): Likewise.
22978         (vect_supportable_dr_alignment): Add new argument.
22979         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
22980         field.
22981         (destroy_loop_vec_info): Free peeling hash table.
22982         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
22983         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
22984         vect_analyze_slp. Fix indentation.
22985         (vect_get_single_scalar_iteraion_cost): New function.
22986         (vect_get_known_peeling_cost): Likewise.
22987         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
22988         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
22989         statement. Move outside cost calculation inside unknown peeling case.
22990         Call vect_get_known_peeling_cost for known amount of peeling.
22991         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
22992         reference to the print message of forced alignment.
22993         (vect_verify_datarefs_alignment): Update call to
22994         vect_supportable_dr_alignment.
22995         (vect_get_data_access_cost): New function.
22996         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
22997         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
22998         vect_peeling_hash_choose_best_peeling): Likewise.
22999         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
23000         to store all the accesses in the loop and find best possible access to
23001         align using peeling for known alignment case. For unknown alignment
23002         check if stores are preferred or if peeling is worthy.
23003         (vect_find_same_alignment_drs): Analyze pairs of loads too.
23004         (vect_supportable_dr_alignment): Add new argument and check aligned
23005         accesses according to it.
23006         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
23007         (cost_for_stmt): Call vect_get_stmt_cost.
23008         (vect_model_simple_cost): Likewise.
23009         (vect_model_store_cost): Call vect_get_stmt_cost. Call
23010         vect_get_store_cost to calculate the cost of the statement.
23011         (vect_get_store_cost): New function.
23012         (vect_model_load_cost): Call vect_get_stmt_cost. Call
23013         vect_get_load_cost to calculate the cost of the statement.
23014         (vect_get_load_cost): New function.
23015         (vectorizable_store): Update call to vect_supportable_dr_alignment.
23016         (vectorizable_load): Likewise.
23017         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
23018         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
23019         arguments. Handle unaligned store.
23020         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
23021         (rs6000_builtin_support_vector_misalignment): Return true for word and
23022         double word alignments for VSX.
23023         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
23024         vect_supportable_dr_alignment and builtin_vectorization_cost.
23025
23026 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23027
23028         PR target/44597
23029         * config/pa/predicates.md (prefetch_cc_operand): Remove.
23030         (prefetch_nocc_operand): Likewise.
23031         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
23032         (prefetch_20): New insn.
23033         (prefetch_cc): Remove.
23034         (prefetch_nocc): Likewise.
23035
23036 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23037
23038         * expr.c (vector_mode_valid_p): Move to c-common.c.
23039         * expr.h (vector_mode_valid_p): Do not declare here.
23040         * system.h: Poison GCC_EXPR_H in front-ends.
23041         * Makefile.in: Update dependencies.
23042
23043 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23044
23045         PR target/44705
23046         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
23047
23048 2010-07-03  Jan Hubicka  <jh@suse.cz>
23049
23050         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
23051         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
23052         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
23053         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
23054         Likewise.
23055
23056         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
23057         Update timevars.V
23058         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
23059         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
23060         TV_IPA_LTO_DECL_OUT): New.
23061         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
23062
23063 2010-07-03  Jan Hubicka  <jh@suse.cz>
23064
23065         * ipa-inline.c (update_edge_key): Break out from ...
23066         update_callers_keys): ... here;
23067         (update_callee_keys): Update only the edges from caller to callee.
23068         (update_all_calle_keys): Do what update_calle_keys did.
23069         (decide_inlining_of_small_functions): Avoid recomputing of all
23070         callees when badness increase.
23071
23072 2010-07-03  Jie Zhang  <jie@codesourcery.com>
23073
23074         * config/arm/arm.c (arm_attr_length_move_neon): New.
23075         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
23076         * config/arm/neon.md (define_mode_attr V_slen): Remove.
23077         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
23078         to compute length attribute.
23079
23080 2010-07-03  Jie Zhang  <jie@codesourcery.com>
23081
23082         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
23083         as predicate for operand 1 and remove its constraint.
23084         * config/arm/predicates.md (vfp_register_operand): New.
23085         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
23086         (*push_fp_multi): Likewise.
23087
23088 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
23089
23090         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
23091
23092 2010-07-03  Jan Hubicka  <jh@suse.cz>
23093
23094         * config/i386/i386.c (override_options): Revert accidental commit.
23095
23096 2010-07-02  Le-Chun Wu  <lcwu@google.com>
23097
23098         PR c++/44128
23099         * doc/invoke.texi: Update documentation of -Wshadow.
23100
23101 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
23102             Julian Brown  <julian@codesourcery.com>
23103             Sandra Loosemore  <sandra@codesourcery.com>
23104
23105         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
23106         comparisons.  Adjust to take both operands.
23107         (arm_select_cc_mode): Handle DImode comparisons.
23108         (arm_gen_compare_reg): Generate a scratch register for DImode
23109         comparisons which require one.  Use xor for Thumb equality checks.
23110         (arm_const_double_by_immediates): New.
23111         (arm_print_operand): Allow 'Q' and 'R' for constants.
23112         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
23113         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
23114         arm_canonicalize_comparison.
23115         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
23116         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
23117         prototype.
23118         (arm_const_double_by_immediates): Declare.
23119         * config/arm/constraints.md (Di): New constraint.
23120         * config/arm/predicates.md (arm_immediate_di_operand)
23121         (arm_di_operand, cmpdi_operand): New.
23122         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
23123         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
23124         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
23125         (cstoredi4): Handle non-Cirrus also.
23126
23127 2010-07-02  Julian Brown  <julian@codesourcery.com>
23128             Sandra Loosemore  <sandra@codesourcery.com>
23129
23130         PR target/43703
23131         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
23132         (smax<mode>3): Disable for NEON float modes when
23133         flag_unsafe_math_optimizations is false.
23134         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
23135         (*mul<mode>3_neon)
23136         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
23137         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
23138         for NEON float modes when flag_unsafe_math_optimizations is false.
23139         (quad_halves_<code>v4sf): Only enable if
23140         flag_unsafe_math_optimizations is true.
23141         * doc/invoke.texi (ARM Options): Add note about floating point
23142         vectorization requiring -funsafe-math-optimizations.
23143
23144 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
23145             Julian Brown  <julian@codesourcery.com>
23146
23147         * config/arm/neon.md (UNSPEC_VABA): Delete.
23148         (UNSPEC_VABAL): Delete.
23149         (UNSPEC_VABS): Delete.
23150         (UNSPEC_VMUL_N): Delete.
23151         (adddi3_neon): New.
23152         (subdi3_neon): New.
23153         (mul<mode>3add<mode>_neon): Make the pattern named.
23154         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
23155         (neon_vadd<mode>): Replace with define_expand, and move the remaining
23156         unspec parts...
23157         (neon_vadd<mode>_unspec): ...to this.
23158         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
23159         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
23160         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
23161         (neon_vaba<mode>): Rewrite in terms of vabd.
23162         (neon_vabal<mode>): Rewrite in terms of vabdl.
23163         (neon_vabs<mode>): Rewrite without unspec.
23164         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
23165         (*arm_subdi3): Likewise.
23166         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
23167         No_op attribute to disable assembly output checks.
23168         * config/arm/arm_neon.h: Regenerated.
23169         * doc/arm-neon-intrinsics.texi: Regenerated.
23170
23171 2010-07-02  Jan Hubicka  <jh@suse.cz>
23172
23173         * ipa-split.c (split_function): For aggregate values, set the return
23174         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
23175         *<retval> = fncall.part ().
23176         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
23177
23178 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
23179
23180         * config/arm/neon.md (UNSPEC_VAND): Delete.
23181         (UNSPEC_VBIC): Delete.
23182         (UNSPEC_VCLZ): Delete.
23183         (UNSPEC_VCNT): Delete.
23184         (UNSPEC_VEOR): Delete.
23185         (UNSPEC_VORN): Delete.
23186         (UNSPEC_VORR): Delete.
23187         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
23188         core registers too.
23189         (anddi3_neon): Likewise.
23190         (orndi3_neon): Likewise.
23191         (bicdi3_neon): Likewise.
23192         (xordi3_neon): Likewise.
23193         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
23194         rid of unspec and handle unused operand.
23195         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
23196         * config/arm/predicates.md (imm_for_neon_logic_operand):
23197         Require TARGET_NEON.
23198         (imm_for_neon_inv_logic_operand): Likewise.
23199         * config/arm/arm.md (define_split for logical_binary_operator):
23200         Disable for NEON registers.
23201         (anddi3): Add new define_expand, and rename the insn.  Disable
23202         this insn for NEON, where anddi3_neon now applies.
23203         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
23204         (iordi3): As for anddi3.
23205         (xordi3): Likewise.
23206         * config/arm/neon.ml (Vand): Split DImode variants and mark them
23207         as No_op to disable testing for exact instruction match.
23208         (Vorr): Likewise.
23209         (Veor): Likewise.
23210         (Vbic): Likewise.
23211         (Vorn): Likewise.
23212         * config/arm/arm_neon.h: Regenerated.
23213         * doc/arm-neon-intrinsics.texi: Regenerated.
23214
23215 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
23216
23217         * expr.h (emit_stack_probe): Declare.
23218         * explow.c (emit_stack_probe): Make global.
23219         (anti_adjust_stack_and_probe): Fix comments.
23220         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
23221         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
23222         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
23223         * config/sparc/sparc.c: Include except.h.
23224         (sparc_emit_probe_stack_range): New function.
23225         (output_probe_stack_range): Likewise.
23226         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
23227         built-in stack checking is enabled.
23228         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
23229         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
23230         (probe_stack_range): New insn.
23231
23232 2010-07-02  Richard Guenther  <rguenther@suse.de>
23233
23234         PR target/43958
23235         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
23236         for argument alignment.
23237
23238 2010-07-02  Jan Hubicka  <jh@suse.cz>
23239
23240         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
23241         walk backwards from entry_bb to check only those basic block of header
23242         that might lead to execution of split part.
23243         (consider_split) ... here.
23244         (find_return_bb): Allow assignment in return BB.
23245         (find_retval): New.
23246         (split_function): Fix name of cloned function; take care of updating
23247         return value in return_bb containing move.
23248
23249 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
23250
23251         PR target/44771
23252         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
23253         used variable insn.
23254
23255 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
23256
23257         * implicit-zee.c (combine_reaching_defs): Fix long lines.
23258         (is_set_with_extension_DI): Delete.
23259         (struct zero_extend_info): New structure.
23260         (add_removable_zero_extend): New function.
23261         (find_removable_zero_extends): Use note_stores to find SETs.
23262         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
23263
23264 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
23265
23266         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
23267         is_miss_rate_acceptable. Pull total_positions computation
23268         out of the loops.  Early return if miss_positions exceeds
23269         the acceptable threshold.
23270         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
23271         is_miss_rate_acceptable after renaming of compute_miss_rate.
23272
23273 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
23274
23275         PR middle-end/44576
23276         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
23277         of 1000) for miss rate if the address diference is greater than or
23278         equal to the cache line size (the two reference will never hit the
23279         same cache line).
23280
23281 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
23282
23283         PR target/42835
23284         * config/arm/arm-modes.def (CC_NOTB): New mode.
23285         * config/arm/arm.c (get_arm_condition_code): Handle it.
23286         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
23287         * config/arm/arm.md (subsi3_compare0_c): New pattern.
23288         (compare_scc): Now a define_and_split.  Add a number of extra
23289         splitters before it.
23290
23291         PR target/42172
23292         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
23293         and ZERO_EXTEND.
23294         (arm_rtx_costs_1): Likewise.
23295         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
23296         * config/arm/arm.md (is_arch6): New attribute.
23297         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
23298         extendqisi2): Tighten the code somewhat, avoiding invalid
23299         RTL to occur in the expander patterns.
23300         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
23301         (thumb1_zero_extendhisi2_v6): Delete.
23302         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
23303         (thumb1_extendhisi2_v6): Delete.
23304         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
23305         (thumb1_extendqisi2_v6): Delete.
23306         (zero_extendhisi2 for register input splitter): New.
23307         (zero_extendqisi2 for register input splitter): New.
23308         (thumb1_extendhisi2 for register input splitter): New.
23309         (extendhisi2 for register input splitter): New.
23310         (extendqisi2 for register input splitter): New.
23311         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
23312         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
23313         and add support for a register alternative requiring a split.
23314         (thumb1_zero_extendqisi2): Likewise.
23315         (arm_zero_extendqisi2): Likewise.
23316         (arm_extendhisi2): Likewise.
23317         (arm_extendqisi2): Likewise.
23318
23319 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
23320
23321         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
23322         instead of an unspec.
23323         (neon_expand_vector_init): Likewise.
23324         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
23325         (UNSPEC_VDUP_LANE): Delete.
23326         (UNSPEC VDUP_N): Delete.
23327         (UNSPEC_VGET_HIGH): Delete.
23328         (UNSPEC_VGET_LANE): Delete.
23329         (UNSPEC_VGET_LOW): Delete.
23330         (UNSPEC_VMVN): Delete.
23331         (UNSPEC_VSET_LANE): Delete.
23332         (V_double_vector_mode): New.
23333         (vec_set<mode>_internal): Make code emitted match that for the
23334         corresponding intrinsics.
23335         (vec_setv2di_internal): Likewise.
23336         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
23337         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
23338         (neon_vset_lane<mode>): Combine double and quad patterns and
23339         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
23340         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
23341         (neon_vdup_n<mode>): Rewrite RTL without unspec.
23342         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
23343         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
23344         with neon_vdup_lanev2di, adjusting the pattern from the latter
23345         to be predicable for consistency.
23346         (neon_vdup_lane<mode>_internal): New.
23347         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
23348         to avoid using an unspec.
23349         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
23350         (neon_vdup_lanev2di): Turn into a define_expand.
23351         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
23352         (neon_vget_high<mode>): Replace with....
23353         (neon_vget_highv16qi): New pattern using canonical RTL.
23354         (neon_vget_highv8hi): Likewise.
23355         (neon_vget_highv4si): Likewise.
23356         (neon_vget_highv4sf): Likewise.
23357         (neon_vget_highv2di): Likewise.
23358         (neon_vget_low<mode>): Replace with....
23359         (neon_vget_lowv16qi): New pattern using canonical RTL.
23360         (neon_vget_lowv8hi): Likewise.
23361         (neon_vget_lowv4si): Likewise.
23362         (neon_vget_lowv4sf): Likewise.
23363         (neon_vget_lowv2di): Likewise.
23364
23365         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
23366         test for this emitting vmov.
23367         (Vset_lane): Likewise.
23368         (Vdup_n): Likewise.
23369         (Vmov_n): Likewise.
23370
23371         * doc/arm-neon-intrinsics.texi: Regenerated.
23372
23373 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
23374
23375         * config/arm/neon.md (vec_extractv2di): Correct error in register
23376         numbering to reconcile with neon_vget_lanev2di.
23377
23378 2010-07-02  Richard Guenther  <rguenther@suse.de>
23379
23380         * tree-ssa-structalias.c (pt_solution_set_var): New function.
23381         * tree-ssa-alias.h (pt_solution_set_var): Declare.
23382         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
23383         points-to information.
23384
23385 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
23386
23387         * config/s390/s390.c (override_options): Adopt prefetching
23388         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
23389
23390 2010-07-02  Jan Hubicka  <jh@suse.cz>
23391
23392         * df-problems.c (df_kill_notes): Do not collect dead  notes.
23393         (df_set_note): Just call add_reg_note.
23394         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
23395         df_create_unused_note): Do not deal with lists of old notes.
23396         (df_note_bb_compute): Likewise.
23397
23398 2010-07-02  Richard Guenther  <rguenther@suse.de>
23399
23400         * tree-ssa-structalias.c (find_func_aliases): Handle
23401         pointer alignment via BIT_AND_EXPR.
23402         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
23403
23404 2010-07-02  Richard Guenther  <rguenther@suse.de>
23405
23406         * tree-data-ref.c (initialize_data_dependence_relation): Handle
23407         mismatching number of dimensions properly.
23408
23409 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23410
23411         PR target/44707
23412         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
23413         (lo_sum (high ...) ...) patterns generated by earlier passes.
23414
23415 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23416
23417         * doc/install.texi (Prerequisites): Document Perl requirement on
23418         Solaris 2.
23419         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
23420
23421 2010-07-02  Richard Guenther  <rguenther@suse.de>
23422
23423         PR middle-end/44777
23424         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
23425
23426 2010-07-02  Jan Hubicka  <jh@suse.cz>
23427
23428         PR middle-end/44706
23429         * predict.c (predict_paths_for_bb): Handle case when control dependence
23430         BB has only abnormal edges.
23431
23432 2010-07-02  Richard Guenther  <rguenther@suse.de>
23433
23434         PR tree-optimization/44748
23435         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
23436         the embedded conversion in MEM_REFs.
23437
23438 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
23439
23440         * reload.c: Include toplev.h.
23441         * recog.c:  Likewise.
23442         * Makefile.in: Adjust dependencies.
23443
23444 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
23445
23446         PR debug/44694
23447         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
23448         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
23449
23450 2010-07-01  Richard Guenther  <rguenther@suse.de>
23451
23452         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
23453         types for offsets.
23454
23455 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
23456
23457         PR target/44732
23458         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
23459         Fix argument types.
23460
23461 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
23462
23463         PR target/44727
23464         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23465         Make sure operand 0 dies.
23466
23467 2010-07-01  Richard Guenther  <rguenther@suse.de>
23468
23469         PR middle-end/42834
23470         PR middle-end/44468
23471         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
23472         * doc/generic.texi (References to storage): Document MEM_REF.
23473         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
23474         (print_call_name): Likewise.
23475         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
23476         (build_simple_mem_ref_loc): New function.
23477         (mem_ref_offset): Likewise.
23478         * tree.h (build_simple_mem_ref_loc): Declare.
23479         (build_simple_mem_ref): Define.
23480         (mem_ref_offset): Declare.
23481         * fold-const.c: Include tree-flow.h.
23482         (operand_equal_p): Handle MEM_REF.
23483         (build_fold_addr_expr_with_type_loc): Likewise.
23484         (fold_comparison): Likewise.
23485         (fold_unary_loc): Fold
23486         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
23487         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
23488         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
23489         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
23490         (ptr_deref_may_alias_ref_p_1): Likewise.
23491         (ao_ref_base_alias_set): Properly differentiate base object for
23492         offset and TBAA.
23493         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
23494         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
23495         (indirect_refs_may_alias_p): Likewise.
23496         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
23497         chasing code.
23498         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
23499         (call_may_clobber_ref_p_1): Likewise.
23500         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
23501         * expr.c (expand_assignment): Handle MEM_REF.
23502         (store_expr): Handle MEM_REFs from STRING_CSTs.
23503         (store_field): If expanding a MEM_REF of a non-addressable
23504         decl use bitfield operations.
23505         (get_inner_reference): Handle MEM_REF.
23506         (expand_expr_addr_expr_1): Likewise.
23507         (expand_expr_real_1): Likewise.
23508         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
23509         * alias.c (ao_ref_from_mem): Handle MEM_REF.
23510         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
23511         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
23512         (dr_analyze_indices): Likewise.
23513         (dr_analyze_alias): Likewise.
23514         (object_address_invariant_in_loop_p): Likewise.
23515         * gimplify.c (mark_addressable): Handle MEM_REF.
23516         (gimplify_cond_expr): Build MEM_REFs.
23517         (gimplify_modify_expr_to_memcpy): Likewise.
23518         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
23519         (gimple_fold_indirect_ref): Adjust.
23520         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
23521         * tree.def (MEM_REF): New tree code.
23522         * tree-dfa.c: Include toplev.h.
23523         (get_ref_base_and_extent): Handle MEM_REF.
23524         (get_addr_base_and_unit_offset): New function.
23525         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
23526         * gimple-fold.c (may_propagate_address_into_dereference): Handle
23527         MEM_REF.
23528         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
23529         accesses if the array has just one dimension.  Remove always true
23530         parameter.  Do not require type compatibility here.
23531         (maybe_fold_offset_to_component_ref): Remove.
23532         (maybe_fold_stmt_indirect): Remove.
23533         (maybe_fold_reference): Remove INDIRECT_REF handling.
23534         Fold back to non-MEM_REF.
23535         (maybe_fold_offset_to_address): Simplify.  Deal with type
23536         mismatches here.
23537         (maybe_fold_reference): Likewise.
23538         (maybe_fold_stmt_addition): Likewise.  Also handle
23539         &ARRAY + I in addition to &ARRAY[0] + I.
23540         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
23541         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
23542         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
23543         * tree-ssa.c (useless_type_conversion_p): Make most pointer
23544         conversions useless.
23545         (warn_uninitialized_var): Handle MEM_REF.
23546         (maybe_rewrite_mem_ref_base): New function.
23547         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
23548         to SSA form.
23549         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
23550         INDIRECT_REF handling.
23551         (copy_tree_body_r): Handle MEM_REF.
23552         * gimple.c (is_gimple_addressable): Adjust.
23553         (is_gimple_address): Likewise.
23554         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
23555         invariant base are invariant.
23556         (is_gimple_min_lval): Adjust.
23557         (is_gimple_mem_ref_addr): New function.
23558         (get_base_address): Handle MEM_REF.
23559         (count_ptr_derefs): Likewise.
23560         (get_base_loadstore): Likewise.
23561         * gimple.h (is_gimple_mem_ref_addr): Declare.
23562         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
23563         * tree-cfg.c (verify_address): New function, split out from ...
23564         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
23565         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
23566         INDIRECT_REFs.
23567         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
23568         INDIRECT_REF.  Allow conversions.
23569         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
23570         a register does not change its size.
23571         (verify_types_in_gimple_reference): Verify MEM_REF.
23572         (verify_gimple_assign_single): Disallow INDIRECT_REF.
23573         Handle MEM_REF.
23574         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
23575         New.
23576         (mark_address_taken): Handle MEM_REF.
23577         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
23578         (get_asm_expr_operands): Pass opf_not_non_addressable.
23579         (get_expr_operands): Handle opf_[not_]non_addressable.
23580         Handle MEM_REF.  Remove INDIRECT_REF handling.
23581         * tree-vrp.c (check_array_ref): Handle MEM_REF.
23582         (search_for_addr_array): Likewise.
23583         (check_array_bounds): Likewise.
23584         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
23585         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
23586         (ref_always_accessed_p): Likewise.
23587         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
23588         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
23589         Handle MEM_REF.
23590         * cgraphbuild.c (mark_load): Properly check for NULL result
23591         from get_base_address.
23592         (mark_store): Likewise.
23593         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
23594         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
23595         handling for MEM_REF.
23596         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
23597         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
23598         * builtins.c (stabilize_va_list_loc): Use the function ABI
23599         valist type if we couldn't canonicalize the argument type.
23600         Always dereference with the canonical va-list type.
23601         (maybe_emit_free_warning): Handle MEM_REF.
23602         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
23603         memmove to memcpy.
23604         * builtins.c (fold_builtin_memory_op): Use ref-all types
23605         for all memcpy foldings.
23606         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
23607         (build_outer_var_ref): Likewise.
23608         (scan_omp_1_op): Likewise.
23609         (lower_rec_input_clauses): Likewise.
23610         (lower_lastprivate_clauses): Likewise.
23611         (lower_reduction_clauses): Likewise.
23612         (lower_copyprivate_clauses): Likewise.
23613         (expand_omp_atomic_pipeline): Likewise.
23614         (expand_omp_atomic_mutex): Likewise.
23615         (create_task_copyfn): Likewise.
23616         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
23617         Remove old union trick.  Initialize constant offsets.
23618         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
23619         INDIRECT_REF.  Init base_alias_set properly.
23620         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
23621         (vn_reference_fold_indirect): Adjust for MEM_REFs.
23622         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
23623         for ARRAY_REFs.
23624         (may_insert): Remove.
23625         (visit_reference_op_load): Do not test may_insert.
23626         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
23627         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
23628         a field to store the constant offset this op applies.
23629         (run_scc_vn): Adjust prototype.
23630         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
23631         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
23632         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
23633         bother about volatile qualifiers on pointers.
23634         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
23635         * tree-ssa-loop-ivopts.c
23636         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
23637         (strip_offset_1): Likewise.
23638         (find_interesting_uses_address): Replace INDIRECT_REF handling with
23639         MEM_REF handling.
23640         (get_computation_cost_at): Likewise.
23641         * ipa-pure-const.c (check_op): Handle MEM_REF.
23642         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
23643         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
23644         and constants.
23645         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
23646         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
23647         (eliminate_local_variables_1): Likewise.
23648         (create_call_for_reduction_1): Likewise.
23649         (create_loads_for_reductions): Likewise.
23650         (create_loads_and_stores_for_name): Likewise.
23651         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
23652         (ssa_accessed_in_tree): Handle MEM_REF.
23653         (ssa_accessed_in_assign_rhs): Likewise.
23654         (update_type_size): Likewise.
23655         (analyze_accesses_for_call_stmt): Likewise.
23656         (analyze_accesses_for_assign_stmt): Likewise.
23657         (transform_access_sites): Likewise.
23658         (transform_allocation_sites): Likewise.
23659         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
23660         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23661         not handle INDIRECT_REF.
23662         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
23663         (cond_store_replacement): Likewise.
23664         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
23665         MEM_REF, no not handle INDIRECT_REFs.
23666         (insert_into_preds_of_block): Properly initialize avail.
23667         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
23668         for ARRAY_REFs.  Properly handle reference lookups that
23669         require a bit re-interpretation.
23670         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
23671         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
23672         (build_ref_for_offset_1): Remove.
23673         (build_ref_for_offset): Build MEM_REFs.
23674         (gate_intra_sra): Disable for now.
23675         (sra_ipa_modify_expr): Handle MEM_REF.
23676         (ipa_early_sra_gate): Disable for now.
23677         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
23678         MEM_REF handling.
23679         (disqualify_base_of_expr): Likewise.
23680         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
23681         MEM_REF handling.
23682         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
23683         Use mem_ref_offset.  Remove bogus folding.
23684         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
23685         (make_fancy_name_1): Add support for MEM_REF.
23686         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
23687         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
23688         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
23689         (compute_complex_ancestor_jump_func): Likewise.
23690         (ipa_analyze_virtual_call_uses): Likewise.
23691         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
23692         INDIRECT_REF folding with more generalized MEM_REF folding.
23693         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
23694         (forward_propagate_addr_into_variable_array_index): Also handle
23695         &ARRAY + I in addition to &ARRAY[0] + I.
23696         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
23697         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
23698         creates assignments with overlap.
23699         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
23700         (get_frame_field): Likewise.
23701         (get_nonlocal_debug_decl): Likewise.
23702         (convert_nonlocal_reference_op): Likewise.
23703         (struct nesting_info): Add mem_refs pointer-set.
23704         (create_nesting_tree): Allocate it.
23705         (convert_local_reference_op): Insert to be folded mem-refs.
23706         (fold_mem_refs): New function.
23707         (finalize_nesting_tree_1): Perform defered folding of mem-refs
23708         (free_nesting_tree): Free the pointer-set.
23709         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
23710         (vectorizable_load): Likewise.
23711         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
23712         (propagate_with_phi): Likewise.
23713         * tree-object-size.c (addr_object_size): Handle MEM_REFs
23714         instead of INDIRECT_REFs.
23715         (compute_object_offset): Handle MEM_REF.
23716         (plus_stmt_object_size): Handle MEM_REF.
23717         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
23718         for &MEM_REF.
23719         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
23720         (symbol_marked_for_renaming): Likewise.
23721         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
23722         (fold-const.o): Add $(TREE_FLOW_H).
23723         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
23724         (find_func_clobbers): Likewise.
23725         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
23726         (decompose_access): Likewise.
23727         (replace_field_acc): Likewise.
23728         (replace_field_access_stmt): Likewise.
23729         (insert_new_var_in_stmt): Likewise.
23730         (get_stmt_accesses): Likewise.
23731         (reorg_structs_drive): Disable.
23732         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
23733         (ix86_canonical_va_list_type): Likewise.
23734
23735 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23736
23737         PR other/44566
23738         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
23739         * target.def (struct gcc_target): Replace enum reg_class with
23740         reg_class_t in hook argument / return types.
23741         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
23742         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
23743         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
23744         * targhooks.h (default_branch_target_register_class): Likewise.
23745         (default_ira_cover_classes, default_secondary_reload): Likewise.
23746         (default_memory_move_cost, default_register_move_cost): Likewise.
23747         * targhooks.c (default_branch_target_register_class): Likewise.
23748         (default_ira_cover_classes, default_secondary_reload): Likewise.
23749         (default_memory_move_cost, default_register_move_cost): Likewise.
23750         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
23751         * bt-load.c (branch_target_load_optimize): Likewise.
23752         * ira.c (setup_cover_and_important_classes): Likewise.
23753         * ira-costs.c (copy_cost): Likewise.
23754         * reload1.c (emit_input_reload_insns): Likewise.
23755         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
23756         * config/frv/frv.c (frv_secondary_reload): Likewise.
23757         * config/s390/s390.c (s390_secondary_reload): Likewise.
23758         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
23759         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
23760         (ix86_register_move_cost): Likewise.
23761         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
23762         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
23763         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
23764         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
23765         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
23766         (rs6000_ira_cover_classes): Likewise.
23767         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
23768         * config/picochip/picochip-protos.h (picochip_secondary_reload):
23769         Likewise.
23770         * config/pa/pa.c (pa_secondary_reload): Likewise.
23771         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
23772         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
23773         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
23774         * doc/tm.texi: Regenerate.
23775
23776 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
23777
23778         PR bootstrrap/44726
23779         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
23780         use.
23781         (build_alias_set_optimal_p): Likewise.
23782         (build_base_obj_set_for_drs): Likewise.
23783
23784 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
23785
23786         * target.def: Remove comment about licensing problems of function
23787         declarations.
23788
23789         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
23790         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
23791         * doc/tm.texi: Regenerate.
23792
23793         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
23794         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
23795
23796         * target.def (enum_va_list_p): Use DEFHOOK.
23797         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
23798         Rename ptype to ptree.
23799         * doc/tm.texi: Regenerate.
23800
23801         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
23802         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
23803         * doc/tm.texi: Regenerate.
23804
23805         * target.def (memory_move_cost): Use DEFHOOK.
23806         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
23807         Rename regclass AKA class to rclass.
23808         * doc/tm.texi: Regenerate.
23809
23810         * target.def (pragma_parse): Use DEFHOOK.
23811         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
23812         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
23813         * doc/tm.texi: Regenerate.
23814
23815         * target.def (pass_by_reference): Use DEFHOOK.
23816         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
23817         * doc/tm.texi: Regenerate.
23818
23819         * target.def (resolve_overloaded_builtin): Rename params to arglist.
23820         Use DEFHOOK.
23821         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
23822         * doc/tm.texi: Regenerate.
23823
23824         * target.def (return_pops_args): Use DEFHOOK.
23825         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
23826         Rename stack-size to size.
23827         * doc/tm.texi: Regenerate.
23828
23829         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
23830         last-sched_cycle to last_clock, cur_cycle to clock.
23831         * doc/tm.texi.in: Use @hook.
23832         * doc/tm.texi: Regenerate.
23833
23834         * target.def (print_operand, print_operand_address): Update comment.
23835         (print_operand_punct_valid_p): Likewise.
23836
23837 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23838
23839         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
23840         to rtl.h.
23841         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
23842         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
23843         * rtl-error.h: New.
23844         * regrename.c: Do not include toplev.h. Include rtl-error.h.
23845         * rtl-error.c: Likewise.
23846         * reload.c: Likewise.
23847         * recog.c:  Likewise.
23848         * sel-sched.c: Likewise.
23849         * function.c: Likewise.
23850         * reg-stack.c: Likewise.
23851         * cfgrtl.c: Likewise.
23852         * reload1.c: Likewise.
23853         * final.c: Include rtl-error.
23854         * Makefile.in: Adjust dependencies.
23855
23856 2010-06-30  Jan Hubicka  <jh@suse.cz>
23857
23858         PR middle-end/PR44706
23859         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
23860         to return the value.
23861
23862 2010-06-30  Michael Matz  <matz@suse.de>
23863
23864         PR bootstrap/44699
23865         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
23866         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
23867         a gimple reg, attach the original VDEF to the last store in the
23868         sequence.
23869
23870 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
23871
23872         PR other/44034
23873         * config/darwin.c (darwin_override_options): Use renamed
23874         targetm.asm_out.emit_unwind_label.
23875
23876 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
23877
23878         PR tree-optimization/39799
23879         * tree-inline.c (remap_ssa_name): Initialize variable only if
23880         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
23881
23882 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
23883
23884         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
23885
23886 2010-06-30  Richard Guenther  <rguenther@suse.de>
23887
23888         PR target/44722
23889         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
23890         against oscillation with reverse peephole2.
23891
23892 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
23893
23894         PR target/44721
23895         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23896         Fix last commit.
23897
23898 2010-06-30  Nick Clifton  <nickc@redhat.com>
23899
23900         * config/rx/rx-modes.def: New file.
23901         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
23902         (CC_REGNUM): Define.
23903         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
23904         register.
23905         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
23906         (SELECT_CC_MODE): Define.
23907         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
23908         (reg:CC CC_REG) instead of (cc0).
23909         (attr "cc"): Delete.
23910         (cbranchsi4): Do not split compare and branch here. Instead move
23911         it to...
23912         (cbranchsi4_<code>): ... here.  New patterns.
23913         (cmpsi): Call rx-compare_redundant to find out if it is necessary
23914         to emit the compare instruction.
23915         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
23916         cc_status flags.
23917         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
23918         FIRST_PSEUDO_REGNUM.
23919         (rx_expand_prologue, rx_expand_epilogue): Likewise.
23920         (rx_notice_update_cc): Delete.
23921         (rx_cc_modes_compatible): New function.
23922         (flags_needed_for_conditional): New function.
23923         (flags_from_mode): New function.
23924         (rx_compare_redundant): New function - scans backwards through
23925         insn list to find out if condition flags are already set correctly.
23926         (TARGET_CC_MODES_COMPATIBLE): Define.
23927         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
23928
23929         * config/rx/rx.h (BRANCH_COST): Define.
23930         (REGISTER_MOVE_COST): Define.
23931         * config/rx/predicates (rx_source_operand): Allow all constant types.
23932         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
23933         (tstsi4): New pattern.
23934         * config/rx/rx.c (rx_memory_move_cost): Define.
23935         (TARGET_MEMORY_MOVE_COST): Define.
23936
23937 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23938
23939         * tree.h (block_may_fallthru): Declare here.
23940         * tree-flow.h (block_may_fallthru): Do not declare here.
23941         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
23942         bitmap.h
23943         * Makefile.in (c-typeck.o): Update dependencies.
23944
23945 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
23946
23947         PR debug/44694
23948         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
23949         * cselib.c (cfa_base_preserved_regno): New static variable.
23950         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
23951         of REGNO (cfa_base_preserved_val->locs->loc).
23952         (cselib_preserve_cfa_base_value): Add regno argument, set
23953         cfa_base_preserved_regno to it.
23954         (cselib_invalidate_regno): Allow removal of registers other than
23955         cfa_base_preserved_regno from cfa_base_preserved_val.
23956         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
23957         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
23958         of MEM addresses, if not on LHS.
23959         (reverse_op): Don't add reverse ops for cfa_base_rtx.
23960         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
23961
23962 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
23963
23964         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
23965         static variables.
23966         (peep2_buf_position): New static function.
23967         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
23968         peephole2_optimize): Use it.
23969         (peep2_attempt, peep2_update_life): New static functions, broken out
23970         of peephole2_optimize.
23971         (peep2_fill_buffer): New static function.
23972         (peephole2_optimize): Change the main loop to try to fill the buffer
23973         with the maximum number of insns before matching them against
23974         peepholes.  Use a forward scan.  Remove special case for targets with
23975         conditional execution.
23976         * genrecog.c (change_state): Delete dead code.
23977         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
23978         Rewrite so as not to expect the second insn to have had a peephole
23979         applied yet.
23980
23981 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
23982
23983         * genhooks.c (emit_findices): Cast field precision to int.
23984         (emit_documentation): Likewise.
23985
23986 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
23987
23988         PR tree-optimization/43801
23989         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
23990         if old_decl was DECL_ONE_ONLY.
23991
23992         PR debug/44668
23993         * dwarf2out.c (add_accessibility_attribute): New function.
23994         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
23995         instead of adding DW_AT_accessibility manually.
23996         (gen_enumeration_type_die, gen_struct_or_union_type_die,
23997         gen_typedef_die): Use it.
23998
23999 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
24000
24001         * vmsdbgout.c (full_name): Just output the file name if not native.
24002
24003 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
24004
24005         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
24006         (funcnam_table): New static table.
24007         (funcnum_table): New static table.
24008         (write_rtnbeg): Write value saved in funcnum_table.
24009         (write_rtnend): Write value saved in funcnum_table.
24010         (vmsdbgout_begin_function): Save current function info in
24011         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
24012         (vmsdbgout_finish): Iterate over funcnum_table.
24013
24014 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
24015
24016         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
24017         (vmsdbgout_type_decl): Declare
24018         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
24019         (FUNC_EPILOGUE_LABEL): New macro
24020         (vmsdbgout_begin_epilogue): New function.
24021         (vmsdbgout_type_decl): New function.
24022
24023 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
24024
24025         * vmsdbg.h: Update copyright.
24026
24027 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
24028
24029         * vmsdbg.h (DST_K_TBG): New DST constant.
24030         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
24031         (write_modbeg): Cast module_language to avoid warning.
24032         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
24033
24034 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
24035
24036         PR other/44034
24037         * target.def, doc/tm.texi.in, genhooks.c: New files.
24038         * target.h: Instead of defining individual hook members,
24039         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
24040         include target.def.
24041         * target-def.h: Instead of defining individual hook initializers,
24042         include target-hooks-def.h.
24043         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
24044         targetm.live_on_entry -> targetm.extra_live_on_entry
24045         targetm.sched.md_finish ->targetm.sched.finish
24046         targetm.sched.md_init -> targetm.sched.init
24047         targetm.sched.md_init_global -> targetm.sched.init_global
24048         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
24049         targetm.asm_out.except_table_label ->
24050           targetm.asm_out.emit_except_table_label
24051         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
24052         targetm.target_help -> targetm.help
24053         targetm.vectorize.builtin_support_vector_misalignment ->
24054           targetm.vectorize.support_vector_misalignment
24055         targetm.file_start_app_off -> targetm.asm_file_start_app_off
24056         targetm.file_start_file_directive ->
24057          targetm.asm_file_start_file_directive
24058         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
24059         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
24060         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
24061         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
24062           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
24063         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
24064           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
24065         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
24066         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
24067         * Makefile.in (TARGET_H): Depend on target.def.
24068         (TARGET_DEF_H): Depend on target-hooks-def.h.
24069         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
24070         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
24071         * doc/tm.texi: Regenerate.
24072
24073         * Makefile.in (s-tm-texi): Remove stray tab / rule.
24074
24075         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
24076         (targetm.sched.init): Likewise.
24077
24078 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
24079
24080         PR bootstrap/44713
24081         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
24082         (function_arg_advance_32): Const-ify TYPE parameter.
24083         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
24084         (ix86_function_arg_advance): Change type of NAMED to bool.
24085         (function_arg_32): Const-ify CUM and TYPE parameters.
24086         (function_arg_64): Likewise.  Change type of NAMED to bool.
24087         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
24088         to bool.
24089         (ix86_function_arg): Change type of NAMED to bool.
24090         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
24091         last argument as a bool.
24092
24093 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
24094
24095         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
24096         (OVERRIDE_OPTIONS): Add note of obsolescence.
24097         Replace references with references to TARGET_OPTION_OVERRIDE.
24098         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
24099          the macro).
24100         * targhooks.c (default_target_option_override): New function.
24101         * targhooks.h (default_target_option_override): Declare.
24102         * target.h (struct gcc_target): Add override member to
24103         target_option member.
24104         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
24105         targetm.target_option.override call.
24106         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
24107         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
24108
24109 2010-06-29  Jan Hubicka  <jh@suse.cz>
24110
24111         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
24112
24113 2010-06-29  Jan Hubicka  <jh@suse.cz>
24114
24115         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
24116         unreachable.
24117         (rebuild_frequencies): New function.
24118         * predict.h (rebuild_frequencies): Declare.
24119         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
24120         entry block and edge reaching new_entry.
24121         (tree_function_versioning): When doing partial cloning, rebuild
24122         frequencies when done.
24123         * passes.c (execute_function_todo): Use rebild_frequencies.
24124
24125 2010-06-29  Richard Guenther  <rguenther@suse.de>
24126
24127         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
24128         * tree-flow.h (enum noalias_state): Remove.
24129         (struct var_ann_d): Remove noalias_state member.
24130
24131 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
24132
24133         PR target/43902
24134         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
24135         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
24136         (maddhidi4): Likewise.
24137
24138         Revert parts of the change for PR25130.
24139         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
24140         MEM_ALIAS_SET.
24141
24142 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
24143
24144         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
24145         targetm.calls.function_incoming_arg, and
24146         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
24147         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
24148         * target.h (struct gcc_target): Add function_arg_advance,
24149         function_arg, and function_incoming_arg fields.
24150         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
24151         (TARGET_FUNCTION_INCOMING_ARG): Define.
24152         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
24153         and TARGET_FUNCTION_INCOMING_ARG.
24154         * targhooks.h (default_function_arg_advance): Declare.
24155         (default_function_arg, default_function_incoming_arg): Declare.
24156         * targhooks.c (default_function_arg_advance): New function.
24157         (default_function_arg, default_function_incoming_arg): New function.
24158         * config/i386/i386.c (function_arg_advance): Rename to...
24159         (ix86_function_arg_advance): ...this.  Make static.
24160         (function_arg): Rename to...
24161         (ix86_function_arg): ...this.  Make static.
24162         (TARGET_FUNCTION_ARG_ADVANCE): Define.
24163         (TARGET_FUNCTION_ARG): Define.
24164         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
24165         (FUNCTION_ARG): Delete.
24166         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
24167         (function_arg): Delete prototype.
24168
24169 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
24170
24171         * reginfo.c (init_reg_sets_1): Adjust comments.
24172         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
24173         * calls.c (prepare_call_address): Likewise.
24174         (emit_call_1): Use targetm.calls.return_pops_args.
24175         (expand_call): Likewise.
24176         * function.c (assign_parms): Likewise.
24177         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
24178         * target.h (struct gcc_target) [struct calls]: Add
24179         return_pops_args field.
24180         * targhooks.h (default_return_pops_args): Declare.
24181         * targhooks.c (default_return_pops_args): Define.
24182         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
24183         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
24184         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
24185         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
24186         documentation.
24187         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
24188         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
24189         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
24190         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
24191         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
24192         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
24193         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
24194         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
24195         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
24196         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
24197         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
24198         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
24199         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
24200         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
24201         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
24202         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
24203         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
24204         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
24205         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
24206         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
24207         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
24208         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
24209         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
24210         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
24211         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
24212         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
24213         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
24214         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
24215         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
24216         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
24217         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
24218         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
24219         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
24220         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
24221         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
24222         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
24223         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
24224         * config/i386/i386.c (ix86_return_pops_args): Make static.
24225         Constify arguments.
24226         (TARGET_RETURN_POPS_ARGS): Define.
24227         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
24228         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
24229         (TARGET_RETURN_POPS_ARGS): Define.
24230         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
24231         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
24232         (TARGET_RETURN_POPS_ARGS): Define.
24233
24234 2010-06-29  Richard Guenther  <rguenther@suse.de>
24235
24236         PR middle-end/44667
24237         * tree-inline.c (initialize_inlined_parameters): Make sure
24238         to remap the inlined parameter variable substitutions types.
24239
24240 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
24241
24242         PR rtl-optimization/44659
24243         * combine.c (make_compound_operation) <SUBREG>: Do not return the
24244         result of force_to_mode if it partially re-expanded the compound.
24245
24246 2010-06-28  Jan Hubicka  <jh@suse.cz>
24247
24248         PR middle-end/44671
24249         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
24250         RESULT_DECL.
24251
24252 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
24253
24254         * double-int.h (force_fit_type_double): Remove declaration.
24255         * double-int.c (force_fit_type_double): Move to tree.c.
24256         * tree.h (force_fit_type_double): Declare.
24257         * tree.h (force_fit_type_double): Moved from double-int.c. Use
24258         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
24259         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
24260         * convert.c (convert_to_pointer): Adjust call to
24261         force_fit_type_double.
24262         * tree-vrp.c (extract_range_from_assert,
24263         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
24264         * fold-const.c: Update comment.
24265         (int_const_binop, fold_convert_const_int_from_int,
24266         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
24267         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
24268         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
24269         round_up_loc): Adjust call to force_fit_type_double.
24270
24271 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24272
24273         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
24274
24275 2010-06-28  Martin Jambor  <mjambor@suse.cz>
24276
24277         * tree-sra.c (convert_callers): New parameter, change fndecls of
24278         recursive calls.
24279         (modify_function): Pass the old decl to convert_callers.
24280
24281 2010-06-28  Martin Jambor  <mjambor@suse.cz>
24282
24283         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
24284         ipa_check_create_node_params and ipa_initialize_node_params with
24285         checking asserts they are not necessary.
24286
24287 2010-06-28  Jan Hubicka  <jh@suse.cz>
24288
24289         PR tree-optimization/44687
24290         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
24291
24292 2010-06-28  Martin Jambor  <mjambor@suse.cz>
24293
24294         PR c++/44535
24295         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
24296         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
24297         instead of BINFO_BASE_BINFO.
24298
24299 2010-06-28  Michael Matz  <matz@suse.de>
24300
24301         PR middle-end/44592
24302         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
24303         proper VDEF chain for intermediate stores in the sequence.
24304
24305 2010-06-28  Jan Hubicka  <jh@suse.cz>
24306
24307         PR tree-optimization/44357
24308         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
24309         uninlinable functions.
24310
24311 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
24312
24313         * config.gcc (powerpc*-*-*): Handle titan.
24314         * config/rs6000/rs6000.c (titan_cost): New costs.
24315         (rs6000_override_options): Add "titan" to processor_target_table.
24316         Add Titan to branch alignment logic.
24317         Correctly set rs6000_cost for titan.
24318         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
24319         * config/rs6000/titan.md: New file.
24320         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
24321
24322 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
24323
24324         * tree-browser.c (TB_history_stack): Convert to a VEC.
24325         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
24326         (TB_history_prev): Likewise.
24327
24328 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
24329
24330         * vec.h (vec_heap_free): Add parentheses around free.
24331
24332 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
24333
24334         * system.h: Poison GCC_EXCEPT_H for front-end files.
24335
24336         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
24337         langhook.
24338         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
24339         Define to NULL by default.
24340         * except.h: Define GCC_EXCEPT_H.
24341         (doing_eh): Remove prototype.
24342         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
24343         (lang_protect_cleanup_actions): Remove.
24344         * except.c (lang_protect_cleanup_actions): Remove.
24345         (doing_eh): Remove.
24346         (gen_eh_region): Don't check doing_eh here.
24347         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
24348         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
24349         instead of lang_protect_cleanup_actions.
24350         * omp-low.c (maybe_catch_exception): Likewise.
24351         * Makefile.in: Update dependencies.
24352
24353 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
24354
24355         * cgraph.h (struct varpool_node): new used_from_object_file flag.
24356         (struct cgraph_local_info): new used_from_object_file flag.
24357         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
24358         (cgraph_clone_node): initialize used_from_object_file.
24359         (cgraph_create_virtual_clone): initialize used_from_object_file.
24360         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
24361         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
24362         when compiling with -fwhole-program.
24363         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
24364         internal resolver.
24365         * ipa.c (function_and_variable_visibility): Set externally_visible
24366         flag of varpool_node if used_from_object_file flag is set.
24367         (cgraph_externally_visible_p): check used_from_object_file flag.
24368         * doc/invoke.texi (-fwhole-program option): Change description of
24369         externally_visible attribute accordingly.
24370         * doc/extend.texi (externally_visible): Ditto.
24371
24372 2010-06-27  Jan Hubicka  <jh@suse.cz>
24373
24374         * params.def (max-inline-insns-auto): Default to 40.
24375         * doc/invoke.texi (max-inline-insns-auto): Document the change.
24376
24377 2010-06-27  Jan Hubicka  <jh@suse.cz>
24378
24379         PR middle-end/44671
24380         PR middle-end/44686
24381         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
24382         signature change.
24383         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
24384         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
24385
24386 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
24387
24388         * target.h (struct gcc_target): Add register_move_cost field.
24389         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
24390         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
24391         * targhooks.c (default_register_move_cost): New function.
24392         * targhooks.h (default_register_move_cost): Declare function.
24393         * defaults.h (REGISTER_MOVE_COST): Delete.
24394         * ira-int.h (ira_register_move_cost): Update comment.
24395         * ira.c (ira_register_move_cost): Update comment.
24396         * reload.h (register_move_cost): Declare.
24397         * reginfo.c (register_move_cost): New function.
24398         (move_cost): Update comment.
24399         (init_move_cost, memory_move_secondary_cost): Replace
24400         REGISTER_MOVE_COST with register_move_cost.
24401         * postreload.c (reload_cse_simplify_set): (Ditto.).
24402         * reload.c (find_valid_class, find_reloads): (Ditto.).
24403         * reload1.c (choose_reload_regs): (Ditto.).
24404         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
24405         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
24406         * doc/md.texi (can_create_pseudo_p): Update documentation.
24407
24408         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
24409         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
24410         * config/i386/i386.h (ix86_memory_move_cost): Make static.
24411         (TARGET_MEMORY_MOVE_COST): Define.
24412
24413         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
24414         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
24415         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
24416         (TARGET_MEMORY_MOVE_COST): Define.
24417
24418 2010-06-27  Richard Guenther  <rguenther@suse.de>
24419
24420         PR tree-optimization/44683
24421         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
24422         false edge from the inverted condition.
24423
24424 2010-06-27  Richard Guenther  <rguenther@suse.de>
24425
24426         PR middle-end/44684
24427         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
24428         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
24429         for register LHS.  Or non-store assignments.
24430
24431 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
24432
24433         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
24434         (sparc_emit_set_const64): Likewise.  Remove disabled code.
24435         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
24436         (sparc_emit_set_const64): Likewise.
24437
24438 2010-06-26  Catherine Moore  <clm@codesourcery.com>
24439
24440         * config/mips/mips.md (alu_type): New attribute.
24441         (type): Infer type from alu_type.
24442         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
24443         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
24444         *subsi3_extended, negsi2, negdi2, *low<mode>,
24445         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
24446         xor<mode>3, *nor<mode>3,
24447         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
24448         *zero_extendhi_truncqi):  Set alu_type instead of type.
24449
24450 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
24451
24452         * config/alpha/alpha.c (alpha_need_linkage): Adjust
24453         splay_tree_new_ggc call.
24454         (alpha_use_linkage): Likewise.
24455
24456 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
24457
24458         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
24459         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
24460         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
24461         (static_specs): Remove switches_need_spaces.
24462         (process_command, do_self_spec): Hardcode handling "-o" instead of
24463         checking switches_need_spaces.
24464         * system.h (SWITCHES_NEED_SPACES): Poison.
24465
24466 2010-06-26  Richard Guenther  <rguenther@suse.de>
24467
24468         PR tree-optimization/44393
24469         * tree-loop-distribution.c (generate_loops_for_partition): Fix
24470         stmt removal and VOP renaming.
24471         (generate_memset_zero): Remove redundant stmt updating.
24472         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
24473         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
24474
24475 2010-06-26  Jan Hubicka  <jh@suse.cz>
24476
24477         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
24478         edges comming from header are equivalent.
24479         (visit_bb): Handle PHIs correctly.
24480         * tree-inline.c (copy_phis_for_bb): Be able to copy
24481         PHI from entry edge.
24482         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
24483
24484 2010-06-26  Richard Guenther  <rguenther@suse.de>
24485
24486         PR middle-end/44674
24487         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
24488         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
24489
24490 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
24491
24492         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
24493         add_infile, alloc_switch): New.
24494         (process_command): Remove variable lang_n_infiles.  Process
24495         options in a single pass.  Use new functions for allocating
24496         infiles and switches arrays.  Properly skip operands of
24497         -Xpreprocessor and -Xassembler.
24498
24499 2010-06-26  Jan Hubicka  <jh@suse.cz>
24500
24501         PR middle-end/44671
24502         * cgraphunit.c (cgraph_function_versioning): Remove wrong
24503         cgraph_make_decl_local call; fix typo copying RTL data.
24504
24505 2010-06-25  DJ Delorie  <dj@redhat.com>
24506
24507         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
24508         (m32c_output_aligned_common): Likewise.
24509         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
24510         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
24511         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
24512         (m32c_register_pragmas): Register it.
24513         * config/m32c/m32c.c (m32c_get_pragma_address): New.
24514         (m32c_insert_attributes): Set #pragma address decls volatile.
24515         (pragma_entry_eq): New.
24516         (pragma_entry_hash): New.
24517         (m32c_note_pragma_address): New.
24518         (m32c_get_pragma_address): New.
24519         (m32c_output_aligned_common): New.
24520         * doc/extend.texi: Document the new pragma.
24521
24522         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
24523         also.
24524         * config/m32c/predicates.md (m32c_any_operand): Check the code
24525         instead of memory_operand so as to allow matching volatile MEMs.
24526         (m32c_nonimmediate_operand): Likewise.
24527         (mra_operand): Allow volatiles.
24528
24529 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
24530
24531         PR debug/44610
24532         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
24533         address if the offset is unknown.
24534
24535 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
24536
24537         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
24538         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
24539         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
24540         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
24541         to ia64_start_function. Invoke it.
24542         * config/ia64/ia64.c (ia64_start_function): Call new function
24543         dwarf2out_vms_debug_main_pointer.
24544
24545 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
24546
24547         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
24548         statements computing the true predicate.
24549
24550 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
24551
24552         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
24553         to boolean_true_node.
24554         (reset_bb_predicate): New.
24555         (predicate_bbs): Call reset_bb_predicate.
24556
24557 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
24558
24559         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
24560         (tree_if_conversion): Returns true when something has been changed.
24561         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
24562         changed something.
24563
24564 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
24565
24566         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
24567         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
24568         * tree-if-conv.c: Include dbgcnt.h.
24569         (tree_if_conversion): Use if_conversion_tree to count the number of
24570         if-convertible loops.
24571
24572 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
24573
24574         * common.opt (fprefetch-loop-arrays): Re-define
24575         -fprefetch-loop-arrays as a tri-state option with the initial
24576         value of -1.
24577         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
24578         pass only when flag_prefetch_loop_arrays > 0.
24579         * toplev.c (process_options): Note that, with tri-states,
24580         flag_prefetch_loop_arrays>0 means prefetching is enabled.
24581         * config/i386/i386.c (override_options): Enable prefetching at -O3
24582         for a set of CPUs that sw prefetching is helpful.
24583         (software_prefetching_beneficial_p): New.  Return TRUE if software
24584         prefetching is beneficial for the given CPU.
24585
24586 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24587
24588         PR rtl-optimization/44326
24589         * implicit-zee.c (find_removable_zero_extends): Replace
24590         INSN_P with NONDEBUG_INSN_P.
24591
24592 2010-06-25  Martin Jambor  <mjambor@suse.cz>
24593
24594         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
24595         (struct ipa_node_params): Removed the modification_analysis_done flag.
24596         (ipa_is_param_modified): Removed.
24597         (ipa_analyze_node): Declare.
24598         (ipa_compute_jump_functions): Remove declaration.
24599         (ipa_count_arguments): Likewise.
24600         (ipa_detect_param_modifications): Likewise.
24601         (ipa_analyze_params_uses): Likewise.
24602         * ipa-prop.c (struct param_analysis_info): New type.
24603         (visit_store_addr_for_mod_analysis): Removed.
24604         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
24605         moved down in the file.
24606         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
24607         (ipa_count_arguments): Made static.
24608         (mark_modified): New function.
24609         (is_parm_modified_before_call): New function.
24610         (compute_pass_through_member_ptrs): New parameter parms_info, call
24611         is_parm_modified_before_call instead of ipa_is_param_modified.
24612         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
24613         it to compute_pass_through_member_ptrs.
24614         (ipa_compute_jump_functions): New parameter parms_info, pass it to
24615         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
24616         on the callee if it is analyzed.  Made static.
24617         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
24618         is_parm_modified_before_call instead of ipa_is_param_modified.
24619         (ipa_analyze_call_uses): New parameter parms_info, pass it to
24620         ipa_analyze_indirect_call_uses.
24621         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
24622         ipa_analyze_call_uses.
24623         (ipa_analyze_params_uses): New parameter parms_info, pass it to
24624         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
24625         (ipa_analyze_node): New function.
24626         (ipa_print_node_params): Do not dump the modified flag.
24627         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
24628         it.  Do not stream the modified parameter flag.
24629         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
24630         it.  Do not stream the modified parameter flag.
24631         * ipa-cp.c (ipcp_analyze_node): Removed.
24632         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
24633         with only a call to ipa_analyze_node.
24634         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
24635         node with only a call to ipa_analyze_node.
24636
24637 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24638
24639         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
24640
24641 2010-06-25  Jan Hubicka  <jh@suse.cz>
24642
24643         * tree-pass.h (pass_split_functions): Declare.
24644         * opts.c (decode_options): Enable function splitting at -O2
24645         * timevar.def (TV_IPA_FNSPLIT): New macro.
24646         * ipa-split.c: New file.
24647         * common.opt (-fpartial-inlining): New flag.
24648         * Makefile.in (ipa-split.o): New object file.
24649         * passes.c (init_optimization_passes): Add ipa-split.
24650         * params.def (partial-inlining-entry-probability): New parameters.
24651         * doc/invoke.texi (-fpartial-inlining): New.
24652
24653 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24654
24655         PR 44665
24656         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
24657         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
24658         (gimplify_expr): Likewise.
24659
24660 2010-06-25  Martin Jambor  <mjambor@suse.cz>
24661
24662         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
24663         statements instead of bailing out on them.
24664         (ipa_analyze_indirect_call_uses): Do not require that loads from the
24665         parameter are in the same BB as the condition.  Update comments.
24666
24667 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
24668
24669         PR middle-end/43866
24670         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
24671         true or always false, return NULL_TREE.
24672         (tree_unswitch_single_loop): Optimize conditions even when reaching
24673         max-unswitch-level parameter.  If num > 0, optimize first all conditions
24674         using entry checks, then do still reachable block discovery and consider
24675         only conditions in still reachable basic blocks in the loop.
24676
24677         PR tree-optimization/44539
24678         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
24679         the call doesn't have LHS, but has VDEF.
24680
24681 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
24682
24683         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
24684         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
24685         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
24686         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
24687         * system.h (MODIFY_TARGET_NAME): Poison.
24688
24689 2010-06-25  Alan Modra  <amodra@gmail.com>
24690
24691         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
24692         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
24693         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
24694         CMODEL_LARGE as default.
24695         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
24696         (offsettable_ok_by_alignment): Delete.
24697         (rs6000_emit_move): Remove mcmodel=medium optimization.
24698
24699 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
24700
24701         With large parts from Jim Wilson:
24702         PR target/43902
24703         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
24704         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24705         * optabs.c (optab_for_tree_code): Likewise.
24706         (expand_widen_pattern_expr): Likewise.
24707         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
24708         out of execute_optimize_widening_mul.
24709         (convert_plusminus_to_widen): New function.
24710         (execute_optimize_widening_mul): Use the two new functions.
24711         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
24712         Remove code to generate widening multiply-accumulate.  Add support
24713         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
24714         * gimple-pretty-print.c (dump_ternary_rhs): New function.
24715         (dump_gimple_assign): Call it when appropriate.
24716         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
24717         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
24718         (expand_gimple_stmt_1): Likewise.
24719         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
24720         WIDEN_MULT_MINUS_EXPR.
24721         * tree-ssa-operands.c (get_expr_operands): Likewise.
24722         * tree-inline.c (estimate_operator_cost): Likewise.
24723         * gimple.c (extract_ops_from_tree_1): Renamed from
24724         extract_ops_from_tree.  Add new arg for a third operand; fill it.
24725         (gimple_build_assign_stat): Support operations with three operands.
24726         (gimple_build_assign_with_ops_stat): Likewise.
24727         (gimple_assign_set_rhs_from_tree): Likewise.
24728         (gimple_assign_set_rhs_with_ops_1): Renamed from
24729         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
24730         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
24731         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
24732         WIDEN_MULT_MINUS_EXPR.
24733         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
24734         (extract_ops_from_tree_1): Adjust declaration.
24735         (gimple_assign_set_rhs_with_ops_1): Likewise.
24736         (gimple_build_assign_with_ops): Pass NULL for last operand.
24737         (gimple_build_assign_with_ops3): New macro.
24738         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
24739         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
24740         functions.
24741         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
24742         (verify_gimple_assign): Call it.
24743         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
24744         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
24745         functions for dealing with three-operand statements.
24746         * tree.c (commutative_ternary_tree_code): New function.
24747         * tree.h (commutative_ternary_tree_code): Declare it.
24748         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
24749         ternary statements.
24750         (gimple_assign_nonzero_warnv_p): Likewise.
24751         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
24752         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
24753         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
24754         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
24755         (struct hashtable_expr): New member ternary in the union.
24756         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
24757         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
24758         (iterative_hash_hashable_expr): Likewise.
24759         (print_expr_hash_elt): Handle EXPR_TERNARY.
24760         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
24761         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
24762         statements.  Handle GIMPLE_TERNARY_RHS.
24763
24764 2010-06-25  Jan Hubicka  <jh@suse.cz>
24765
24766         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
24767
24768 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
24769
24770         PR c/44517
24771         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
24772         parameters are not good.
24773         (c_parser_parameter_declaration): Error unknown type name if the type
24774         name can't start declaration specifiers.
24775
24776 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
24777
24778         * gcc.c (translate_options): Don't mention +e in comment.
24779         (process_command): Don't handle +e specially.
24780
24781 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
24782
24783         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
24784
24785         * ira-build.c (merge_hard_reg_conflicts): New function.
24786         (create_cap_allocno, copy_info_to_removed_store_destinations,
24787         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
24788         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
24789         (remove_unnecessary_allocnos, remove_low_level_allocnos)
24790         copy_nifo_to_removed_store_destination): Use them.
24791         * ira-lives.c (make_hard_regno_born): New function, split out of
24792         make_regno_born.
24793         (make_allocno_born): Likewise.
24794         (make_hard_regno_dead): New function, split out of make_regno_dead.
24795         (make_allocno_dead): Likewise.
24796         (inc_register_pressure): New function, split out of set_allocno_live.
24797         (dec_register_pressure): New function, split out of clear_allocno_live.
24798         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
24799         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
24800         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
24801         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
24802         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
24803         mark_pseudo_regno_live.
24804         (process_bb_node_lives): Use mark_pseudo_regno_live,
24805         make_hard_regno_born and make_allocno_dead.
24806         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
24807         set_allocno_live, clear_allocno_live): Delete functions.
24808
24809         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
24810         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
24811         functions.
24812         (ira_flattening): Use ira_parent_allocno.
24813         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
24814         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
24815
24816         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
24817         statement.
24818
24819         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
24820         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
24821         minmax_set_iter_cond, minmax_set_iter_next,
24822         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
24823         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
24824         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
24825         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
24826         uses changed.
24827
24828         * ira-int.h (struct live_range, live_range_t): Renamed from struct
24829         ira_allocno_live_range and allocno_live_range_t; all uses changed.
24830         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
24831         All uses changed.
24832
24833 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
24834
24835         * thumb2.md (thumb2_tlobits_cbranch): Delete.
24836         (peephole2 to convert zero_extract/compare of single bit to
24837          lshift/compare): New.
24838
24839 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
24840
24841         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
24842         recursive call and call to 'int_const_binop'.
24843         (build_range_check, fold_cond_expr_with_comparison, unextend,
24844         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
24845         multiple_of_p): Adjust call to const_binop.
24846
24847 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
24848
24849         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
24850         determine size of XFmode operand.
24851         (XFmode extended DFmode push splitter): Ditto.
24852         (XFmode extended SFmode push splitter): Ditto.
24853
24854 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
24855
24856         PR target/44588
24857         * config/i386/i386.md (extract_code): New.
24858         (<u>divmodqi4): Likewise.
24859         (divmodhiqi3): Likewise.
24860         (udivmodhiqi3): Likewise.
24861         (<u>divqi3): Remvoved.
24862
24863 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
24864
24865         PR middle-end/44492
24866         * recog.h (struct recog_data): Add is_asm field.
24867         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
24868         present in constraints of inline-asm operand and memory operand
24869         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
24870         (extract_insn): Initialize recog_data.is_asm.
24871         * doc/md.texi (Constraints): Document operand side-effect rules.
24872
24873 2010-06-24  Andi Kleen  <ak@linux.intel.com>
24874
24875         * c-parser.c (c_parser_conditional_expression): Call
24876         warn_for_omitted_condop.
24877         * doc/invoke.texi: Document omitted condop warning.
24878
24879 2010-06-24  Nick Clifton<nickc@redhat.com>
24880
24881         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
24882         insn in the sequence is a jump insn before setting its label.
24883
24884 2010-06-24  Alan Modra  <amodra@gmail.com>
24885
24886         * collect2.c (main): Match exactly --version and --help.
24887
24888 2010-06-24  DJ Delorie  <dj@redhat.com>
24889
24890         * config/m32c/m32c-pragma.c: Don't include rtl.h.
24891
24892 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
24893
24894         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
24895         using X87MODEF mode iterator.
24896         (pushsf splitter): Macroize splitter using P mode iterator.
24897         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
24898         mode iterator.
24899
24900         (*movxf_internal): Rename from *movxf_integer.
24901         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
24902         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
24903         (*movdf_internal): Rename from *movdf_integer.
24904         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
24905         (*movsf_internal): Rename from *movdf_1.
24906
24907 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
24908
24909         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
24910         (const_gimple_seq_node): Removed typedefs.
24911
24912         * gimple.h (gimple_seq_node_d, gimple_seq_node)
24913         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
24914
24915 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
24916
24917         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
24918         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
24919         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
24920         and CODE_FOR_vec_extract_lo_v4df.
24921
24922         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
24923         Changed to define_insn_and_split.
24924         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
24925         (vec_extract_lo_v16hi): Likewise.
24926         (vec_extract_lo_v32qi): Likewise.
24927         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
24928         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
24929
24930 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
24931
24932         PR target/44640
24933         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
24934         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
24935         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
24936         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
24937         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
24938
24939         PR target/44640
24940         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
24941
24942         PR other/44644
24943         * df-core.c (struct df): Rename to df_d.
24944         * df.h (struct df): Likewise.
24945         * dse.h (struct df): Remove forward declaration.
24946         * recog.h (struct insn_data): Rename to:
24947         (struct_insn_data_d).  Adjusted all users.
24948
24949 2010-06-23  Arnaud Charlet  <charlet@adacore.com
24950
24951         PR ada/22220
24952         * doc/install.texi: Update requirements to build GNAT.
24953
24954 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
24955
24956         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
24957         enum type.
24958         (m68k_sched_attr_opx_type): Remove unreachable return.
24959         (m68k_sched_attr_opy_type): Likewise.
24960         (m68k_sched_attr_size): Likewise.
24961         (sched_get_opxy_mem_type): Likewise.
24962         (m68k_sched_attr_op_mem): Likewise.
24963
24964 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
24965
24966         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
24967         new statement and adjust VDEF only if necessary.  Remove superfluous
24968         call to maybe_clean_or_replace_eh_stmt.
24969         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
24970         copy the flags.
24971         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
24972         * tree-inline.c (copy_bb): ...and not there.
24973
24974 2010-06-22  Cary Coutant  <ccoutant@google.com>
24975
24976         * dwarf2out.c (is_nested_in_subprogram): New function.
24977         (should_move_die_to_comdat): Use it.
24978         (copy_ancestor_tree): Don't mark DIEs here.
24979         (copy_decls_walk): Start walk from root of newly-added tree;
24980         mark DIEs here instead.
24981
24982 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
24983
24984         * config/i386/i386.md (unit): Also check sseishft1.
24985
24986 2010-06-22  Jan Hubicka  <jh@suse.cz>
24987
24988         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
24989         enabled.
24990
24991 2010-06-22  Jan Hubicka  <jh@suse.cz>
24992
24993         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
24994         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
24995         Return true if something changed.
24996         * df.h (df_confluence_function_n): Return bool.
24997         * df-core.c (df_worklist_propagate_forward,
24998         df_worklist_propagate_backward): Track changes and ages.
24999         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
25000         track ages.
25001         * dse.c (dse_confluence_n): Return always true.
25002
25003 2010-06-22  Jan Hubicka  <jh@suse.cz>
25004
25005         * bitmap.c (bitmap_clear_bit): Micro optimize.
25006
25007 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
25008
25009         * config/i386/i386.md (SWI1248x): New mode iterator.
25010         (SWI48x): Ditto.
25011         (SWI12): Ditto.
25012         (SWI24): Ditto.
25013
25014         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
25015         SWI1248x mode iterator.
25016         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
25017         using SWI124 mode iterator.
25018         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
25019         mode iterator.
25020         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
25021         *pushdi2_prologue_rex64 using P mode iterator.
25022         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
25023         using SWI48 mode iterator.
25024         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
25025         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
25026         using SWI1248x mode iterator.
25027         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
25028         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
25029         SWI48 mode iterator.
25030         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
25031         iterator.
25032         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
25033         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
25034         SWI12 mode iterator.
25035         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
25036         SWI12 mode iterator.
25037         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
25038         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
25039         SWI24 mode iterator.
25040         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
25041         SWI48 mode iterator.
25042         (mov<mode>_insn_1): New expander.
25043         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
25044         using SWI48x mode iterator.
25045
25046         (*movoi_internal_avx): Rename from *movoi_internal.
25047         (*movti_internal_rex64): Rename from *movti_rex64.
25048         (*movti_internal_sse): Rename from *movti_sse.
25049         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
25050         (*movdi_internal): Rename from *movdi_2.
25051         (*movsi_internal): Rename from *movsi_1.
25052         (*movhi_internal): Rename from *movhi_1.
25053         (*movqi_internal): Rename from *movqi_1.
25054
25055         (insv): Update the call to gen_movsi_insv_1 for rename.
25056         * config/i386/i386.c (promote_duplicated_reg): Ditto.
25057
25058 2010-06-22  Jan Hubicka  <jh@suse.cz>
25059
25060         * passes.c (execute_function_todo): Move call of statistics_fini_pass
25061         to ...
25062         (execute_todo) ... this one.
25063
25064 2010-06-22  Alan Modra  <amodra@gmail.com>
25065
25066         PR target/44364
25067         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25068         * caller-save.c (insert_restore, insert_save): Use non-validate
25069         form of adjust_address.
25070
25071 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25072
25073         PR target/39690
25074         * config/pa/pa.c (override_options): Disable
25075         -freorder-blocks-and-partition.
25076
25077 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
25078
25079         PR target/44615
25080         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
25081
25082         * config/i386/i386.md (type): Add sseishft1
25083
25084         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
25085         (ppro_insn_load): Likewise.
25086         (ppro_insn_store): Likewise.
25087         (ppro_insn_both): Likewise.
25088
25089         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
25090         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
25091         for type.
25092         (*vec_extractv2di_1_avx): Likewise.
25093         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
25094         type.  Remove atom_unit.
25095         (*vec_extractv2di_1_sse2): Likewise.
25096
25097 2010-06-21  DJ Delorie  <dj@redhat.com>
25098
25099         * diagnostic.h (diagnostic_classification_change_t): New.
25100         (diagnostic_context): Add history and push/pop list.
25101         (diagnostic_push_diagnostics): Declare.
25102         (diagnostic_pop_diagnostics): Declare.
25103         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
25104         from pragmas in a history chain instead of the global table.
25105         (diagnostic_push_diagnostics): New.
25106         (diagnostic_pop_diagnostics): New.
25107         (diagnostic_report_diagnostic): Scan history chain to find state
25108         of diagnostics as of the diagnostic location.
25109         * opts.c (set_option): Pass UNKNOWN_LOCATION to
25110         diagnostic_classify_diagnostic.
25111         (enable_warning_as_error): Likewise.
25112         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
25113         use in the history chain.
25114         * doc/extend.texi: Document pragma GCC diagnostic changes.
25115
25116 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
25117
25118         * dwarf2out.c (add_linkage_name): New function.  Don't add
25119         anything to DW_TAG_member DIEs.
25120         (add_name_and_src_coords_attributes): Use it.
25121         (gen_variable_die): Call it for C++ static data members if
25122         specification is DW_TAG_member.
25123
25124         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
25125         C++ char16_t and char32_t.
25126
25127         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
25128         * genattrtab.c: Include vecprim.h.
25129         (cached_attrs, cached_attr_count, attrs_seen_once,
25130         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
25131         attrs_cached_after): New variables.
25132         (find_attrs_to_cache): New function.
25133         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
25134         (write_test_expr): Add attrs_cached argument, return it too,
25135         attempt to cache non-const attributes used more than once in
25136         a single case handling.
25137         (write_attr_get): Use find_attrs_to_cache, for caching candidates
25138         emit cached_* variables.  Adjust write_attr_set callers.
25139         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
25140         to find attributes that should be cached in this block.  Adjust
25141         write_test_expr callers.
25142         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
25143         callers.
25144         (make_automaton_attrs): Adjust write_test_expr caller.
25145
25146         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
25147         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
25148         (make_automaton_attrs): If find_tune_attr returns non-NULL,
25149         write separate internal_dfa_insn_code_* and insn_default_latency_*
25150         functions for each attribute's value and emit init_sched_attrs
25151         function and function pointers.
25152         * genattr.c (const_attrs, reservations): New variables.
25153         (gen_attr): Add const attributes to const_attrs vector.
25154         (check_tune_attr, find_tune_attr): New functions.
25155         (main): Add reservations to reservations vector.  If find_tune_attr
25156         returns true, add prototype for init_sched_attrs and make
25157         internal_dfa_insn_code and insn_default_latency function pointers,
25158         otherwise define init_sched_attrs as dummy macro.
25159         * cfgexpand.c: Include insn-attr.h.
25160         (gimple_expand_cfg): Call init_sched_attrs.
25161
25162         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
25163
25164         PR target/44575
25165         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
25166         va_arg from a set of register save slots into a temporary,
25167         if the container is bigger than type size, do the copying
25168         using smaller mode or using memcpy.
25169
25170         PR bootstrap/44426
25171         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
25172         prototype.
25173         (sel_print_to_dot): Remove macro.
25174         (sel_print): Likewise.  New prototype.
25175         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
25176         (sel_print): New function.
25177
25178 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25179
25180         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
25181         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
25182
25183 2010-06-21  Nick Clifton  <nickc@redhat.com>
25184
25185         * config/rx/rx.h (PTRDIFF_TYPE): Define.
25186         (SMALL_REGISTER_CLASS): Define (to zero).
25187         (PRINT_OPERAND): Delete.
25188         (PRINT_OPERAND_ADDRESS): Delete.
25189         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
25190         (rx_print_operand_address): Delete prototype.
25191         * config/rx/rx.c (rx_print_operand): Make static.
25192         Allow %H and %L to handle CONST_DOUBLEs.
25193         (rx_print_operand_address): Make static.
25194         (rx_gen_move_template): Rename local variable 'template' to
25195         out_template.
25196         (rx_function_arg): Do not pass unknown sized objects in registers.
25197         (TARGET_PRINT_OPERAND): Define.
25198         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25199
25200 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
25201
25202         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
25203
25204 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
25205
25206         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
25207         stack-alignment for simple leaf-functions.
25208
25209 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
25210
25211         * doc/install.texi: Document bootstrap-lto.
25212
25213 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
25214
25215         PR debug/44248
25216         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
25217         (input_function): Drop them here, if VTA is disabled.
25218
25219 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
25220
25221         PR target/44546
25222         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
25223         New predicate.
25224         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
25225         ix86_swapped_fp_comparsion_operator instead of
25226         ix86_fp_comparison_operator.
25227
25228         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
25229         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
25230         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
25231         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
25232         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
25233         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
25234
25235 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
25236
25237         PR other/32998
25238         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
25239         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
25240         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
25241         (decode_cmdline_option): Update for this return value.  Set
25242         orig_option_with_args_text field.  Set arg field for unknown
25243         options.  Make static.
25244         (decode_cmdline_options_to_array): New.
25245         (prune_options): Update handling of find_opt return value.
25246         * opts.c (read_cmdline_option): Take decoded option.  Return void.
25247         (read_cmdline_options): Take decoded options.
25248         (decode_options): Add parameters for decoded options.  Use
25249         decode_cmdline_options_to_array.  Use decoded options for -O
25250         scan.  Use integral_argument for -O parameters.  Update call to
25251         read_cmdline_options.
25252         (enable_warning_as_error): Update handling of find_opt return value.
25253         * opts.h: Update comment on unknown options.
25254         (struct cl_decoded_option): Update comments on opt_index and arg.
25255         Add orig_option_with_args_text.
25256         (decode_cmdline_option): Remove.
25257         (decode_cmdline_options_to_array): Declare.
25258         (decode_options): Update prototype.
25259         * toplev.c (save_argv): Remove.
25260         (save_decoded_options, save_decoded_options_count): New.
25261         (read_integral_parameter): Remove.
25262         (print_switch_values): Use decoded options.
25263         (toplev_main): Don't set save_argv.  Update call to decode_options.
25264         * toplev.h (read_integral_parameter): Remove.
25265         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
25266
25267 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
25268
25269         PR target/44072
25270         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
25271         immediate.
25272         * constraints.md (Pw, Px): New constraints.
25273         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
25274
25275 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
25276
25277         * config/i386/sse.md (fma4modesuffixf4): Removed.
25278         (ssemodesuffixf2s): Likewise.
25279         (ssemodesuffixf4): Likewise.
25280         (ssemodesuffixf2c): Likewise.
25281         (ssescalarmodesuffix2s): Likewise.
25282         (avxmodesuffixf2c): Likewise.
25283         (ssemodesuffix): New.
25284         (ssescalarmodesuffix): Likewise.
25285         Update patterns with ssemodesuffix and ssescalarmodesuffix.
25286
25287 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
25288
25289         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
25290
25291 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
25292
25293         * stor-layout.c (debug_rli): Remove unused local variables.
25294
25295 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
25296
25297         PR rtl-optimization/40900
25298         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
25299         original expression for later reuse.
25300         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
25301         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
25302
25303 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
25304
25305         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
25306         double_int_fits_in_uhwi_p): Implement as static inline.
25307         (double_int_xor): New inline function.
25308         (double_int_lrotate, double_int_rrotate, double_int_max,
25309         double_int_umax, double_int_smax, double_int_min, double_int_umin,
25310         double_int_smin): Declare.
25311         (lrotate_double, rrotate_double): Remove declaration.
25312         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
25313         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
25314         (double_int_lrotate, double_int_rrotate, double_int_max,
25315         double_int_umax, double_int_smax, double_int_min, double_int_umin,
25316         double_int_smin): New function.
25317         * fold-const.c (int_const_binop): Clean up, use double_int_*
25318         functions.
25319         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
25320         double_int_* and immed_double_int_const functions.
25321
25322 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
25323
25324         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
25325         * function.c (types_used_by_cur_var_decl): Likewise.
25326         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
25327
25328 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
25329
25330         * tree.h (record_layout_info): Change type of pending_statics field
25331         to a VEC.
25332         * stor-layout.c (start_record_layout): Store NULL into
25333         pending_statics.
25334         (debug_rli): Call debug_vec_tree instead of debug_tree.
25335         (place_field): Likewise.
25336         (finish_record_layout): Likewise.
25337
25338 2010-06-18  Alan Modra  <amodra@gmail.com>
25339
25340         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
25341
25342 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25343
25344         PR target/43740
25345         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
25346         for SET source operand from SET destination operand.
25347
25348 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
25349
25350         PR rtl-optimization/39871
25351         * reload1.c (init_eliminable_invariants): For flag_pic, disable
25352         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
25353         (function_invariant_p): Rule out a plus of frame or arg pointer with
25354         a SYMBOL_REF.
25355         * ira.c (find_reg_equiv_invariant_const): Likewise.
25356
25357 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
25358
25359         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
25360         print_operand_address and puts to output the operand for CONST.
25361
25362 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
25363
25364         PR debug/44572
25365         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
25366         hook.
25367
25368 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25369
25370         * v850-protos.h (print_operand): Delete.
25371         (print_operand_address): Delete.
25372         * v850.h (PRINT_OPERAND): Delete.
25373         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25374         (PRINT_OPERAND_ADDRESS): Delete.
25375         * v850.c (print_operand_address): Rename to...
25376         (v850_print_operand_address): ...this.  Make static. Call
25377         v850_print_operand.
25378         (print_operand): Rename to...
25379         (v850_print_operand): ...this.  Make static.  Call
25380         v850_print_operand_address.
25381         (v850_print_operand_punct_valid_p): New function.
25382         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25383         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25384
25385 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25386
25387         * config/sh/sh-protos.h (print_operand): Delete.
25388         (print_operand_address): Delete.
25389         * config/sh/sh.h (PRINT_OPERAND): Delete.
25390         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25391         (PRINT_OPERAND_ADDRESS): Delete.
25392         * config/sh/sh.c (sh_print_operand_address): Make static.
25393         (sh_print_operand): Make static.  Call sh_print_operand_address
25394         and sh_print_operand.
25395         (sh_print_operand_punct_valid_p): New function.
25396         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25397         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25398
25399 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25400
25401         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
25402         (mcore_print_operand_address): Delete.
25403         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
25404         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25405         (PRINT_OPERAND_ADDRESS): Delete.
25406         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
25407         (mcore_print_operand): Make static.
25408         (mcore_print_operand_punct_valid_p): New function.
25409         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
25410         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25411
25412 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25413
25414         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
25415         (print_operand_address): Delete.
25416         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
25417         (PRINT_OPERAND_ADDRESS): Delete.
25418         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
25419         static.
25420         (m68hc11_print_operand): Make static.
25421         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25422
25423 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25424
25425         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
25426         (m32r_print_operand_address): Delete.
25427         * config/m32r/m32r.h (m32r_punct_chars): Delete.
25428         (PRINT_OPERAND): Delete.
25429         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25430         (PRINT_OPERAND_ADDRESS): Delete.
25431         * config/m32r/m32r.c (m32r_punct_chars): Make static.
25432         (m32r_print_operand_address): Make static.
25433         (m32r_print_operand): Make static.
25434         (m32r_print_operand_punct_valid_p): New function.
25435         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25436         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25437
25438 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25439
25440         * config/iq2000/iq2000-protos.h (print_operand): Delete.
25441         (print_operand_address): Delete.
25442         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
25443         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25444         (PRINT_OPERAND_ADDRESS): Delete.
25445         (iq2000_print_operand_punct): Delete.
25446         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
25447         (iq2000_print_operand_address): Make static.
25448         (iq2000_print_operand): Make static.
25449         (iq2000_print_operand_punct_valid_p): New function.
25450         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25451         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25452
25453 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25454
25455         * config/frv/frv-protos.h (frv_print_operand): Delete.
25456         (frv_print_operand_address): Delete.
25457         * config/frv/frv.h (PRINT_OPERAND): Delete.
25458         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25459         (PRINT_OPERAND_ADDRESS): Delete.
25460         * config/frv/frv.c (frv_print_operand_address): Make static.
25461         (frv_print_operand): Make static.
25462         (frv_print_operand_punct_valid_p): New function.
25463         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25464         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25465
25466 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
25467
25468         * tree.h (vec_member): Declare.
25469         * tree.c (vec_member): Define.
25470
25471 2010-06-17  Richard Guenther  <rguenther@suse.de>
25472
25473         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
25474         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
25475
25476 2010-06-17  Richard Guenther  <rguenther@suse.de>
25477
25478         * tree-inline.c (declare_return_variable): Remove bogus code.
25479
25480 2010-06-17  Richard Guenther  <rguenther@suse.de>
25481
25482         * gimplify.c (gimplify_bind_expr): Always promote complex
25483         and vector variables to registers if possible.
25484
25485 2010-06-17  Richard Guenther  <rguenther@suse.de>
25486
25487         * expr.c (get_inner_reference): Use double_int for bit_offset
25488         calculation.
25489
25490 2010-06-16  DJ Delorie  <dj@redhat.com>
25491
25492         * common.opt (-fstrict-volatile-bitfields): new.
25493         * doc/invoke.texi: Document it.
25494         * fold-const.c (optimize_bit_field_compare): For volatile
25495         bitfields, use the field's type to determine the mode, not the
25496         field's size.
25497         * expr.c (expand_assignment): Likewise.
25498         (get_inner_reference): Likewise.
25499         (expand_expr_real_1): Likewise.
25500         * expmed.c (store_fixed_bit_field): Likewise.
25501         (extract_bit_field_1): Likewise.
25502         (extract_fixed_bit_field): Likewise.
25503
25504 2010-06-16  Richard Guenther  <rguenther@suse.de>
25505
25506         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
25507
25508 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
25509
25510         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
25511         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
25512         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
25513         * debug.c: Likewise.
25514         * sdbout.c: Likewise.
25515         * vmsdbgout.c: Likewise.
25516         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
25517         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
25518         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
25519         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
25520         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
25521         * dwarf2out.c (dw_fde_struct): New fields
25522         dw_fde_vms_{end,begin}_prologue.
25523         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
25524         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
25525         (dwarf2out_vms_end_prologue): New function.
25526         (dwarf2out_vms_begin_epilogue): New function.
25527         (dw_val_struct): New value dw_val_class_vms_delta.
25528         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
25529         begin_epilogue for VMS.
25530         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
25531         new static functions.
25532         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
25533         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
25534         static functions.
25535         (print_die): New case dw_val_class_vms_delta.
25536         (attr_checksum): Likewise.
25537         (same_dw_val_p: Likewise.
25538         (size_of_die): Likewise.
25539         (value_format): Likewise.
25540         (output_die): Likewise.
25541         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
25542         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
25543         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
25544         dwarf2out_cfi_begin_epilogue
25545         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
25546
25547 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
25548
25549         * config/cris/cris-protos.h (cris_print_operand): Delete.
25550         (cris_print_operand_address): Delete.
25551         * config/cris/cris.h (PRINT_OPERAND): Delete.
25552         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25553         (PRINT_OPERAND_ADDRESS): Delete.
25554         * config/cris/cris.c (cris_print_operand_address): Make static.
25555         (cris_print_operand): Make static.
25556         (cris_print_operand_punct_valid_p): New function.
25557         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25558         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25559
25560 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
25561
25562         * config/arm/arm-protos.h (arm_print_operand): Delete.
25563         (arm_print_operand_address): Delete.
25564         * config/arm/arm.h (PRINT_OPERAND): Delete.
25565         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25566         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
25567         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
25568         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
25569         (arm_print_operand): Make static.
25570         (arm_print_operand_punct_valid_p): New function.
25571         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
25572         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25573
25574 2010-06-16  Nick Clifton  <nickc@redhat.com>
25575
25576         * config/rx/constraints.md (NEGint4): New constraint.
25577         * config/rx/rx.md (attr cc): Add set_zsc.
25578         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
25579         initialised.
25580         (cmpsf): Likewise.
25581         (call_internal): Clobber the cc0 register.
25582         (call_value_internal): Likewise.
25583         (cstoresi4): Likewise.
25584         (movsieq): Likewise.
25585         (movsine): Likewise.
25586         (addsi3): Add alternative to handle small negative constants.
25587         (sunsi3): Likewise.
25588         (addsi3): Do not set the O bit in the cc0 register.
25589         (adddi3): Likewise.
25590         (subsi3): Likewise.
25591         (subdi3): Likewise.
25592         (andsi3): Reorder alternatives to prefer shorter forms.
25593         (mulsi3): Likewise.
25594         (iorsi3): Likewise.
25595         (negsi2): Note that the cc0 flags are set.
25596         (rotlsi3): Note that only the Z and S bits are set in cc0.
25597         (lshrsi3): Likewise.
25598         (ashlsi3): Likewise.
25599         (subsf3): Use %Q for the MEM operand.
25600         (fix_truncsfsi2): Likewise.
25601         (floatsisf2): Likewise.
25602         (bitset): Remove early clobber from destination.
25603         (bitset_in_memory): Likewise.
25604         (lrintsf2): Clobber the cc0 register.
25605         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
25606         (rx_print_operand): Handle %N.
25607
25608 2010-06-16  Jan Hubicka  <jh@suse.cz>
25609
25610         * df-core.c (df_compact_blocks): Free problem_temps vector.
25611
25612 2010-06-16  Martin Jambor  <mjambor@suse.cz>
25613
25614         PR tree-optimization/43905
25615         * tree-sra.c: Include tree-inline.h.
25616         (create_abstract_origin): Removed.
25617         (modify_function): Version the call graph node instead of creating
25618         abstract origins and dealing with same_body aliases.
25619         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
25620         function is versionable.
25621         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
25622
25623 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
25624
25625         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
25626         (CHOOSE_DYNAMIC_LINKER): Update.
25627
25628 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
25629
25630         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
25631         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
25632         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
25633         *prefetch_3dnow_rex.
25634
25635 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
25636
25637         * target.h (struct asm_out):Add declare_constant_name field.
25638         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25639         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
25640         * output.h (default_asm_declare_constant_name): Declare.
25641         (assemble_label): Update prototype.
25642         * varasm.c (assemble_constant_contents): Use
25643         targetm.asm_out.declare_constant_name target hook.
25644         (assemble_label): Add 'file' argument.
25645         (default_asm_declare_constant_name): New function.
25646         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
25647         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
25648         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
25649
25650         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
25651         * config/darwin.c (darwin_asm_declare_constant_name): New function.
25652         (machopic_output_indirection): Update assemble_label argument list.
25653         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
25654         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
25655
25656 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
25657
25658         PR middle-end/44391
25659         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
25660         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
25661
25662 2010-06-15  Richard Guenther  <rguenther@suse.de>
25663
25664         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
25665
25666 2010-06-15  Paul Brook  <paul@codesourcery.com>
25667
25668         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
25669         hard-float ABI.
25670
25671 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
25672
25673         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
25674         don't get a vector type for output.
25675
25676 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
25677
25678         PR fortran/44536
25679         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
25680         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
25681         (LANG_HOOKS_DECLS): Add it.
25682         * gimplify.c (omp_notice_variable): Call
25683         lang_hooks.decls.omp_report_decl.
25684
25685 2010-06-15  Martin Jambor  <mjambor@suse.cz>
25686
25687         PR lto/44464
25688         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
25689         on the newly dead SSA name.
25690
25691 2010-06-15  Alan Modra  <amodra@gmail.com>
25692
25693         * doc/invoke.texi: Add mcmodel to powerpc options.
25694         * configure.ac: Add HAVE_LD_LARGE_TOC test.
25695         * configure: Regenerate.
25696         * config.in: Regenerate.
25697         * config/rs6000/linux64.opt (mcmodel): New.
25698         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
25699         (TARGET_CMODEL, SET_CMODEL): Define.
25700         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
25701         select CMODEL_MEDIUM default.
25702         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
25703         (TARGET_CMODEL): Define default.
25704         * config/rs6000/rs6000.c (cmodel): New variable.
25705         (rs6000_explicit_options): Add cmodel field.
25706         (rs6000_handle_option): Handle -mcmodel.
25707         (create_TOC_reference): Add largetoc_reg param.  Generate high,
25708         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
25709         (rs6000_delegitimize_address): Recognise new toc reference rtl
25710         and minimal-toc rtl.
25711         (rs6000_legitimize_reload_address): Handle new toc references.
25712         (print_operand_address): Handle legitimate_constant_pool_address_p
25713         match before lo_sum.
25714         (rs6000_eliminate_indexed_memrefs): Tidy.
25715         (rs6000_emit_move): Tweak threshold for inlining constants.
25716         Keep rs6000_emit_allocate_stack large stack frame offsets
25717         loaded into r0 inline.
25718         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
25719         (tocrel_base, tocrel_offset): New variables.
25720         (toc_relative_expr_p): Set them here.
25721         (print_operand_address): Skip over any offset on constant pool address.
25722         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
25723         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
25724         (offsettable_ok_by_alignment): New function.
25725         (rs6000_emit_move): Address suitably aligned local symbol_refs
25726         relative to the toc pointer for -mcmodel=medium.
25727         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
25728         strict param.  Allow lo_sum version of addressing.  Verify reg
25729         used for -mminimal-toc and -mcmodel != small.  Update all callers.
25730         * config/rs6000/constraints.md: Update for above change.
25731         * config/rs6000/predicates.md: Likewise.
25732         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
25733         code.
25734         (tls_gd): Split for -mcmodel=medium/large.
25735         (tls_gd_high, tls_gd_low): New.
25736         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
25737         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
25738         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
25739         (largetoc_high, largetoc_low): New.
25740         (cmptf_internal2): Add clobber.
25741         * config/rs6000/rs6000-protos.h: Update.
25742
25743 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
25744
25745         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
25746         true if no prefetch is going to be generated for a given group.
25747         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
25748         estimate the prefetch_count.
25749         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
25750         prefetch count by considering the unroll_factor and prefetch_mod
25751         for is_loop_prefetching_profitable.
25752
25753 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
25754
25755         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
25756         anything if the argument is not a MEM.
25757
25758 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
25759
25760         PR debug/43650
25761         PR debug/44181
25762         PR debug/44247
25763         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
25764         debug stmts.
25765         (canonicalize_loop_ivs): Likewise.
25766
25767 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
25768
25769         PR debug/43656
25770         * haifa-sched.c (setup_insn_reg_pressure_info,
25771         update_register_pressure): Reject debug insns.
25772         (ready_sort): Don't setup reg pressure for debug insns.
25773         (schedule_insn): Don't update reg pressure for debug insns.
25774
25775 2010-06-14  Richard Guenther  <rguenther@suse.de>
25776
25777         * lto-streamer.c (cached_bp): Remove.
25778         (bitpack_delete): Likewise.
25779         (bitpack_create): Likewise.
25780         (bp_get_next_word): Likewise.
25781         (bp_pack_value, bp_unpack_value): Move ...
25782         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
25783         Re-implement.
25784         (struct bitpack_d): Likewise.
25785         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
25786         New inline functions.
25787         * lto-streamer-out.c (lto_output_bitpack): Remove.
25788         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
25789         (pack_value_fields): Adjust.
25790         (lto_write_tree): Likewise.
25791         (output_gimple_stmt): Likewise.
25792         (output_function): Likewise.
25793         * lto-streamer-in.c (input_gimple_stmt): Adjust.
25794         (input_function): Likewise.
25795         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
25796         (lto_input_bitpack): Remove.
25797         (lto_materialize_tree): Adjust.
25798         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
25799         * lto-cgraph.c (lto_output_edge): Adjust.
25800         (lto_output_node): Likewise.
25801         (lto_output_varpool_node): Likewise.
25802         (lto_output_ref): Likewise.
25803         (input_node): Likewise.
25804         (input_varpool_node): Likewise.
25805         (input_ref): Likewise.
25806         (input_edge): Likewise.
25807         (output_node_opt_summary): Likewise.
25808         (input_node_opt_summary): Likewise.
25809         * ipa-pure-const.c (pure_const_write_summary): Likewise.
25810         (pure_const_read_summary): Likewise.
25811         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
25812         (ipa_read_indirect_edge_info): Likewise.
25813         (ipa_write_node_info): Likewise.
25814         (ipa_read_node_info): Likewise.
25815
25816 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
25817
25818         PR target/44534
25819         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
25820         (vec_extract_lo_v16hi): Likewise.
25821         (vec_extract_lo_v32qi): Likewise.
25822
25823 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
25824
25825         PR bootstrap/44426
25826         * tree.h (build_call_expr): Don't define as vararg macro, instead
25827         add a prototype.
25828         * builtins.c (build_call_nofold): Remove.
25829         (expand_builtin_int_roundingfn, expand_builtin_pow,
25830         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
25831         expand_builtin_memset_args, expand_builtin_strcmp,
25832         expand_builtin_strncmp, expand_builtin_memory_chk): Use
25833         build_call_nofold_loc instead of build_call_nofold.
25834         (build_call_expr): New function.
25835
25836         PR tree-optimization/44508
25837         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
25838         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
25839         don't eliminate trivially dead stmts.
25840         * tree-vrp.c (vrp_finalize): Pass false as last argument
25841         to substitute_and_fold.
25842         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
25843         to substitute_and_fold.
25844         * tree-ssa-ccp.c (ccp_finalize): Likewise.
25845
25846         PR bootstrap/44509
25847         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
25848
25849 2010-06-14  Ira Rosen  <irar@il.ibm.com>
25850
25851         PR tree-optimization/44507
25852         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
25853         to build initial vector for BIT_AND_EXPR.
25854         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
25855
25856 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
25857
25858         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
25859         adjust z10prop set_attr.
25860
25861 2010-06-13  Jan Hubicka  <jh@suse.cz>
25862
25863         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
25864         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
25865         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
25866         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
25867         datastructure checks into checking asserts.
25868         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
25869         * tree-ssa-sccvn.c (VN_INFO): Likewise.
25870         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
25871         df_ref_create_structure): Likewise.
25872         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
25873         pool_free): Use gcc_checking_assert.
25874         * alias.c (get_alias_set): Likewise.
25875         * var-tracking.c (variable_htab_free, shared_hash_copy,
25876         canonicalize_values_mark, variable_merge_over_cur): Likewise.
25877         * lto-streamer.c (bp_unpack_value): Likewise.
25878
25879 2010-06-13  Richard Guenther  <rguenther@suse.de>
25880
25881         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
25882         Do not stream but initialize TYPE_CANONICAL to NULL.
25883         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
25884         * gimple.c (gimple_types_compatible_p): Disregard
25885         TYPE_STRUCTURAL_EQUALITY_P.
25886         (gimple_register_type): Use TYPE_CANONICAL as cache.
25887         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
25888         before registering common types.
25889         * config/i386/i386.c (ix86_function_arg_boundary): Do not
25890         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
25891         * tree.h (TYPE_CANONICAL): Clarify documentation.
25892
25893 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
25894
25895         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
25896         LIBCALL_VALUE): Remove macros.
25897         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
25898         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25899         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25900         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
25901         (ia64_function_value): Make static. Handle receiving the function
25902         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
25903
25904 2010-06-12  Jan Hubicka  <jh@suse.cz>
25905
25906         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
25907         at correct place.
25908
25909 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
25910
25911         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
25912
25913 2010-06-12  Jan Hubicka  <jh@suse.cz>
25914
25915         * df-core.c (df_clear_bb_info): New function.
25916         (df_set_blocks): bb_info is always allocated.
25917         (df_get_bb_info): Use block_info_elt_size.
25918         (df_set_bb_info): Likewise.
25919         (df_compact_blocks): Update for new block_info.
25920         (grow_bb_info): New function.
25921         * df-problems.c (df_grow_bb_info): Move to df-core.c
25922         (df_rd_set_bb_info): Remove.
25923         (df_rd_free_bb_info): Do not free block pool.
25924         (df_rd_alloc): Do not create pool, use check for
25925         obstack presence instead of NULL pointer for new blocks.
25926         (df_rd_free): DO not free alloc pool; clear block_info.
25927         (problem_RD): Add size of block info structure.
25928         (df_lr_set_bb_info): Remove.
25929         (df_lr_free_bb_info): Do not free block pool.
25930         (df_lr_alloc): Do not create pool, use check for
25931         obstack presence instead of NULL pointer for new blocks.
25932         (df_lr_free): DO not free alloc pool; clear block_info.
25933         (problem_LR): Add size of block info structure.
25934         (df_live_set_bb_info): Remove.
25935         (df_live_free_bb_info): Do not free block pool.
25936         (df_live_alloc): Do not create pool, use check for
25937         obstack presence instead of NULL pointer for new blocks.
25938         (df_live_free): DO not free alloc pool; clear block_info.
25939         (problem_LIVE): Add size of block info structure.
25940         (problem_CHAIN): Add size of block info structure.
25941         (df_byte_lr_set_bb_info): Remove.
25942         (df_byte_lr_free_bb_info): Do not free block pool.
25943         (df_byte_lr_alloc): Do not create pool, use check for
25944         obstack presence instead of NULL pointer for new blocks.
25945         (df_byte_lr_free): DO not free alloc pool; clear block_info.
25946         (problem_BYTE_LR): Add size of block info structure.
25947         (problem_NOTE): Add size of block info structure.
25948         (df_byte_MD_set_bb_info): Remove.
25949         (df_byte_MD_free_bb_info): Do not free block pool.
25950         (df_byte_MD_alloc): Do not create pool, use check for
25951         obstack presence instead of NULL pointer for new blocks.
25952         (df_byte_MD_free): DO not free alloc pool; clear block_info.
25953         (problem_BD): Add size of block info structure.
25954         * df-scan.c (df_scan_free_internal): Free block pool.
25955         (df_scan_set_bb_info): Remove.
25956         (df_scan_free_bb_info): Check for artificial_defs instead
25957         of bb_info being non-NULL.
25958         (df_scan_alloc): DO not create df_scan_block pool.
25959         (problem_SCAN): Set size of block info.
25960         (df_bb_refs_record): Do not allocate bb_info.
25961         * df.h (df_problem): Add block_info_elt_size.
25962         (struct dataflow): Change block_info to void *.
25963         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
25964         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
25965         in-line structures.
25966
25967 2010-06-12  Jan Hubicka  <jh@suse.cz>
25968
25969         PR tree-optimize/44485
25970         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
25971         containing use of return value of noreturn function.
25972
25973 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
25974
25975         * targhooks.c (default_function_value): Don't use
25976         FUNCTION_OUTGOING_VALUE.
25977         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
25978         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
25979
25980 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
25981
25982         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
25983         Add crtfastmath.o to extra_parts.
25984         * config/mips/crtfastmath.c: New.
25985         * config/mips/linux.h (ENDFILE_SPEC): New.
25986
25987 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
25988
25989         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
25990         old_type in parameter.
25991         (gcc_type_for_value): Update call to gcc_type_for_interval.
25992         (compute_type_for_level_1): Renamed compute_type_for_level.
25993         Update call to gcc_type_for_interval.
25994
25995 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
25996
25997         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
25998         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
25999
26000 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
26001
26002         * opts-common.c: Include options.h.
26003         (integral_argument): Move from opts.c.
26004         (decode_cmdline_option): New.  Based on read_cmdline_option.
26005         * opts.c (integral_argument): Move to opts-common.c.
26006         (read_cmdline_option): Move most contents to
26007         decode_cmdline_option.  Use %qs in diagnostics.
26008         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
26009         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
26010         decode_cmdline_option): New.
26011
26012 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
26013
26014         PR target/44481
26015         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
26016         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
26017         (partiysi2_cmp): Ditto.
26018         (*partiyhi2_cmp): Ditto.
26019         (*parityqi2_cmp): Remove.
26020
26021 2010-06-11  Jan Hubicka  <jh@suse.cz>
26022
26023         * bitmap.h (bmp_iter_next_bit): New.
26024         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
26025
26026 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
26027             Eric Botcazou  <ebotcazou@adacore.com>
26028
26029         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
26030         computed cost.
26031
26032 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
26033
26034         * config/i386/i386.md (unspec): New define_c_enum.
26035         (unspecv): Ditto.
26036
26037 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
26038
26039         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
26040
26041 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
26042
26043         PR middle-end/44483
26044         * tree-if-conv.c (bb_predicate_s): New struct.
26045         (bb_predicate_p): New.
26046         (bb_has_predicate): New.
26047         (bb_predicate): New.
26048         (set_bb_predicate): New.
26049         (bb_predicate_gimplified_stmts): New.
26050         (set_bb_predicate_gimplified_stmts): New.
26051         (add_bb_predicate_gimplified_stmts): New.
26052         (init_bb_predicate): New.
26053         (free_bb_predicate): New.
26054         (is_predicated): Use bb_predicate.
26055         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
26056         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
26057         before processing their successors.
26058         (clean_predicate_lists): Removed.
26059         (find_phi_replacement_condition): Use bb_predicate.
26060         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
26061         computations.
26062         (insert_gimplified_predicates): New.
26063         (combine_blocks): Call insert_gimplified_predicates.
26064         (tree_if_conversion): Call free_bb_predicate instead of
26065         clean_predicate_lists.
26066
26067 2010-10-11  Paul Brook  <paul@codesourcery.com>
26068
26069         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
26070         * config/arm/arm.c (all_architectures): Change v7e-m default to
26071         cortexm4.
26072         * config/arm/arm-cores.def: Add cortex-m4.
26073         * config/arm/arm-tune.md: Regenerate.
26074
26075 2010-06-11  Jan Hubicka  <jh@suse.cz>
26076
26077         * ipa-pure-const.c (special_builtlin_state): New function.
26078         (check_call): Use it instead of special casign BUILT_IN_RETURN.
26079         (propagate_pure_const): Use it.
26080
26081 2010-06-11  Jan Hubicka  <jh@suse.cz>
26082
26083         * df-problems.c (df_live_scratch): Convert to bitmap_head.
26084         (df_live_alloc): Initialize df_live_scratch when initializing
26085         problem_data.
26086         (df_live_transfer_function): Update uses of df_live_scratch.
26087         (df_live_free): Free problem_data; clear df_live_scratch before
26088         releasing the obstack.
26089         (df_md_free): Free problem data.
26090
26091 2010-06-11  Jan Hubicka  <jh@suse.cz>
26092
26093         * doc/invoke.texi (Wsuggest-attribute): Document.
26094         (Wmissing-noreturn): Remove.
26095         * ipa-pure-const.c (warn_function_noreturn): New function.
26096         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
26097         warn_missing_noreturn.
26098         * common.opt (Wsuggest-attribute=noreturn): New.
26099         * tree-flow.h (warn_function_noreturn): Declare.
26100         * tree-cfg.c (execute_warn_function_noreturn): Use
26101         warn_function_noreturn.
26102         (gate_warn_function_noreturn): New.
26103         (pass_warn_function_noreturn): Update.
26104
26105 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26106
26107         * c-typeck.c (handle_warn_cast_qual): Add loc
26108         parameter. Improve warning message.
26109         (build_c_cast): Pass location to handle_warn_cast_qual.
26110
26111 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
26112
26113         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
26114         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
26115         insn mnemonic.
26116         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
26117
26118 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
26119
26120         Fix bootstap on mips
26121         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
26122         be naming typedefs.
26123
26124 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
26125
26126         * system.h (helper_const_non_const_cast): New inline for
26127         gcc version <= 4.0.
26128         (CONST_CAST2): For gcc version <= 4.0 use
26129         new helper to do const/non-const casting.
26130
26131 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26132
26133         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
26134         * Makefile.in (OBJS-common): Include insn-enums.o.
26135         (insn-enums.o): New rule.
26136         (simple_generated_c): Add insn-enums.c.
26137         (build/genenums.o): New rule.
26138         (genprogmd): Add "enums".
26139         * genconstants.c (print_enum_type): Declare a C string array
26140         for each enum.
26141         * genenums.c: New file.
26142         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
26143         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
26144         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
26145
26146 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26147
26148         * doc/md.texi (define_enum_attr): Document.
26149         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
26150         * read-md.h (lookup_enum_type): Declare.
26151         * read-md.c (lookup_enum_type): New function.
26152         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
26153         * genattrtab.c (attr_desc): Add an enum_name field.
26154         (evaluate_eq_attr): Take the associated attribute as argument.
26155         Get the enum prefix from the enum_name field, if defined.
26156         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
26157         (simplify_test_exp): Pass attr to evaluate_eq_attr.
26158         (add_attr_value): New function, split out from...
26159         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
26160         (write_test_expr): Pass attr to evaluate_eq_attr.
26161         (write_attr_get): Use the enum_name as the enum tag, if defined.
26162         (write_attr_valueq): Use the enum_name as a prefix, if defined.
26163         (find_attr): Initialize enum_name.
26164         (main): Handle DEFINE_ENUM_ATTR.
26165         * gensupport.c (process_rtx): Likewise.
26166         * config/mips/mips.h (mips_tune_attr): Delete.
26167         * config/mips/mips.md (cpu): Use define_attr_enum.
26168
26169 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26170
26171         * doc/md.texi (define_c_enum, define_enum): Document.
26172         * read-md.h (md_constant): Add a parent_enum field.
26173         (enum_value, enum_type): New structures.
26174         (upcase_string, traverse_enum_types): Declare.
26175         * read-md.c (enum_types): New variable.
26176         (upcase_string, add_constant): New functions.
26177         (handle_constants): Don't create the hash table here.
26178         Use add_constant.
26179         (traverse_md_constants): Don't check for a null md_constants.
26180         (decimal_string, handle_enum, traverse_enum_types): New functions.
26181         (read_md_files): Initialize md_constants and md_enums.
26182         * genconstants.c (print_md_constant): Ignore info argument.
26183         Only print constants that belong to no enum.
26184         (print_enum_type): New function.
26185         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
26186         for each defined enum type.
26187         * config/mips/mips.md (processor): New define_enum.
26188         (unspec): New define_c_enum.
26189         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
26190         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
26191         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
26192         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
26193         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
26194         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
26195         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
26196         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
26197         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
26198         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
26199         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
26200         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
26201         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
26202         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
26203         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
26204         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
26205         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
26206         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
26207         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
26208         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
26209         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
26210         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
26211         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
26212         (UNSPEC_RDDSP): Move to mips-dsp.md.
26213         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
26214         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
26215         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
26216         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
26217         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
26218         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
26219         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
26220         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
26221         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
26222         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
26223         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
26224         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
26225         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
26226         Moved to mips-dspr2.md.
26227         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
26228         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
26229         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
26230         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
26231         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
26232         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
26233         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
26234         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
26235         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
26236         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
26237         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
26238         UNSPEC_LOONGSON_PSADBH)
26239         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
26240         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
26241         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
26242         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
26243         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
26244         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
26245         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
26246         (cpu): Update comment.
26247         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
26248         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
26249         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
26250         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
26251         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
26252         UNSPEC_LOONGSON_PCMPEQ)
26253         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
26254         UNSPEC_LOONGSON_PINSR_0)
26255         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
26256         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
26257         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
26258         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
26259         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
26260         UNSPEC_LOONGSON_PSADBH)
26261         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
26262         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
26263         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
26264         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
26265         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
26266         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
26267         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
26268         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
26269         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
26270         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
26271         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
26272         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
26273         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
26274         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
26275         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
26276         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
26277         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
26278         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
26279         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
26280         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
26281         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
26282         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
26283         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
26284         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
26285         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
26286         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
26287         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
26288         (UNSPEC_RDDSP): Moved from mips.md.
26289         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
26290         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
26291         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
26292         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
26293         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
26294         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
26295         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
26296         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
26297         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
26298         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
26299         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
26300         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
26301         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
26302         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
26303         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
26304         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
26305         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
26306         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
26307         (UNSPEC_SCC): Moved from mips.md.
26308         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
26309         "processor_type" to "processor".
26310         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
26311         * config/mips/mips.h (processor_type): Delete.
26312         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
26313         "processor_type" to "processor".
26314
26315 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26316
26317         * configure.ac (tm_include_list): Add insn-constants.h.
26318         * configure: Regenerate.
26319         * Makefile.in (GTM_H): Move insn-constants.h here from...
26320         (TM_H): ...here.
26321         * mkconfig.sh: Remove special handling for insn-constants.h.
26322
26323 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26324
26325         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
26326         (BUILD_MD): ...this new variable.
26327         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
26328         that include the old contents of simple_generated_h and
26329         simple_generated_c.
26330         (simple_generated_h, simple_generated_c): Include them.  Add
26331         insn-constants.h.
26332         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
26333         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
26334         Remove these dependencies from the main rule and include
26335         insn-conditions.md in the command line only if it appears
26336         in the dependency list.
26337         (insn-constants.h, s-constants): Delete.
26338         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
26339         or gensupport.h.
26340         (build/genmddeps.o): Likewise.
26341         (genprogrtl): New variable that contains everything from genprogmd
26342         except mddeps and constants.
26343         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
26344         depend on $(BUILD_MD)
26345         (genprog): New variable.  Make these programs depend on
26346         $(BUILD_ERRORS).
26347         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
26348         (main): Use read_md_files instead of init_rtx_reader_args.
26349         * genconstants.c: As for genmddeps.c.
26350         * read-md.h (read_skip_construct): Declare.
26351         * read-md.c (read_skip_construct): New function.
26352         (handle_file): Allow a null handle_directive, skipping the
26353         construct if so.
26354         (parse_include): Update the comment accordingly.
26355
26356 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26357
26358         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
26359         * genmddeps.c: Include read-md.h.
26360         (main): Call init_rtx_reader_args instead of init_md_reader_args.
26361         * genattr.c (main): Likewise.
26362         * genattrtab.c (main): Likewise.
26363         * genautomata.c (main): Likewise.
26364         * gencodes.c (main): Likewise.
26365         * genconditions.c (main): Likewise.
26366         * genconfig.c (main): Likewise.
26367         * genconstants.c (main): Likewise.
26368         * genemit.c (main): Likewise.
26369         * genextract.c (main): Likewise.
26370         * genflags.c (main): Likewise.
26371         * genopinit.c (main): Likewise.
26372         * genoutput.c (main): Likewise.
26373         * genpeep.c (main): Likewise.
26374         * genrecog.c (main): Likewise.
26375         * genpreds.c (main): Likewise.
26376         * gensupport.h (in_fname): Move to read-md.h.
26377         (init_md_reader_args_cb): Rename to...
26378         (init_rtx_reader_args_cb): ...this and return a bool.
26379         (init_md_reader_args): Rename to...
26380         (init_rtx_reader_args): ...this and return a bool.
26381         (include_callback): Move to read-md.h.
26382         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
26383         (file_name_list, first_dir_md_include): Move to read-md.c
26384         (first_bracket_include): Delete unused variable.
26385         (last_dir_md_include): Move to read-md.c.
26386         (process_include): Delete, moving code to read-md.c:handle_include.
26387         (process_rtx): Don't handle INCLUDE.
26388         (save_string): Delete.
26389         (rtx_handle_directive): New function.
26390         (init_md_reader_args_cb): Rename to...
26391         (init_rtx_reader_args_cb): ...this and return a boolean success value.
26392         Use read_md_args.
26393         (init_md_reader_args): Rename to...
26394         (init_rtx_reader_args): ...this and return a boolean success value.
26395         * rtl.def (INCLUDE): Delete.
26396         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
26397         argument.
26398         * read-rtl.c (read_conditions): Don't gobble ')' here.
26399         (read_mapping): Likewise.
26400         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
26401         Handle top-level non-rtx constructs here rather than in read_rtx_1.
26402         Store the whole queue in *X.  Remove call to init_md_reader.
26403         (read_rtx_1): Rename to...
26404         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
26405         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
26406         here.
26407         (read_nested_rtx): New function.  Handle (nil) here rather than
26408         in read_rtx_code.
26409         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
26410         gobble ')' here.
26411         * read-md.h (directive_handler_t): New type.
26412         (in_fname, include_callback): Moved from read-md.h.
26413         (read_constants, init_md_reader): Delete.
26414         (read_md_files): Declare.
26415         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
26416         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
26417         from gensupport.c.
26418         (read_constants): Rename to...
26419         (handle_constants): ...this.  Don't gobble ')' here.
26420         (handle_include, handle_file, handle_toplevel_file)
26421         (parse_include): New functions, mostly taken from gensupport.c.
26422         (init_md_reader): Subsume into...
26423         (read_md_files): ...this new function.
26424
26425 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26426
26427         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
26428         (unread_char): Decrement read_md_lineno after putting back '\n'.
26429         * read-md.c (fatal_with_file_and_line): Push back any characters
26430         that we decide not to add to the context.
26431         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
26432         fatal_expected_char in cases where '/' ends a line (for example).
26433         (read_name): Don't increment read_md_lineno here.
26434         (read_escape): Likewise.
26435         (read_quoted_string): Likewise.
26436         (read_braced_string): Likewise.
26437
26438 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26439
26440         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
26441         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
26442         * genconstants.c: Include read-md.h.
26443         * read-rtl.c (md_constants): Move to read-md.c.
26444         (md_name): Move to read-md.h.
26445         (initialize_iterators): Use leading_string_hash instead of def_hash
26446         and leading_string_eq_p instead of def_name_eq_p.
26447         (read_name): Move to read-md.c.
26448         (def_hash, def_name_eq_p): Delete.
26449         (read_constants, traverse_md_constants): Move to read-md.c.
26450         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
26451         * read-md.h: Include hashtab.h.
26452         (md_name): Moved from read-rtl.c.
26453         (md_constant): Moved from read-md.h.
26454         (leading_string_hash, leading_string_eq_p, read_name)
26455         (read_constants, traverse_md_constants): Declare.
26456         * read-md.c (md_constants): Moved from read-rtl.c.
26457         (leading_string_hash, leading_string_eq_p): New functions.
26458         (read_name, read_constants, traverse_md_constants): Moved from
26459         read-rtl.c.
26460
26461 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26462
26463         * read-rtl.c (md_name): New structure.
26464         (read_name): Take an md_name instead of a buffer pointer.
26465         Use the "string" field instead of strcpy when expanding constants.
26466         (read_constants): Remove the tmp_char argument.  Update the calls
26467         to read_name, using two local name buffers instead of the tmp_char
26468         argument.  Merge the constant-creation code.
26469         (read_conditions): Remove the tmp_char argument.  Update the calls
26470         to read_name, using a local name buffer instead of the tmp_char
26471         argument.
26472         (read_mapping): Replace tmp_char variable with a local name buffer.
26473         Update the calls to read_name.
26474         (read_rtx_1): Likewise.  Update the calls to read_constants and
26475         read_conditions.
26476
26477 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26478
26479         * Makefile.in (build/read-md.o): Depend on errors.h.
26480         * read-md.h (error_with_line): Declare.
26481         * read-md.c: Include errors.h.
26482         (message_with_line_1): New function, extracted from...
26483         (message_with_line): ...here.
26484         (error_with_line): New function.
26485         * genattrtab.c: If a call to message_with_line is followed by
26486         "have_error = 1;", replace both statements with a call to
26487         error_with_line.
26488         * genoutput.c: Likewise.
26489         * genpreds.c: Likewise.
26490         * genrecog.c: If a call to message_with_line is followed by
26491         "error_count++;", replace both statements with a call to
26492         error_with_line.
26493         (errorcount): Delete.
26494         (main): Don't check it.
26495         * gensupport.c: If a call to message_with_line is followed by
26496         "errors = 1;", replace both statements with a call to error_with_line.
26497         (errors): Delete.
26498         (process_define_cond_exec): Check have_error instead of errors.
26499         (init_md_reader_args_cb): Likewise.  Don't set errors.
26500
26501 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26502
26503         * read-md.h (read_md_file): Declare.
26504         (read_char, unread_char): New functions.
26505         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
26506         (read_quoted_string, read_string): Remove FILE * argument.
26507         * read-md.c (read_md_file): New variable.
26508         (read_md_filename, read_md_lineno): Update comments and remove
26509         unnecessary initialization.
26510         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
26511         (read_escape, read_quoted_string, read_braced_string, read_string):
26512         Remove FILE * argument.  Update calls accordingly, using read_char
26513         and unread_char instead of getc and ungetc.
26514         * rtl.h (read_rtx): Remove FILE * argument.
26515         * read-rtl.c (iterator_group): Remove FILE * argument from
26516         "find_builtin".
26517         (iterator_traverse_data): Remove "infile" field.
26518         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
26519         (add_mapping, read_name, read_constants, read_conditions)
26520         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
26521         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
26522         Remove file arguments from all calls, using read_char and unread_char
26523         instead of getc and ungetc.
26524         * gensupport.c (process_include): Preserve read_md_file around
26525         the include.  Set read_md_file to the handle of the included file.
26526         Update call to read_rtx.
26527         (init_md_reader_args_cb): Set read_md_file to the handle of the file
26528         and remove local FILE *.  Update calls to read_rtx.
26529
26530 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26531
26532         * read-md.h (read_rtx_lineno): Rename to...
26533         (read_md_lineno): ...this.
26534         (read_rtx_filename): Rename to...
26535         (read_md_filename): ...this.
26536         (copy_rtx_ptr_loc): Rename to...
26537         (copy_md_ptr_loc): ...this.
26538         (print_rtx_ptr_loc): Rename to...
26539         (print_md_ptr_loc): ...this.
26540         * read-md.c: Likewise.  Update references after renaming.
26541         (string_obstack): Replace RTL with MD in comment.
26542         (set_rtx_ptr_loc): Rename to...
26543         (set_md_ptr_loc): ...this.
26544         (get_rtx_ptr_loc): Rename to...
26545         (get_md_ptr_loc): ...this.
26546         * genconditions.c: Update references after renaming.
26547         * genemit.c: Likewise.
26548         * genoutput.c: Likewise.
26549         * genpreds.c: Likewise.
26550         * gensupport.c: Likewise.
26551         * read-rtl.c: Likewise.
26552
26553 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
26554
26555         * Makefile.in (READ_MD_H): New variable.
26556         (BUILD_RTL): Add build/read-md.o.
26557         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
26558         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
26559         (build/genattrtab.o, build/genconditions.o build/genemit.o)
26560         (build/genextract.o, build/genflags.o, build/genoutput.o)
26561         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
26562         (build/read-md.o): New rule.
26563         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
26564         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
26565         * coretypes.h: ...here.
26566         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
26567         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
26568         * genattr.c: Include read-md.h.
26569         * genattrtab.c: Likewise.
26570         * genconditions.c: Likewise.
26571         * genemit.c: Likewise.
26572         * genextract.c: Likewise.
26573         * genflags.c: Likewise.
26574         * genoutput.c: Likewise.
26575         * genpreds.c: Likewise.
26576         * genrecog.c: Likewise.
26577         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
26578         (join_c_conditions, print_c_condition, read_rtx_filename)
26579         (read_rtx_lineno): Move to read-md.h.
26580         * read-rtl.c: Include read-md.h.
26581         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
26582         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
26583         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
26584         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
26585         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
26586         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
26587         (read_braced_string, read_string): Move to read-md.c.
26588         (read_rtx): Move some initialization to init_md_reader and call
26589         init_md_reader here.
26590         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
26591         Move to read-md.h.
26592         * gensupport.c: Include read-md.h.
26593         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
26594         * read-md.h, read-md.c: New files.
26595
26596 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
26597
26598         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26599         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26600         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
26601         * config/moxie/moxie.c (moxie_function_value): Make static.
26602         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
26603         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
26604
26605 2010-06-10  Martin Jambor  <mjambor@suse.cz>
26606
26607         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
26608         * dbgcnt.def (tree_sra): New counter.
26609         * tree-sra.c: Include dbgcnt.h.
26610         (gate_intra_sra): Check tree_sra debug counter.
26611
26612 2010-06-10  Martin Jambor  <mjambor@suse.cz>
26613
26614         PR tree-optimization/44258
26615         * tree-sra.c (build_access_subtree): Return false iff there is a
26616         partial overlap.
26617         (build_access_trees): Likewise.
26618         (analyze_all_variable_accesses): Disqualify candidates if
26619         build_access_trees returns true for them.
26620
26621 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
26622
26623         PR debug/41371
26624         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
26625         tail-recurse into canonical node.  Fast-forward over
26626         non-canonical VALUEs.
26627
26628 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
26629
26630         PR boostrap/44470
26631         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
26632         (*addsi_1_zext) <TYPE_LEA>: Likewise.
26633         (add lea splitter): Likewise.
26634         (add_zext lea splitter): Likewise.
26635
26636 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
26637
26638         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
26639
26640 2010-06-10  Jan Hubicka  <jh@suse.cz>
26641
26642         * df-problems.c (df_live_problem_data): Add live_bitmaps.
26643         (df_live_alloc): Initialize problem data and live_osbtacks.
26644         (df_live_finalize): Remove obstack, problem data; do not
26645         clear all bitmaps.
26646         (df_live_top_dump, df_live_bottom_dump): Do not dump old
26647         data when not allocated.
26648         (df_live_verify_solution_start): Do not allocate problem data.
26649         (df_live_verify_solution_end): Check if out is allocated.
26650         (struct df_md_problem_data): New structure.
26651         (df_md_alloc): Allocate problem data.
26652         (df_md_free): Free problem data; do not clear bitmaps.
26653
26654 2010-06-10  Jan Beulich  <jbeulich@novell.com>
26655
26656         PR bootstrap/37304
26657         * configure.ac: Replace $() with ${} when intending to expand
26658         variables rather than invoking commands.
26659         * configure: Re-generate.
26660
26661 2010-06-10  Jan Hubicka  <jh@suse.cz>
26662
26663         PR rtl-optimization/44460
26664         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
26665         TYPE_NEEDS_CONSTRUCTING sanity check.
26666
26667 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
26668
26669         * doc/include/fdl.texi: Move to GFDL version 1.3.
26670
26671         * doc/cpp.texi: Move to GFDL version 1.3.
26672         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
26673         * doc/gccint.texi: Move to GFDL version 1.3.
26674         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
26675         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
26676         * doc/invoke.texi: Move to GFDL version 1.3.
26677
26678 2010-06-09  Jan Hubicka  <jh@suse.cz>
26679
26680         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
26681         Break out from ...
26682         (propagate) ... here; swap the order.
26683
26684 2010-06-09  Jan Hubicka  <jh@suse.cz>
26685
26686         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
26687         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
26688         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
26689         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
26690
26691 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
26692
26693         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
26694         Do not the gather memory reference in the outer loop if the step
26695         is not a constant.
26696
26697 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
26698
26699         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
26700         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
26701         8 to 4.  Minor change of the related comments.
26702
26703 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
26704
26705         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
26706         the scev analysis when the variable is not used outside the loop
26707         in a close phi node: call compute_overall_effect_of_inner_loop.
26708
26709 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
26710
26711         * graphite-sese-to-poly.c (single_pred_cond): Renamed
26712         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
26713         (build_sese_conditions_before): Renamed call to single_pred_cond.
26714         (build_sese_conditions_after): Same.
26715
26716 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
26717
26718         * graphite-poly.h: Fix comments and indentation.
26719         * graphite-sese-to-poly.c: Same.
26720         (build_sese_conditions_before): Compute stmt and gbb only when needed.
26721         * tree-chrec.c: Fix comments and indentation.
26722         (tree-ssa-loop-niter.c): Same.
26723
26724 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
26725
26726         PR rtl-optimization/42461
26727         * dce.c (deletable_insn_p): Return true for const or pure calls again.
26728         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
26729
26730 2010-06-09  Jan Hubicka  <jh@suse.cz>
26731
26732         * bitmap.c (bitmap_and): Walk array forward.
26733         (bitmap_and_compl_into): Likewise.
26734         (bitmap_xor): Likewise.
26735         (bitmap_xor_into):  Likewise.
26736         (bitmap_equal_p): Likewise.
26737         (bitmap_intersect_p): Likewise.
26738         (bitmap_intersect_compl_p): Likewise.
26739         (bitmap_ior_and_into): Likewise.
26740         (bitmap_elt_copy): Likewise.
26741         (bitmap_and_compl): Likewise.
26742         (bitmap_elt_ior): Likewise.
26743
26744 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
26745
26746         * opts-common.c (prune_options): Ensure replacement argv array
26747         is correctly terminated by a NULL entry.
26748
26749 2010-06-09  Jan Hubicka  <jh@suse.cz>
26750
26751         * cgraph.h (varpool_first_static_initializer,
26752         varpool_next_static_initializer): Make checking only when
26753         checking enabled.
26754         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
26755         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
26756         gcc_assert to gcc_checking_assert.
26757         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
26758         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
26759         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
26760         op_iter_init_phiuse, op_iter_init_phidef,
26761         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
26762         gcc_checking_assert.
26763         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
26764         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
26765         partition_is_global, live_on_entry, live_on_exit,
26766         live_merge_and_clear): Likewise.
26767         * system.h (gcc_checking_assert): New macro.
26768         * gimple.h (set_bb_seq): Use gcc_checking_assert.
26769
26770 2010-06-09  Jason Merrill  <jason@redhat.com>
26771
26772         * Makefile.in (TAGS): Collect tags info from c-family.
26773
26774 2010-06-09  Jan Hubicka  <jh@suse.cz>
26775
26776         * gimple.h (gcc_gimple_checking_assert): New macro.
26777         (gimple_set_def_ops, gimple_set_use_ops,
26778         gimple_set_vuse, gimple_set_vdef,
26779         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
26780         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
26781         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
26782         gimple_asm_output_op, gimple_asm_output_op_ptr,
26783         gimple_asm_set_output_op, gimple_asm_clobber_op,
26784         gimple_asm_set_clobber_op, gimple_asm_label_op,
26785         gimple_asm_set_label_op, gimple_try_set_kind,
26786         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
26787         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
26788         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
26789         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
26790         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
26791         gimple_omp_for_set_initial, gimple_omp_for_final,
26792         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
26793         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
26794         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
26795         conditional with ENABLE_GIMPLE_CHECKING.
26796         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
26797
26798 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
26799
26800         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
26801         (get_computation_cost_at): Use it.
26802         (determine_use_iv_cost_condition): Likewise.
26803         (determine_iv_cost): Likewise.
26804
26805 2010-06-09  Richard Guenther  <rguenther@suse.de>
26806
26807         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
26808         replace constants.
26809
26810 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
26811
26812         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
26813
26814 2010-06-09  Martin Jambor  <mjambor@suse.cz>
26815
26816         PR tree-optimization/44423
26817         * tree-sra.c (dump_access): Dump also grp_assignment_read.
26818         (analyze_access_subtree): Pass negative allow_replacements to children
26819         if the current type is scalar.
26820
26821 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26822
26823         PR testsuite/42843
26824         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
26825         * doc/plugins.texi (Plugin license check): Update information
26826         on type of plugin_is_GPL_compatible.
26827         * Makefile.in (PLUGINCC): Define as $(COMPILER).
26828         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
26829
26830 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
26831
26832         * config/arm/arm.c (thumb2_reorg): New function.
26833         (arm_reorg): Call it.
26834         * config/arm/thumb2.md (define_peephole2 for flag clobbering
26835         arithmetic operations): Delete.
26836
26837 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
26838
26839         PR target/44067
26840         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
26841         e500v2 target.
26842
26843 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26844
26845         PR plugins/44459
26846         * gcc-plugin.h: Encapsulate all declarations in extern "C".
26847
26848 2010-06-08  Jan Hubicka  <jh@suse.cz>
26849
26850         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
26851         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
26852
26853 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
26854
26855         PR tree-optimization/39874
26856         PR middle-end/28685
26857         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
26858         Declare.
26859         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
26860         same_bool_result_p): New.
26861         (and_var_with_comparison, and_var_with_comparison_1,
26862         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
26863         (or_var_with_comparison, or_var_with_comparison_1,
26864         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
26865         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
26866         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
26867         of combine_comparisons.
26868         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
26869
26870 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
26871
26872         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26873         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26874         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
26875         pdp11_function_value_regno_p): New functions.
26876         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26877         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26878
26879 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
26880
26881         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
26882         Thumb-2 in the MINUS case.
26883
26884 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26885
26886         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
26887
26888         * doc/gty.texi (GTY Options): Document typed GC allocation and
26889         variable_size GTY option.
26890
26891         * ggc-internal.h: New.
26892
26893         * ggc.h: Update copyright year.
26894         (digit_string): Move to stringpool.c.
26895         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
26896         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
26897         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
26898         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
26899         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
26900         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
26901         (ggc_force_collect, ggc_get_size, ggc_statistics)
26902         (ggc_print_common_statistics): Move to ggc-internal.h.
26903         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
26904         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
26905         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
26906         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
26907         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
26908         (ggc_alloc_zone_pass_stat): Remove.
26909         (ggc_internal_alloc_stat, ggc_internal_alloc)
26910         (ggc_internal_cleared_alloc_stat): New.
26911         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
26912         (ggc_internal_vec_alloc_stat)
26913         (ggc_internal_cleared_vec_alloc_stat)
26914         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
26915         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
26916         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
26917         (ggc_cleared_alloc_ptr_array_two_args): New.
26918         (htab_create_ggc, splay_tree_new_ggc): Redefine.
26919         (ggc_splay_alloc): Change the type of the first argument to
26920         enum gt_types_enum.
26921         (ggc_alloc_string): Make macro.
26922         (ggc_alloc_string_stat): New.
26923         (ggc_strdup): Redefine.
26924         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
26925         (ggc_alloc_rtvec_sized): New.
26926         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
26927         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
26928         (ggc_internal_cleared_alloc_zone_stat)
26929         (ggc_internal_zone_alloc_stat)
26930         (ggc_internal_zone_cleared_alloc_stat)
26931         (ggc_internal_zone_vec_alloc_stat)
26932         (ggc_alloc_zone_rtx_def_stat)
26933         (ggc_alloc_zone_tree_node_stat)
26934         (ggc_alloc_zone_cleared_tree_node_stat)
26935         (ggc_alloc_cleared_gimple_statement_d_stat): New.
26936
26937         * ggc-common.c: Include ggc-internal.h.
26938         (ggc_internal_cleared_alloc_stat): Rename from
26939         ggc_alloc_cleared_stat.
26940         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
26941         (ggc_calloc): Remove.
26942         (ggc_cleared_alloc_htab_ignore_args): New.
26943         (ggc_cleared_alloc_ptr_array_two_args): New.
26944         (ggc_splay_alloc): Add obj_type parameter.
26945         (init_ggc_heuristics): Formatting fixes.
26946
26947         * ggc-none.c: Update copyright year.
26948         (ggc_alloc_stat): Rename to ggc_alloc_stat.
26949         (ggc_alloc_cleared_stat): Rename to
26950         ggc_internal_cleared_alloc_stat.
26951         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26952
26953         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
26954         Remove references to ggc_alloc in comments.
26955         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
26956         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
26957         (new_ggc_zone, destroy_ggc_zone): Remove.
26958         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
26959
26960         * ggc-zone.c: Include ggc-internal.h.  Remove references to
26961         ggc_alloc in comments.
26962         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
26963         (ggc_internal_alloc_zone_pass_stat): New.
26964         (ggc_internal_cleared_alloc_zone_stat): New.
26965         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
26966         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
26967         (new_ggc_zone, destroy_ggc_zone): Remove.
26968
26969         * stringpool.c: Update copyright year.  Include ggc-internal.h
26970         (digit_vector): Make static.
26971         (digit_string): Moved from ggc.h.
26972         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
26973         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
26974
26975         * Makefile.in (GGC_INTERNAL_H): New.
26976         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
26977         $(GGC_INTERNAL_H) to dependencies.
26978
26979         * gengtype.c: Update copyright year.
26980         (walk_type): Accept variable_size GTY option.
26981         (USED_BY_TYPED_GC_P): New macro.
26982         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
26983         whitespace at the end of strings.
26984         (get_type_specifier, variable_size_p): New functions.
26985         (alloc_quantity, alloc_zone): New enums.
26986         (write_typed_alloc_def): New function.
26987         (write_typed_struct_alloc_def): Likewise.
26988         (write_typed_typed_typedef_alloc_def): Likewise.
26989         (write_typed_alloc_defns): Likewise.
26990         (output_typename, write_splay_tree_allocator_def): Likewise.
26991         (write_splay_tree_allocators): Likewise.
26992         (main): Call write_typed_alloc_defns and
26993         write_splay_tree_allocators.
26994
26995         * lto-streamer.h (lto_file_decl_data_ptr): New.
26996
26997         * passes.c (order): Define using cgraph_node_ptr.
26998
26999         * strinpool.c (struct string_pool_data): Declare nested_ptr using
27000         ht_identifier_ptr.
27001
27002         * gimple.h (union gimple_statement_d): Likewise.
27003
27004         * rtl.h (struct rtx_def): Likewise.
27005         (struct rtvec_def): Likewise.
27006
27007         * tree.h (union tree_node): Likewise.
27008
27009         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
27010
27011         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
27012
27013         * tree-scalar-evolution.c (scev_initialize): Likewise.
27014
27015         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
27016
27017         * dwarf2asm.c (dw2_force_const_mem): Likewise.
27018
27019         * omp-low.c (lower_omp_critical): Likewise.
27020
27021         * bitmap.h (struct bitmap_head_def): Update comment to not
27022         reference ggc_alloc.
27023
27024         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
27025
27026         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
27027
27028         * ipa-prop.c (duplicate_ggc_array): Rename to
27029         duplicate_ipa_jump_func_array.  Use typed GC allocation.
27030         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
27031
27032         * gimple.c (gimple_alloc_stat): Use
27033         ggc_alloc_cleared_gimple_statement_d_stat.
27034
27035         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
27036
27037         * tree.c (make_node_stat): Use
27038         ggc_alloc_zone_cleared_tree_node_stat.
27039         (make_tree_vec_stat): Likewise.
27040         (build_vl_exp_stat): Likewise.
27041         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
27042         (make_tree_binfo_stat): Likewise.
27043         (tree_cons_stat): Likewise.
27044
27045         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
27046         (shallow_copy_rtx_stat): Likewise.
27047         (make_node_stat): Likewise.
27048
27049         * lto-symtab.c: Fix comment.
27050
27051         * tree-cfg.c (create_bb): Update comment to not reference
27052         ggc_alloc_cleared.
27053         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
27054
27055         * varpool.c (varpool_node): Use typed GC allocation.
27056         (varpool_extra_name_alias): Likewise.
27057
27058         * varasm.c (emutls_decl): Likewise.
27059         (get_unnamed_section): Likewise.
27060         (get_noswitch_section): Likewise.
27061         (get_section): Likewise.
27062         (get_block_for_section): Likewise.
27063         (build_constant_desc): Likewise.
27064         (create_constant_pool): Likewise.
27065         (force_const_mem): Likewise.
27066
27067         * tree.c (build_vl_exp_stat): Likewise.
27068         (build_real): Likewise.
27069         (build_string): Likewise.
27070         (decl_debug_expr_insert): Likewise.
27071         (decl_value_expr_insert): Likewise.
27072         (type_hash_add): Likewise.
27073         (build_omp_clause): Likewise.
27074
27075         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
27076
27077         * tree-ssa.c (init_tree_ssa): Likewise.
27078
27079         * tree-ssa-structalias.c (heapvar_insert): Likewise.
27080
27081         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
27082
27083         * tree-ssa-loop-niter.c (record_estimate): Likewise.
27084
27085         * tree-ssa-alias.c (get_ptr_info): Likewise.
27086
27087         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
27088
27089         * tree-phinodes.c (allocate_phi_node): Likewise.
27090
27091         * tree-iterator.c (tsi_link_before): Likewise.
27092         (tsi_link_after): Likewise.
27093
27094         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
27095
27096         * tree-dfa.c (create_var_ann): Likewise.
27097
27098         * tree-cfg.c (create_bb): Likewise.
27099
27100         * toplev.c (alloc_for_identifier_to_locale): Likewise.
27101         (general_init): Likewise.
27102
27103         * stringpool.c (stringpool_ggc_alloc): Likewise.
27104         (gt_pch_save_stringpool): Likewise.
27105
27106         * sese.c (if_region_set_false_region): Likewise.
27107
27108         * passes.c (do_per_function_toporder): Likewise.
27109
27110         * optabs.c (set_optab_libfunc): Likewise.
27111         (set_conv_libfunc): Likewise.
27112
27113         * lto-symtab.c (lto_symtab_register_decl): Likewise.
27114
27115         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
27116         (input_eh_region): Likewise.
27117         (input_eh_lp): Likewise.
27118         (make_new_block): Likewise.
27119         (unpack_ts_real_cst_value_fields): Likewise.
27120
27121         * lto-section-in.c (lto_new_in_decl_state): Likewise.
27122
27123         * lto-cgraph.c (input_node_opt_summary): Likewise.
27124
27125         * loop-init.c (loop_optimizer_init): Likewise.
27126
27127         * lambda.h (lambda_vector_new): Likewise.
27128
27129         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
27130
27131         * ira.c (update_equiv_regs): Likewise.
27132
27133         * ipa.c (cgraph_node_set_new): Likewise.
27134         (cgraph_node_set_add): Likewise.
27135         (varpool_node_set_new): Likewise.
27136         (varpool_node_set_add): Likewise.
27137
27138         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
27139         (duplicate_ipa_jump_func_array): Likewise.
27140         (ipa_read_node_info): Likewise.
27141
27142         * ipa-cp.c (ipcp_create_replace_map): Likewise.
27143
27144         * integrate.c (get_hard_reg_initial_val): Likewise.
27145
27146         * gimple.c (gimple_alloc_stat): Likewise.
27147         (gimple_build_omp_for): Likewise.
27148         (gimple_seq_alloc): Likewise.
27149         (gimple_copy): Likewise.
27150
27151         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
27152         (gsi_insert_after_without_update): Likewise.
27153
27154         * function.c (add_frame_space): Likewise.
27155         (insert_temp_slot_address): Likewise.
27156         (assign_stack_temp_for_type): Likewise.
27157         (allocate_struct_function): Likewise.
27158         (types_used_by_var_decl_insert): Likewise.
27159
27160         * except.c (init_eh_for_function): Likewise.
27161         (gen_eh_region): Likewise.
27162         (gen_eh_region_catch): Likewise.
27163         (gen_eh_landing_pad): Likewise.
27164         (add_call_site): Likewise.
27165
27166         * emit-rtl.c (get_mem_attrs): Likewise.
27167         (get_reg_attrs): Likewise.
27168         (start_sequence): Likewise.
27169         (init_emit): Likewise.
27170
27171         * dwarf2out.c (new_cfi): Likewise.
27172         (queue_reg_save): Likewise.
27173         (dwarf2out_frame_init): Likewise.
27174         (new_loc_descr): Likewise.
27175         (find_AT_string): Likewise.
27176         (new_die): Likewise.
27177         (add_var_loc_to_decl): Likewise.
27178         (clone_die): Likewise.
27179         (clone_as_declaration): Likewise.
27180         (break_out_comdat_types): Likewise.
27181         (new_loc_list): Likewise.
27182         (loc_descriptor): Likewise.
27183         (add_loc_descr_to_each): Likewise.
27184         (add_const_value_attribute): Likewise.
27185         (tree_add_const_value_attribute): Likewise.
27186         (add_comp_dir_attribute): Likewise.
27187         (add_name_and_src_coords_attributes): Likewise.
27188         (lookup_filename): Likewise.
27189         (store_vcall_insn): Likewise.
27190         (dwarf2out_init): Likewise.
27191
27192         * dbxout.c (dbxout_init): Likewise.
27193
27194         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
27195
27196         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
27197
27198         * config/score/score7.c (score7_output_external): Likewise.
27199
27200         * config/score/score3.c (score3_output_external): Likewise.
27201
27202         * config/s390/s390.c (s390_init_machine_status): Likewise.
27203
27204         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
27205         (rs6000_init_machine_status): Likewise.
27206         (output_toc): Likewise.
27207
27208         * config/pa/pa.c (pa_init_machine_status): Likewise.
27209         (get_deferred_plabel): Likewise.
27210
27211         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
27212
27213         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
27214
27215         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
27216
27217         * config/mep/mep.c (mep_init_machine_status): Likewise.
27218         (mep_note_pragma_flag): Likewise.
27219
27220         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
27221
27222         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
27223
27224         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
27225
27226         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
27227         (i386_pe_maybe_record_exported_symbol): Likewise.
27228
27229         * config/i386/i386.c (get_dllimport_decl): Likewise.
27230         (ix86_init_machine_status): Likewise.
27231         (assign_386_stack_local): Likewise.
27232
27233         * config/frv/frv.c (frv_init_machine_status): Likewise.
27234
27235         * config/darwin.c (machopic_indirection_name): Likewise.
27236
27237         * config/cris/cris.c (cris_init_machine_status): Likewise.
27238
27239         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
27240
27241         * config/avr/avr.c (avr_init_machine_status): Likewise.
27242
27243         * config/arm/arm.c (arm_init_machine_status): Likewise.
27244
27245         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
27246         (alpha_need_linkage): Likewise.
27247         (alpha_use_linkage): Likewise.
27248
27249         * cgraph.c (cgraph_allocate_node): Likewise.
27250         (cgraph_create_edge_1): Likewise.
27251         (cgraph_create_indirect_edge): Likewise.
27252         (cgraph_add_asm_node): Likewise.
27253
27254         * cfgrtl.c (init_rtl_bb_info): Likewise.
27255
27256         * cfgloop.c (alloc_loop): Likewise.
27257         (rescan_loop_exit): Likewise.
27258
27259         * cfg.c (init_flow): Likewise.
27260         (alloc_block): Likewise.
27261         (unchecked_make_edge): Likewise.
27262
27263         * c-parser.c (c_parse_init): Likewise.
27264         (c_parse_file): Likewise.
27265
27266         * c-decl.c (bind): Likewise.
27267         (record_inline_static): Likewise.
27268         (push_scope): Likewise.
27269         (make_label): Likewise.
27270         (lookup_label_for_goto): Likewise.
27271         (finish_struct): Likewise.
27272         (finish_enum): Likewise.
27273         (c_push_function_context): Likewise.
27274
27275         * bitmap.c (bitmap_element_allocate): Likewise.
27276         (bitmap_gc_alloc_stat): Likewise.
27277
27278         * alias.c (record_alias_subset): Likewise.
27279         (init_alias_analysis): Likewise.
27280
27281 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
27282
27283         * fold-const.c (fold_comparison): Remove redundant parenthesis.
27284         * tree-inline.c (expand_call_inline): Pass translated return value of
27285         cgraph_inline_failed_string to diagnostic function.
27286
27287 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
27288             Shujing Zhao  <pearly.zhao@oracle.com>
27289
27290         PR c/37724
27291         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
27292         implicit bad conversions is initialization.
27293         (error_init): Use gmsgid instead of msgid for argument name and change
27294         the call for error.
27295         (pedwarn_init): Use gmsgid instead of msgid for argument name and
27296         change the call for pedwarn.
27297         (warning_init): Use gmsgid instead of msgid for argument name and
27298         change the call for warning.
27299
27300 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
27301
27302         * config/mips/mips-protos.h (mips_print_operand): Delete.
27303         (mips_print_operand_address): Delete.
27304         * config/mips/mips.h (mips_print_operand_punct): Delete.
27305         (PRINT_OPERAND): Delete.
27306         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
27307         (PRINT_OPERAND_ADDRESS): Delete.
27308         * config/mips/mips.c (mips_print_operand_punct): Make static.
27309         (mips_print_operand_address): Make static.
27310         (mips_print_operand): Make static.  Call
27311         mips_print_operand_punct_valid_p.
27312         (mips_print_operand_punct_valid_p): New function.
27313         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
27314         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
27315
27316 2010-06-07  Jan Hubicka  <jh@suse.cz>
27317
27318         PR middle-end/44454
27319         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
27320         are allocated.
27321
27322 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
27323
27324         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
27325         name of RECORD.
27326
27327 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27328
27329         * doc/sourcebuild.texi (Effective-Target Keywords, Other
27330         attributes): Document gas.
27331
27332 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
27333
27334         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
27335         <TYPE_LEA>: Split instruction.
27336         <default>: Remove alternative 2 handling.
27337         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
27338         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
27339         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
27340
27341         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
27342         (ashift_zext lea splitter): Use DImode for multiplication.
27343
27344         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
27345         to generate addition.
27346
27347 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
27348
27349         * common.opt (fira-verbose): Use Var.
27350         (fpcc-struct-return): Use Init instead of VarExists.
27351         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
27352         toplev.c.
27353         * flags.h (flag_signed_char, flag_short_enums,
27354         flag_pcc_struct_return, flag_ira_verbose,
27355         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
27356         * toplev.c (flag_detailed_statistics, flag_signed_char,
27357         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
27358         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
27359         * toplev.h (flag_crossjumping, flag_if_conversion,
27360         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
27361         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
27362         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
27363         flag_cprop_registers, time_report, flag_ira_loop_pressure,
27364         flag_ira_coalesce, flag_ira_move_spills,
27365         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
27366
27367 2010-06-07  Jan Hubicka  <jh@suse.cz>
27368
27369         * df-core.c (df_analyze_problem): Do verification after allocation.
27370
27371         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
27372         (df_lr_alloc): Initialize problem data; move bitmaps to
27373         lr_bitmaps obstack.
27374         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
27375         (df_lr_verify_solution_start): Do not initialize problem data;
27376         allocate bitmaps in lr_bitmaps.
27377         (df_lr_verify_solution_end): Do not free problem data.
27378
27379 2010-06-07  Jan Hubicka  <jh@suse.cz>
27380
27381         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
27382         if caller is noreturn.
27383         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
27384         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
27385         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
27386         * ipa-pure-const.c (check_decl): Add IPA parameter.
27387         (state_from_flags): New function.
27388         (better_state, worse_state): New functions.
27389         (check_call): When in IPA mode, do not care about callees.
27390         (check_load, check_store): Update.
27391         (check_ipa_load, check_ipa_store): New.
27392         (check_stmt): When in IPA mode, use IPA checkers.
27393         (analyze_function): Use state_from_flags.
27394         (propagate): Check indirect edges and references.
27395
27396 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
27397
27398         PR rtl-optimization/44404
27399         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
27400         of count_occurrences to see if it's safe to modify mem_insn.
27401
27402 2010-06-07  Richard Guenther  <rguenther@suse.de>
27403
27404         * gimplify.c (gimplify_cleanup_point_expr): For empty body
27405         and EH-only cleanup drop the cleanup instead of inserting it
27406         unconditionally.
27407
27408 2010-06-07  Ira Rosen  <irar@il.ibm.com>
27409
27410         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
27411         documentation.
27412         * targhooks.c (default_builtin_vectorization_cost): New function.
27413         * targhooks.h (default_builtin_vectorization_cost): Declare.
27414         * target.h (enum vect_cost_for_stmt): Define.
27415         (builtin_vectorization_cost): Change argument and comment.
27416         * tree-vectorizer.h: Remove cost model macros.
27417         * tree-vect-loop.c: Include target.h.
27418         (vect_get_cost): New function.
27419         (vect_estimate_min_profitable_iters): Replace cost model macros with
27420         calls to vect_get_cost.
27421         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
27422         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
27423         default implementation.
27424         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
27425         calls to target hook builtin_vectorization_cost.
27426         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
27427         Likewise.
27428         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
27429         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
27430         implementation to return costs.
27431         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
27432         * config/spu/spu.h: Remove vectorizer cost model macros.
27433         * config/i386/i386.h: Likewise.
27434         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
27435         a call to target hook builtin_vectorization_cost.
27436
27437 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
27438
27439         PR target/44319
27440         * config/i386/i386.c (override_options): Turn zee pass on for level 2
27441         and above and defer till target is known.
27442         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
27443         turn off otherwise.
27444
27445 2010-05-25  Jan Hubicka  <jh@suse.cz>
27446
27447         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
27448         (df_compact_blocks): Likewise.
27449         * df.h (struct df): Turn hardware_regs_used,
27450         regular_block_artificial_uses, eh_block_artificial_uses,
27451         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
27452         bitmap_head.
27453         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
27454         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
27455         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
27456         df_scan_blocks, df_insn_delete, df_insn_rescan,
27457         df_insn_rescan_debug_internal, df_insn_rescan_all,
27458         df_process_deferred_rescans, df_process_deferred_rescans,
27459         df_notes_rescan, df_get_call_refs, df_get_call_refs,
27460         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
27461         df_record_entry_block_defs, df_record_exit_block_uses,
27462         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
27463         df_scan_verify): Update.
27464
27465 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
27466
27467         PR c++/44188
27468         * c-common.c (is_typedef_decl): Move this definition ...
27469         * tree.c (is_typedef_decl): ... here.
27470         (typdef_variant_p): Move definition here from cp/tree.c.
27471         * c-common.h (is_typedef_decl): Move this declaration ...
27472         * tree.h (is_typedef_decl): ... here.
27473         (typedef_variant_p): Move declaration here from cp/cp-tree.h
27474         * dwarf2out.c (is_naming_typedef_decl): New function.
27475         (gen_tagged_type_die): Split out of ...
27476         (gen_type_die_with_usage): ... this function. When an anonymous
27477         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27478         is emitted for the typedef.
27479         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27480         anonymous tagged types.
27481
27482 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27483
27484         PR c/20000
27485         * c-decl.c (grokdeclarator): Delete warning.
27486
27487 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
27488
27489         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
27490         newly built CALL_EXPR.
27491         * tree-profile.c (tree_profiling): Don't profile functions produced
27492         for built-in stuff.
27493
27494 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
27495
27496         PR bootstrap/44427
27497         PR bootstrap/44428
27498         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
27499         endianness-independent.
27500
27501 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
27502
27503         * c-common.c: Move to c-family/.
27504         * c-common.def: Likewise.
27505         * c-common.h: Likewise.
27506         * c-cppbuiltin.c: Likewise.
27507         * c-dump.c: Likewise.
27508         * c-format.c: Likewise.
27509         * c-format.h : Likewise.
27510         * c-gimplify.c: Likewise.
27511         * c-lex.c: Likewise.
27512         * c-omp.c: Likewise.
27513         * c.opt: Likewise.
27514         * c-opts.c: Likewise.
27515         * c-pch.c: Likewise.
27516         * c-ppoutput.c: Likewise.
27517         * c-pragma.c: Likewise.
27518         * c-pragma.h: Likewise.
27519         * c-pretty-print.c: Likewise.
27520         * c-pretty-print.h: Likewise.
27521         * c-semantics.c: Likewise.
27522         * stub-objc.c: Likewise.
27523
27524         * gengtype.c (get_file_langdir): Special-case files in c-family/.
27525         (get_output_file_with_visibility): Fix name for c-common.h.
27526         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
27527
27528         * c-tree.h: Update include path for moved files.
27529         * c-lang.c: Likewise.
27530         * c-lang.h: Likewise.
27531         * c-parser.c: Likewise.
27532         * c-convert.c: Likewise.
27533         * c-decl.c: Likewise.
27534         * c-objc-common.c: Likewise.
27535         * configure.ac: Make sure c-family/ exists in the build directory.
27536         * configure: Regenerate.
27537         * Makefile.in: Update paths for moved files.  Regroup files per
27538         location and update dependencies.  Move generated_files down after
27539         ALL_GTFILES_H.
27540
27541         * config/spu/spu-c.c: Update paths for moved files.
27542         * config/mep/mep-pragma.c: Likewise.
27543         * config/darwin-c.c: Likewise.
27544         * config/i386/msformat-c.c: Likewise.
27545         * config/i386/i386-c.c: Likewise.
27546         * config/avr/avr-c.c: Likewise.
27547         * config/sol2-c.c: Likewise.
27548         * config/ia64/ia64-c.c: Likewise.
27549         * config/rs6000/rs6000-c.c: Likewise.
27550         * config/arm/arm.c: Likewise.
27551         * config/arm/arm-c.c: Likewise.
27552         * config/h8300/h8300.c: Likewise.
27553         * config/v850/v850-c.c: Likewise.
27554
27555         * config/t-darwin: Fix dependencies for moved files.
27556         * config/t-sol2: Fix dependencies for moved files.
27557         * config/mep/t-mep: Fix dependencies for moved files.
27558         * config/ia64/t-ia64: Fix dependencies for moved files.
27559         * config/rs6000/t-rs6000: Fix dependencies for moved files.
27560         * config/v850/t-v850: Fix dependencies for moved files.
27561         * config/v850/t-v850e: Fix dependencies for moved files.
27562
27563         * config/m32c/m32c-pragma.c
27564
27565         * po/exgettext: Look in c-family/ also.
27566
27567 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
27568
27569         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
27570         (mark_control_dependent_edges_necessary): Call it instead of marking
27571         the last statement manually.
27572         (propagate_necessity): Likewise.
27573
27574 2010-06-05  Jan Hubicka  <jh@suse.cz>
27575
27576         * basic-block.h (compute_dominance_frontiers): Updated.
27577         (compute_idf): Likewise.
27578
27579         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
27580         for dominance frontiers.
27581         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
27582         (insert_updated_phi_nodes_for): Likewise.
27583         (update_ssa): Likewise.
27584         * cfganal.c (compute_dominance_frontiers_1): Likewise.
27585         (compute_dominance_frontiers): Likewise.
27586         (compute_idf): Likewise.
27587         * df-problems.c (df_md_local_compute): Likewise.
27588
27589 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
27590
27591         * target.h (struct gcc_target): Add memory_move_cost field.
27592         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
27593         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
27594         * targhooks.c (default_memory_move_cost): New function.
27595         * targhooks.h (default_memory_move_cost): Declare function.
27596         * reload.h (memory_move_cost): Declare.
27597         (memory_move_secondary_cost): Change type of 'in' argument to bool.
27598         * reginfo.c (memory_move_cost): New function.
27599         (memory_move_secondary_cost): Change type of 'in' argument to bool.
27600         * ira.h (ira_memory_move_cost): Update comment.
27601         * ira.c (ira_memory_move_cost): Update comment.
27602         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
27603         with memory_move_cost.
27604         * postreload.c (reload_cse_simplify_set): (Ditto.).
27605         * reload1.c (choose_reload_regs): (Ditto.).
27606         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
27607         (MEMORY_MOVE_COST):  Revise documentation.
27608
27609         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
27610         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
27611         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
27612         type of 'in' argument to bool.
27613         (TARGET_MEMORY_MOVE_COST): Define.
27614
27615 2010-06-05  Jan Hubicka  <jh@suse.cz>
27616
27617         * ipa-pure-const.c (propagate): Fix typo in handling of functions
27618         that cannot return.  Be more careful when merging the results with
27619         previously known ones.
27620
27621 2010-06-05  Matthias Klose  <doko@ubuntu.com>
27622
27623         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
27624         function to add the -iplugindir option.
27625         (find_plugindir_spec_function): Add new declaration and function.
27626         (static_spec_func): Use it for "find-plugindir".
27627
27628 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
27629
27630         PR c++/44361
27631         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
27632         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
27633         statement expression.
27634
27635 2010-06-05  Jan Hubicka  <jh@suse.cz>
27636
27637         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
27638         (df_rd_problem_data): Convert sparse_invalidated_by_call,
27639         dense_invalidated_by_call to bitmap head.
27640         (df_rd_alloc, df_rd_bb_local_compute_process_def,
27641         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
27642         df_rd_start_dump, df_lr_verify_transfer_functions,
27643         df_live_verify_transfer_functions, df_chain_create_bb,
27644         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
27645         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
27646         df_simulate_one_insn_forwards, df_md_alloc,
27647         df_md_bb_local_compute_process_def,
27648         df_md_bb_local_compute_process_def, df_md_local_compute,
27649         df_md_transfer_function df_md_free): Update.
27650
27651 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
27652
27653         PR c/44322
27654         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
27655         target type for ADDR_EXPR; require no changes to qualifiers except
27656         for function types.
27657         * c-tree.h (c_build_type_variant): Remove.
27658
27659 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
27660
27661         * genautomata.c (get_excl_set): Do work per element, not per char.
27662         (check_presence_pattern_sets): Similar.
27663         (check_absence_pattern_sets): Similar.
27664
27665 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
27666
27667         * genautomata.c (curr_state_pass_num): Delete.
27668         (min_issue_delay_pass_states): Delete.
27669         (min_issue_delay): Delete.
27670         (initiate_min_issue_delay_pass_states): Delete.
27671         (output_min_issue_delay_table): Compute min_issue_delay_vect
27672         using a breadth-first search variant.
27673         (output_tables): Don't call initiate_min_issue_delay_pass_states.
27674
27675 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
27676
27677         PR boostrap/44421
27678         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
27679         (df_byte_lr_bb_local_compute): Likewise.
27680
27681 2010-06-03  Jason Merrill  <jason@redhat.com>
27682
27683         Implement noexcept operator (5.3.7)
27684         * c-common.c (c_common_reswords): Add noexcept.
27685         * c-common.h (enum rid): Add RID_NOEXCEPT.
27686
27687 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
27688
27689         * config/darwin-driver.c (darwin_default_min_version): Use
27690         GCC-specific formats in diagnostics.
27691         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
27692         diagnostics.
27693         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
27694         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
27695         eval_spec_function, handle_braces, process_brace_body, main,
27696         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
27697         getenv_spec_function, compare_version_strings,
27698         version_compare_spec_function): Use GCC-specific formats in
27699         diagnostics.
27700
27701 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
27702
27703         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
27704         that operand 0 and operand 1 are equal.
27705         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
27706         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
27707         and operand 1 are equal.
27708         <default>: Ditto.  Remove ??? comment.
27709         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
27710         and operand 1 are equal.
27711         <default>: Ditto.  Remove ??? comment.
27712         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
27713         are equal.
27714         (*add<mode>_4) <default>: Ditto.
27715         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
27716
27717 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
27718
27719         * config/i386/i386-protos.h (ix86_print_operand): Declare.
27720         * config/i386/i386.c (ix86_print_operand): Make non-static.
27721         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
27722         * output.h (output_operand): Declare.
27723         * final.c (output_operand): Make non-static.
27724
27725 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
27726
27727         PR rtl-optimization/44013
27728         * sched-deps.c (add_dependence_list_and_free): Don't free lists
27729         when processing debug insns.
27730
27731         PR debug/41371
27732         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
27733         recursing.  Check that recursion is bounded.  Rename inner var
27734         to avoid hiding incoming argument.
27735
27736 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
27737
27738         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
27739         operands[2] == 255.
27740         (*addqi_3): Ditto.
27741         (*addqi_4): Ditto.
27742         (*addqi_5): Ditto.
27743         (*addqi_ext_1_rex64): Ditto.
27744         (*addqi_ext_1): Ditto.
27745
27746         (*addqi_4): Check for incdec_operand in QImode.
27747
27748         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
27749         using SWI mode iterator.
27750         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
27751         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
27752         mode iterator.
27753         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
27754         using SWI mode iterator.
27755
27756 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27757
27758         PR c/25880
27759         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
27760         * c-format.c (gcc_diag_flag_specs): Add hash.
27761         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
27762         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
27763         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
27764         pp_c_cv_qualifiers. Handle qualifiers spelling here.
27765         (pp_c_type_qualifier_list): Call the function above.
27766         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
27767         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
27768         (WARN_FOR_QUALIFIERS): New macro.
27769         (convert_for_assignment): Use it.
27770
27771 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
27772
27773         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
27774
27775 2010-06-04  Jan Hubicka  <jh@suse.cz>
27776
27777         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
27778         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
27779         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
27780         DF_BYTE_LR_OUT): Update for embedded bitmaps.
27781         * fwprop.c (single_def_use_enter_block): Likewise.
27782         * ddg.c (create_ddg_dep_from_intra_loop_link,
27783         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
27784         * loop-iv.c (latch_dominating_def): Likewise.
27785         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
27786         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
27787         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
27788         df_rd_transfer_function, df_rd_top_dump,
27789         df_rd_bottom_dump): Update.
27790         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
27791         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
27792         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
27793         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
27794         df_lr_verify_solution_start, df_lr_verify_solution_end,
27795         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
27796         df_live_free_bb_info, df_live_alloc, df_live_reset,
27797         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
27798         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
27799         df_live_verify_solution_start, df_live_verify_solution_end,
27800         df_live_verify_transfer_functions, df_chain_create_bb,
27801         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
27802         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27803         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
27804         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
27805         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
27806         df_byte_lr_transfer_function, df_byte_lr_top_dump,
27807         df_byte_lr_bottom_dump, df_create_unused_note,
27808         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
27809         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
27810         df_md_transfer_function, df_md_init, df_md_confluence_0,
27811         df_md_confluence_n,
27812         df_md_top_dump, df_md_bottom_dump): Update.
27813         (struct df_lr_problem_data): Embedd bitmap headers.
27814
27815 2010-06-04  Jan Hubicka  <jh@suse.cz>
27816
27817         * dce.c (dce_process_block): Do not re-scan already marked
27818         instructions.
27819
27820 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
27821
27822         PR rtl-optimization/39871
27823         PR rtl-optimization/40615
27824         PR rtl-optimization/42500
27825         PR rtl-optimization/42502
27826         * ira.c (init_reg_equiv_memory_loc: New function.
27827         (ira): Call it twice.
27828         * reload.h (calculate_elim_costs_all_insns): Declare.
27829         * ira-costs.c: Include "reload.h".
27830         (regno_equiv_gains): New static variable.
27831         (init_costs): Allocate it.
27832         (finish_costs): Free it.
27833         (ira_costs): Call calculate_elim_costs_all_insns.
27834         (find_costs_and_classes): Take estimated elimination costs
27835         into account.
27836         (ira_adjust_equiv_reg_cost): New function.
27837         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
27838         * reload1.c (init_eliminable_invariants, free_reg_equiv,
27839         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
27840         (elim_bb): New static variable.
27841         (reload): Move code out of here into init_eliminable_invariants and
27842         free_reg_equiv.  Call them.
27843         (calculate_elim_costs_all_insns): New function.
27844         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
27845         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
27846         but call note_reg_elim_costly if we turned a valid memory address
27847         into an invalid one.
27848         * Makefile.in (ira-costs.o): Depend on reload.h.
27849
27850 2010-06-04  Julian Brown  <julian@codesourcery.com>
27851
27852         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
27853         for pool ranges.
27854
27855 2010-06-04  Richard Guenther  <rguenther@suse.de>
27856
27857         PR lto/41584
27858         * cgraph.h (struct varpool_node): Add lto_file_data field.
27859         * lto-cgraph.c (input_varpool_node): Initialize it.
27860
27861 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
27862
27863         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
27864         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
27865         predicate in "type" attribute calculation.
27866         (*addsi_1_zext): Ditto.
27867         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
27868         (*addsi_2_zext): Ditto.
27869         (*add<mode>_3): Ditto.
27870         (*addsi_3_zext): Ditto.
27871         (*add<mode>_5): Ditto.
27872
27873 2010-06-03  Jan Hubicka  <jh@suse.cz>
27874
27875         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
27876         of bitmap_bit_p.
27877         * cfganal.c (compute_dominance_frontiers_1): Likewise.
27878
27879 2010-06-03  Jan Hubicka  <jh@suse.cz>
27880
27881         * df-problems.c (df_create_unused_note, df_note_bb_compute):
27882         micro-optimize the checks when to add new note.
27883
27884 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
27885
27886         * final.c (output_asm_insn): Call
27887         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
27888         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
27889         (output_address): Call targetm.asm_out.print_operand_address.
27890         Update comments.
27891         * target.h (struct gcc_target): Add print_operand,
27892         print_operand_address, and print_operand_punct_valid_p fields.
27893         * targhooks.h (default_print_operand): Declare.
27894         (default_print_operand_address): Declare.
27895         (default_print_operand_punct_valid_p): Declare.
27896         * targhooks.c (default_print_operand): Define.
27897         (default_print_operand_address): Define.
27898         (default_print_operand_punct_valid_p): Define.
27899         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
27900         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
27901         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
27902         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
27903         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
27904         * vmsdbgout.c (addr_const_to_string): Update comment.
27905         * config/i386/i386.c (print_operand): Rename to...
27906         (ix86_print_operand): ...this.  Make static.
27907         (print_operand_address): Rename to...
27908         (ix86_print_operand_address): ...this.  Make static.  Call
27909         ix86_print_operand instead of PRINT_OPERAND.
27910         (ix86_print_operand_punct_valid_p): New function.
27911         (TARGET_PRINT_OPERAND): Define.
27912         (TARGET_PRINT_OPERAND_ADDRESS): Define.
27913         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
27914         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
27915         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
27916         (PRINT_OPERAND): Delete.
27917         (PRINT_OPERAND_ADDRESS): Delete.
27918         * config/i386/i386-protos.h (print_operand): Delete prototype.
27919         (print_operand_address): Delete prototype.
27920
27921 2010-06-03  Richard Guenther  <rguenther@suse.de>
27922
27923         PR tree-optimization/44403
27924         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27925         Preserve pointer qualifiers.
27926         (vect_create_data_ref_ptr): Likewise.
27927
27928 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
27929
27930         PR c++/44294
27931         * defaults.h (MAX_FIXED_MODE_SIZE): New.
27932
27933         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
27934
27935 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
27936
27937         PR debug/44375
27938         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
27939         return false if merging the bbs would lead to goto_locus
27940         location being lost from the IL.
27941
27942 2010-06-03  Jan Hubicka  <jh@suse.cz>
27943             Jakub Jelinek  <jakub@redhat.com>
27944
27945         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
27946         set->regs[i] is NULL or has just one entry.
27947
27948 2010-06-03  Jan Hubicka  <jh@suse.cz>
27949
27950         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
27951         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
27952
27953 2010-06-03  Paul Brook  <paul@codesourcery.com>
27954
27955         * config/arm/arm.c (FL_TUNE): Define.
27956         (arm_default_cpu, arm_cpu_select): Remove.
27957         (all_cores): Populate core field.
27958         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
27959         (arm_find_cpu): New function.
27960         (arm_handle_option): Lookup cpu/architecture names.
27961         (arm_override_options): Cleanup mcpu/march/mtune handling.
27962         (arm_file_start): Ditto.
27963
27964 2010-06-03  Alan Modra  <amodra@gmail.com>
27965
27966         PR target/44169
27967         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
27968         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
27969         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
27970         (rs6000_emit_load_toc_table): Likewise.
27971
27972 2010-06-02  Jan Hubicka  <jh@suse.cz>
27973
27974         * passes.c (init_optimization_passes): Put ipa reference
27975         after ipa pure-const.
27976
27977 2010-06-02  Jan Hubicka  <jh@suse.cz>
27978
27979         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
27980         calls_read_all and calls_write_all.
27981         (get_reference_optimization_summary): Fix formatting.
27982         (is_proper_for_analysis): Check that decl is not readonly.
27983         (propagate_bits): Check CONST/PURE/noreturn flags.
27984         (ipa_init): Move all_module_statics to optimization_summary_obstack.
27985         (analyze_function): Ignore indirect edges.
27986         (copy_global_bitmap): For all module statics, do nothing.
27987         (generate_summary): Do not print calls_read_all/calls_write_all.
27988         (read_write_all_from_decl): Take node as argument; check
27989         cgraph_node_cannot_return.
27990         (propagate): Reorganize read_all/write_all computation;
27991         check indirect edges; check ecf flags; use all_module_statics
27992         in the results; do not free all_module_statics.
27993         (stream_out_bitmap): Handle all_module_statics.
27994         (ipa_reference_write_optimization_summary): Likewise; use
27995         varpool/cgraph encoders to get boundaries.
27996         (ipa_reference_read_optimization_summary): Read in all_module_statics;
27997         use it when possible.
27998
27999 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28000
28001         PR target/44218
28002         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
28003         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
28004
28005         * doc/extend.texi (powerpc builtins): Document vec_recip,
28006         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
28007
28008         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
28009         (rs6000_emit_swrsqrt): Ditto.
28010         (rs6000_emit_swdivsf): Delete.
28011         (rs6000_emit_swdivdf): Ditto.
28012         (rs6000_emit_swrsqrtsf): Ditto.
28013
28014         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
28015         describe the reciprocal estimate support for each type.
28016         (recip_options): Map -mrecip=<opt> into option bits.
28017         (gen_2arg_fn_t): New typedef for binary rtx gen function.
28018         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
28019         reciprocal estimate instructions.
28020         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
28021         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
28022         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
28023         cost information if -mdebug=cost or -mdebug=reg.
28024         (rs6000_override_options): Set -mrecip-precision for power6, and
28025         power7 machines.  If -mvsx or -mdfp, enable various options that
28026         came in previous instruction set ISAs, unless the option was
28027         explicitly disabled by the command line option.  Parse
28028         -mrecip=<opt> options.
28029         (rs6000_builtin_vectorized_function): Add support for vectorizing
28030         the reciprocal estimate builtins and expansions.
28031         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
28032         (bdesc_2arg): Add reciprocal estimate builtins.
28033         (bdesc_1arg): Add reciprocal square root estimate builtins.
28034         (rs6000_expand_builtin): Rewrite to use a switch statement,
28035         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
28036         (rs6000_init_builtins): Create declarations for reciprocal
28037         estimate builtins.
28038         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
28039         sized, prefer traditional floating point registers, if integer
28040         vector types, prefer altivec registers.  Don't actually look at
28041         the memory address any more.
28042         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
28043         builtins.
28044         (rs6000_load_constant_and_splat): New helper function to load up
28045         the constant for reciprocal estimate instructions.
28046         (rs6000_emit_madd): New helper function for generating
28047         multiply/add type instructions, based on the current switches.
28048         (rs6000_emit_msub): Ditto.
28049         (rs6000_emit_mnsub): Ditto.
28050         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
28051         replace a divide with a reciprocal estimate and fixup, adding
28052         support for machines with high precision and vectors.
28053         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
28054         low precision machines.
28055         (rs6000_emit_swdiv): New common function to be called to replace a
28056         division with reciprocal estimate and fixup.
28057         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
28058         for double and vector types.  Add support for high precision machines.
28059
28060         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
28061         the reciprocal estimate instructions can be generated.
28062         (TARGET_FRE): Ditto.
28063         (TARGET_FRSQRTES): Ditto.
28064         (TARGET_FRSQRTE): Ditto.
28065         (RS6000_RECIP_*): New macros for reciprocal estimate support.
28066
28067         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
28068         square root estimate on vectors.
28069         (re<mode>2): New insn for reciprocal division estimate on vectors.
28070
28071         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
28072         New builtin.
28073         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
28074         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
28075         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
28076         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
28077         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
28078         (RS6000_BUILTIN_RSQRT): Ditto.
28079         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
28080         floating point builtin.
28081
28082         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
28083         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
28084         __RECIP_PRECISION__ based on the command line switches.
28085         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
28086
28087         * config/rs6000/rs6000.opt (-mrecip): Document add support for
28088         replacing division instructions with reciprocal estimate and fixup.
28089         (-mrecip=<opt>): New option.
28090         (-mrecip-precision): Ditto.
28091
28092         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
28093         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
28094         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
28095         precision scalar.
28096
28097         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
28098         (UNSPEC_VREFP): Ditto.
28099         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
28100         conterparts with regard to support of -mno-fused-madd and -ffast-math.
28101         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
28102         reciprocal estimate instructions to be generated.
28103         (altivec_vrefp): Ditto.
28104
28105         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
28106         estimate support.
28107         (rreg): New mode attribute for reciprocal estimate support.
28108         (recip<mode>3): New insn for division using reciprocal estimate
28109         and fixup builtins.
28110         (divide define_split): New define_split to convert floating point
28111         division to use reciprocal estimate if the user used the
28112         appropriate options and the split is run when we can add new
28113         pseudo registers for the fixup.
28114         (rsqrt<mode>2): New insn for reciprocal square root support.
28115         (recipsf3): Move into recip<mode>3.
28116         (recipdf3): Ditto.
28117         (fres): Use TARGET_FRES.
28118         (rsqrtsf2): Move into rsqrt<mode>2.
28119         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
28120         (copysignsf3): Add support for VSX.
28121         (fred): Use TARGET_FRE.
28122         (fred_fpr): Ditto.
28123         (rsqrtdf_internal1): New function for frsqrte instruciton.
28124
28125         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
28126         (vec_rsqrt): Ditto.
28127
28128 2010-06-03  Richard Guenther  <rguenther@suse.de>
28129
28130         PR middle-end/44291
28131         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
28132         (set_user_assembler_libfunc): Likewise.
28133
28134 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
28135
28136         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
28137         defaults.h.
28138         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
28139         to defaults.h
28140         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
28141         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
28142         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
28143         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
28144         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
28145         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
28146         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
28147         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
28148         * defaults.h: Updated for above mentioned changes.
28149
28150 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
28151
28152         * c-common.c: Remove header include of tm_p.h.
28153         * Makefile.in (c-common.o): Remove TM_P_H dependency.
28154
28155 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
28156
28157         * tree.h (struct tree_decl_map): New type.
28158         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
28159         (tree_decl_map_hash): New prototype.
28160         (debug_expr_for_decl, value_expr_for_decl): Change into
28161         tree_decl_map hashtab from tree_map.
28162         (init_ttree): Adjust initialization.
28163         (tree_decl_map_hash): New function.
28164         (decl_debug_expr_lookup, decl_debug_expr_insert,
28165         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
28166
28167 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28168
28169         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
28170         linker emulations.
28171         * configure: Regenerate.
28172         * config.in: Regenerate.
28173
28174         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
28175         (X86_64_EMULATION): Define.
28176         (TARGET_LD_EMULATION): Use them.
28177
28178         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
28179         (SPARC64_EMULATION): Define.
28180         (LINK_ARCH_SPEC): Use them.
28181
28182 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
28183
28184         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
28185         smallest_mode_for_size for computing the precision types of new
28186         graphite IVs.  Do not call lang_hooks.types.type_for_size.
28187
28188 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
28189
28190         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
28191         information.
28192         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
28193
28194 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
28195
28196         PR middle-end/44363
28197         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
28198         return false instead.
28199
28200 2010-06-02  Jan Hubicka  <jh@suse.cz>
28201
28202         PR middle-end/44295
28203         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
28204         create new cgraph node to check callee.
28205
28206 2010-06-02  Richard Guenther  <rguenther@suse.de>
28207
28208         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
28209
28210 2010-06-02  Richard Guenther  <rguenther@suse.de>
28211
28212         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
28213         (lto_wrapper_cleanup): ... this.  Do not exit.
28214         (fatal): Adjust.  Exit here.
28215         (fatal_perror): Likewise.
28216         (fatal_signal): New function.
28217         (main): Set up signal handlers to cleanup temporary files.
28218         * Makefile.in (lto-wrapper.o): Adjust dependencies.
28219
28220 2010-06-02  Richard Guenther  <rguenther@suse.de>
28221
28222         PR tree-optimization/44377
28223         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
28224
28225 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28226
28227         * config/s390/2097.md (z10_fhex): Remove insn reservation.
28228         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
28229         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
28230         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
28231         instruction.
28232         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
28233
28234 2010-06-02  Jan Hubicka  <jh@suse.cz>
28235
28236         * bitmap.c (bitmap_descriptor): Add search_iter.
28237         (bitmap_find_bit): Increment it.
28238         (print_statistics): Print it.
28239
28240 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
28241
28242         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
28243         instead of gimple_build_call_vec.  Delete unnecessary local variable.
28244
28245 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
28246
28247         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
28248         change from yesterday.
28249
28250 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
28251
28252         * c-ada-spec.c: Clean up redundant includes.
28253
28254 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
28255
28256         * gimplify.c: Do not include except.h and optabs.h.
28257         (gimplify_body): Do not initialize RTL profiling.
28258         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
28259         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
28260         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
28261         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
28262         langhooks.h.
28263
28264         * tree-pretty-print.h: Include pretty-print.h.
28265         * gimple-pretty-print.h: Include pretty-print.h.
28266
28267         * tree-pretty-print.c: Do not include diagnostic.h.
28268         * tree-vrp.c: Likewise.
28269         * tree-tailcall.c: Likewise
28270         * tree-scalar-evolution.c: Likewise
28271         * tree-ssa-dse.c: Likewise
28272         * tree-chrec.c: Likewise
28273         * tree-ssa-sccvn.c: Likewise
28274         * tree-ssa-copyrename.c: Likewise
28275         * tree-nomudflap.c: Likewise
28276         * tree-call-cdce.c: Likewise
28277         * tree-stdarg.c: Likewise
28278         * tree-ssa-math-opts.c: Likewise
28279         * tree-nrv.c: Likewise
28280         * tree-ssa-sink.c: Likewise
28281         * tree-browser.c: Likewise
28282         * tree-ssa-loop-ivcanon.c: Likewise
28283         * tree-ssa-loop.c: Likewise
28284         * tree-parloops.c: Likewise
28285         * tree-ssa-address.c: Likewise
28286         * tree-ssa-ifcombine.c: Likewise
28287         * tree-if-conv.c: Likewise
28288         * tree-data-ref.c: Likewise
28289         * tree-affine.c: Likewise
28290         * tree-ssa-phiopt.c: Likewise
28291         * tree-ssa-coalesce.c: Likewise
28292         * tree-ssa-pre.c: Likewise
28293         * tree-ssa-live.c: Likewise
28294         * tree-predcom.c: Likewise
28295         * tree-ssa-forwprop.c: Likewise
28296         * tree-ssa-dce.c: Likewise
28297         * tree-ssa-ter.c: Likewise
28298         * tree-ssa-loop-prefetch.c: Likewise
28299         * tree-optimize.c: Likewise
28300         * tree-ssa-phiprop.c: Likewise
28301         * tree-object-size.c: Likewise
28302         * tree-outof-ssa.c: Likewise
28303         * tree-ssa-structalias.c: Likewise
28304         * tree-switch-conversion.c: Likewise
28305         * tree-ssa-reassoc.c: Likewise
28306         * tree-ssa-operands.c: Likewise
28307         * tree-vectorizer.c: Likewise
28308         * tree-vect-data-refs.c: Likewise
28309         * tree-vect-generic.c: Likewise
28310         * tree-vect-stmts.c: Likewise
28311         * tree-vect-patterns.c: Likewise
28312         * tree-vect-slp.c: Likewise
28313         * tree-vect-loop.c: Likewise
28314         * tree-ssa-loop-ivopts.c: Likewise
28315         * tree-ssa-loop-im.c: Likewise
28316         * tree-ssa-loop-niter.c: Likewise
28317         * tree-ssa-loop-unswitch.c: Likewise
28318         * tree-ssa-loop-manip.c: Likewise
28319         * tree-ssa-loop-ch.c: Likewise
28320         * tree-dump.c: Likewise
28321         * tree-complex.c: Likewise
28322
28323         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
28324         * tree-ssa-uninit.c: Likewise
28325         * tree-ssa-threadupdate.c: Likewise
28326         * tree-ssa-uncprop.c: Likewise
28327         * tree-ssa-ccp.c: Likewise
28328         * tree-ssa-dom.c: Likewise
28329         * tree-ssa-propagate.c: Likewise
28330         * tree-ssa-alias.c: Likewise
28331         * tree-dfa.c: Likewise
28332         * tree-cfgcleanup.c: Likewise
28333         * tree-sra.c: Likewise
28334         * tree-ssa-copy.c: Likewise
28335         * tree-ssa.c: Likewise
28336         * tree-profile.c: Likewise
28337         * tree-cfg.c: Likewise
28338         * tree-ssa-threadedge.c: Likewise
28339         * tree-vect-loop-manip.c: Likewise
28340
28341         * tree-inline.c: Do not include diagnostic.h and expr.h.
28342         Include rtl.h.
28343         (copy_decl_for_dup_finish): Do not use NULL_RTX.
28344
28345         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
28346         * tree-loop-distribution.c: Likewise.
28347
28348 2010-06-01  Jan Hubicka  <jh@suse.cz>
28349
28350         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
28351
28352 2010-06-01  Jan Hubicka  <jh@suse.cz>
28353
28354         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
28355         remove return value.
28356         (split_bbs_on_noreturn_calls) .... here.
28357         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
28358         * tree-flow.h (fixup_noreturn_call): New.
28359
28360 2010-06-01  Jan Hubicka  <jh@suse.cz>
28361
28362         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
28363
28364 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
28365
28366         * tree.h (build_nt_call_list): Delete.
28367         * tree.c (build_nt_call_list): Delete.
28368
28369 2010-06-01  Jan Hubicka  <jh@suse.cz>
28370
28371         * fwprop.c: Make emit-rtl.h include last.
28372         * rtlanal.c: Include emit-rtl.h.
28373         * genautomata.c: Output emit-rtl include into insn-automata.c
28374         * df-scan.c: Include emit-rtl.h.
28375         * haifa-sched.c: Indlude emit-rtl.h.
28376         * mode-switching.c: Indlude emit-rtl.h.
28377         * graph.c: Indlude emit-rtl.h.
28378         * sel-sched.c: Include emit-rtl.h.
28379         * sel-sched-ir.c: Include emit-rtl.h.
28380         * ira-build.c: Include emit-rtl.h.
28381         * emit-rtl.c (first_insn, last_insn): Remove defines.
28382         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
28383         Move to emit-rtl.h.
28384         (set_new_first_and_last_insn, get_last_insn_anywhere,
28385         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
28386         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
28387         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
28388         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
28389         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
28390         Use accessor functions.
28391         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
28392          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
28393         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
28394         mem_expr_equal_p): Move here from rtl.h.
28395         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
28396         Move here from emit-rtl.c; make inline.
28397         * cfglayout.h: Include emit-rtl.h.
28398         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
28399          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
28400         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
28401         mem_expr_equal_p, get_insns, set_first-insn,
28402         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
28403         * reg-stack.c: Include emit-rtl.h.
28404         * dce.c: Likewise.
28405
28406 2010-06-01  Jan Hubicka  <jh@suse.cz>
28407
28408         * cgraph.h (tree_function_versioning): Update prototype.
28409         (cgraph_function_versioning): Update prototype.
28410         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
28411         bitmap.
28412         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
28413         (cgraph_materialize_clone, save_inline_function_body): Update use of
28414         tree_function_versioning.
28415         * tree-inline.c (copy_bb): Look for previous copied block to link
28416         after; fix debug output.
28417         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
28418         (copy_body): Likewise.
28419         (expand_call_inline): Update use of copy_body.
28420         (tree_function_versioning): Update use of copy body; accept
28421         blocks_to_copy and new_entry.
28422
28423 2010-06-01  Jan Hubicka  <jh@suse.cz>
28424
28425         * gegenrtl.c: Remove unnecesary prototypes.
28426         (gendecl): Remove.
28427         (gendef): Produce static inline.
28428         (gencode): Remove.
28429         (main): Do not decode parameters; generate header only.
28430         * Makefile.in (genrtl.c): Remove.
28431
28432 2010-06-01  Jan Hubicka  <jh@suse.cz>
28433
28434         * tree-switch-conversion.c (build_one_array): Make it readonly.
28435
28436 2010-06-01  Richard Guenther  <rguenther@suse.de>
28437
28438         * optabs.c (init_optabs): Guard all accesses to reinit.
28439         * ipa-pure-const.c (propagate): Fix another typo.
28440         * opts.c (common_handle_option): Split assignment to bool.
28441         * c-opts.c (c_common_handle_option): Likewise.
28442
28443 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
28444             Matthew Gingell  <gingell@adacore.com>
28445
28446         * doc/invoke.texi: Mention -fdump-ada-spec.
28447         * tree-dump.c (dump_files): Add ada-spec.
28448         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
28449         * tree-pass.h (tree_dump_index): Add TDI_ada.
28450         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
28451         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
28452         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
28453         * c-decl.c: Include c-ada-spec.h.
28454         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
28455         functions.
28456         (c_write_global_declarations): Add handling of -fdump-ada-spec.
28457         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
28458         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
28459         * c-ada-spec.h, c-ada-spec.c: New files.
28460
28461 2010-06-01  Richard Guenther  <rguenther@suse.de>
28462
28463         PR lto/43853
28464         * ipa-pure-const.c (get_function_state): Hand back varying state
28465         if we do not have one.
28466         (has_function_state): New function.
28467         (duplicate_node_data): Adjust.
28468         (remove_node_data): Likewise.
28469         (pure_const_write_summary): Likewise.
28470         (propagate): Likewise.  Fix typo.
28471
28472 2010-06-01  Jan Hubicka  <jh@suse.cz>
28473
28474         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
28475         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
28476         (execute_all_ipa_transforms): Do not play with the states.
28477
28478 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
28479
28480         * config/arm/t-linux-androideabi: New.
28481         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
28482
28483 2010-06-01  Jan Hubicka  <jh@suse.cz>
28484
28485         * tree-inline.c (estimate_num_insns): For stdarg functions look
28486         into call statement to count cost of argument passing.
28487
28488 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
28489
28490         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
28491         argument for fprintf.
28492         (ix86_output_addr_diff_elt): Likewise.
28493         (x86_function_profiler): Likewise.
28494         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
28495         (LPREFIX): Likewise.
28496         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
28497
28498 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
28499
28500         PR target/44338
28501         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
28502         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
28503         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
28504         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
28505         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
28506         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
28507         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
28508         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
28509         TARGET_FUSED_MADD.
28510
28511 2010-05-31  Jan Hubicka  <jh@suse.cz>
28512
28513         * tree.h (tree_range_check_failed): Declare noreturn.
28514
28515 2010-05-31  Jan Hubicka  <jh@suse.cz>
28516
28517         * gimple.c (gimple_call_builtin_p): New function.
28518         * gimple.h (gimple_call_builtin_p): Declare.
28519         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
28520         to exit.
28521         (execute_warn_function_return): BUILT_IN_RETURN is return.
28522         (split_critical_edges): Return edges are not critical.
28523         (is_ctrl_altering_stmt): Builtin_in_return is altering.
28524         (gimple_verify_flow_info): Handle built_in_return.
28525         (execute_warn_function_return): Handle built_in_return.
28526         * ipa-pure-const.c (check_call): Ignore builtin_return.
28527
28528 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
28529
28530         PR middle-end/44337
28531         * expr.c (expand_assignment): Don't store anything for out-of-bounds
28532         array accesses with non-MEM.
28533
28534         PR tree-optimization/44182
28535         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
28536         newly needs to end a bb is followed by debug stmts, instead return
28537         true from the function at the end.
28538         (maybe_move_debug_stmts_to_successors): New function.
28539         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
28540
28541 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
28542
28543         PR target/44161
28544         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
28545
28546 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
28547
28548         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
28549         for nested functions in non-optimized compilation.
28550
28551 2010-05-31  Richard Guenther  <rguenther@suse.de>
28552
28553         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
28554
28555 2010-05-30  Jan Hubicka  <jh@suse.cz>
28556
28557         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
28558
28559 2010-05-30  Richard Guenther  <rguenther@suse.de>
28560
28561         PR lto/42975
28562         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
28563         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
28564         no longer needed.
28565
28566 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
28567
28568         * config/darwin.c (output_objc_section_asm_op): Add comment.
28569         (name_needs_quotes): Add '_' to list of valid comment chars.
28570         (machopic_output_function_base_name): Remove unneeded quotes.
28571         (darwin_encode_section_info): Adjust asm whitespace.
28572         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
28573         (ASM_OUTPUT_LOCAL): Ditto.
28574         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
28575         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
28576         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
28577
28578 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
28579
28580         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
28581         RS6000_OUTPUT_BASENAME unconditionally.
28582         (rs6000_output_function_epilogue): Likewise.
28583
28584 2010-05-30  Jan Hubicka  <jh@suse.cz>
28585
28586         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
28587         nodes.
28588
28589 2010-05-30  Richard Guenther  <rguenther@suse.de>
28590
28591         * tree-cfg.c (verify_gimple_assign_single): Implement
28592         verification for COND_EXPR rhs.
28593
28594 2010-05-30  Jan Hubicka  <jh@suse.cz>
28595
28596         * cgraph.h (cgraph_dump_file): Declare.
28597         * cgraphunit.c (cgraph_dump_file): Export.
28598         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
28599
28600 2010-05-30  Jan Hubicka  <jh@suse.cz>
28601
28602         * dwarf2out.c (reference_to_unused,
28603         premark_types_used_by_global_vars_helper): Avoid creation of new
28604         varpool nodes.
28605
28606 2010-05-30  Jan Hubicka  <jh@suse.cz>
28607
28608         * cgraph.h (cgraph_node_cannot_return,
28609         cgraph_edge_cannot_lead_to_return): New functions.
28610         * cgraph.c (cgraph_node_cannot_return,
28611         cgraph_edge_cannot_lead_to_return): Use them.
28612         * ipa-pure-const.c (pure_const_names): New static var.
28613         (check_call): Handle calls not leading to return.
28614         (pure_const_read_summary): Dump info read.
28615         (propagate): Dump info about propagation process; ignore side effects
28616         of functions not leading to exit; fix handling of pure functions.
28617
28618 2010-05-30  Jan Hubicka  <jh@suse.cz>
28619
28620         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
28621         for tail call epilogues.
28622
28623 2010-05-30  Jan Hubicka  <jh@suse.cz>
28624
28625         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
28626         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
28627         dump files.
28628
28629 2010-05-29  Jan Hubicka  <jh@suse.cz>
28630
28631         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
28632         node; remove references in node we no longer keep in cgrpah but need
28633         body of.
28634
28635 2010-05-29  Jan Hubicka  <jh@suse.cz>
28636
28637         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
28638
28639 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28640
28641         PR target/44165
28642         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
28643
28644 2010-05-29  Jan Hubicka  <jh@suse.cz>
28645
28646         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
28647         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
28648         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
28649         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
28650         debug_names_replaced_by, debug_update_ssa): Likewise.
28651         * sbitmap.c (debug_sbitmap): Likewise.
28652         * genrecog.c (debug_decision, debug_decision_list): Likewise.
28653         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
28654         debug_tree_chain): Likewise.
28655         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
28656         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
28657         * optabs.c (debug_optab_libfuncs): Likewise.
28658         (verify_loop_closed_ssa): Likewise.
28659         * value-prof.c (verify_histograms): Likewise.
28660         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
28661         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
28662         * cfghooks.c (verify_flow_info): Likewise.
28663         * fold-const.c (debug_fold_checksum): Likewise.
28664         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
28665         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
28666         Likewise.
28667         * omega.c (debug_omega_problem): Likewise.
28668         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
28669         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
28670         * dominance.c (verify_dominators, debug_dominance_info,
28671         debug_dominance_tree): Likewise.
28672         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
28673         * df_regno_debug, df_ref_debug,
28674         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
28675         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
28676         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
28677         * sel-sched.c (debug_state): Likewise.
28678         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
28679         Likewise.
28680         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
28681         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
28682         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
28683         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
28684         Likewise.
28685         * c-pretty-print.c (debug_c_tree): Likewise.
28686         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
28687         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
28688         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
28689         * ebitmap.c (debug_ebitmap): Likewise.
28690         * function.c (debug_find_var_in_block_tree): Likewise.
28691         * print-rtl.c (debug_rtx): Likewise.
28692         (debug_rtx_count): Likewise.
28693         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
28694         * stor-layout.c (debug_rli): Likewise.
28695         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
28696         * tree-data-ref.c (debug_data_references,
28697         debug_data_dependence_relations, debug_data_reference,
28698         debug_data_dependence_relation, debug_rdg_vertex,
28699         debug_rdg_component, debug_rdg): Likewise.
28700         * tree-affine.c (debug_aff): Likewise.
28701         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
28702         Likewise.
28703         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
28704         * emit-rtl.c (verify_rtl_sharing): Likewise.
28705         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
28706         debug_value_expressions): Likewise.
28707         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
28708         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
28709         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
28710         * cfglayout.c (verify_insn_chain): Likewise.
28711         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
28712         debug_clast_stmt, debug_generated_program): Likewise.
28713         * ggc-page.c (debug_print_page_list): Likewise.
28714         * tree-ssa-ter.c (debug_ter): Likewise.
28715         * graphite-dependences.c (debug_pddr): Likewise.
28716         * sched-deps.c (debug_ds): Likewise.
28717         * tree-ssa.c (verify_ssa): Likewise.
28718         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
28719         debug_scattering_functions, debug_iteration_domains, debug_pdr,
28720         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
28721         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
28722         * tree-inline.c (debug_find_tree): Likewise.
28723         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
28724         debug_ppl_powerset_matrix): Likewise.
28725         * var-tracking.c (debug_dv): Likewise.
28726         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
28727         * cfgloop.c (verify_loop_structure): Likewise.
28728         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
28729         * c-common.c (verify_sequence_points): Likewise.
28730         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
28731         debug_candidates, debug_rgn_dependencies): Likewise.
28732         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
28733         * debug_constraint_graph, debug_solution_for_var,
28734         debug_sa_points_to_info): Likewise.
28735         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
28736         Likewie.
28737         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
28738         debug_loops, debug_loop, debug_loop_num): Likewise.
28739         * passes.c (debug_pass): Likewise.
28740         (dump_properties): Likewise; add cfglayout property.
28741         (debug_properties): Likewise.
28742         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
28743         * varpool.c (debug_varpool): Likewise.
28744         * regcprop.c (debug_value_data): Likewise.
28745         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
28746         debug_immediate_uses_for): Likewise.
28747
28748 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
28749
28750         PR bootstrap/44315
28751         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
28752         Filter out insn-flags.h.
28753
28754 2010-05-29  Jan Hubicka  <jh@suse.cz>
28755
28756         * cgraph.h (struct varpool_node_set_def,
28757         struct cgraph_node_set_def): Remove unused AUX pointer.
28758         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
28759         VEC_empty macro.
28760
28761 2010-05-29  Jan Hubicka  <jh@suse.cz>
28762
28763         PR middle-end/44324
28764         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
28765
28766 2010-05-29  Richard Guenther  <rguenther@suse.de>
28767
28768         * lto-streamer.c (cached_bp): New global variable.
28769         (bitpack_create): Return the cached bitpack, if available.
28770         (bitpack_delete): Clear and cache the bitpack, if appropriate.
28771         (bp_pack_value): Remove redundant asserts.
28772
28773 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
28774
28775         PR middle-end/44306
28776         * tree-if-conv.c (is_true_predicate): New.
28777         (is_predicated): Use is_true_predicate.
28778         (add_to_predicate_list): Same.  Do not use unshare_expr.
28779         (add_to_dst_predicate_list): Same.
28780
28781 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
28782
28783         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
28784         field on edges.
28785         (predicate_bbs): Same.
28786         (clean_predicate_lists): Same.
28787         (find_phi_replacement_condition): Do not AND the predicate from
28788         edge->aux.
28789
28790 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
28791
28792         PR bootstrap/44315
28793         * Makefile.in (build/gencondmd.o): Add a missing `\'.
28794
28795 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28796
28797         PR target/44261
28798         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
28799         (negdf2): Adjust expander pattern and use negdf2_slow.
28800         (negsf2): Likewise.
28801
28802 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
28803
28804         * basic-block.h (struct control_flow_graph): Move last_label_uid field
28805         up.
28806         * df.h (struct df_base_ref): Move regno field up.
28807         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
28808         * expr.h (struct separate_ops): Move location field up.
28809         * optabs.h (struct optab_d): Move libcall_basename field down.
28810         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
28811         * config/i386/i386.h (struct machine_function): Convert call_abi field
28812         into a bitfield.  Move cfa field to the end of the structure.
28813
28814 2010-05-29  Jan Hubicka  <jh@suse.cz>
28815
28816         * varpool.c (varpool_get_node): Fix lookup.
28817
28818 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28819
28820         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
28821         RTL specific prototypes with #ifdef RTX_CODE.
28822         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
28823         * config/spu/t-spu-elf: Fix dependencies.
28824
28825         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
28826
28827 2010-05-29  Mike Stump  <mikestump@comcast.net>
28828
28829         PR bootstrap/44315
28830         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
28831         TM_H when building to avoid dependency loops.
28832
28833 2010-05-29  Jan Hubicka  <jh@suse.cz>
28834
28835         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
28836         refs and body; not the whole node for masters of materialized clones.
28837
28838 2010-05-29  Mike Stump  <mikestump@comcast.net>
28839
28840         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
28841
28842 2010-05-29  Jan Hubicka  <jh@suse.cz>
28843
28844         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
28845         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
28846         use of clone_function_name.
28847         * cgraph.h (cgraph_create_virtual_clone,
28848         cgraph_function_versioning): update prototypes.
28849         (clone_function_name): Declare.
28850         * ipa-cp.c (ipcp_insert_stage): Update call of
28851         cgraph_create_virtual_clone.
28852         * omp-low.c (create_omp_child_function_name): Use
28853         cgraph_create_virtual_clone.
28854         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
28855         (cgraph_function_versioning): Take SUFFIX argument; produce new name
28856         and make decl local.
28857
28858 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28859
28860         * vec.h: Include statistics.h
28861         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
28862         with VEC_H.
28863
28864 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28865
28866         * c-lex.c: Do not include c-tree.h.
28867         * c-pretty-print.c: Likewise.
28868         * c-opts.c: Likewise.
28869         * c-gimplify.c: Likewise.
28870         * c-common.c: Likewise.
28871         * c-dump.c: Likewise.  Include c-common.h.
28872
28873 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28874
28875         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
28876         before including diagnostic-core.h.
28877         (c_cpp_error): New prototype moved from c-tree.h.
28878         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
28879         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
28880         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
28881         (c_cpp_error): Prototype moved to c-common.h.
28882         * Makefile.in: Update dependency for C_COMMON_H.
28883
28884 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
28885
28886         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
28887         * c-common.c (c_register_addr_space): Remove here.
28888         * c-decl.c (c_register_addr_space): Re-add here.
28889
28890 2010-05-28  Mike Stump  <mikestump@comcast.net>
28891
28892         * config/darwin-c.c: Remove c-tree.h include.
28893
28894 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
28895
28896         * gcc.c: Include diagnostic.h.
28897         (error_count): Remove.  All users changed to use errorcount.
28898         (programname): Remove.  All users changed to use progname.
28899         (fancy_abort, internal_error, fatal_error, error, warning, inform,
28900         fnotice): Remove.
28901         (execute): Don't include "Internal error" and bug reporting
28902         information in argument of internal_error call.
28903         (process_command): Don't increment error_count after calling
28904         perror_with_name.
28905         (input_filename): Rename to gcc_input_filename.  All users
28906         changed.
28907         (main): Call diagnostic_initialize.  Register delete_temp_files
28908         with atexit.  Use seen_error to test for errors.
28909         * gcc.h: Include diagnostic-core.h.
28910         (fatal_error, error, warning): Remove.
28911         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
28912         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
28913         (gcc.o): Update dependencies.
28914
28915 2010-05-28  Jeff Law  <law@redhat.com>
28916
28917         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
28918         functions.
28919         * ira.h (ira_bad_reload_regno): Declare
28920         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
28921
28922         * ira-color.c (update_curr_costs): Free updated hard reg costs.
28923         (ira_reassign_conflict_allocnos): Remove bogus asserts.
28924         (allocno_reload_assign): Likewise.
28925
28926 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
28927
28928         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
28929         build1_stat.
28930
28931 2010-05-28  Richard Guenther  <rguenther@suse.de>
28932
28933         PR lto/44312
28934         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
28935         Stream fixed-point constants mode.
28936         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
28937         and TYPE_PRECISION.
28938         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
28939         Stream fixed-point constants mode.
28940         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
28941         and TYPE_PRECISION.
28942
28943 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
28944
28945         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
28946         only place it was called from.
28947         (number_of_latch_executions): Do not return chrec_dont_know when the
28948         may_be_zero is a runtime condition: instead, return a COND_EXPR
28949         including the may_be_zero condition.
28950         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
28951         of nb_iterations.
28952         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
28953         COND_EXPRs.
28954
28955 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
28956
28957         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
28958         generate COND_EXPRs for degenerate_phi_result.
28959
28960 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
28961
28962         PR middle-end/44293
28963         * tree-if-conv.c (if_convertible_loop_p): Check the
28964         if-convertibility of phi nodes in non predicated BBs.
28965
28966 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
28967
28968         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
28969
28970 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
28971
28972         PR driver/15303
28973         * gcc.c (inform, warning, inform): New functions.
28974         (fatal_ice): Rename to internal_error; change cmsgid parameter to
28975         gmsgid.  All callers changed.
28976         (notice): Rename to fnotice; add parameter fp.  All callers changed.
28977         (fatal_error): Rename to fatal_signal.  All users changed.
28978         (fatal): Rename to fatal_error; change cmsgid parameter to
28979         gmsgid.  All callers changed.
28980         (process_command): Use warning instead of error for warnings.
28981         (end_going_arg): Don't use _() around argument of error.
28982         (do_spec_1): Use inform for message from %n specs.  Use warning
28983         instead of error for warnings.
28984         (main): Use inform for comparison messages.  Use warning for
28985         message about unused linker input.
28986         (error): Increment error_count.  Print "error: ".
28987         * gcc.h (fatal): Change to fatal_error.
28988         (warning): Declare.
28989         * config/darwin-driver.c (darwin_default_min_version): Use warning
28990         instead of fprintf for warnings.
28991         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
28992
28993 2010-05-28  Julian Brown  <julian@codesourcery.com>
28994
28995         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
28996         (*thumb2_addsi3_compare0_scratch): New.
28997         * config/arm/constraints.md (Pv): New.
28998         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
28999         for ARM mode only.
29000         (*addsi3_compare0_scratch): Likewise.
29001
29002 2010-05-28  Jan Hubicka  <jh@suse.cz>
29003
29004         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
29005         check.
29006         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
29007         only on local statics.
29008
29009 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
29010
29011         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
29012
29013 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
29014
29015         PR bootstrap/44314
29016         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
29017         (OPTION_GLIBC): Define.
29018
29019 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
29020
29021         PR debug/41048
29022         * dwarf2out.c (double_int_type_size_in_bits): New function.
29023         (round_up_to_align): Change first argument and return value to
29024         double_int.
29025         (field_byte_offset): Work internally on double_ints.
29026
29027         PR target/43636
29028         * builtins.c (expand_movstr): Use a temporary pseudo instead
29029         of target even when target is not NULL and not const0_rtx, but
29030         fails movstr predicate.
29031         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
29032
29033 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
29034
29035         * final.c (rest_of_clean_state): Use %m in errors instead of
29036         strerror (errno).
29037         * gengtype.c (read_input_list, close_output_files): Use xstrerror
29038         instead of strerror.
29039         * toplev.c (process_options): Use %m in errors instead of strerror
29040         (errno).
29041         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
29042         (errno).
29043
29044 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
29045
29046         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
29047         (ix86_canonical_va_list_type): Make static.  Add declaration.
29048         (ix86_enum_va_list): Make static.  Reindent.
29049         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
29050         (ix86_canonical_va_list_type): Ditto.
29051         (ix86_enum_va_list): Ditto.
29052
29053 2010-05-28  Richard Guenther  <rguenther@suse.de>
29054
29055         * lto-wrapper.c (run_gcc): With -save-temps generate a
29056         user-visible ltrans filename.  Fixup ltrans unit numbering.
29057
29058 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
29059
29060         * c-common.c (c_common_nodes_and_builtins): Replace use
29061         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
29062         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
29063         to ix86_enum_va_list.
29064         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
29065         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
29066         (TARGET_ENUM_VA_LIST_P): Add hook description.
29067         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
29068         * target.h (gcc_target): Add enum_va_list hook.
29069
29070         PR bootstrap/44299
29071         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
29072         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
29073         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
29074
29075 2010-05-28  Alan Modra  <amodra@gmail.com>
29076
29077         PR target/44266
29078         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
29079         emit_library_call machinery to set up __tls_get_addr calls.
29080
29081 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29082
29083         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
29084
29085 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
29086
29087         Revert fix for PR c++/44188
29088         * c-common.c (is_typedef_decl): Revert the moving of  this
29089         definition ...
29090         * tree.c (is_typedef_decl): ... here.
29091         (typdef_variant_p): Revert the moving of this  definition
29092         here from cp/tree.c.
29093         * c-common.h (is_typedef_decl): Revert the moving of this
29094         declaration ...
29095         * tree.h (is_typedef_decl): ... here.
29096         (typedef_variant_p): Revert the moving of this  declaration here
29097         from cp/cp-tree.h
29098         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
29099         (gen_tagged_type_die): Revert the splitting out of ...
29100         (gen_type_die_with_usage): ... this function. Revert the anonymous
29101         tagged type handling.
29102         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
29103         typedefs naming anonymous tagged types.
29104
29105 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
29106
29107         * config/rs6000/rs6000-modes.def (PSImode): Delete.
29108
29109 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
29110
29111         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
29112         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
29113         throughout.
29114         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
29115         "xer" to "ca".
29116         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
29117         XER_REGS to CA_REGS throughout.
29118         * config/rs6000/rs6000.h: Same.
29119         (ADDITIONAL_REGISTER_NAMES): Add "xer".
29120         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
29121         that mode_iterator "P" is the size for arithmetic carries as well.
29122         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
29123
29124 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
29125
29126         PR bootstrap/44255
29127         * combine.c (struct rtx_subst_pair): Define unconditionally.
29128         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
29129         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
29130         Call make_compound_operation on pair->to.
29131         (propagate_for_debug): Don't call make_compound_operation here.
29132         Always use simplify_replace_fn_rtx.
29133
29134 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
29135
29136         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
29137         * config/xtensa/xtensa.c (override_options): Check
29138           TARGET_FORCE_NO_PIC and set flag_pic.
29139         * config/xtensa/xtensa.opt: Document -mforce-no-pic
29140
29141 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
29142
29143         PR bootstrap/44299
29144         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
29145         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
29146
29147 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
29148
29149         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
29150         toplev.h.
29151         * diagnostic.c: Don't include toplev.h.
29152         (progname): Define.  Moved from toplev.c.
29153         (seen_error): New function.
29154         * diagnostic.h: Include diagnostic-core.h.
29155         (diagnostic_t, emit_diagnostic): Don't declare here.
29156         * toplev.c (progname): Move to toplev.c.
29157         (emit_debug_global_declarations, compile_file, finalize,
29158         do_compile, toplev_main): Use seen_error.
29159         * toplev.h: Include diagnostic-core.h.
29160         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
29161         internal_error, warning, warning_at, error, error_n, error_at,
29162         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
29163         verbatim, fnotice, progname): Move to diagnostic-core.h.
29164         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
29165         (expand_builtin_expect): Use seen_error.
29166         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
29167         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
29168         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
29169         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
29170         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
29171         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
29172         errorcount for errors.
29173         * c-opts.c (c_common_finish): Use seen_error.
29174         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
29175         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
29176         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
29177         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
29178         (get_coverage_counts): Use seen_error.
29179         * dwarf2out.c (dwarf2out_finish): Use seen_error.
29180         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
29181         gimplify_body): Use seen_error.
29182         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
29183         * ipa-pure-const.c (gate_pure_const): Use seen_error.
29184         * ipa-reference.c (gate_reference): Use seen_error.
29185         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
29186         * lambda-code.c: Include diagnostic-core.h instead of
29187         diagnostic.h.
29188         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
29189         * lto-compress.c: Include diagnostic-core.h instead of
29190         diagnostic.h.
29191         * lto-section-in.c: Include diagnostic-core.h instead of
29192         diagnostic.h.
29193         * lto-streamer-out.c: Include diagnostic-core.h instead of
29194         diagnostic.h.
29195         * lto-streamer.c: Include diagnostic-core.h instead of
29196         diagnostic.h.
29197         (gate_lto_out): Use seen_error.
29198         * matrix-reorg.c: Include diagnostic-core.h instead of
29199         diagnostic.h.
29200         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
29201         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
29202         (gate_expand_omp, lower_omp_1): Use seen_error.
29203         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
29204         (rest_of_decl_compilation, rest_of_type_compilation,
29205         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
29206         * tree-cfg.c (label_to_block_fn): Use seen_error.
29207         * tree-inline.c (optimize_inline_calls): Use seen_error.
29208         * tree-mudflap.c (mudflap_finish_file): Use
29209         seen_error.
29210         * tree-optimize.c (gate_all_optimizations,
29211         gate_all_early_local_passes, gate_all_early_optimizations): Use
29212         seen_error.
29213         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
29214         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
29215         (varpool_remove_unreferenced_decls,
29216         varpool_assemble_pending_decls): Use seen_error.
29217         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
29218         (TOPLEV_H, DIAGNOSTIC_H): Update.
29219         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
29220         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
29221         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
29222         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
29223         coverage.o, lambda-code.o): Update dependencies.
29224
29225 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
29226
29227         PR c++/44188
29228         * c-common.c (is_typedef_decl): Move this definition ...
29229         * tree.c (is_typedef_decl): ... here.
29230         (typdef_variant_p): Move definition here from cp/tree.c.
29231         * c-common.h (is_typedef_decl): Move this declaration ...
29232         * tree.h (is_typedef_decl): ... here.
29233         (typedef_variant_p): Move declaration here from cp/cp-tree.h
29234         * dwarf2out.c (is_naming_typedef_decl): New function.
29235         (gen_tagged_type_die): Split out of ...
29236         (gen_type_die_with_usage): ... this function. When an anonymous
29237         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
29238         is emitted for the typedef.
29239         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
29240         anonymous tagged types.
29241
29242 2010-05-27  Jason Merrill  <jason@redhat.com>
29243
29244         * print-tree.c (debug_vec_tree): New fn.
29245         (print_vec_tree): New fn.
29246         * tree.h: Declare them.
29247         * gdbinit.in (pvt): New command.
29248
29249         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
29250
29251         * gdbinit.in (pdd): New command.
29252
29253 2010-05-27  Jan Hubicka  <jh@suse.cz>
29254
29255         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
29256         (update_caller_keys): Return early if there are no callers;
29257         only update fibheap when decresing the key.
29258         (update_callee_keys): Avoid recursion.
29259         (decide_inlining_of_small_functions): When badness does not match;
29260         re-insert into fibheap.
29261
29262 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
29263
29264         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
29265         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
29266         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
29267         (ALL_HOST_OBJS): Now a union of the above two.
29268         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
29269         all files in ALL_HOST_FRONTEND_OBJS.
29270         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
29271
29272         * c-common.c: Pretend to be a backend file by undefining
29273         IN_GCC_FRONTEND (still need rtl.h here).
29274
29275 2010-05-27  Jan Hubicka  <jh@suse.cz>
29276
29277         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
29278         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
29279
29280 2010-05-27  Jan Hubicka  <jh@suse.cz>
29281
29282         * sched-ebb.c: Rename struct deps to struct deps_desc.
29283         * ddg.c: Likewise.
29284         * sel-sched-ir.c: Likewise.
29285         * sched-deps.c: Likewise.
29286         * sched-int.h: Likewise.
29287         * sched-rgn.c: Likewise.
29288
29289 2010-05-27  Jon Beniston  <jon@beniston.com>
29290
29291         PR 43726
29292         * config/lm32/lm32.h: Remove definition of
29293         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
29294
29295 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
29296
29297         PR lto/44230
29298         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
29299
29300 2010-05-27  Richard Guenther  <rguenther@suse.de>
29301
29302         PR tree-optimization/44284
29303         * tree-vect-stmts.c (vectorizable_assignment): Handle
29304         sign-changing conversions as simple copy.
29305
29306 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
29307
29308         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
29309         Bionic C library.
29310         (__gthread_active_p): Check for pthread_create if compiling against
29311         Bionic C library.
29312
29313 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
29314
29315         Support compilation for Android platform.  Reimplement -mandroid.
29316
29317         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
29318         (*android*): Set ANDROID_DEFAULT.
29319         (arm*-*-linux*): Include linux-android.h.
29320         (arm*-*-eabi*): Don't include previous -mandroid implementation.
29321         * config/arm/eabi.h: Remove, move Android-specific parts ...
29322         * config/linux-android.h: ... here.  New file.
29323         * config/arm/eabi.opt: Rename to ...
29324         * config/linux-android.opt: ... this.
29325         (mandroid): Allow -mno-android option.  Initialize based on
29326         ANDROID_DEFAULT.
29327         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
29328         Move logic to corresponding LINUX_TARGET_* macros.
29329         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
29330         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
29331         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
29332         Android definitions.
29333         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
29334         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
29335         Document.
29336
29337 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
29338
29339         Add support for Bionic C library
29340
29341         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
29342         macro.
29343         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
29344         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
29345
29346         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
29347         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
29348         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
29349         to support multiple C libraries.  Handle Bionic.
29350         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
29351         (BIONIC_DYNAMIC_LINKER64): Define.
29352         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
29353         Update.
29354         (TARGET_HAS_SINCOS): Enable for Bionic.
29355
29356         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
29357         the last option specified on command line take effect.
29358         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
29359         (mbionic): New.
29360         (mglibc, muclibc): Update.
29361
29362         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
29363         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
29364         DEFAULT_LIBC.
29365
29366         * doc/invoke.texi (-mglibc, -muclibc): Update.
29367         (-mbionic): Document.
29368
29369 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29370
29371         * c-common.h (c_register_addr_space): Add prototype.
29372         (ADDR_SPACE_KEYWORD): Remove.
29373         * c-common.c (c_register_addr_space): New function.
29374         (c_addr_space_name): Reimplement.
29375         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
29376
29377         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
29378         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
29379
29380         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
29381         Remove TARGET_ADDR_SPACE_KEYWORDS.
29382
29383 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
29384
29385         * input.c: New file.
29386         * input.h (main_input_filename): Move declaration to toplev.h.
29387         * toplev.c (input_location, line_table): Move to input.c
29388         * toplev.h (main_input_filename): Move declaration from input.h.
29389         * tree.c (expand_location): Move to input.c.
29390         * Makefile.in (OBJS-common): Add input.o.
29391         (input.o): Add dependencies.
29392
29393 2010-05-27  Richard Guenther  <rguenther@suse.de>
29394
29395         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
29396         for non-existant files.
29397         (fork_execute): Mark args_name file as deleted.
29398
29399 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
29400
29401         PR bootstrp/44287
29402         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
29403         (narrow_signed_type): Likewise.
29404
29405 2010-05-26  Jan Hubicka  <jh@suse.cz>
29406
29407         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
29408         edge only when checking is enabled; check using former_clone_of;
29409         check inline clones too.
29410         (cgraph_materialize_clone): Record former_clone_of pointer.
29411         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
29412         combining redirections; dump args_to_skip bitmap
29413         (cgraph_materialize_all_clones): Do no redirection here.
29414         * ipa-inline.c (inline_transform): Do redirection here.
29415         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
29416         cheking only).
29417
29418 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
29419
29420         * config/avr/avr-c.c: Do not include regs.h.
29421         Include cpplib.h for cpp_define and tree.h for c-common.h.
29422         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
29423         * config/avr/t-avr: Fix dependencies for avr-c.o.
29424
29425 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
29426
29427         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
29428         string instead of SYMBOL_REF rtx.
29429         * rtl.h (set_stack_check_libfunc): Move prototype from here...
29430         * libfuncs.h: ...to here.  Adjust for explow.c change.
29431
29432 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
29433
29434         * pretty-print.c: Don't include ggc.h.
29435         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
29436         (identifier_to_locale): Use them for allocation.
29437         * pretty-print.h (identifier_to_locale_alloc,
29438         identifier_to_locale_free): Declare.
29439         * toplev.c (alloc_for_identifier_to_locale): New.
29440         (general_init): Set identifier_to_locale_alloc and
29441         identifier_to_locale_free.
29442         * Makefile.in (pretty-print.o): Update dependencies.
29443
29444 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
29445
29446         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
29447         pointer types if they have different alignment or mode.
29448
29449 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
29450
29451         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29452         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29453         * config/sparc/sparc-protos.h (function_value): Remove declaration.
29454         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
29455         sparc_function_value_regno_p): New functions.
29456         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29457         TARGET_FUNCTION_VALUE_REGNO_P): Define.
29458         (function_value): Rename to...
29459         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
29460         argument to 'outgoing'.
29461         (function_arg_record_value, function_arg_union_value,
29462         function_arg_vector_value): Update comment.
29463
29464 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
29465
29466         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
29467         (fde_needed_for_eh_p): New predicate.
29468         (output_call_frame_info): Use it throughout to decide whether FDEs
29469         are needed for EH purpose.
29470         (dwarf2out_begin_prologue): Reorder assignments.
29471
29472 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29473
29474         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
29475         special case loop->header.
29476         (is_predicated): New.
29477         (if_convertible_loop_p): Call it.
29478
29479 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29480
29481         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
29482         iterator in parameter.  Do not generate code during the analysis.
29483         (tree_if_convert_cond_stmt): Removed.
29484         (tree_if_convert_stmt): Removed.
29485         (predicate_bbs): New.
29486         (if_convertible_loop_p): Call predicate_bbs.
29487         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
29488         now contains all the analysis part.
29489
29490 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29491
29492         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
29493         statements in the analysis part.
29494         (tree_if_convert_stmt): Update comment.
29495         (remove_conditions_and_labels): New.
29496         (combine_blocks): Call remove_conditions_and_labels.
29497         (tree_if_conversion): Update comment.
29498
29499 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29500
29501         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
29502         than 2 predecessors or more than 2 successors.
29503
29504 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29505
29506         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
29507         of loops in which the data dependence analysis fails.
29508
29509 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29510
29511         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
29512         CDI_POST_DOMINATORS.
29513         (tree_if_conversion): Same.
29514
29515 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29516
29517         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
29518
29519 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
29520
29521         * tree-if-conv.c: Update copyright years.  Fix comments.
29522         Fix indentation.
29523
29524 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
29525
29526         * builtin-types.def (BT_INT128): New primitive type.
29527         (BT_UINT128): Likewise.
29528         * c-common.c (c_common_r): Add __int128 keyword.
29529         (c_common_type_for_size): Handle __int128.
29530         (c_common_type_for_mode): Likewise.
29531         (c_common_signed_or_unsigned_type): Likewise.
29532         (c_common_nodes_and_builtins): Add builtin type
29533         if target supports 128-bit integer scalar.
29534         * c-common.h (enum rid): Add RID_INT128.
29535         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
29536         if target supports 128-bit integer scalar.
29537         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
29538         (finish_declspecs): Likewise.
29539         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
29540         (c_token_starts_declspecs): Likewise.
29541         (c_parser_declspecs): Likewise.
29542         (c_parser_attributes): Likewise.
29543         (c_parser_objc_selector): Likewise.
29544         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
29545         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
29546         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
29547         * tree.c (make_or_reuse_type): Likewise.
29548         (make_unsigned_type): Likewise.
29549         (build_common_tree_nodes_2): Likewise.
29550         * tree.h (enum integer_type_kind): Add itk_int128 and
29551         itk_unsigned_int128.
29552         (int128_integer_type_node): New define.
29553         (int128_unsigned_type_node): New define.
29554         * doc/extend.texi: Add documentation about __int128 type.
29555
29556 2010-05-26  Richard Guenther  <rguenther@suse.de>
29557
29558         * tree-ssa-sccvn.c (copy_nary): Adjust.
29559         (copy_phis): Rename to ...
29560         (copy_phi): ... this.  Adjust.
29561         (copy_references): Rename to ...
29562         (copy_reference): ... this.  Adjust.
29563         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
29564         result into the valid table.
29565
29566 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
29567
29568         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
29569         insn-config.h, insn-codes.h, recog.h, and optabs.h.
29570
29571 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29572
29573         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
29574
29575 2010-05-26  Richard Guenther  <rguenther@suse.de>
29576
29577         * opts.c (common_handle_option): Handle OPT_Ofast.
29578
29579 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
29580
29581         * diagnostic.c: Don't include opts.h.
29582         (permissive_error_option): Define.
29583         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
29584         for classify_diagnostic.  Don't use memset for
29585         classify_diagnostic.  Initialize new and recently added fields.
29586         (diagnostic_classify_diagnostic): Use context->n_opts instead of
29587         N_OPTS.
29588         (diagnostic_report_diagnostic): Pass context parameter to
29589         diagnostic_report_warnings_p.  Use option_enabled and option_name
29590         hooks from context.
29591         (emit_diagnostic): Use permissive_error_option.
29592         (permerror): Likewise.
29593         * diagnostic.h: Don't include options.h.
29594         (struct diagnostic_context): Add n_opts, opt_permissive,
29595         inhibit_warnings, warn_system_headers, option_enabled and
29596         option_name fields.  Change classify_diagnostic to a pointer.
29597         * opts-diagnostic.h: New file.
29598         * opts.c: Include opts-diagnostic.h.
29599         (common_handle_option): Set global_dc fields for -Wfatal-errors,
29600         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
29601         (option_name): New function.
29602         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
29603         (c_common_handle_option): Set global_dc->permissive for
29604         -fpermissive.
29605         * c-common.c (c_cpp_error): Save and restore
29606         global_dc->warn_system_headers, not variable warn_system_headers.
29607         * toplev.c: Include opts-diagnostic.h.
29608         (general_init): Update call to diagnostic_initialize.  Set
29609         global_dc->show_column, global_dc->option_enabled and
29610         global_dc->option_name.
29611         (process_options): Don't set global_dc fields here.
29612         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
29613         (diagnostic.o, opts.o, toplev.o): Update dependencies.
29614
29615 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
29616
29617         * config/picochip/picochip.md (movsi): Split a movsi from a
29618         const after reload.
29619
29620 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29621
29622         * ggc-zone.c: Update copyright year.
29623         (poison_region): Mark memory for Valgrind as undefined before
29624         memset () call and inaccessible afterwards.
29625         (ggc_pch_total_size): Change type of i to int.
29626
29627 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29628
29629         * ggc-common.c (ggc_free_overhead): Allow empty slot.
29630
29631 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29632
29633         * ggc-common.c: Update copyright year.
29634         (ggc_rlimit_bound): Remove prototype.  Compile only if
29635         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
29636         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
29637         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
29638         (ggc_min_heapsize_heuristic): Likewise.
29639
29640 2010-05-26  Richard Guenther  <rguenther@suse.de>
29641
29642         PR rtl-optimization/44164
29643         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
29644         no-common access-path disambiguation.
29645         (indirect_ref_may_alias_decl_p): Adjust.
29646         (indirect_refs_may_alias_p): Likewise.
29647         (refs_may_alias_p_1): Likewise.
29648
29649 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
29650
29651         * c-typeck.c: Do not include expr.h.
29652
29653 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
29654
29655         * rtl.h (decl_default_tls_model): Move prototype from here...
29656         * output.h: ...to here.
29657         * c-decl.c: Do not include rtl.h.
29658         * c-pragma.c: Likewise.
29659         * c-parser.c: Likewise.
29660         * c-gimplify.c: Likewise.  And also not hard-reg-set.
29661         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
29662         FIXME note for it.  Add a FIXME note for expr.h.
29663         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
29664         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
29665         defined.
29666
29667 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
29668
29669         PR target/44199
29670         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
29671         or total_size is larger than red zone size for non-V4 ABI, emit a
29672         stack_tie resp. frame_tie insn before stack pointer restore.
29673         * config/rs6000/rs6000.md (frame_tie): New insn.
29674
29675 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
29676
29677         * function.h (struct function): Add can_throw_non_call_exceptions bit.
29678         * lto-streamer-in.c (input_function): Stream it in.
29679         * lto-streamer-out.c (output_function): Stream it out.
29680         * function.c (allocate_struct_function): Set it.
29681         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
29682         for flag_non_call_exceptions.
29683         * cfgbuild.c (control_flow_insn_p): Likewise.
29684         (make_edges): Likewise.
29685         * cfgexpand.c (expand_stack_alignment): Likewise.
29686         * combine.c (distribute_notes): Likewise.
29687         * cse.c (cse_extended_basic_block): Likewise.
29688         * except.c (insn_could_throw_p): Likewise.
29689         * gcse.c (simple_mem): Likewise.
29690         * ipa-pure-const.c (check_call): Likewise.
29691         (check_stmt ): Likewise.
29692         * lower-subreg.c (lower-subreg.c): Likewise.
29693         * optabs.c (emit_libcall_block): Likewise.
29694         (prepare_cmp_insn): Likewise.
29695         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
29696         * postreload.c (rest_of_handle_postreload): Likewise.
29697         * reload1.c (reload_as_needed): Likewise.
29698         (emit_input_reload_insns): Likewise.
29699         (emit_output_reload_insns): Likewise.
29700         (fixup_abnormal_edges): Likewise.
29701         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
29702         * store-motion.c (find_moveable_store): Likewise.
29703         * tree-eh.c (stmt_could_throw_p): Likewise.
29704         (tree_could_throw_p): Likewise.
29705         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
29706         * config/arm/arm.c (arm_expand_prologue): Likewise.
29707         (thumb1_expand_prologue): Likewise.
29708         * config/rx/rx.md (cbranchsf4): Likewise.
29709         (cmpsf): Likewise.
29710         * config/s390/s390.c (s390_emit_prologue): Likewise.
29711         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
29712         (inline_forbidden_into_p): New predicate.
29713         (expand_call_inline): Use it to forbid inlining.
29714         (tree_can_inline_p): Likewise.
29715
29716 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
29717
29718         * config/i386/i386-c.c: Do not include rtl.h.
29719         * config/i386/t-i386: Update dependencies.
29720
29721 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
29722
29723         * attribs.c: Do not include rtl.h.
29724         * Makefile.in: Update dependencies.
29725
29726 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
29727
29728         * double-int.h (double_int_and): New.
29729         * combine.c (try_combine): Clean up, use double_int_* and
29730         immed_double_int_const functions.
29731
29732 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29733
29734         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
29735         stderr to /dev/null instead of grep -q.
29736         * configure: Regenerate.
29737
29738 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
29739
29740         * Makefile.in (EXCEPT_H): Fix typo.
29741
29742 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
29743
29744         * ira-build.c (update_conflict_hard_reg_costs): New.
29745         (ira_build): Call update_conflict_hard_reg_costs.
29746
29747 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
29748
29749         PR debug/41371
29750         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
29751         ENABLE_CHECKING.
29752         (intersect_loc_chains): Walk the s2var's loc_chain together
29753         with s1node chain as long as the locations are equal, don't
29754         call find_loc_in_1pdv in that case.
29755
29756         PR debug/42801
29757         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
29758         (copy_bind_expr): ... instead of here.
29759         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
29760         if the block hasn't been remapped.
29761         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
29762         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
29763
29764 2010-05-25  Richard Guenther  <rguenther@suse.de>
29765
29766         PR middle-end/44069
29767         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
29768         out-of-bounds array accesses.
29769
29770 2010-05-25  Richard Guenther  <rguenther@suse.de>
29771
29772         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
29773         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
29774         (run_gcc): Re-organize to make cleanup easier.
29775
29776 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29777
29778         * config/s390/s390.c (optimization_options): Fix and move the
29779         flag_prefetch_loop_arrays override ...
29780         (override_options): ... here.
29781
29782 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
29783
29784         * diagnostic.c: Don't include plugin.h.
29785         (diagnostic_report_diagnostic): Don't handle plugins specially
29786         here.  Pass context to internal_error callback.
29787         * diagnostic.h (struct diagnostic_context): Add context parameter
29788         to internal_error callback.
29789         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
29790         * plugin.h (struct diagnostic_context): Declare.
29791         (warn_if_plugins, plugins_internal_error_function): Declare.
29792         * toplev.c (general_init): Set global_dc->internal_error.
29793         * Makefile.in (diagnostic.o): Update dependencies.
29794
29795 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
29796
29797         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
29798         * config/rs6000/t-darwin64: New.
29799         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
29800         build crt2.
29801
29802 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
29803
29804         PR 44203
29805         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
29806         match the original (and intended) behaviour before r159557.  This
29807         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
29808         in two ways.
29809
29810 2010-05-25  Richard Guenther  <rguenther@suse.de>
29811
29812         * doc/invoke.texi: Document -Ofast.
29813         * target.h (struct gcc_target): Add handle_ofast.
29814         * target-def.h (TARGET_HANDLE_OFAST): Add.
29815         (TARGET_INITIALIZER): Adjust.
29816         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
29817         * common.opt (Ofast): Add.
29818
29819 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
29820
29821         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
29822         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
29823
29824 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
29825
29826         PR target/43610
29827         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
29828         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
29829         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
29830         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
29831
29832 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
29833
29834         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
29835         DW_OP_minus with negated offset instead of DW_OP_plus.
29836         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
29837
29838 2010-05-25  Wei Guozhi  <carrot@google.com>
29839
29840         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
29841         tst instruction and a new alternative.
29842         * config/arm/constraints.md (Pu): New constraint.
29843
29844 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
29845
29846         * function.c (assign_stack_local_1): Initialize variable
29847         to avoid warning when bootstrapping at -O3.
29848
29849 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
29850
29851         * configure.ac (all_lang_makefiles): Remove everything related to it.
29852         * configure: Regenerate.
29853         * Makefile.in: Fix reference to ada Make-lang.in.
29854         Remove support for LANG_MAKEFILES.
29855
29856 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
29857             Sandra Loosemore  <sandra@codesourcery.com>
29858
29859         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
29860         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
29861         description.  Add arm_neon_fp16_ok.
29862         (Add Options): Add arm_neon and arm_neon_fp16.
29863
29864 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
29865
29866         * diagnostic.c: Don't include flags.h.
29867         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
29868         context parameters.  Check flags in the context passed as a parameter.
29869         (diagnostic_build_prefix): Add context parameter.  Check
29870         show_column flag in context.
29871         (diagnostic_action_after_output): Check fatal_errors flag in context.
29872         (diagnostic_report_current_module): Check show_column flag in context.
29873         (default_diagnostic_starter): Update call to
29874         diagnostic_build_prefix.
29875         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
29876         (emit_diagnostic): Pass context to permissive_error_kind.
29877         (permerror): Pass context to permissive_error_kind.
29878         * diagnostic.h (struct diagnostic_context): Add show_column,
29879         pedantic_errors, permissive and fatal_errors fields.
29880         (diagnostic_build_prefix): Update prototype.
29881         * langhooks.c
29882         * toplev.c (process_options): Set flags in global_dc from
29883         flag_show_column, flag_pedantic_errors, flag_permissive,
29884         flag_fatal_errors.
29885         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
29886         to diagnostic_build_prefix.
29887         * Makefile.in (diagnostic.o): Update dependencies.
29888
29889 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
29890
29891         * config/i386/ia32intrin.h (__crc32q): Define only if
29892         __SSE4_2__ is defined.
29893
29894 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
29895
29896         PR target/44132
29897         PR middle-end/43602
29898         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
29899         DECL_VISIBILITY_SPECIFIED.
29900         (emutls_decl): Set DECL_PRESERVE_P and copy
29901         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
29902         (emutls_finalize_control_var): New callback.
29903         (emutls_finish): Finalize emutls control variables.
29904         * toplev.c (compile_file): Move the call to emutls_finish ()
29905         before varpool_assemble_pending_decls ().
29906
29907 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
29908
29909         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
29910         added to the preprocessor condition.
29911
29912 2010-05-24  Paul Brook  <paul@codesourcery.com>
29913
29914         * gengtype-lex.l: Add HARD_REG_SET.
29915         * expr.c (expand_expr_real_1): Record writes to hard registers.
29916         * function.c (rtl_data): Add asm_clobbers.
29917         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
29918         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
29919         Use crtl->asm_clobbers.
29920
29921 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29922
29923         * doc/makefile.texi (Makefile): Mention stages 'profile'
29924         and 'feedback' for profiledbootstrap.
29925
29926 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
29927
29928         PR target/44245
29929         * config/i386/i386.c (def_builtin): Properly check
29930         OPTION_MASK_ISA_64BIT.
29931
29932 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
29933
29934         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
29935         typedefs with different but compatible types.  Allow duplicate
29936         typedefs with the same type except for pedantic non-C1X, but give
29937         warning for variably modified types.
29938         * c-typeck.c (tagged_types_tu_compatible_p,
29939         function_types_compatible_p, type_lists_compatible_p,
29940         comptypes_internal): Add parameter different_types_p; set
29941         *different_types_p for different but compatible types.  All
29942         callers changed.
29943         (comptypes_check_different_types): New.
29944         * c-tree.h (comptypes_check_different_types): Declare.
29945
29946 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
29947
29948         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
29949         * jump.c: Include basic-block.h.
29950         * profile.c: Likewise.
29951         * tree-profile.c: Likewise.
29952         * coverage.c: Likewise.
29953         * basic-block.h (optimize_function_for_size_p): Move to function.h.
29954         (optimize_function_for_speed_p): Likewise.
29955         * function.h (optimize_function_for_size_p,
29956         optimize_function_for_speed_p): Moved here from basic-block.h.
29957         * Makefile.in: Update dependencies.
29958
29959 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29960
29961         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
29962         before calling make; allow override through $MAKE.
29963         * doc/invoke.texi (Optimize Options): Document override.
29964
29965 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
29966
29967         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
29968         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
29969         (rs6000_mode_dependent_address_ptr): Make static.
29970         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
29971         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
29972         Remove.
29973
29974 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
29975
29976         PR target/43869
29977         * config/i386/i386.c: Make sure that the correct regparm is passed.
29978
29979 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
29980
29981         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
29982         * sbitmap.c: ...to here to internalize sbitmap element access.
29983         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
29984         Explain why basic-block.h is included.
29985         * function.h: Include tm.h for CUMULATIVE_ARGS.
29986         * Makefile.in: Update dependencies.
29987
29988 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
29989
29990         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
29991         New core types.
29992         * sbitmap.h (struct sbitmap_def): Do not typedef here.
29993         * sbitmap.c: Include sbitmap.h.
29994         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
29995         hard-reg-set.h.  Split everything related to regsets out from here...
29996         * regset.h: ...to here.  New file.
29997         * df.h: Include regset.h and sbitmap.h.
29998         * tree-flow.h: Likewise.
29999         * cfgloop.h: Likewise.
30000         * except.h: Do not include sbitmap.h.  Include hashtab.h.
30001         * cgraph.h: Include vec.h and function.h.
30002         * reload.h (struct insn_chain): Change types of live_throughout
30003         and dead_or_set from regset_head to bitmap_head.
30004         (compute_use_by_pseudos): Be defined also if regset.h is not included.
30005         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
30006         spilled_regs from regset_head to bitmap_head to avoid dependency
30007         in regset.h.
30008         * sel-sched-ir.h: Include regset.h.
30009         * reload.c: Include df.h before reload.h.
30010         * caller-save.c: Likewise.
30011         * reload1.c: Likewise.
30012         * ira.c: Likewise.
30013         (mark_elimination): Update type of r to bitmap, consistent with
30014         DF_LR_IN.
30015         * dominance.c: Include bitmap.h.
30016         * modulo-sched.c: Include df.h.
30017         * cfganal.c: Include bitmap.h and sbitmap.h.
30018         * cfgbuild.c: Include sbitmap.h.
30019         * lcm.c: Include sbitmap.h.
30020         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
30021         * domwalk.c: Include sbitmap.h, exclude ggc.h.
30022         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
30023         * cselib.c: Include bitmap.h.
30024         * tree-optimize.c: Include regset.h.
30025         * stmt.c: Include bitmap.h.
30026         * Makefile.in: Update dependencies.
30027
30028 2010-05-22  Jan Hubicka  <jh@suse.cz>
30029
30030         * cgraph.h (struct varpool_node): Add same_comdat_group.
30031         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
30032         pointer.
30033         (output_varpool): Update call of lto_output_varpool_node.
30034         (input_varpool): Read same_comdat_group pointer.
30035         (input_varpool_1): Fixup same_comdat_group pointer.
30036         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
30037         group is needed, all are.
30038         * varpool.c (varpool_remove_node): Remove node from same comdat group
30039         linklist too.
30040         (varpool_analyze_pending_decls): Walk same comdat groups.
30041
30042 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
30043
30044         * rtl.h (union rtunion_def): Remove rt_bit member.
30045         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
30046         * print-rtl (print_rtx): Do not print the member.
30047         * gengtype.c (adjust_field_rtx_def): Do not handle it.
30048         * gengenrtl.c (type_from_format): Likewise.
30049         (accessor_from_format): Likewise.
30050
30051 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
30052
30053         * dbgcnt.c: Include toplev.h instead of errors.h.
30054         * ira-emit.c: Don't include errors.h.
30055         * ira.c: Include toplev.h instead of errors.h.
30056         * lto-compress.c: Include toplev.h instead of errors.h.
30057         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
30058         ira.o, dbgcnt.o): Update dependencies.
30059
30060 2010-05-22  Richard Guenther  <rguenther@suse.de>
30061
30062         * gimple.c (gimple_types_compatible_p): Check type qualifications
30063         before merging pointer to complete and pointer to incomplete type.
30064         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
30065         we use our own resolution algorithm.  The gold linker plugin
30066         doesn't do the job we want it to do here.
30067
30068 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
30069
30070         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
30071         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
30072         (sparc_mode_dependent_address_p): New function.
30073
30074 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
30075
30076         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
30077
30078         * timevar.c: Do not include any core headers.
30079         (timevar_print): De-i18n-ize.
30080         (print_time): Likewise.
30081         * timevar.h (timevar_push, timevar_pop): Make inline functions.
30082
30083 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
30084
30085         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
30086         langhooks-def.h.
30087         (diagnostic_initialize): Initialize x_data not last_function.
30088         (diagnostic_report_current_function): Move to tree-diagnostic.c.
30089         (default_diagnostic_starter): Call
30090         diagnostic_report_current_module not
30091         diagnostic_report_current_function.
30092         (diagnostic_report_diagnostic): Initialize x_data not
30093         abstract_origin.
30094         (verbatim): Likewise.
30095         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
30096         x_data.
30097         (struct diagnostic_context): Change last_function to x_data.
30098         (diagnostic_auxiliary_data): Replace with
30099         diagnostic_context_auxiliary_data and
30100         diagnostic_info_auxiliary_data.
30101         (diagnostic_last_function_changed, diagnostic_set_last_function,
30102         diagnostic_report_current_function): Move to tree-diagnostic.h.
30103         (print_declaration, dump_generic_node, print_generic_stmt,
30104         print_generic_stmt_indented, print_generic_expr,
30105         print_generic_decl, debug_c_tree, dump_omp_clauses,
30106         print_call_name, debug_generic_expr, debug_generic_stmt,
30107         debug_tree_chain, default_tree_printer): Move to
30108         tree-pretty-print.h.
30109         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
30110         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
30111         gimple-pretty-print.h.
30112         * pretty-print.c: Don't include tree.h
30113         (pp_base_format): Don't handle %K here.
30114         (pp_base_tree_identifier): Move to tree-pretty-print.c.
30115         * pretty-print.h (text_info): Change abstract_origin to x_data.
30116         (pp_tree_identifier, pp_unsupported_tree,
30117         pp_base_tree_identifier): Move to tree-pretty-print.h.
30118         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
30119         tree-pretty-print.h: New files.
30120         * tree-pretty-print.c: Include tree-pretty-print.h.
30121         (percent_K_format): New.  Moved from pretty-print.c.
30122         (pp_base_tree_identifier): Move from pretty-print.c.
30123         * c-objc-common.c: Include tree-pretty-print.h.
30124         (c_tree_printer): Handle %K here.
30125         * langhooks.c: Include tree-diagnostic.h.
30126         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
30127         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
30128         (default_tree_printer): Handle %K using percent_K_format.
30129         (general_init): Use default_tree_diagnostic_starter.
30130         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
30131         (free_lang_data): Use default_tree_diagnostic_starter.
30132         * c-pretty-print.c: Include tree-pretty-print.h.
30133         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
30134         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
30135         * dwarf2out.c: Include tree-pretty-print.h.
30136         * except.c: Include tree-pretty-print.h.
30137         * gimple-pretty-print.c: Include tree-pretty-print.h and
30138         gimple-pretty-print.h.
30139         * gimplify.c: Include tree-pretty-print.h.
30140         * graphite-poly.c: Include tree-pretty-print.h and
30141         gimple-pretty-print.h.
30142         * ipa-cp.c: Include tree-pretty-print.h.
30143         * ipa-inline.c: Include gimple-pretty-print.h.
30144         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
30145         * ipa-pure-const.c: Include gimple-pretty-print.h.
30146         * ipa-struct-reorg.c: Include tree-pretty-print.h and
30147         gimple-pretty-print.h.
30148         * ipa-type-escape.c: Include tree-pretty-print.h.
30149         * print-rtl.c: Include tree-pretty-print.h.
30150         * print-tree.c: Include gimple-pretty-print.h.
30151         * sese.c: Include tree-pretty-print.h.
30152         * tree-affine.c: Include tree-pretty-print.h.
30153         * tree-browser.c: Include tree-pretty-print.h.
30154         * tree-call-cdce.c: Include gimple-pretty-print.h.
30155         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
30156         * tree-chrec.c: Include tree-pretty-print.h.
30157         * tree-data-ref.c: Include tree-pretty-print.h and
30158         gimple-pretty-print.h.
30159         * tree-dfa.c: Include tree-pretty-print.h.
30160         * tree-if-conv.c: Include tree-pretty-print.h and
30161         gimple-pretty-print.h.
30162         * tree-inline.c: Include tree-pretty-print.h.
30163         * tree-into-ssa.c: Include tree-pretty-print.h and
30164         gimple-pretty-print.h.
30165         * tree-nrv.c: Include tree-pretty-print.h.
30166         * tree-object-size.c: Include tree-pretty-print.h and
30167         gimple-pretty-print.h.
30168         * tree-outof-ssa.c: Include tree-pretty-print.h and
30169         gimple-pretty-print.h.
30170         * tree-parloops.c: Include tree-pretty-print.h and
30171         gimple-pretty-print.h.
30172         * tree-predcom.c: Include tree-pretty-print.h and
30173         gimple-pretty-print.h.
30174         * tree-scalar-evolution.c: Include tree-pretty-print.h and
30175         gimple-pretty-print.h.
30176         * tree-sra.c: Include tree-pretty-print.h.
30177         * tree-ssa-address.c: Include tree-pretty-print.h.
30178         * tree-ssa-alias.c: Include tree-pretty-print.h.
30179         * tree-ssa-ccp.c: Include tree-pretty-print.h and
30180         gimple-pretty-print.h.
30181         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
30182         * tree-ssa-copy.c: Include tree-pretty-print.h and
30183         gimple-pretty-print.h.
30184         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
30185         * tree-ssa-dce.c: Include tree-pretty-print.h and
30186         gimple-pretty-print.h.
30187         * tree-ssa-dom.c: Include tree-pretty-print.h and
30188         gimple-pretty-print.h.
30189         * tree-ssa-dse.c: Include gimple-pretty-print.h.
30190         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
30191         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
30192         * tree-ssa-live.c: Include tree-pretty-print.h and
30193         gimple-pretty-print.h.
30194         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
30195         gimple-pretty-print.h.
30196         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
30197         gimple-pretty-print.h.
30198         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
30199         gimple-pretty-print.h.
30200         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
30201         gimple-pretty-print.h.
30202         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
30203         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
30204         * tree-ssa-operands.c: Include tree-pretty-print.h and
30205         gimple-pretty-print.h.
30206         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
30207         gimple-pretty-print.h.
30208         * tree-ssa-pre.c: Include tree-pretty-print.h and
30209         gimple-pretty-print.h.
30210         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
30211         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
30212         gimple-pretty-print.h.
30213         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
30214         gimple-pretty-print.h.
30215         * tree-ssa-sink.c: Include gimple-pretty-print.h.
30216         * tree-ssa-ter.c: Include tree-pretty-print.h and
30217         gimple-pretty-print.h.
30218         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
30219         * tree-ssa.c: Include tree-pretty-print.h and
30220         gimple-pretty-print.h.
30221         * tree-stdarg.c: Include gimple-pretty-print.h.
30222         * tree-switch-conversion.c: Include gimple-pretty-print.h.
30223         * tree-tailcall.c: Include tree-pretty-print.h and
30224         gimple-pretty-print.h.
30225         * tree-vect-data-refs.c: Include tree-pretty-print.h and
30226         gimple-pretty-print.h.
30227         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
30228         gimple-pretty-print.h.
30229         * tree-vect-loop.c: Include tree-pretty-print.h and
30230         gimple-pretty-print.h.
30231         * tree-vect-patterns.c: Include gimple-pretty-print.h.
30232         * tree-vect-slp.c: Include tree-pretty-print.h and
30233         gimple-pretty-print.h.
30234         * tree-vect-stmts.c: Include tree-pretty-print.h and
30235         gimple-pretty-print.h.
30236         * tree-vectorizer.c: Include tree-pretty-print.h.
30237         * tree-vrp.c: Include tree-pretty-print.h and
30238         gimple-pretty-print.h.
30239         * value-prof.c: Include tree-pretty-print.h and
30240         gimple-pretty-print.h.
30241         * var-tracking.c: Include tree-pretty-print.h.
30242         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
30243         (tree-diagnostic.o): New dependencies.
30244         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
30245         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
30246         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
30247         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
30248         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
30249         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
30250         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
30251         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
30252         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
30253         tree-ssa-address.o, tree-ssa-loop-niter.o,
30254         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
30255         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
30256         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
30257         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
30258         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
30259         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
30260         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
30261         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
30262         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
30263         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
30264         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
30265         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
30266         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
30267         tree-switch-conversion.o, var-tracking.o, value-prof.o,
30268         cfgexpand.o, pretty-print.o): Update dependencies.
30269
30270 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
30271
30272         * tree-ssa-structalias.c: Remove tm_p.h from include.
30273
30274 2010-05-21  Jeff Law  <law@redhat.com>
30275
30276         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
30277
30278 2010-05-21  Jason Merrill  <jason@redhat.com>
30279
30280         * tree-eh.c (cleanup_is_dead_in): New.
30281         (lower_try_finally): Don't generate a dead cleanup region.
30282         (lower_cleanup): Likewise.
30283
30284 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
30285
30286         PR debug/44223
30287         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
30288         unchain each use from the cyclic next_regno_use chain first.
30289
30290 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
30291
30292         * real: Do not include gmp.h, mpfr.h, and mpc.h.
30293         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
30294         (real_value_negate, real_value_abs): New prototypes.
30295         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
30296         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
30297         new include file for interface between MPFR and REAL_VALUE_TYPE.
30298         * real.c: Include realmpfr.h.
30299         (real_arithmetic2): Remove legacy function.
30300         (real_value_negate): New.
30301         (real_value_abs): New.
30302         (mfpr_from_real, real_from_mpfr): Move from here...
30303         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
30304         * builtins.c: Include realmpfr.h.
30305         * fold-const.c: Include realmpfr.h.
30306         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
30307         (fold_negate_const): Likewise.
30308         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
30309         * toplev.c: Include realmpfr.h.
30310         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
30311         and real_value_negate.
30312         * fixed-value.c (check_real_for_fixed_mode): Likewise.
30313         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
30314         (vfp3_const_double_index): Likewise.
30315         (arm_print_operand): Likewise.
30316         * Makefile.in: Update dependencies.
30317
30318 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30319
30320         * config/s390/s390.c (override_options): Increase the default
30321         of max-completely-peel-times.
30322
30323 2010-05-21  Julian Brown  <julian@codesourcery.com>
30324             Mark Mitchell  <mark@codesourcery.com>
30325
30326         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
30327         sibling calls for Thumb-1.
30328         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
30329         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
30330         Thumb-2.
30331         (*call_insn, *call_value_insn): Don't use for Thumb-2.
30332         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
30333         for Thumb-2.
30334         (return): New expander.
30335         (*arm_return): New name for ARM return insn.
30336         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
30337
30338 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
30339
30340         * config.gcc (sparc64-*-rtems*): New target.
30341
30342 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
30343
30344         * tree.c (build_function_decl_skip_args): Fix grammar.
30345         (build_function_type_list_1): Fix typos, adjust formatting.
30346
30347 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
30348
30349         * tree.h: Include real.h and fixed-value.h as basic datatypes.
30350         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
30351         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
30352         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
30353         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
30354         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
30355         tree-pretty-print.c, tree-loop-distribution.c,
30356         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
30357         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
30358         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
30359         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
30360         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
30361         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
30362         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
30363         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
30364         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
30365         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
30366         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
30367         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
30368         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
30369         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
30370         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
30371         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
30372         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
30373         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
30374         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
30375         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
30376         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
30377         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
30378         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
30379         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
30380         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
30381         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
30382         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
30383         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
30384         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
30385         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
30386         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
30387         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
30388         config/score/score7.c, config/score/score.c, config/arm/arm.c,
30389         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
30390         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
30391         config/bfin/bfin.c: Clean up redundant includes.
30392         * Makefile.in: Update accordingly.
30393
30394 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
30395
30396         PR middle-end/44204
30397         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
30398         statement has no arguments.
30399
30400 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
30401
30402         PR/44139
30403         * varasm.c (emutls_decl): Merge attributes to new decl.
30404
30405 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
30406
30407         PR middle-end/44101
30408         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
30409         around the uniquized constructor if its type requires a conversion.
30410
30411 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
30412
30413         PR debug/44205
30414         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
30415         at -O0 goto_locus of any of the incoming edges differs from
30416         goto_locus of outgoing edge, or gimple_location of any of the
30417         labels differs.
30418
30419 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
30420
30421         * ira.c (ira_non_ordered_class_hard_regs): Define.
30422         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
30423         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
30424         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
30425         cost of unaligned hard regs when allocating multi-reg pseudos.
30426
30427 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
30428
30429         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
30430         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
30431         for TARGET_NO_FLOAT.
30432         * config/mips/mips.c (mips_file_start): Expand conditional expression
30433         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
30434         (mips_override_options): Move -mno-float override -msoft-float and
30435         -mhard-float.
30436         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
30437         Condition(TARGET_SUPPORTS_NO_FLOAT).
30438         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
30439         __mips_no_float here.
30440         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
30441         (TARGET_SUPPORTS_NO_FLOAT): Define.
30442         * config/mips/sdemtk.opt: Delete.
30443
30444 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
30445
30446         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
30447
30448 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
30449
30450         PR target/43733
30451         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
30452         * configure: Regenerate.
30453         * config.in: Regenerate.
30454         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
30455         instead of sahf only for 64bit targets.
30456
30457 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
30458
30459         PR debug/44178
30460         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
30461         setup_ref_regs for DEBUG_INSNs.
30462
30463 2010-05-20  Jan Hubicka  <jh@suse.cz>
30464
30465         PR middle-end/44197
30466         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
30467
30468 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
30469
30470         PR bootstrap/43870
30471         * df-scan.c (df_ref_compare): Stabilize sort.
30472
30473 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
30474
30475         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
30476         argument.  Don't use DW_OP_piece if offset is non-zero,
30477         put offset into second DW_OP_bit_piece argument.
30478         (dw_sra_loc_expr): Adjust callers.  For memory expressions
30479         compute offset.
30480
30481 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
30482
30483         PR target/44202
30484         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
30485         settings for 16-bit-constant "addo" alternative.
30486
30487 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
30488
30489         * config/mips/mips-dsp.md (add<DSPV:mode>3,
30490         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
30491
30492         PR target/43764
30493         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
30494         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
30495         Use it.
30496
30497 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
30498
30499         * diagnostic.c (FLOAT, FFS): Don't undefine.
30500         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
30501         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
30502         include ordering.
30503
30504 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
30505
30506         * combine.c (propagate_for_debug): Call make_compound_operation
30507         on the source value.
30508         (try_combine): When implementing a split chosen by find_split_point,
30509         either copy i2src or set it to null.  Assert that i2src is not null
30510         before substituting into CALL_INSN_FUNCTION_USAGE.
30511
30512 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
30513
30514         * double-int.h (double_int_ior): New function.
30515         * tree.h (build_int_cst_wide_type): Remove.
30516         * tree.c (build_int_cst_wide_type): Remove.
30517         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
30518         of build_int_cst_wide_type.
30519         * stor-layout.c (set_sizetype): (Ditto.).
30520         * dojump.c (do_jump): Use build_int_cstu instead of
30521         build_int_cst_wide_type.
30522
30523 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30524
30525         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
30526         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
30527         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
30528         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
30529         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
30530         propagate the 'data' argument to copy_tree_r.
30531         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
30532         Propagate 'data' argument to walk_tree.
30533         (copy_if_shared): New function.
30534         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
30535         (unmark_visited): New function.
30536         (unshare_body): Call copy_if_shared instead of doing it manually.
30537         (unvisit_body): Call unmark_visited instead of doing it manually.
30538
30539 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
30540
30541         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
30542         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
30543         * hooks.c: Likewise.
30544         * target-def.h (TARGET_FOLD_BUILTIN): Define to
30545         hook_tree_tree_int_treep_bool_null.
30546         * target.h (struct gcc_target): Update signature of fold_builtin
30547         field.
30548         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
30549         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
30550         instead of the call expression.
30551         (fold_builtin_call_array): Pass n and argarray directly.
30552         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
30553         consing a list.
30554         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
30555         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
30556         `i' and use it in place of `arity'.
30557         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
30558         Dereference `args' directly.
30559         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
30560
30561 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30562
30563         * doc/sourcebuild.texi (Effective-Target Keywords): Document
30564         3dnow, sse3, sse2.
30565         (Directives): Document optional dg-require-effective-target
30566         selector.
30567
30568 2010-05-19  Richard Guenther  <rguenther@suse.de>
30569
30570         PR lto/44196
30571         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
30572
30573 2010-05-19  Richard Guenther  <rguenther@suse.de>
30574
30575         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
30576         * common.opt (fwhopr=): New.
30577         * opts.c (common_handle_option): Handle OPT_fwhopr.
30578         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
30579         * collect2.c (main): Match -fwhopr*.
30580         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
30581         Execute ltrans stage in parallel when jobs is bigger than 1.
30582
30583 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30584
30585         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
30586         pentiumpro on Solaris 8/x86 with Sun as.
30587         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
30588         hidden alias bug.
30589         (gcc_cv_as_ix86_quad): Check for .quad directive.
30590         * configure: Regenerate.
30591         * config.in: Regenerate.
30592         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
30593
30594 2010-05-19  Martin Jambor  <mjambor@suse.cz>
30595
30596         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
30597         also for indirect edges.  Actual printing moved...
30598         (ipa_print_node_jump_functions_for_edge): ...here.
30599         (ipa_compute_jump_functions): Renamed to
30600         ipa_compute_jump_functions_for_edge and made static.
30601         (ipa_compute_jump_functions): New function.
30602         (make_edge_direct_to_target): Check if the number of arguments on
30603         the newly direct edge is the same as the number of parametrs of
30604         the callee.
30605         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
30606         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
30607         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
30608         analysis functions unconditionally, call the new
30609         ipa_analyze_params_uses on the node instead of every edge.
30610
30611 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
30612
30613         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
30614         to tree.
30615         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
30616         also checks for a constant int vs.  non-constant but
30617         loop-invariant steps.
30618         (find_or_create_group): Change the sort algorithm to only consider
30619         steps that are constant ints.
30620         (idx_analyze_ref): Adopt code to handle a tree instead of a
30621         HOST_WIDE_INT for step.
30622         (gather_memory_references_ref): Handle tree instead of int and be
30623         prepared to see a NULL_TREE.
30624         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
30625         prefetches if the step cannot be calculated at compile time.
30626         (issue_prefetch_ref): Issue prefetches for non-constant but
30627         loop-invariant steps.
30628
30629 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
30630
30631         Revert:
30632         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
30633
30634         * tree.h (build_call_list): Remove.
30635         * tree.c (build_call_list): Remove.
30636
30637 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
30638
30639         * tree.h (build_call_list): Remove.
30640         * tree.c (build_call_list): Remove.
30641
30642 2010-05-18  Jan Hubicka  <jh@suse.cz>
30643
30644         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
30645
30646 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
30647
30648         PR rtl-optimization/43332
30649         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
30650
30651 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
30652
30653         * tree.h (build_int_cstu): Implement as static inline.
30654         * tree.c (build_int_cstu): Remove function.
30655         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
30656         sign extended.
30657
30658 2010-05-18  Richard Guenther  <rguenther@suse.de>
30659
30660         PR lto/44143
30661         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
30662         (debug): Initialize from -save-temps.
30663         (collect_execute): Print command-line when verbose.
30664         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
30665         for ltrans invocation.  Produce -dumpbase flag again.
30666         (process_args): Remove.
30667         (main): Simplify.
30668         * collect2.c (maybe_run_lto_and_relink): Only pass object
30669         files to lto-wrapper.
30670         * gcc.c (LINK_COMMAND_SPEC): Likewise.
30671
30672 2010-05-18  Jan Hubicka  <jh@suse.cz>
30673
30674         * opts.c (decode_options): Do not disable whopr at ipa_cp.
30675         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
30676
30677 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
30678
30679         PR lto/44184
30680         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
30681         in a GIMPLE_ASM.
30682         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
30683         in a GIMPLE_ASM.
30684
30685 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
30686
30687         PR debug/41371
30688         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
30689         rtx_equal_p inline.
30690
30691 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
30692
30693         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
30694         lto-macho as lto_binary_reader.
30695
30696         * darwin.c (darwin_asm_named_section): Do not add assembler comment
30697         after .section directive; just print it before the directive instead.
30698
30699 2010-05-17  Jan Hubicka  <jh@suse.cz>
30700
30701         * cgraph.c (cgraph_create_virtual_clone): Only check
30702         versionable_function_p when not in wpa and checking is enabled.
30703         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
30704         there are no more functions to materialize.
30705
30706 2010-05-17  Jan Hubicka  <jh@suse.cz>
30707
30708         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
30709         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
30710         New functions.
30711         (output_cgraph): Call output_cgraph_opt_summary.
30712         (input_cgrpah): Call input_cgraph_opt_summary.
30713         (output_cgraph_opt_summary_p, output_node_opt_summary,
30714         input_node_opt_summary, input_cgraph_opt_section): New functions.
30715         * lto-section-in.c (lto_section_name): Add cgraphopt.
30716         * tree-inline.c (tree_function_versioning): Handle parm_num.
30717         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
30718         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
30719
30720 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
30721
30722         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
30723         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
30724         the insn to prefetch ratio heuristic to loops with known trip count.
30725
30726 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
30727
30728         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
30729         (schedule_prefetches): Do not generate a prefetch if the unroll factor
30730         is far from what is required by the prefetch.
30731
30732 2010-05-17  Jan Hubicka  <jh@suse.cz>
30733
30734         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
30735         (ipcp_estimate_growth): Likewise.
30736         (ipcp_const_param_count): Likewise.
30737         (ipcp_insert_stage): Likewise.
30738         * ipa-prop.c (visit_load_for_mod_analysis): New function.
30739         (visit_store_addr_for_mod_analysis): Set used flag.
30740         (ipa_detect_param_modifications): Set used flag for SSE params;
30741         update use of walk_stmt_load_store_addr_ops.
30742         (ipa_print_node_params): Print used flag.
30743         (ipa_write_node_info): Stream used flag.
30744         (ipa_read_node_info): Likewise.
30745         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
30746         (ipa_is_param_used): New function.
30747         (lto_ipa_fixup_call_notes): Remove unused declaration.
30748
30749 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30750
30751         PR target/44074
30752         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
30753         * configure: Regenerate.
30754         * config.in: Regenerate.
30755         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
30756         !HAVE_AS_IX86_REP_LOCK_PREFIX.
30757         Don't emit whitespace.
30758         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
30759         (*rep_movsi): Likewise.
30760         (*rep_movsi_rex64): Likewise.
30761         (*rep_movqi): Likewise.
30762         (*rep_movqi_rex64): Likewise.
30763         (*rep_stosdi_rex64): Likewise.
30764         (*rep_stossi): Likewise.
30765         (*rep_stossi_rex64): Likewise.
30766         (*rep_stosqi): Likewise.
30767         (*rep_stosqi_rex64): Likewise.
30768         (*cmpstrnqi_nz_1): Use {%;} after repz.
30769         (*cmpstrnqi_nz_rex_1): Likewise.
30770         (*cmpstrnqi_1): Likewise.
30771         (*cmpstrnqi_rex_1): Likewise.
30772         (*strlenqi_1): Use {%;} after repnz.
30773         (*strlenqi_rex_1): Likewise.
30774         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
30775         (*sync_compare_and_swap<mode>): Likewise.
30776         (sync_double_compare_and_swap<mode>): Likewise.
30777         (*sync_double_compare_and_swapdi_pic): Likewise.
30778         (sync_old_add<mode>): Likewise.
30779         (sync_add<mode>): Likewise.
30780         (sync_sub<mode>): Likewise.
30781         (sync_<code><mode>): Likewise.
30782
30783 2010-05-17  Martin Jambor  <mjambor@suse.cz>
30784
30785         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
30786         otr_token and polymorphic.
30787         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
30788         (cgraph_clone_edge): Copy the above fields.
30789         * tree.c (get_binfo_at_offset): New function.
30790         * tree.h (get_binfo_at_offset): Declare.
30791         * ipa-prop.h (enum jump_func_type): Added known_type jump function
30792         type, reordered items, updated comments.
30793         (union jump_func_value): Added base_type field, reordered fields.
30794         (enum ipa_lattice_type): Moved down in the file.
30795         (struct ipa_param_descriptor): New field polymorphic.
30796         (ipa_is_param_polymorphic): New function.
30797         * ipa-prop.c: Include gimple.h and gimple-fold.h.
30798         (ipa_print_node_jump_functions): Print known type jump functions.
30799         (compute_complex_pass_through): Renamed to...
30800         (compute_complex_assign_jump_func): this.
30801         (compute_complex_ancestor_jump_func): New function.
30802         (compute_known_type_jump_func): Likewise.
30803         (compute_scalar_jump_functions): Create known type and complex ancestor
30804         jump functions.
30805         (ipa_note_param_call): New parameter polymorphic, set the corresponding
30806         flag in the call note accordingly.
30807         (ipa_analyze_call_uses): Renamed to...
30808         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
30809         variable var only in the block where it is used.
30810         (ipa_analyze_virtual_call_uses): New function.
30811         (ipa_analyze_call_uses): Likewise.
30812         (combine_known_type_and_ancestor_jfs): Likewise.
30813         (update_jump_functions_after_inlining): Implemented handling of a
30814         number of new jump function types combination.
30815         (print_edge_addition_message): Removed.
30816         (make_edge_direct_to_target): New function.
30817         (try_make_edge_direct_simple_call): Likewise.
30818         (try_make_edge_direct_virtual_call): Likewise.
30819         (update_call_notes_after_inlining): Renamed to...
30820         (update_indirect_edges_after_inlining): this.  Moved edge creation for
30821         indirect calls to try_make_edge_direct_simple_call, also calls
30822         try_make_edge_direct_virtual_call for virtual calls.
30823         (ipa_print_node_params): Changed the header message.
30824         (ipa_write_jump_function): Stream also known type jump functions.
30825         (ipa_read_jump_function): Likewise.
30826         (ipa_write_indirect_edge_info): Stream new fields in
30827         cgraph_indirect_call_info.
30828         (ipa_read_indirect_edge_info): Likewise.
30829         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
30830         GIMPLE_FOLD_H.
30831
30832 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30833
30834         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
30835
30836 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
30837
30838         * tree.h (CALL_EXPR_ARGS): Delete.
30839         (call_expr_arglist): Delete.
30840         * tree.c (call_expr_arglist): Delete.
30841         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
30842         targetm.fold_builtin.
30843         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
30844         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
30845         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
30846         arglist parameter.  Use CALL_EXPR_ARG.
30847         (picochip_expand_builtin_3op): Likewise.
30848         (picochip_expand_builtin_2opvoid): Likewise.
30849         (picochip_expand_array_get): Likewise.
30850         (picochip_expand_array_put): Likewise.
30851         (picochip_expand_array_testport): Likewise.
30852         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
30853         rather than arglist.
30854         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
30855         CALL_EXPR_ARGS.
30856         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
30857         than TREE_VALUE and TREE_CHAIN.
30858         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
30859         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
30860         the arglist.
30861
30862 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
30863
30864         PR bootstrap/42347
30865         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
30866         to have no fallthru edge.
30867
30868         PR middle-end/44102
30869         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
30870         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
30871         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
30872         add BARRIER after previous bb if needed.
30873
30874 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
30875
30876         * tree.c (build_function_type_list_1): Remove bogus assert condition.
30877
30878 2010-05-17  Alan Modra  <amodra@gmail.com>
30879
30880         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
30881         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
30882         with copy_reg rtx param.
30883         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
30884         Correct cases where code for ABI_V4 did not initialise the reg
30885         used to access frame.  Also leave frame_reg_rtx as sp for large
30886         frames that save no regs.
30887
30888 2010-05-17  Martin Jambor  <mjambor@suse.cz>
30889
30890         PR middle-end/44133
30891         * tree-sra.c (create_access_replacement): New parameter rename, mark
30892         the replaement for renaming only when it is true.
30893         (get_access_replacement): Pass true in the rename parameter of
30894         create_access_replacement.
30895         (get_unrenamed_access_replacement): New function.
30896         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
30897         replacement declaration from it.
30898
30899 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
30900
30901         * function.c (try_fit_stack_local, add_frame_space): New static
30902         functions.
30903         (assign_stack_local_1): Use them.  Look for opportunities to use
30904         space previously wasted on alignment.
30905         * function.h (struct frame_space): New.
30906         (struct rtl_data): Add FRAME_SPACE_LIST member.
30907         * reload1.c (something_was_spilled): New static variable.
30908         (alter_reg): Set it.
30909         (reload): Test it in addition to testing if the frame size changed.
30910
30911 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
30912
30913         * config/s390/s390.c: Define sane prefetch settings and activate
30914         flag_prefetch_loop_arrays on -O3.
30915         * config/s390/s390.h: Declare that read can use write prefetch.
30916
30917 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
30918
30919         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
30920         build.
30921
30922 2010-05-16  Jan Hubicka  <jh@suse.cz>
30923
30924         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
30925         function body; do not check stdarg field of struct function.
30926
30927 2010-05-16  Jan Hubicka  <jh@suse.cz>
30928
30929         * cgraph.c (dump_cgraph_node): Dump versionable flag.
30930         * cgraph.h (cgraph_local_info): Add versionable flag.
30931         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
30932         (ipcp_versionable_function_p): Use it.
30933         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
30934         versionable flag.
30935
30936 2010-05-16  Jan Hubicka  <jh@suse.cz>
30937
30938         * cgraph.c (cgraph_clone_node): Take decl argument and insert
30939         clone into hash when it is different from orig.
30940         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
30941         * cgraph.h (cgraph_clone_node): Update prototype.
30942         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
30943         (lto_cgraph_encoder_delete): Delete body map.
30944         (lto_cgraph_encoder_size): Move to header.
30945         (lto_cgraph_encoder_encode_body_p,
30946         lto_set_cgraph_encoder_encode_body): New.
30947         (lto_output_node): Do not take written_decls argument; output clone_of
30948         pointer.
30949         (add_node_to): Add include_body_argument; call
30950         lto_set_cgraph_encoder_encode_body on master of the clone.
30951         (add_references): Update use of add_node_to.
30952         (compute_ltrans_boundary): Likewise.
30953         (output_cgraph): Do not create written_decls bitmap.
30954         (input_node): Take nodes argument; stream in clone_of correctly.
30955         (input_cgraph_1): Update use of input_node.
30956         * lto-streamer-out.c (lto_output): Use encoder info to decide
30957         what bodies to output.
30958         * ipa-inline.c (cgraph_clone_inlined_nodes,
30959         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
30960         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
30961         (lto_cgraph_encoder_size): Define here.
30962         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
30963         Declare.
30964
30965 2010-05-16  Richard Guenther  <rguenther@suse.de>
30966
30967         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
30968         -fipa-type-escape.
30969         * ipa-type-escape.c (gate_type_escape_vars): Run when
30970         -fipa-struct-reorg runs.
30971         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
30972         * common.opt (fipa-type-escape): Remove.
30973
30974 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
30975
30976         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
30977         (decode_options): Likewise.
30978         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
30979
30980 2010-05-16  Jan Hubicka  <jh@suse.cz>
30981
30982         * ipa.c (function_and_variable_visibility): Also bring local all
30983         aliases.
30984
30985 2010-05-16  Richard Guenther  <rguenther@suse.de>
30986
30987         * alias.c (nonoverlapping_memrefs_p): Remove use of
30988         IPA type-escape information.
30989
30990 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
30991
30992         * c-common.c (c_common_reswords): Add _Static_assert for C.
30993         * c-parser.c (c_token_starts_declaration,
30994         c_parser_next_token_starts_declaration,
30995         c_parser_static_assert_declaration_no_semi,
30996         c_parser_static_assert_declaration): New.
30997         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
30998         Handle static assertions if static_assert_ok.
30999         (c_parser_external_declaration, c_parser_declaration_or_fndef,
31000         c_parser_compound_statement_nostart, c_parser_label,
31001         c_parser_for_statement, c_parser_objc_methodprotolist,
31002         c_parser_omp_for_loop): All callers of
31003         c_parser_declaration_or_fndef changed.
31004         (c_parser_struct_declaration): Handle static assertions.
31005         (c_parser_compound_statement_nostart): Use
31006         c_parser_next_token_starts_declaration and
31007         c_token_starts_declaration to detect start of declarations.
31008         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
31009         Likewise.
31010
31011 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
31012
31013         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
31014         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
31015         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
31016         TARGET_FUNCTION_VALUE_REGNO_P): Define.
31017         (mmix_function_outgoing_value): Rename to...
31018         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
31019         (mmix_function_value_regno_p): Make static.
31020         (mmix_libcall_value): New function.
31021         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
31022         mmix_function_value_regno_p): Remove declaration.
31023
31024 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
31025
31026         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
31027         BUILT_IN_ALLOCA if stack checking is enabled.
31028
31029 2010-05-16  Richard Guenther  <rguenther@suse.de>
31030
31031         * var-tracking.c (vars_copy_1): Inline ...
31032         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
31033         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
31034         (variable_merge_over_cur): Adjust.  Merge asserts.
31035         (variable_merge_over_src): Likewise.
31036         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
31037         (variable_post_merge_new_vals): Merge asserts.
31038         (variable_post_merge_perm_vals): Likewise.
31039         (find_mem_expr_in_1pdv): Likewise.
31040         (dataflow_set_different_value): Remove.
31041         (onepart_variable_different_p): Merge asserts.
31042         (variable_different_p): Likewise.
31043         (dataflow_set_different_1): Inline ...
31044         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
31045         (emit_notes_for_differences_1): Merge asserts.
31046
31047 2010-05-16  Richard Guenther  <rguenther@suse.de>
31048
31049         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
31050         * optabs.c (libfunc_decl_hash): Likewise.
31051         * varasm.c (emutls_decl): Likewise.
31052
31053 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
31054
31055         * c-decl.c: Don't include gimple.h.
31056         (merge_decls): Do not copy gimple_body.
31057
31058 2010-05-15  Jason Merrill  <jason@redhat.com>
31059
31060         * c.opt: Add -fnothrow-opt.
31061
31062 2010-05-15  Jan Hubicka  <jh@suse.cz>
31063
31064         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
31065         analyzed.
31066         * passes.c (ipa_write_summaries): Write all analyzed nodes.
31067
31068 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
31069
31070         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
31071         * Makefile.in: Add it.
31072         Fix all other Makefile dependencies for changes below.
31073         * tree.h: Include it instead of defining VEC primitives here.
31074         * gimple.h: Likewise.
31075         * rtl.h: Likewise.
31076         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
31077         * except.h: Include vecir.h, break dependence on tree.h.
31078
31079         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
31080         Move from here...
31081         * tree-iterator.c: ...to here.
31082         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
31083
31084         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
31085         tm_p.h.
31086         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
31087         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
31088         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
31089         tree-mudflap.h, and target.h.
31090         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
31091         predict.h, tree-inline.h, gimple.h, and langhooks.h.
31092         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
31093         Add FIXME for why gimple.h is still included (should be unnecessary
31094         since GCC 4.5 gimplification unit-at-a-time).
31095         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
31096         * c-pragma.c: Add FIXME for why function.h needs to be included just
31097         for cfun, at front-end level.
31098         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
31099         Do not include ggc.h, but include vecprim.h for VEC(char).
31100         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
31101         Explain why target.h is included.
31102         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
31103         Explain why gimple.h is included.
31104         * c-ppoutput.c: Do not include tm.h.
31105         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
31106         * c-parses.c: Explain why rtl.h is included, and that this (and only
31107         this) is also why tm.h must be included.
31108         Do not include except.h.
31109         * c-lang.c: Do not include ggc.h.
31110
31111 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
31112
31113         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
31114
31115 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
31116
31117         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
31118         unions by default if those structs and unions have no tags.  Do
31119         not condition anonymous struct and unions handling on flag_iso.
31120         Allow anonymous structs and unions for C1X.
31121         (finish_struct): Do not diagnose lack of named fields when
31122         anonymous structs and unions present for C1X.  Accept flexible
31123         array members in structure with anonymous structs or unions but no
31124         directly named fields.
31125         * doc/extend.texi (Unnamed Fields): Update.
31126
31127 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
31128
31129         * gimple.h (compare_field_offset): Rename into...
31130         (gimple_compare_field_offset): ...this.
31131         * gimple.c (compare_field_offset): Rename into...
31132         (gimple_compare_field_offset): ...this.  Compare the full access if
31133         the offset is self-referential.
31134         (gimple_types_compatible_p): Adjust for above renaming.
31135         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
31136         DECL_NONADDRESSABLE_P flag of fields before merging them.
31137
31138 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
31139
31140         * tree.h (ctor_to_list): Delete.
31141         * tree.c (ctor_to_list): Delete.
31142
31143 2010-05-15  Jan Hubicka  <jh@suse.cz>
31144
31145         * ipa-reference.c: Include toplev.h
31146         (is_proper_for_analysis): Only add to all_module_statics
31147         if it is allocated.
31148         (write_node_summary_p, stream_out_bitmap,
31149         ipa_reference_write_optimization_summary,
31150         ipa_reference_read_optimization_summary): New.
31151         (struct ipa_opt_pass_d pass_ipa_reference): Add
31152         optimization summary streaming.
31153         * lto-cgraph.c (referenced_from_this_partition_p,
31154         reachable_from_this_partition_p): New functions.
31155         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
31156         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
31157         * opts.c (decode_options): Enable ipa_reference.
31158         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
31159         * lto-streamer.h (referenced_from_this_partition_p,
31160         reachable_from_this_partition_p): Declare.
31161
31162 2010-05-15  Richard Guenther  <rguenther@suse.de>
31163
31164         PR tree-optimization/44038
31165         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
31166         taking the address of a V_C_E of a constant.
31167
31168 2010-05-14  Jan Hubicka  <jh@suse.cz>
31169
31170         * tree.h (memory_identifier_string): Remove.
31171         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
31172         (ipa_reference_global_vars_info_d): Remove statics_not_read and
31173         statics_not_written.
31174         (ipa_reference_optimization_summary_d): New structure.
31175         (ipa_reference_optimization_summary_t): New type and vector.
31176         (ipa_reference_vars_info_d): Embedd structures instead of using
31177         pointers.
31178         (reference_vars_to_consider): Remove out of GGC space.
31179         (module_statics_escape): Remove.
31180         (global_info_obstack): Rename to ...
31181         (optimization_summary_obstack): ... this one.
31182         (initialization_status_t): Remove.
31183         (memory_identifier_string): Remove.
31184         (get_reference_vars_info): Fix indenting.
31185         (set_reference_vars_info): Likewise.
31186         (get_reference_optimization_summary): New.
31187         (set_reference_optimization_summary): New.
31188         (get_global_reference_vars_info): Remove.
31189         (ipa_reference_get_read_global): Remove.
31190         (ipa_reference_get_written_global): Remove.
31191         (ipa_reference_get_not_read_global): Update.
31192         (ipa_reference_get_not_written_global): Update.
31193         (is_proper_for_analysis): Outlaw addressable.
31194         (propagate_bits): Update for new datastructures.
31195         (analyze_variable): Remove.
31196         (init_function_info): Update for new datastructures.
31197         (clean_function_local_data): Remove.
31198         (clean_function): Remove.
31199         (copy_global_bitmap): Use optimizations_summary_obstack.
31200         (duplicate_node_data): Duplicate optimization summary only.
31201         (remove_node_data): Remove optimization summary only.
31202         (generate_summary): Do not analyze variables; do not compute
31203         module_statics_escape; do not prune solutions by it.
31204         (read_write_all_from_decl): Fix typos in comments.
31205         (propagate): Doscover readonly and nonaddressable first;
31206         update for new datastructures; share global bitmaps.
31207         * ipa-reference.h (ipa_reference_get_read_global,
31208         ipa_reference_get_written_global): Remove.
31209         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
31210         * Makefile.in: Remove ipa-refereference from GT files.
31211
31212 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
31213
31214         PR debug/44112
31215         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
31216         for all SYMBOL_REF_DECLs.
31217
31218 2010-05-14  Jan Hubicka  <jh@suse.cz>
31219
31220         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
31221         (varpool_all_refs_explicit_p): New inline function.
31222         * ipa-reference.c: Update comment.
31223         (module_statics_written): Remove.
31224         (get_static_decl): Remove.
31225         (ipa_init): Do not initialize module_statics_written.
31226         (analyze_function): Likewise.
31227         (generate_summary): Likewise; do not compute module_statics_readonly
31228         and do not update variable flags.
31229         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
31230         * ipa.c: Inlucde flags.h
31231         (cgraph_local_node_p): New.
31232         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
31233         promote functions to local.
31234         (ipa_discover_readonly_nonaddressable_vars): New function.
31235         (function_and_variable_visibility): Use cgraph_local_node_p.
31236         * varpool.c (varpool_finalize_decl): Set force_output for
31237         DECL_PRESERVE_P vars.
31238
31239 2010-05-14  Jan Hubicka  <jh@suse.cz>
31240
31241         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
31242
31243 2010-05-14  Richard Guenther  <rguenther@suse.de>
31244
31245         PR tree-optimization/44119
31246         * tree-ssa-pre.c (eliminate): Properly mark replacement of
31247         a PHI node necessary.
31248
31249 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
31250
31251         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
31252
31253 2010-05-14  Jason Merrill  <jason@redhat.com>
31254
31255         PR c++/44127
31256         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
31257         (gimple_call_set_nothrow): New.
31258         * gimple.c (gimple_build_call_from_tree): Call it.
31259         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
31260
31261         PR c++/44127
31262         * gimplify.c (gimplify_seq_add_stmt): No longer static.
31263         * gimple.h: Declare it.
31264         * gimple.c (gimple_build_eh_filter): No ops.
31265
31266 2010-05-14  Jan Hubicka  <jh@suse.cz>
31267
31268         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
31269         nodes already in queue.
31270         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
31271         re-enqueueing node.
31272
31273 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
31274
31275         PR debug/44136
31276         * cfgexpand.c (expand_debug_expr): If non-memory op0
31277         has BLKmode, return NULL.
31278
31279 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
31280
31281         * config.gcc: Add support for --with-cpu option for bdver1.
31282         * config/i386/i386.h (TARGET_BDVER1): New macro.
31283         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
31284         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
31285         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
31286         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
31287         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
31288         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
31289         (processor_type): Add PROCESSOR_BDVER1.
31290         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
31291         processor_type in config/i386/i386.h.
31292         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
31293         movaps <reg, reg> instead of movapd <reg, reg> when replacing
31294         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
31295         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
31296         to emit packed xor instead of packed double/packed integer
31297         xor for SSE and AVX when moving a zero value.
31298         * config/i386/sse.md: Add check for
31299         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
31300         movapd/movdqa for SSE and AVX.
31301         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
31302         single logical operations i.e and, or and xor instead of packed double
31303         logical operations for SSE and AVX.
31304         * config/i386/i386-c.c (ix86_target_macros_internal):
31305         Add PROCESSOR_BDVER1.
31306         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
31307         (has_fma4, has_xop): New.
31308         * config/i386/i386.c (bdver1_cost): New variable.
31309         (m_BDVER1): New macro.
31310         (m_AMD_MULTIPLE): Add m_BDVER1.
31311         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
31312         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
31313         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
31314         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
31315         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
31316         x86_tune_sse_partial_reg_dependency,
31317         x86_tune_sse_unaligned_load_optimal,
31318         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
31319         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
31320         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
31321         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
31322         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
31323         Enable/disable for bdver1.
31324         (processor_target_table): Add bdver1_cost.
31325         (cpu_names): Add bdver1.
31326         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
31327          processor_alias_table.
31328         (ix86_expand_vector_move_misalign): Change.
31329         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
31330         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
31331         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
31332         of movupd/movdqu for SSE and AVX.
31333         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
31334         (ix86_tune_adjust_cost): Add code for bdver1.
31335         (standard_sse_constant_opcode): Add check for
31336         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
31337         of packed double xor for SSE and AVX.
31338
31339 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
31340
31341         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
31342         result to unsigned.
31343
31344 2010-05-14  Tristan Gingold  <gingold@adacore.com>
31345
31346         * toplev.c (default_debug_hooks): Remove this variable.
31347         (process_options): Remove assignments to default_debug_hooks.
31348
31349 2010-05-14  Martin Jambor  <mjambor@suse.cz>
31350
31351         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
31352         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
31353         * langhooks.h (struct lang_hooks_for_decls): Removed field
31354         fold_obj_type_ref.
31355         * tree.c (free_lang_data): Remove assignment to
31356         lang_hooks.fold_obj_type_ref.
31357         * tree.def (OBJ_TYPE_REF): Update comment.
31358
31359 2010-05-14  Richard Guenther  <rguenther@suse.de>
31360
31361         PR tree-optimization/44124
31362         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
31363
31364 2010-05-14  Alan Modra  <amodra@gmail.com>
31365
31366         PR target/44075
31367         * config/rs6000/rs6000.c (struct machine_function): Reorder
31368         fields for better packing.  Add lr_save_state.
31369         (rs6000_ra_ever_killed): Return lr_save_state if set.
31370         (rs6000_emit_eh_reg_restore): Set lr_save_state.
31371
31372 2010-05-13  Jan Hubicka  <jh@suse.cz>
31373
31374         * varpool.c (decide_is_variable_needed): Drop code checking
31375         TREE_SYMBOL_REFERENCED.
31376
31377 2010-05-13  Jan Hubicka  <jh@suse.cz>
31378
31379         * final.c (output_addr_const): Do not call mark_decl_referenced.
31380         * cgraphunit.c (process_function_and_variable_attributes): Use
31381         mark_needed_node dirrectly.
31382         (assemble_thunk): Do not call mark_decl_referenced.
31383
31384 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
31385
31386         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
31387
31388 2010-05-13  Jeff Law  <law@redhat.com>
31389
31390         * ira-conflicts.c (print_allocno_conflicts): New function broken out
31391         from...
31392         (print_conflicts): Call print_allocno_conflicts.
31393
31394 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
31395
31396         PR debug/44104
31397         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
31398         if it is NULL.
31399
31400 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
31401
31402         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
31403         t-mingw-w64 or t-mingw-w32 for multilib configuration.
31404         * config/i386/t-mingw-w32: New.
31405         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
31406
31407 2010-05-13  Martin Jambor  <mjambor@suse.cz>
31408
31409         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
31410         gimple-fold.c).
31411         * gimple-fold.c (get_base_binfo_for_type): New function.
31412         (gimple_get_relevant_ref_binfo): Likewise.
31413         (gimple_fold_obj_type_ref_known_binfo): Likewise.
31414         (gimple_fold_obj_type_ref): Likewise.
31415         (fold_gimple_call): Simplify condition for folding virtual calls
31416         and call gimple_fold_obj_type_ref.
31417         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
31418         (gimple_fold_obj_type_ref_known_binfo): Likewise.
31419
31420 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
31421
31422         * config/rs6000/rs6000-protos.h
31423         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
31424         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
31425         (rs6000_debug_mode_dependent_address)
31426         (rs6000_mode_dependent_address_ptr): Likewise.
31427
31428 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
31429
31430         PR debug/43983
31431         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
31432         by SRA.
31433         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
31434         * tree-sra.c (create_access_replacement): Call unshare_expr before
31435         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
31436         * dwarf2out.c: Include tree-flow.h.
31437         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
31438         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
31439         Handle DW_OP_bit_piece.
31440         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
31441         construct_piece_list, adjust_piece_list): New functions.
31442         (add_var_loc_to_decl): Handle SRA optimized variables.
31443         Adjust for var_loc_note to loc field renaming.
31444         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
31445         in VAR_LOCATION note.
31446         (new_loc_descr_op_bit_piece): New function.
31447         (dw_sra_loc_expr): New function.
31448         (dw_loc_list): Use it.  Don't handle the last range after the
31449         loop, handle it inside of the loop.  Adjust for var_loc_note
31450         to loc field renaming.
31451         (add_location_or_const_value_attribute): Only special case
31452         single entry loc lists if loc is NOTE_P.  Adjust for
31453         var_loc_note to loc field renaming.
31454         (dwarf2out_var_location): Don't set newloc->var_loc_note
31455         and newloc->next here.
31456
31457 2010-05-12  Jan Hubicka  <jh@suse.cz>
31458
31459         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
31460         flag.
31461         * cgraph.h (cgraph_only_called_directly_p,
31462         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
31463         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
31464         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
31465         (assemble
31466         * ipa.c (cgraph_remove_unreachable_nodes): Use
31467         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
31468         flags.
31469         * tree-inline.c (copy_bb): Check address_taken flag.
31470         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
31471         externally_visible flag.
31472
31473 2010-05-12  Jason Merrill  <jason@redhat.com>
31474
31475         PR bootstrap/44048
31476         PR target/44099
31477         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
31478         * sdbout.c (plain_type_1): Likewise.
31479         * dwarf2out.c (is_base_type): Likewise.
31480         (gen_type_die_with_usage): Likewise.  Generate
31481         DW_TAG_unspecified_type for any LANG_TYPE.
31482
31483 2010-05-12  Jan Hubicka  <jh@suse.cz>
31484
31485         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
31486         indrect edges too.
31487         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
31488         (cgraph_clone_edge): Update.
31489         (cgraph_node_remove_callees): Remove indirect calls too.
31490         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
31491         (cgraph_create_indirect_edge): Update prototype.
31492         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
31493         is_proper_for_analysis.
31494         (add_new_function, visited_nodes, function_insertion_hook_holder,
31495         get_local_reference_vars_info, mark_address_taken, mark_address,
31496         mark_load, mark_store, check_asm_memory_clobber, check_call,
31497         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
31498         (ipa_init): Do not initialize visited_nodes;
31499         function_insertion_hook_holder.
31500         (analyze_variable): Rewrite.
31501         (analyze_function): Rewrite.
31502         (copy_local_bitmap): Remove.
31503         (duplicate_node_dat): Do not duplicate local info.
31504         (generate_summary): Simplify to only walk cgraph.
31505         (write_node_summary_p, ipa_reference_write_summary,
31506         ipa_reference_read_summary): Remove.
31507         (propagate): Do not remove function insertion;
31508         generate summary.
31509         (pass_ipa_reference): NULLify summary handling fields.
31510         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
31511         (input_edge): Input ecf_flags.
31512         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
31513         (update_indirect_edges_after_inlining): Ignore edges with unknown
31514         param.
31515
31516 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
31517
31518         * implicit-zee.c: New file.
31519         * tree-pass.h (pass_implicit_zee): Declare.
31520         * passes.c (init_optimization_passes): Add zee pass.
31521         * common.opt (fzee): New flag.
31522         * timevar.def (TV_ZEE): Define.
31523         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
31524         and beyond.
31525         * Makefile.in (implicit-zee.o): Add new build file.
31526
31527 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
31528             Nathan Froyd  <froydnj@codesourcery.com>
31529
31530         * c-common.c (sync_resolve_params): Remove write-only variable.
31531
31532 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
31533
31534         * target.h (struct gcc_target): Add mode_dependent_address_p field.
31535         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
31536         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
31537         * targhooks.c (default_mode_dependent_address_p): New function.
31538         * targhooks.h (default_mode_dependent_address_p): Declare function.
31539         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
31540         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
31541         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
31542         target hook. Change return type to bool.
31543         * recog.h (mode_dependent_address_p): Change return type to bool.
31544
31545 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
31546             Nathan Froyd  <froydnj@codesourcery.com>
31547
31548         * tree-mudflap.c (build_function_type_0, build_function_type_1,
31549         build_function_type_2, build_function_type_3): Remove.
31550         (mudflap_init): Use build_function_type_list.
31551
31552 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
31553             Nathan Froyd  <froydnj@codesourcery.com>
31554
31555         * coverage.c (build_fn_info_value): Call build_constructor instead of
31556         build_constructor_from_list.
31557         (build_ctr_info_value): Likewise.
31558         (build_gcov_info): Likewise.
31559
31560 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
31561
31562         * tree.c (build_constructor): Compute TREE_CONSTANT for the
31563         resultant constructor.
31564         (build_constructor_single): Don't set TREE_CONSTANT.
31565         (build_constructor_from_list): Don't compute TREE_CONSTANT.
31566
31567 2010-05-12  Jan Hubicka  <jh@suse.cz>
31568
31569         * cgraph.h (struct varpool_node): Add aux.
31570         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
31571         * varpool.c (varpool_remove_node): Do not remove initializer.
31572         (varpool_reset_queue): Export.
31573         (varpool_finalize_decl): Volatile vars are forced to be output.
31574         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
31575         replaced decl.
31576         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
31577         process_references, varpool_can_remove_if_no_refs): New functions.
31578         (cgraph_remove_unreachable_nodes): Handle variables too.
31579
31580 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
31581
31582         PR target/44088
31583         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
31584
31585 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
31586
31587         PR middle-end/44085
31588         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
31589         change value of ORT_TASK.
31590         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
31591         (omp_notice_threadprivate_variable): New function.
31592         (omp_notice_variable): Call it for threadprivate variables.
31593         If enclosing ctx is a task, print enclosing task rather than
31594         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
31595         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
31596         if task has untied clause.
31597
31598         PR debug/42278
31599         * dwarf2out.c (base_type_die): Don't add name attribute here.
31600         (modified_type_die): Instead of sizetype use
31601         its underlying original type.  If a DW_TAG_base_type doesn't
31602         have name added, add __unknown__.
31603         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
31604         always call force_type_die instead.
31605
31606 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
31607
31608         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
31609         for __stack_chk_guard.
31610
31611 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
31612
31613         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
31614         don't call start_source_file debug hook here...
31615         (finish_options): ... but here, after outputting predefined and
31616         command line defines and undefs.
31617
31618         PR middle-end/44071
31619         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
31620         no fallthru edge.
31621         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
31622         optimizing away empty bb with no successors, move over its
31623         footer chain to fallthru predecessor.
31624         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
31625         (rtl_split_edge): For asm goto call patch_jump_insn even if
31626         splitting fallthru edge.
31627
31628         PR c++/44059
31629         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
31630         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
31631         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
31632         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
31633         on DW.ref.* decls.
31634
31635         PR c++/44062
31636         * c-parser.c (c_parser_expression): Mark LHS of a comma
31637         expression as read if it is a decl, handled component or
31638         COMPOUND_EXPR with that on the RHS.
31639         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
31640         if it is a decl or handled component.
31641
31642 2010-05-11  Jan Hubicka  <jh@suse.cz>
31643
31644         * lto-symtab.c (lto_symtab_free): New function.
31645         * lto-streamer.h (lto_symtab_free): Declare.
31646
31647 2010-05-11  Jan Hubicka  <jh@suse.cz>
31648
31649         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
31650         that if function is needed it is reachable.
31651         (lto_output_node): See if it the function is reachable or referenced.
31652         (output_cgraph): Update call of lto_output_node.
31653         * lto-streamer.h (reachable_from_other_partition_p): Declare.
31654
31655 2010-05-11  Jan Hubicka  <jh@suse.cz>
31656
31657         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
31658         Mark as used.
31659
31660 2010-05-11  Jan Hubicka  <jh@suse.cz>
31661
31662         PR tree-optimize/44063
31663         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
31664         queue.
31665         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
31666         limits.
31667         (estimate_function_body_sizes): Compute sizes even when disregarding.
31668
31669 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
31670
31671         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
31672
31673 2010-05-11  Jan Hubicka  <jh@suse.cz>
31674
31675         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
31676         into every boundary.
31677
31678 2010-05-11  Jan Hubicka  <jh@suse.cz>
31679
31680         * matrix-reorg.c (matrix_reorg): Rebuild edges.
31681
31682 2010-05-11  Jan Hubicka  <jh@suse.cz>
31683
31684         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
31685         lto_streamer_cache_delete): Put nodes into heap.
31686         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
31687         heap.
31688
31689 2010-05-11  Jan Hubicka  <jh@suse.cz>
31690
31691         * cgraphbuild.c (cgraph_rebuild_references): New.
31692         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
31693         out extern inlines.
31694         * cgraph.h (cgraph_rebuild_references): Declare.
31695         * tree-inline.c (tree_function_versioning): Use it.
31696         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
31697
31698 2010-05-11  Jan Hubicka  <jh@suse.cz>
31699
31700         * cgraph.c: Include ipa-utils.h
31701         (cgraph_create_virtual_clone): Update references.
31702         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
31703
31704 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
31705
31706         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
31707         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
31708         cache size.
31709
31710 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
31711
31712         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
31713
31714 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
31715
31716         * gcc.c (execute): For -### don't quote arguments that
31717         contain just alphanumerics and _/-. characters.
31718         * doc/invoke.texi: Document that change for -###.
31719
31720         PR debug/44023
31721         * df-problems.c (struct dead_debug): Add to_rescan field.
31722         (dead_debug_init): Clear to_rescan field.
31723         (dead_debug_finish): Rescan all debug insns in to_rescan
31724         bitmap and free the bitmap.
31725         (dead_debug_insert_before): Instead of rescanning debug insns
31726         immediately queue their rescanning until dead_debug_finish.
31727         (df_note_bb_compute): After dead_debug_add do continue instead
31728         of break.
31729
31730 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
31731
31732         PR debug/44028
31733         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
31734         clear also INSN_REG_USE_LIST.
31735
31736 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31737
31738         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
31739
31740 2010-05-10  Jan Hubicka  <jh@suse.cz>
31741
31742         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
31743         commited change.
31744
31745 2010-05-10  Jan Hubicka  <jh@suse.cz>
31746
31747         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
31748         Allocate encoders.
31749         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
31750         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
31751         (lto_streamer_cache_create): Init alloc pool.
31752         (lto_streamer_cache_delete): Free alloc pool.
31753         * lto-streamer.h: Include alloc pool.
31754         (lto_streamer_cache_d): Use alloc pool.
31755         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
31756
31757 2010-05-10  Jan Hubicka  <jh@suse.cz>
31758
31759         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
31760         * cgraphbuild.c: Include except.h
31761         (record_type_list, record_eh_tables): New function.
31762         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
31763
31764 2010-05-10  Jan Hubicka  <jh@suse.cz>
31765
31766         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
31767         __frame_dummy_init_array_entry, force_to_data): Attribute as used
31768         rather than unused.
31769
31770 2010-05-10  Michael Matz  <matz@suse.de>
31771
31772         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
31773         (can_reassociate_p): Use FLOAT_TYPE_P.
31774         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
31775         (vect_force_simple_reduction): ... this.
31776         * tree-parloops.c (gather_scalar_reductions): Use
31777         vect_force_simple_reduction.
31778         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
31779         vect_is_simple_reduction, add modify argument, if true rewrite
31780         "a-b" into "a+(-b)".
31781         (vect_is_simple_reduction, vect_force_simple_reduction): New
31782         functions.
31783         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
31784
31785 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31786             Vladimir Makarov  <vmakarov@redhat.com>
31787
31788         PR rtl-optimization/44012
31789         * ira-build.c (remove_unnecessary_allocnos): Nullify
31790         regno_allocno_map of the removed allocno.
31791
31792 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31793
31794         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
31795         to /dev/null.
31796         * configure: Regenerate.
31797
31798 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31799
31800         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
31801         unused.
31802         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
31803         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
31804         support in Sun ld.
31805         * configure: Regenerate.
31806
31807 2010-05-10  Richard Guenther  <rguenther@suse.de>
31808
31809         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
31810         marked if the entry identifier is marked.
31811
31812 2010-05-10  Richard Guenther  <rguenther@suse.de>
31813
31814         * c-common.c (struct c_common_attributes): Add fnspec attribute.
31815         (handle_fnspec_attribute): New function.
31816         * gimple.h (gimple_call_return_flags): Declare.
31817         (gimple_call_arg_flags): Likewise.
31818         * gimple.c (gimple_call_arg_flags): New function.
31819         (gimple_call_return_flags): Likewise.
31820         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
31821         New argument flags.
31822         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
31823         return value flags.
31824         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
31825         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
31826         main work to ...
31827         (make_heapvar_for): ... this new function.
31828         (handle_rhs_call): Handle fnspec attribute argument specifiers.
31829         (handle_lhs_call): Likewise.
31830         (find_func_aliases): Adjust.
31831
31832 2010-05-10  Richard Guenther  <rguenther@suse.de>
31833
31834         PR tree-optimization/44050
31835         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
31836
31837 2010-05-10  Wei Guozhi  <carrot@google.com>
31838
31839         PR target/42879
31840         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
31841
31842 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
31843
31844         PR c/10676
31845         * c-typeck.c (lookup_field): Take a type directly.  Update
31846         recursive calls.
31847         (build_component_ref): Update call to lookup_field.
31848         (set_init_label): Use lookup_field to find initialized field.
31849         Handle returned list of fields like a sequence of designators.
31850
31851 2010-05-09  Richard Guenther  <rguenther@suse.de>
31852
31853         PR middle-end/44024
31854         * fold-const.c (tree_single_nonzero_warnv_p): Properly
31855         handle &FUNCTION_DECL.
31856
31857 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
31858
31859         PR c/4784
31860         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
31861         structures and unions recursively.
31862         (detect_field_duplicates): Move duplicate detection with a hash to
31863         detect_field_duplicates_hash.  Always use a hash if anonymous
31864         structures or unions are present.
31865         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
31866         give errors.
31867
31868 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
31869
31870         PR target/44046
31871         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
31872         detect Atom, Core 2 and Core i7.
31873
31874 2010-05-09  Richard Guenther  <rguenther@suse.de>
31875
31876         * gcc.c (store_arg): Handle temporary file deletion for
31877         joined arguments.
31878
31879 2010-05-09  Richard Guenther  <rguenther@suse.de>
31880
31881         PR middle-end/44043
31882         * ipa-inline.c (estimate_function_body_sizes): Return after
31883         disregarding inline limits.
31884
31885 2010-05-09  Richard Guenther  <rguenther@suse.de>
31886
31887         * gcc.c (store_arg): Revert last change.
31888
31889 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
31890
31891         PR middle-end/28685
31892         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
31893         (optimize_ops_list): Call it.
31894
31895 2010-05-08  Richard Guenther  <rguenther@suse.de>
31896
31897         PR tree-optimization/44030
31898         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
31899         NECESSARY flag if we propagate from a inserted expression.
31900
31901 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
31902
31903         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
31904         domain types as equal if they are both PLACEHOLDER_EXPRs.
31905
31906 2010-05-08  Richard Guenther  <rguenther@suse.de>
31907
31908         * lto-wrapper.c (run_gcc): Remove linker output from
31909         command line for LTRANS invocation.
31910
31911 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
31912
31913         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
31914         lto-macho as lto_binary_reader.
31915         * target.h (struct gcc_target): New hooks lto_start and lto_end.
31916         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
31917         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
31918         in lto_start and lto_end calls.
31919         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
31920         magic numbers.
31921         (scan_prog_file): Update is_elf_or_coff call.
31922         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
31923
31924         * collect2.c (main): Fix enum comparison.
31925
31926         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
31927         Add prototypes.
31928         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
31929         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
31930         and TARGET_ASM_LTO_END.
31931         * darwin.c: Include obstack.h and lto-streamer.h.
31932         (lto_section_names_offset, lto_section_names_obstack,
31933         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
31934         global variables.
31935         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
31936         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
31937         to a temporary file.
31938         (darwin_asm_lto_end): New function.  Restore asm_out_file.
31939         (darwin_asm_named_section): For LTO sections, replace the name with
31940         the offset of the section name in a string table, and build this
31941         table.
31942         (darwin_file_start): Initialize global vars for LTO support.
31943         (darwin_file_end): If output to asm_out_file was redirected, append it
31944         to the proper asm_out_file here.  Add the section names section.
31945
31946 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
31947
31948         * c-pragma.c (pending_weak_d, pending_weak): New.
31949         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
31950         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
31951         handle_pragma_weak): Update the uses of pending_weaks.
31952
31953 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31954
31955         PR documentation/44016
31956         * doc/standards.texi (Standards): Link to unversioned
31957         cxx0x_status.html page.
31958
31959 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
31960
31961         PR target/43708
31962         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
31963         in addition to TREE_USED, to avoid "set but unused" warnings.
31964
31965 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
31966
31967         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
31968         (is_loop_prefetching_profitable): Do not insert prefetches
31969         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
31970         times the prefetch ahead distance.
31971
31972 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
31973
31974         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
31975         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
31976         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
31977         the unroll_factor.
31978
31979 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
31980
31981         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
31982         a diagnostic info when the insn-to-mem ratio is too small.
31983
31984 2010-05-07  Richard Guenther  <rguenther@suse.de>
31985
31986         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
31987         the linker plugin.
31988         (store_arg): Queue temp_filename for deletion instead of
31989         the whole argument.
31990
31991 2010-05-07  Richard Guenther  <rguenther@suse.de>
31992
31993         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
31994         (run_gcc): Handle LTRANS phase invocation.
31995         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
31996
31997 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
31998
31999         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
32000         this is also meaningful on PARM_DECLs and RESULT_DECLs.
32001
32002 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32003
32004         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
32005
32006 2010-05-07  Richard Guenther  <rguenther@suse.de>
32007
32008         PR tree-optimization/44020
32009         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
32010         code when PRE is not yet initialized.
32011
32012 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32013
32014         * config/mips/dbxmdebug.h: Remove.
32015         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
32016
32017 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
32018
32019         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
32020         with null pointer and also warn about ordered comparison of zero with
32021         pointer if -Wextra.
32022
32023 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
32024
32025         * graphite-blocking.c
32026         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
32027         * graphite-clast-to-gimple.c
32028         (clast_to_gcc_expression): Same.
32029         (precision_for_value): Same.
32030         (precision_for_interval): Same.
32031         (gcc_type_for_interval): Same.
32032         (graphite_create_new_guard): Same.
32033         (compute_bounds_for_level): Same.
32034         (graphite_create_new_loop_guard): Same.
32035         * graphite-interchange.c
32036         (build_linearized_memory_access): Same.
32037         (pdr_stride_in_loop): Same.
32038         (memory_strides_in_loop_1): Same.
32039         (memory_strides_in_loop): Same.
32040         (extend_scattering): Same.
32041         (psct_scattering_dim_for_loop_depth): Same.
32042         (pbb_number_of_iterations): Same.
32043         * graphite-poly.h
32044         (debug_iteration_domains): Same.
32045         * graphite-ppl.c
32046         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
32047         (ppl_set_inhomogeneous_gmp): Same.
32048         (ppl_strip_loop): Same.
32049         (ppl_lexico_compare_linear_expressions): Same.
32050         (ppl_read_polyhedron_matrix): Same.
32051         (ppl_max_for_le_pointset): Same.
32052         * graphite-ppl.h
32053         (ppl_read_polyhedron_matrix): Same.
32054         (tree_int_to_gmp): Same.
32055         (gmp_cst_to_tree): Same.
32056         (ppl_set_inhomogeneous): Same.
32057         (ppl_set_inhomogeneous_tree): Same.
32058         (ppl_set_coef): Same.
32059         (ppl_set_coef_tree): Same.
32060         * graphite-sese-to-poly.c
32061         (build_pbb_scattering_polyhedrons): Same.
32062         (build_scop_scattering): Same.
32063         (scan_tree_for_params_right_scev): Same.
32064         (scan_tree_for_params): Same.
32065         (find_params_in_bb): Same.
32066         (find_scop_parameters): Same.
32067         (add_upper_bounds_from_estimated_nit): Same.
32068         (build_loop_iteration_domains): Same.
32069         (add_condition_to_domain): Same.
32070         (pdr_add_memory_accesses): Same.
32071
32072 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
32073
32074         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
32075         CLooG's value_* macros to their respective mpz_* counterparts.
32076         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
32077         (graphite_create_new_loop_guard): Same.
32078         * graphite-interchange.c (build_linearized_memory_access): Same.
32079         (pdr_stride_in_loop): Same.
32080         (memory_strides_in_loop_1): Same.
32081         (1st_interchange_profitable_p): Same.
32082         * graphite-poly.c (extend_scattering): Same.
32083         (psct_scattering_dim_for_loop_depth): Same.
32084         (pbb_number_of_iterations): Same.
32085         (pbb_number_of_iterations_at_time): Same.
32086         * graphite-poly.h (new_1st_loop): Same.
32087         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
32088         (oppose_constraint): Same.
32089         (insert_constraint_into_matrix): Same.
32090         (ppl_set_inhomogeneous_gmp): Same.
32091         (ppl_set_coef_gmp): Same.
32092         (ppl_strip_loop): Same.
32093         (ppl_lexico_compare_linear_expressions): Same.
32094         (ppl_max_for_le_pointset): Same.
32095         (ppl_min_for_le_pointset): Same.
32096         (ppl_build_realtion): Same.
32097         * graphite-ppl.h (gmp_cst_to_tree): Same.
32098         (ppl_set_inhomogeneous): Same.
32099         (ppl_set_inhomogeneous_tree): Same.
32100         (ppl_set_coef): Same.
32101         (ppl_set_coef_tree): Same.
32102         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32103         (build_scop_scattering): Same.
32104         (add_value_to_dim): Same.
32105         (scan_tree_for_params_right_scev): Same.
32106         (scan_tree_for_params_int): Same.
32107         (scan_tree_for_params): Same.
32108         (find_params_in_bb): Same.
32109         (find_scop_parameters): Same.
32110         (add_upper_bounds_from_estimated_nit): Same.
32111         (build_loop_iteration_domains): Same.
32112         (create_linear_expr_from_tree): Same.
32113         (add_condition_to_domain): Same.
32114         (pdr_add_memory_accesses): Same.
32115
32116 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
32117             Jason Merrill  <jason@redhat.com>
32118
32119         * c-common.c (c_common_reswords): Add nullptr.
32120         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
32121         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
32122         (gen_type_die_with_usage): Likewise.
32123         * dbxout.c (dbxout_type): Likewise.
32124         * sdbout.c (plain_type_1): Likewise.
32125
32126 2010-05-06  Jason Merrill  <jason@redhat.com>
32127
32128         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
32129         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
32130         ret appropriately.
32131         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
32132
32133         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
32134         stripping WITH_SIZE_EXPR.
32135         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
32136         change.
32137
32138 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32139
32140         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
32141         list of obsolete configurations.
32142         Disabled check for obsolete configurations.
32143         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
32144         Removed support for previous versions.
32145         * config/mips/iris.h: Removed.
32146         * config/mips/iris5.h: Removed.
32147         * config/mips/iris6.h: Merged old iris.h contents.
32148         (TARGET_IRIX): Removed.
32149         (DRIVER_SELF_SPECS): Removed mabi=32.
32150         (IDENT_ASM_OP): Removed undef.
32151         (STARTFILE_SPEC): Removed mabi=32.
32152         (ENDFILE_SPEC): Likewise.
32153         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
32154         (MACHINE_TYPE): Update for IRIX 6.5.
32155         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
32156         TARGET_IRIX by TARGET_IRIX6.
32157         (mips_file_start): Likewise.
32158         (mips_output_external): Remove IRIX 5/6 O32 support.
32159         (mips_output_function_prologue): Likewise.
32160         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
32161         TARGET_IRIX6.
32162         (TARGET_CPU_CPP_BUILTINS): Likewise.
32163         (TARGET_IRIX): Removed.
32164         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
32165         (MULTILIB_DIRNAMES): Removed 32.
32166         (MULTILIB_OSDIRNAMES): Removed ../lib.
32167         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
32168         (Specific, mips-sgi-irix5): Document removal.
32169         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
32170         Remove references to older IRIX 6 releases and the O32 ABI.
32171
32172 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
32173
32174         PR bootstrap/43994
32175         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
32176         instead of DF_REF_REAL_REG.
32177
32178 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
32179
32180         PR target/43888
32181         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
32182         handling to still return true for x64 targets.
32183
32184 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
32185
32186         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
32187
32188 2010-05-06  Jan Hubicka  <jh@suse.cz>
32189
32190         PR tree-optimization/43791
32191         * ipa-inline.c (update_caller_keys): Remove bogus
32192         disregard_inline_limits check.
32193
32194 2010-05-06  Michael Matz  <matz@suse.de>
32195
32196         PR tree-optimization/43984
32197         * tree-ssa-pre.c (inserted_phi_names): Remove.
32198         (inserted_exprs): Change to bitmap.
32199         (create_expression_by_pieces): Set bits, don't append to vector.
32200         (insert_into_preds_of_block): Don't handle inserted_phi_names.
32201         (eliminate): Don't look at inserted_phi_names, remove deleted
32202         insns from inserted_exprs.
32203         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
32204         (init_pre, fini_pre): Allocate and free bitmaps.
32205         (execute_pre): Insert insns on edges before elimination.
32206
32207 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
32208
32209         * tree.c (initializer_zerop): Handle STRING_CST.
32210
32211 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32212
32213         PR 40989
32214         * doc/invoke.texi (Wimplicit): Document as C only.
32215         * opts.c (common_handle_option): Add argument kind.
32216         (handle_option): Rename as read_cmdline_option. Factor out code to...
32217         (handle_option): ... here. New.
32218         (handle_options): Rename as read_cmdline_options.
32219         (decode_options): Update call.
32220         (set_option): Use option index instead of option pointer. Classify
32221         diagnostics correctly.
32222         (enable_warning_as_error): Call handle_option.
32223         * opts.h (set_option): Update declaration.
32224         (handle_option): Declare.
32225         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
32226         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
32227         * c-opts.c (set_Wimplicit): Delete.
32228         (c_family_lang_mask): New static constant.
32229         (c_common_handle_option): Add argument kind. Use handle_option
32230         instead of set_Wimplicit.
32231         (c_common_post_options): warn_implicit and warn_implicit_int
32232         are disabled by default.
32233         * c-common.c (warn_implicit): Do not define here.
32234         * c-common.h (warn_implicit): Do not declare here.
32235         (c_common_handle_option): Update declaration.
32236         * lto-opts.c (lto_reissue_options): Update call to set_option.
32237
32238 2010-05-06  Richard Guenther  <rguenther@suse.de>
32239
32240         PR tree-optimization/43571
32241         * domwalk.c (walk_dominator_tree): Walk the dominator
32242         sons in more optimal order.
32243
32244 2010-05-06  Richard Guenther  <rguenther@suse.de>
32245
32246         PR tree-optimization/43934
32247         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
32248         (stmt_cost): Likewise.
32249         (extract_true_false_args_from_phi): New helper.
32250         (determine_max_movement): For PHI nodes verify we can hoist them
32251         and compute their cost.
32252         (determine_invariantness_stmt): Handle PHI nodes.
32253         (move_computations_stmt): Likewise.  Hoist PHI nodes in
32254         if-converted form using COND_EXPRs.
32255         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
32256         (tree_ssa_lim): Likewise.
32257         * tree-flow.h (tree_ssa_lim): Adjust prototype.
32258         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
32259
32260 2010-05-06  Richard Guenther  <rguenther@suse.de>
32261
32262         PR tree-optimization/43987
32263         * tree-ssa-structalias.c (could_have_pointers): For possibly
32264         address-taken variables force pointers to be recorded.
32265         (create_variable_info_for_1): Likewise.
32266         (push_fields_onto_fieldstack): Pass in wheter all fields
32267         must have pointers.
32268         (find_func_aliases): Query types instead of vars whether
32269         they contain pointers where appropriate.
32270
32271 2010-05-06  Jan Hubicka  <jh@suse.cz>
32272
32273         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
32274         (record_reference, mark_address, mark_load, mark_store): Record
32275         references.
32276         (record_references_in_initializer): Update call of record_references.
32277         (rebuild_cgraph_edges): Remove all references before rebuiding.
32278         * cgraph.c (cgraph_create_node): Clear ref list.
32279         (cgraph_remove_node): Remove references.
32280         (dump_cgraph_node): Dump references.
32281         (cgraph_clone_node): Clone references.
32282         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
32283         (struct cgraph_node, varpool_node): Add ref_lst.
32284         * ipa-ref.c: New file.
32285         * ipa-ref.h: New file.
32286         * ipa-ref-inline.h: New file.
32287         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
32288         (referenced_from_other_partition_p): New function.
32289         (lto_output_varpool_node): Take set arugment; call
32290         referenced_from_other_partition.
32291         (lto_output_ref): New.
32292         (add_references): New.
32293         (output_refs): New.
32294         (output_cgraph): Compute boundary based on references; output refs.
32295         (output_varpool): Accept cgraph_node_set argument.
32296         (input_ref): New.
32297         (input_refs): New.
32298         (input_cgraph): Call input_refs.
32299         * lto-section-in.c (lto_section_name): Add refs.
32300         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
32301         (ipa-ref.o): New file.
32302         * varpool.c (varpool_node): Clear ipa ref list.
32303         (varpool_remove_node): Remove references.
32304         (dump_varpool_node): Dump references.
32305         (varpool_assemble_decl): Only compile finalized ones.
32306         (varpool_extra_name_alias): Initialize ref list.
32307         * lto-streamer.c (lto-get_section_name): Add .refs section.
32308         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
32309         (referenced_from_other_partition_p): Declared.
32310
32311 2010-05-06  Ira Rosen  <irar@il.ibm.com>
32312
32313         PR tree-optimization/43901
32314         * tree-vect-stmts.c (vectorizable_call): Assert that vector
32315         type is not NULL if it's transformation phase, and return
32316         FALSE if it's analysis.
32317         (vectorizable_conversion, vectorizable_operation,
32318         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
32319
32320 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
32321
32322         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
32323         Delete.
32324         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
32325         New define.
32326         * config/mips/mips-protos.h
32327         (mips_small_register_classes_for_mode_p): Delete prototype.
32328
32329 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
32330
32331         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
32332         * config/arm/arm.c (multiple_operation_profitable_p,
32333         compute_offset_order): New static functions.
32334         (load_multiple_sequence, store_multiple_sequence): Use them.
32335         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
32336         memory offsets, not register numbers.
32337         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
32338
32339 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
32340
32341         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
32342         (get_pending_sizes, put_pending_size, put_pending_sizes):
32343         Update the uses of pending_sizes.
32344         * c-decl.c (store_parm_decls): Likewise.
32345         * c-tree.h (struct c_arg_info): Likewise.
32346         * tree.h: Update the prototype for get_pending_sizes and
32347         put_pending_sizes.
32348
32349 2010-05-05  Jason Merrill  <jason@redhat.com>
32350
32351         PR debug/43370
32352         * c-common.c (handle_aligned_attribute): Respect
32353         ATTR_FLAG_TYPE_IN_PLACE.
32354
32355         PR testsuite/43758
32356         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
32357         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
32358         (TARGET_INITIALIZER): Use it.
32359         * c-common.c (attribute_takes_identifier_p): Call it.
32360         * c-common.h: Update prototype.
32361         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
32362         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
32363
32364 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
32365
32366         PR debug/43950
32367         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
32368         DW_ID_down_case for Fortran compilation units.
32369
32370 2010-05-05  Jan Hubicka  <jh@suse.cz>
32371
32372         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
32373         handle aliases.
32374
32375 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
32376
32377         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
32378         a variable-sized RESULT_DECL.
32379
32380 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
32381
32382         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
32383
32384 2010-05-05  Jason Merrill  <jason@redhat.com>
32385
32386         PR c++/43787
32387         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
32388         returns GS_OK.
32389         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
32390
32391 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
32392             Jakub Jelinek  <jakub@redhat.com>
32393
32394         PR debug/43478
32395         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
32396         (dead_debug_init, dead_debug_finish): New functions.
32397         (dead_debug_add, dead_debug_insert_before): Likewise.
32398         (df_note_bb_compute): Initialize a dead_debug object, add dead
32399         debug uses to it, insert debug bind insns before death insns,
32400         reset debug insns that refer to pending uses at the end.
32401         * rtl.h (make_debug_expr_from_rtl): New prototype.
32402         * varasm.c (make_debug_expr_from_rtl): New function.
32403
32404 2010-05-05  Jan Hubicka  <jh@suse.cz>
32405
32406         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
32407         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
32408         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
32409         lto_varpool_encoder_deref, lto_varpool_encoder_size,
32410         lto_varpool_encoder_encode_initializer_p,
32411         lto_set_varpool_encoder_encode_initializer): New functions.
32412         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
32413         call output_varpool.
32414         (input_varpool_node): Do not always set analyzed.
32415         (input_cgraph_1): Return vector of cgraph nodes.
32416         (input_varpool_1): Return vector of varpools.
32417         (input_cgraph): Free the vectors.
32418         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
32419         output only initializers needed.
32420         (lto_output): Only call output_cgraph.
32421         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
32422         * lto-section-out.c (lto_new_out_decl_state): Initialize
32423         state->varpool_node_encoder.
32424         * lto-streamer.h (lto_varpool_encoder_d): New.
32425         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
32426         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
32427         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
32428         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
32429         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
32430         Declare.
32431         (output_varpool, input_varpool): Remove declarations.
32432
32433 2010-05-05  Jan Hubicka  <jh@suse.cz>
32434
32435         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
32436         with body can prevail.
32437
32438 2010-05-05  Jan Hubicka  <jh@suse.cz>
32439
32440         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
32441         size.
32442
32443 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
32444
32445         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
32446
32447         * gengtype.h (erro_at_line): Constify pos argument.
32448
32449         * gengtype.c: Include hashtab.h.
32450         (enum gc_used): Document GC_MAYBE_POINTED_TO.
32451         (error_at_line): Constify pos argument.
32452         (do_typedef): Initialize p->opt field.
32453         (get_file_gtfilename): Fix comment typo.
32454         (struct walk_type_data): Constify line field.
32455         (get_output_file_for_structure): New function.
32456         (write_local_func_for_structure): Constify orig_s argument.
32457         Use get_output_file_for_structure.
32458         (write_func_for_structure): Use get_output_file_for_structure.
32459         (INDENT): New define.
32460         (dump_pair, dump_type, dump_type_list, dump_typekind)
32461         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
32462         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
32463         functions.
32464         (seen_types): New variable.
32465         (main): New variable do_dump.  Process "-d" command line option.
32466         Call dump_everything if dump requested.
32467
32468 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
32469
32470         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
32471         in a temporary instead of invoking the macro multiple times.
32472         (track_expr_p): Likewise.
32473
32474 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
32475
32476         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
32477         per new semantics.
32478         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
32479         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
32480         conditions for printing notes.
32481         * common.opt (-Wcoverage-mismatch): Allow negative, default to
32482         true, update documentation.
32483         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
32484
32485 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
32486
32487         PR c/43981
32488         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
32489         on dimen.
32490
32491 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
32492
32493         PR target/43799
32494         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
32495         (*sse_prologue_save_insn1): Likewise.
32496         (SSE prologue save splitter): Likewise.
32497
32498 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
32499
32500         * tree.c (free_lang_data_in_one_sizepos): New inline function.
32501         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
32502         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
32503         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
32504         all decls.  Call it on DECL_FIELD_OFFSET of fields.
32505         (find_decls_types_r): Follow DECL_VALUE_EXPR.
32506         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
32507
32508 2010-05-04  Martin Jambor  <mjambor@suse.cz>
32509
32510         * tree-sra.c (build_access_from_expr_1): The first parameter type
32511         changed to simple tree.
32512         (build_access_from_expr): Likewise, gsi parameter was eliminated.
32513         (scan_assign_result): Renamed to assignment_mod_result, enum elements
32514         renamed as well.
32515         (build_accesses_from_assign): Removed all parameters except for a
32516         simple gimple statement.  Now returns a simple bool.
32517         (scan_function): All non-analysis parts moved to separate functions
32518         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
32519         parameters and updated both callers.
32520         (sra_modify_expr): Removed parameter data.
32521         (sra_modify_function_body): New function.
32522         (perform_intra_sra): Call sra_modify_function_body to modify the
32523         function body.
32524         (replace_removed_params_ssa_names): Parameter data changed into
32525         adjustments vector.
32526         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
32527         changed the parameter dont_convert to convert with the opposite
32528         meaning.
32529         (sra_ipa_modify_assign): Parameter data changed into adjustments
32530         vector, return value changed to bool.
32531         (ipa_sra_modify_function_body): New function.
32532         (sra_ipa_reset_debug_stmts): Updated a comment.
32533         (modify_function): Use ipa_sra_modify_function_body to modify function
32534         body.
32535
32536 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
32537
32538         PR middle-end/43671
32539         * alias.c (true_dependence): Handle the same VALUE in x and mem.
32540         (canon_true_dependence): Likewise.
32541         (write_dependence_p): Likewise.
32542
32543 2010-05-04  Jan Hubicka  <jh@suse.cz>
32544
32545         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
32546         * cgraphbuild.c: Include ipa-utils.h
32547         (record_reference_ctx): New struct.
32548         (record_reference): Simplify to work on initializers; not statements.
32549         (mark_address, mark_load, mark_store): New.
32550         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
32551         walk PHI nodes too.
32552         (record_references_in_initializer): Update use of record_reference.
32553         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
32554         walk PHI nodes too.
32555
32556 2010-05-04  Jan Hubicka  <jh@suse.cz>
32557
32558         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
32559         node will be removed anyway.
32560         (lto_varpool_replace_node): Allow also unanalyzed nodes;
32561         relink aliases of node into prevailing node.
32562         * varpool.c (varpool_remove_node): Remove aliases properly;
32563         when removing node, remove all its aliases too; remove DECL_INITIAL
32564         of removed node; ggc_free the varpool node.
32565
32566 2010-05-04  Richard Guenther  <rguenther@suse.de>
32567
32568         PR tree-optimization/43879
32569         * tree-ssa-structalias.c (alias_get_name): Use
32570         DECL_ASSEMBLER_NAME if available.
32571         (create_function_info_for): Return the varinfo node.
32572         (ipa_pta_execute): Associate same-body aliases and extra names
32573         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
32574
32575 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
32576
32577         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
32578
32579 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
32580
32581         PR bootstrap/43964
32582         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
32583         only if HONOR_REG_ALLOC_ORDER is not defined.
32584
32585 2010-05-04  Richard Guenther  <rguenther@suse.de>
32586
32587         PR tree-optimization/43949
32588         * tree-vrp.c (extract_range_from_binary_expr): Only handle
32589         TRUNC_MOD_EXPR.
32590
32591 2010-04-26  Jason Merrill  <jason@redhat.com>
32592
32593         * c.opt (-fstrict-enums): New.
32594         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
32595
32596 2010-05-03  David Ung  <davidu@mips.com>
32597             James E. Wilson  <wilson@codesourcery.com>
32598
32599         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
32600         emit the trap instruction before the divide for TUNE_74K.
32601
32602 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
32603
32604         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
32605         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
32606         based on the above, for new target hook.
32607
32608         * hooks.c (hook_bool_mode_true): New generic hook.
32609         * hooks.h (hook_bool_mode_true): Add prototype.
32610
32611         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
32612         target hook.
32613         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
32614         target hook, set to hook_bool_mode_false.
32615         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
32616         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
32617         with targetm.small_register_classes_for_mode_p.
32618         (find_reusable_reload): Likewise.
32619         (combine_reloads): Likewise.
32620         * reload1.c (reload_as_needed): Likewise.
32621         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
32622         * ifcvt.c (noce_process_if_block, check_cond_move_block,
32623         dead_or_predicable): Likewise.
32624         * regmove.c (optimize_reg_copy_1): Likewise.
32625         * calls.c (prepare_call_address): Likewise.
32626         (precompute_register_parameters): Likewise.
32627
32628         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
32629         hook definition.
32630         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
32631         implementation of the hook that considers all register classes
32632         small except for SH64.
32633         (sh_override_options): Use the new hook.
32634         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
32635         Add prototype.
32636
32637         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
32638         hook definition.
32639         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
32640         implementation of the hook that considers all register classes
32641         small for THUMB1.
32642         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
32643         Add prototype.
32644
32645         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
32646         hook definition.
32647         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
32648         implementation of the hook that considers all register classes
32649         small for MIPS16.
32650         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
32651         Add prototype.
32652
32653         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
32654         hook definition.
32655         * config/m32c/m32c.h: Likewise.
32656         * config/pdp11/pdp11.h: Likewise.
32657         * config/avr/avr.h: Likewise.
32658         * config/xtensa/xtensa.h: Likewise.
32659         * config/m68hc11/m68hc11.h: Likewise.
32660         * config/mn10300/mn10300.h: Likewise.
32661         * config/mcore/mcore.h: Likewise.
32662         * config/h8300/h8300.h: Likewise.
32663         * config/bfin/bfin.h: Likewise.
32664
32665         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
32666         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
32667
32668 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
32669
32670         * double-int.h (tree_to_double_int): Remove macro.
32671         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
32672         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32673         (tree_to_double_int): New function.
32674         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
32675         Move ...
32676         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
32677
32678 2010-05-03  Richard Guenther  <rguenther@suse.de>
32679
32680         PR tree-optimization/43971
32681         * tree-ssa-structalias.c (get_constraint_for_1): Fix
32682         constraints in the !flag_delete_null_pointer_checks case.
32683
32684 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
32685
32686         PR debug/43972
32687         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
32688         result mode matches original rtl mode.
32689
32690 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
32691
32692         PR target/43888
32693         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
32694
32695 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
32696
32697         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
32698         when processing flag options.
32699
32700 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
32701
32702         * gcov-iov.c (main): Change format string placeholder
32703         from %#08x to 0x%08x.
32704         * genchecksum.c (dosum): Change format string placeholder
32705         from %#02x to 0x%02x.
32706
32707 2010-05-02  Richard Guenther  <rguenther@suse.de>
32708
32709         PR tree-optimization/43879
32710         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
32711
32712 2010-05-02  Bruno Haible  <bruno@clisp.org>
32713
32714         * doc/extend.texi (Function Attributes): Fix a typo.
32715
32716 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
32717
32718         Revert:
32719         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
32720         placeholder from 0x%x to %#x.
32721         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32722         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
32723         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
32724         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
32725         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
32726         * config/i386/i386.c (ix86_target_string): Ditto.
32727         * config/i386/i386.c (output_pic_addr_const): Ditto.
32728         (print_operand): Ditto.
32729
32730 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
32731
32732         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
32733         placeholder from 0x%x to %#x.
32734         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
32735         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
32736         (ASM_OUTPUT_DEBUG_DATA): Ditto.
32737         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
32738         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
32739         * optc-gen.awk: Ditto.
32740         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
32741         (HOST_WIDE_INT_PRINT_HEX): Ditto.
32742         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
32743         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
32744
32745 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
32746
32747         * target.h (struct calls): Add function_value_regno_p field.
32748         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
32749         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
32750         * targhooks.c (default_function_value_regno_p): New function.
32751         * targhooks.h (default_function_value_regno_p): Declare function.
32752         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
32753         * builtins.c. (apply_result_size): (Ditto.).
32754         * combine.c. (likely_spilled_retval_p): (Ditto.).
32755         * mode-switching.c. Include 'target.h'.
32756         (create_pre_exit): Use function_value_regno_p hook.
32757         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
32758         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
32759         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
32760
32761         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
32762         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
32763         (ix86_function_value_regno_p): Declare as static, change argument
32764         type to const unsigned int.
32765         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
32766
32767 2010-05-01  Richard Guenther  <rguenther@suse.de>
32768
32769         PR tree-optimization/43949
32770         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
32771         types.
32772         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
32773
32774 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
32775
32776         * rtl.h (CONST_DOUBLE_P): Define.
32777         (rtx_to_double_int): Declare.
32778         * emit-rtl.c (rtx_to_double_int): New function.
32779         * dwarf2out.c (insert_double): New function.
32780         (loc_descriptor, add_const_value_attribute): Clean up, use
32781         rtx_to_double_int and insert_double functions.
32782
32783 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
32784
32785         * doc/extend.texi (Inline): Add missing return keyword to examples.
32786         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
32787         "command-line".
32788
32789 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
32790
32791         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
32792         the variable part of the offset as well.  Use highest_pow2_factor for
32793         all alignment checks.
32794
32795 2010-04-30  Richard Guenther  <rguenther@suse.de>
32796
32797         PR tree-optimization/43879
32798         * tree-ssa-structalias.c (type_could_have_pointers): Functions
32799         can have pointers.
32800
32801 2010-04-30  Jan Hubicka  <jh@suse.cz>
32802
32803         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
32804         varpool.
32805         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
32806
32807 2010-04-30  Jan Hubicka  <jh@suse.cz>
32808
32809         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
32810         New.
32811         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
32812         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
32813         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
32814         cgraph_node_set_needs_ltrans_p): Remove.
32815
32816 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
32817
32818         * sdbout.c: Include vec.h, do not include varray.h.
32819         (deferred_global_decls, sdbout_global_decl,
32820         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
32821         * toplev.c: Do not include varray.h.
32822         (dump_memory_report): Do not dump VARRAY statistics.
32823         * gengtype.c (open_base_file): Ignore varray.h.
32824         * Makefile.in: Update for abovementioned changes.
32825         Remove all traces of varray.c and varray.h.
32826         * varray.c: Remove file.
32827         * varray.h: Remove file.
32828
32829 2010-04-30  Jan Hubicka  <jh@suse.cz>
32830
32831         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
32832         references.
32833
32834 2010-04-30  Jan Hubicka  <jh@suse.cz>
32835
32836         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
32837         needed.
32838
32839 2010-04-30  Richard Guenther  <rguenther@suse.de>
32840
32841         * tree-ssa-structalias.c (get_constraint_for_1): Generate
32842         constraints for CONSTRUCTOR.
32843
32844 2010-04-30  Richard Guenther  <rguenther@suse.de>
32845
32846         PR lto/43946
32847         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
32848         first after all lowering passes.
32849
32850 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
32851
32852         * toplev.c: Include varray.h for statistics dumping.
32853         * tree.h: Do not declare varray_head_tag.
32854         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
32855         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
32856         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
32857         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
32858         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
32859         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
32860         c-common.c, c-common.h, reg-stack.c, basic-block.h,
32861         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
32862         include varray.h.
32863         * Makefile.in: Update for abovementioned changes.
32864
32865 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
32866
32867         PR debug/43942
32868         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
32869
32870 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
32871
32872         * config/picochip/picochip.c (picochip_legitimize_address): Define.
32873         Use this function to do machine-specific conversion.
32874         (picochip_legitimize_reload_address): Likewise.
32875         (picochip_legitimate_address_p): Check valid base register only if
32876         strict.
32877         (picochip_check_conditional_copy): Check for modw only if opnd is
32878         register.
32879         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
32880         to call the function in c.
32881         * config/picochip/picochip-protos.h
32882         (picochip_legitimize_reload_address): Define.
32883         * config/picochip/picochip.md (supported_compare1): Define.
32884
32885 2010-04-30  Jan Hubicka  <jh@suse.cz>
32886
32887         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
32888         (cgraph_global_info): Remove inlined.
32889         (LTO_cgraph_tag_names): Remove.
32890         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
32891         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
32892         simplify cgraph tags and document.
32893         (lto_output_node): Use only LTO_cgraph_unavail_node and
32894         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
32895         for_functions_valid, global info, process and output flags.
32896         (input_overwrite_node): Initialize estimated stack size and
32897         estimated growth.  Do not read flags we no longer store.
32898         (input_node): Likewise do not read info no longer stored.
32899         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
32900         flag.
32901
32902 2010-04-30  Richard Guenther  <rguenther@suse.de>
32903
32904         PR tree-optimization/43879
32905         * tree-ssa-structalias.c (get_constraint_for_1): Properly
32906         handle non-zero initializers.
32907
32908 2010-04-30  Richard Guenther  <rguenther@suse.de>
32909
32910         * builtins.c (fold_builtin_1): Delete free (0).
32911
32912 2010-04-29  Jan Hubicka  <jh@suse.cz>
32913
32914         * gengtype.c (open_base_files): Add lto-streamer.h
32915         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
32916         (pass_ipa_cp): GGC collect.
32917         * toplev. (compile_file): Do not output symbols.
32918         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
32919         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
32920         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
32921         * lto-section-in.c: Include ggc.h
32922         (lto_new_in_decl_state): Alloc in GGC.
32923         (lto_delete_in_decl_state): Likewise.
32924         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
32925         Collect.
32926
32927 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
32928
32929         PR target/42895
32930         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
32931         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
32932         (HONOR_REG_ALLOC_ORDER): Describe new macro.
32933         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
32934         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
32935         account only if HONOR_REG_ALLOC_ORDER is not defined.
32936         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
32937         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
32938
32939 2010-04-29  Jon Grant  <04@jguk.org>
32940
32941         * collect2.c (vflag): Change type from int to bool.
32942         (debug): Likewise.
32943         (helpflag): New global bool.
32944         (main): Set vflag and debug with boolean, not integer truth values.
32945         Accept new "--help" option and output usage text if found.
32946         * collect2.h (vflag): Update prototype.
32947         (debug): Likewise.
32948
32949 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
32950
32951         PR bootstrap/43936
32952         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
32953
32954 2010-04-29  Richard Guenther  <rguenther@suse.de>
32955
32956         PR bootstrap/43935
32957         * plugin.h (invoke_plugin_callbacks): Annotate arguments
32958         with ATTRIBUTE_UNUSED.
32959
32960 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
32961
32962         PR target/43921
32963         * config/i386/i386.c (get_some_local_dynamic_name): Replace
32964         INSN_P with NONDEBUG_INSN_P.
32965         (distance_non_agu_define): Likewise.
32966         (distance_agu_use): Likewise.
32967
32968 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
32969
32970         From Dominique d'Humieres  <dominiq@lps.ens.fr>
32971         PR bootstrap/43858
32972         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
32973         test_set.
32974
32975 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
32976
32977         * plugin.h (invoke_plugin_callbacks): New inline function.
32978         * plugin.c (flag_plugin_added): New global flag.
32979         (add_new_plugin): Initialize above flag.
32980         (invoke_plugin_callbacks): Rename to ...
32981         (invoke_plugin_callbacks_full): ... this.
32982
32983 2010-04-28  Jan Hubicka  <jh@suse.cz>
32984
32985         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
32986         (lto_varpool_replace_node): New.
32987         (lto_symtab_resolve_symbols): Resolve varpool nodes.
32988         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
32989         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
32990         * cgraph.h (varpool_node_ptr): New type.
32991         (varpool_node_ptr): New vector.
32992         (varpool_node_set_def): New structure.
32993         (varpool_node_set): New type.
32994         (varpool_node_set): New vector.
32995         (varpool_node_set_element_def): New structure.
32996         (varpool_node_set_element, const_varpool_node_set_element): New types.
32997         (varpool_node_set_iterator): New type.
32998         (varpool_node): Add prev pointers, add used_from_other_partition,
32999         in_other_partition.
33000         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
33001         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
33002         varpool_get_node, varpool_remove_node): Declare.
33003         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
33004         varpool_node_set_size): New inlines.
33005         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
33006         * tree-pass.h (varpool_node_set_def): Forward declare.
33007         (ipa_opt_pass_d): Summary writting takes vnode sets too.
33008         (ipa_write_optimization_summaries): Update prototype.
33009         * ipa-cp.c (ipcp_write_summary): Update.
33010         * ipa-reference.c (ipa_reference_write_summary): Update.
33011         * lto-cgraph.c (lto_output_varpool_node): New static function.
33012         (output_varpool): New function.
33013         (input_varpool_node): New static function.
33014         (input_varpool_1): New function.
33015         (input_cgraph): Input varpool.
33016         * ipa-pure-const.c (pure_const_write_summary): Update.
33017         * lto-streamer-out.c (lto_output): Update, output varpool too.
33018         (write_global_stream): Kill WPA hack.
33019         (produce_asm_for_decls): Update.
33020         (output_alias_pair_p): Handle variables.
33021         (output_unreferenced_globals): Output only needed partition of varpool.
33022         * ipa-inline.c (inline_write_summary): Update.
33023         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
33024         cgraph.
33025         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
33026         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
33027         varpool_node_set_new, varpool_node_set_add,
33028         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
33029         debug_varpool_node_set): New functions.
33030         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
33031         (execute_one_pass): Process new decls too.
33032         (ipa_write_summaries_2): Pass around vsets.
33033         (ipa_write_summaries_1): Likewise.
33034         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
33035         to add.
33036         (ipa_write_optimization_summaries_1): Pass around vsets.
33037         (ipa_write_optimization_summaries): Likewise.
33038         * varpool.c (varpool_get_node): New.
33039         (varpool_node): Update doubly linked lists.
33040         (varpool_remove_node): New.
33041         (dump_varpool_node): More dumping.
33042         (varpool_enqueue_needed_node): Update doubly linked lists.
33043         (decide_is_variable_needed): Kill ltrans hack.
33044         (varpool_finalize_decl): Kill lto hack.
33045         (varpool_assemble_decl): Skip decls in other partitions.
33046         (varpool_assemble_pending_decls): Update doubly linkes lists.
33047         (varpool_empty_needed_queue): Likewise.
33048         (varpool_extra_name_alias): Likewise.
33049         * lto-streamer.c (lto_get_section_name): Add vars section.
33050         * lto-streamer.h (lto_section_type): Update.
33051         (output_varpool, input_varpool): Declare.
33052
33053 2010-04-28  Mike Stump  <mikestump@comcast.net>
33054
33055         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
33056
33057 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
33058
33059         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
33060         record or union type with RECORD_OR_UNION_TYPE_P predicate.
33061         (lto_input_ts_type_tree_pointers): Likewise.
33062         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
33063         (lto_output_ts_type_tree_pointers): Likewise.
33064
33065 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
33066
33067         Uniquization of constants at the Tree level
33068         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
33069         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
33070         bit to the end.
33071         (tree_output_constant_def): Declare.
33072         * gimplify.c (gimplify_init_constructor): When using block copy, first
33073         uniquize the constant constructor on the RHS.
33074         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
33075         DECL_IN_CONSTANT_POOL flag.
33076         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
33077         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
33078         constant pool.
33079         (assemble_variable): Deal with symbols belonging to the tree constant
33080         pool.
33081         (get_constant_section): Add ALIGN parameter and simplify.
33082         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
33083         (assemble_constant_contents): Use the expression of the VAR_DECL.
33084         (output_constant_def_contents): Use the alignment of the VAR_DECL.
33085         (tree_output_constant_def): New global function.
33086         (mark_constant): Use the expression of the VAR_DECL.
33087         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
33088         its expression.
33089         (output_object_block): Likewise and assemble the expression.
33090
33091 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
33092
33093         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
33094         hash_tree, eq_tree): New tree hash table.
33095         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
33096         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
33097         lto_orig_address_remove): Reimplement.
33098
33099 2010-04-28  Xinliang David Li  <davidxl@google.com>
33100
33101         PR c/42643
33102         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
33103         (compute_uninit_opnds_pos): New function.
33104         (is_non_loop_exit_postdominating): New function.
33105         (compute_control_dep_chain): New function.
33106         (find_pdom): New function.
33107         (convert_control_dep_chain_into_preds): New function.
33108         (find_predicates): New function.
33109         (find_control_equiv_block): New function.
33110         (collect_phi_def_edges): New function.
33111         (find_def_preds): New function.
33112         (find_dom): New function.
33113         (dump_predicates): New function.
33114         (get_cmp_code): New function.
33115         (is_value_included_in): New function.
33116         (find_matching_predicate_in_rest_chains): New function.
33117         (use_pred_not_overlap_with_undef_path_pred): New function.
33118         (is_use_properly_guarded): New function.
33119         (normalize_cond_1): New function.
33120         (is_and_or_or): New function.
33121         (normalize_cond): New function.
33122         (is_gcond_subset_of): New function.
33123         (is_subset_of_any): New function.
33124         (is_or_set_subset_of): New function.
33125         (is_and_set_subset_of): New function.
33126         (is_norm_cond_subset_of): New function.
33127         (is_pred_expr_subset_of): New function.
33128         (is_pred_chain_subset_of): New function.
33129         (is_included_in): New function.
33130         (is_superset_of): New function.
33131         (find_uninit_use): New function.
33132         (warn_uninitialized_phi): New function.
33133         (compute_possibly_undefined_names): New function.
33134         (ssa_undefined_value_p): New function.
33135         (execute_late_warn_uninitialized): New function.
33136         * tree-ssa.c (ssa_undefined_value_p): Removed.
33137         (warn_uninit): Changed to extern.
33138         (warn_uninitialized_phi): Removed.
33139         (warn_uninitialized_vars): Changed to extern.
33140         (execute_late_warn_uninitialized): Removed
33141         * tree-flow.h: Add new prototypes.
33142         * timevar.def: Add new time variable.
33143         * Makefile.in: Add new build file.
33144
33145 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
33146
33147         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
33148         type if available.
33149
33150 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33151
33152         PR target/22224
33153         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
33154
33155 2010-04-28  Martin Jambor  <mjambor@suse.cz>
33156
33157         * cgraph.h (struct cgraph_node): New field indirect_calls.
33158         (struct cgraph_indirect_call_info): New type.
33159         (struct cgraph_edge): Removed field indirect_call. New fields
33160         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
33161         (cgraph_create_indirect_edge): Declare.
33162         (cgraph_make_edge_direct): Likewise.
33163         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
33164         * ipa-prop.h (struct ipa_param_call_note): Removed.
33165         (struct ipa_node_params): Removed field param_calls.
33166         (ipa_create_all_structures_for_iinln): Declare.
33167         * cgraph.c: Described indirect edges and uids in initial comment.
33168         (cgraph_add_edge_to_call_site_hash): New function.
33169         (cgraph_edge): Search also among the indirect edges, use
33170         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
33171         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
33172         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
33173         site hash.
33174         (initialize_inline_failed): Assign a reason to indirect edges.
33175         (cgraph_create_edge_1): New function.
33176         (cgraph_create_edge): Moved some functionality to
33177         cgraph_create_edge_1.
33178         (cgraph_create_indirect_edge): New function.
33179         (cgraph_edge_remove_callee): Add an assert checking for
33180         non-indirectness.
33181         (cgraph_edge_remove_caller): Special-case indirect edges.
33182         (cgraph_remove_edge): Likewise.
33183         (cgraph_set_edge_callee): New function.
33184         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
33185         (cgraph_make_edge_direct): New function.
33186         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
33187         the declaration of the call statement matches.
33188         (cgraph_node_remove_callees): Special-case indirect edges.
33189         (cgraph_clone_edge): Likewise.
33190         (cgraph_clone_node): Clone also the indirect edges.
33191         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
33192         indirect_call, dump count of indirect_calls edges.
33193         * ipa-prop.c (iinlining_processed_edges): New variable.
33194         (ipa_note_param_call): Create indirect edges instead of
33195         creating notes.  New parameter node.
33196         (ipa_analyze_call_uses): New parameter node, pass it on to
33197         ipa_note_param_call.
33198         (ipa_analyze_stmt_uses): Likewise.
33199         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
33200         (print_edge_addition_message): Work on edges rather than on notes.
33201         (update_call_notes_after_inlining): Likewise, renamed to
33202         update_indirect_edges_after_inlining.
33203         (ipa_create_all_structures_for_iinln): New function.
33204         (ipa_free_node_params_substructures): Do not free notes.
33205         (ipa_edge_duplication_hook): Propagate bits within
33206         iinlining_processed_edges bitmap.
33207         (ipa_node_duplication_hook): Do not duplicate notes.
33208         (free_all_ipa_structures_after_ipa_cp): Renamed to
33209         ipa_free_all_structures_after_ipa_cp.
33210         (free_all_ipa_structures_after_iinln): Renamed to
33211         ipa_free_all_structures_after_iinln.
33212         (ipa_write_param_call_note): Removed.
33213         (ipa_read_param_call_note): Removed.
33214         (ipa_write_indirect_edge_info): New function.
33215         (ipa_read_indirect_edge_info): Likewise.
33216         (ipa_write_node_info): Do not stream notes, do stream information
33217         in indirect edges.
33218         (ipa_read_node_info): Likewise.
33219         (lto_ipa_fixup_call_notes): Removed.
33220         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
33221         * ipa-inline.c (pass_ipa_inline): Likewise.
33222         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
33223         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
33224         * tree-inline.c (copy_bb): Removed an unnecessary double check for
33225         is_gimple_call.
33226         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
33227         edges.
33228         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
33229         (output_cgraph): Stream also indirect edges.
33230         (lto_output_edge): Added capability to stream indirect edges.
33231         (input_edge): Likewise.
33232         (input_cgraph_1): Likewise.
33233         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
33234         of indirect edges.
33235
33236 2010-04-28  Richard Guenther  <rguenther@suse.de>
33237
33238         PR tree-optimization/43879
33239         PR tree-optimization/43909
33240         * tree-ssa-structalias.c (struct variable_info): Add
33241         only_restrict_pointers flag.
33242         (new_var_info): Initialize it.  Increment stats.total_vars here.
33243         (create_function_info_for): Do not increment stats.total_vars here.
33244         (get_function_part_constraint): Fix build with C++.
33245         (insert_into_field_list): Remove.
33246         (push_fields_onto_fieldstack): Properly merge fields.
33247         (create_variable_info_for): Split and simplify.
33248         (create_variable_info_for_1): New piece.
33249         (intra_create_variable_infos): Properly make restrict constraints
33250         from parameters.
33251
33252 2010-04-28  Richard Guenther  <rguenther@suse.de>
33253
33254         PR c++/43880
33255         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
33256
33257 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33258             Jan Hubicka  <hubicka@ucw.cz>
33259
33260         * doc/invoke.texi (-Wsuggest-attribute=const,
33261         -Wsuggest-attribute=pure): Document.
33262         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
33263         (function_always_visible_to_compiler_p,
33264         suggest_attribute, warn_function_pure, warn_function_const):
33265         New functions.
33266         (check_call): Improve debug info.
33267         (analyze_function): Do not check availability.
33268         (add_new_function): Check availability.
33269         (propagate): Output warnings.
33270         (skip_function_for_local_pure_const): New function.
33271         (local_pure_const): Use it; output warnings.
33272         * common.opt (Wsuggest-attribute=const,
33273         Wsuggest-attribute=pure): New.
33274
33275 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
33276
33277         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
33278         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
33279         or DW_CFA_def_cfa_offset{,_sf}.
33280
33281 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33282
33283         * tree.h: Fix truncated long macros.
33284
33285 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
33286
33287         * collect2.c (TARGET_64BIT): Redefine to target's default.
33288         * tlink.c: Likewise.
33289         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
33290         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
33291         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
33292         for underscoring __USER_LABEL_PREFIX__.
33293         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
33294         (SUB_LINK_ENTRY32): New.
33295         (SUB_LINK_ENTRY64): New.
33296         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
33297         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
33298         (SUB_LINK_ENTRY64): New.
33299         (SUB_LINK_ENTRY): New.
33300         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
33301         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
33302         x64 target is choosen.
33303         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
33304         * configure: Regenerated.
33305         * configure.ac (leading-mingw64-underscores): Option added.
33306
33307 2010-04-27  Jan Hubicka  <jh@suse.cz>
33308
33309         * doc/invoke.texi (-fipa-profile): Document.
33310         * opts.c (decode_options): Enable ipa-profile at -O1.
33311         * timevar.def (TV_IPA_PROFILE): Define.
33312         * common.opt (fipa-profile): Add.
33313         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
33314         flag for clones.
33315         (cgraph_propagate_frequency): Handle only local ones.
33316         * tree-pass.h (pass_ipa_profile): Declare.
33317         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
33318         (pass_ipa_profile): Use TV_IPA_PROFILE.
33319         * ipa.c (ipa_profile): New function.
33320         (gate_ipa_profile): Likewise.
33321         (pass_ipa_profile): New global variable.
33322         * passes.c (pass_ipa_profile): New.
33323
33324 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
33325
33326         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
33327
33328 2010-04-27  Martin Jambor  <mjambor@suse.cz>
33329
33330         PR middle-end/43812
33331         * ipa.c (dissolve_same_comdat_group_list): New function.
33332         (function_and_variable_visibility): Call
33333         dissolve_same_comdat_group_list when comdat group contains external or
33334         newly local nodes.
33335         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
33336         lists are circular and that they contain only DECL_ONE_ONLY nodes.
33337
33338 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33339
33340         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
33341         (const_hash_1) <VECTOR_CST>: New case.
33342         (compare_constant) <VECTOR_CST>: Likewise.
33343         <ADDR_EXPR>: Deal with LABEL_REFs.
33344         (copy_constant) <VECTOR_CST>: New case.
33345
33346 2010-04-27  Jan Hubicka  <jh@suse.cz>
33347
33348         * cgraph.c (cgraph_propagate_frequency): New function.
33349         * cgraph.h (cgraph_propagate_frequency): Declare.
33350         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
33351         cgraph_propagate_frequency.
33352
33353 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
33354
33355         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
33356
33357 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
33358
33359         PR target/40657
33360         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
33361         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
33362         here to determine which regs to push and how much stack to reserve.
33363
33364 2010-04-27  Jie Zhang  <jie@codesourcery.com>
33365
33366         * doc/gimple.texi (gimple_statement_with_ops): Remove
33367         addresses_taken field.
33368         (gimple_statement_with_memory_ops): Likewise.
33369
33370 2010-04-27  Jan Hubicka  <jh@suse.cz>
33371
33372         * tree-inline.c (eni_inlining_weights): Remove.
33373         (estimate_num_insns): Special case more builtins.
33374
33375 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
33376
33377         PR c/32207
33378         * c-typeck.c (build_binary_op): Move forward check for comparison
33379         pointer with null pointer constant and adjust the diagnostic message.
33380
33381 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
33382
33383         PR lto/42776
33384         * configure.ac (gcc_cv_as_section_has_align): Set if installed
33385         binutils supports extended .section directive needed by LTO, or
33386         warn if older binutils found.
33387         (LTO_BINARY_READER): New AC_SUBST'd variable.
33388         (LTO_USE_LIBELF): Likewise.
33389         * config.gcc (lto_binary_reader): New target-specific configure
33390         variable.
33391         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
33392         (LTO_USE_LIBELF): Likewise.
33393         * configure: Regenerate.
33394
33395         * collect2.c (is_elf): Rename from this ...
33396         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
33397          object files in addition to ELF-formatted ones.
33398         (scan_prog_file): Caller updated.  Also allow for LTO info marker
33399         symbol to be prefixed or not by an extra underscore.
33400
33401         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
33402         * config/i386/winnt.c: Also #include lto-streamer.h
33403         (i386_pe_asm_named_section): Specify 1-byte section alignment for
33404         LTO named sections.
33405         (i386_pe_asm_output_aligned_decl_common): Add comment.
33406         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
33407
33408 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
33409
33410         PR target/43889
33411         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
33412         Add missing earlyclobber for second alternative.
33413
33414 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
33415
33416         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
33417         bits for artificial defs at the top of the block.
33418         * fwprop.c (single_def_use_enter_block): Don't call it.
33419
33420 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
33421
33422         PR 43715
33423         * configure.ac: Use "$gcc_cv_nm -g" on darwin
33424         instead of "$gcc_cv_objdump -T".
33425         Use "-undefined dynamic_lookup" on darwin.
33426         * configure: Regenerate.
33427
33428 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
33429
33430         PR c/43893
33431         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
33432
33433 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
33434
33435         * c-parser.c (struct c_token): Move location field up.
33436         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
33437         (struct c_declspecs): Convert typespec_word, storage_class, and
33438         default_int_p into bitfields.
33439         (struct c_declarator): Move loc field up.
33440
33441 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
33442
33443         * cfgloop.h (struct loop): Move can_be_parallel field up.
33444         * ipa-prop.h (struct ip_node_params): Move bitfields up.
33445         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
33446         down.
33447         (struct iv_cand): Convert pos field into a bitfield.
33448         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
33449         field up.
33450         (struct _stmt_vec_info): Shuffle fields for better packing.
33451
33452 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
33453
33454         * varasm.c (IN_NAMED_SECTION): Remove guard.
33455         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
33456         (IN_NAMED_SECTION_P): ...this.
33457         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
33458         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
33459
33460 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
33461
33462         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
33463         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
33464         of shadowing it.  Fix comments.
33465
33466 2010-04-26  Jan Hubicka  <jh@suse.cz>
33467
33468         * cgraph.c (cgraph_create_node): Set node frequency to normal.
33469         (cgraph_clone_node): Copy function frequency.
33470         * cgraph.h (node_frequency): New enum
33471         (struct cgraph_node): Add.
33472         * final.c (rest_of_clean_state): Update.
33473         * lto-cgraph.c (lto_output_node): Output node frequency.
33474         (input_overwrite_node): Input node frequency.
33475         * tre-ssa-loop-ivopts (computation_cost): Update.
33476         * lto-streamer-out.c (output_function): Do not output function
33477         frequency.
33478         * predict.c (maybe_hot_frequency_p): Update and handle functions
33479         executed once.
33480         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
33481         attribute lookup.
33482         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
33483         (compute_function_frequency): Set noreturn functions to be executed
33484         once.
33485         (choose_function_section): Update.
33486         * lto-streamer-in.c (input_function): Do not input function frequency.
33487         * function.c (allocate_struct_function): Do not initialize function
33488         frequency.
33489         * function.h (function_frequency): Remove.
33490         (struct function): Remove function frequency.
33491         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
33492         (try_update): Update.
33493         * tree-inline.c (initialize_cfun): Do not update function frequency.
33494         * passes.c (pass_init_dump_file): Update.
33495         * i386.c (ix86_compute_frame_layout): Update.
33496         (ix86_pad_returns): Update.
33497
33498 2010-04-26  Jie Zhang  <jie@codesourcery.com>
33499
33500         PR tree-optimization/43833
33501         * tree-vrp.c (range_int_cst_p): New.
33502         (range_int_cst_singleton_p): New.
33503         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
33504         when both operands are constants.  Use range_int_cst_p in
33505         BIT_IOR_EXPR case.
33506
33507 2010-04-26  Jan Hubicka  <jh@suse.cz>
33508
33509         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
33510
33511 2010-04-26  Richard Guenther  <rguenther@suse.de>
33512
33513         PR lto/43080
33514         * gimple.c (gimple_decl_printable_name): Deal gracefully
33515         with a NULL DECL_NAME.
33516
33517 2010-04-26  Richard Guenther  <rguenther@suse.de>
33518
33519         PR lto/42425
33520         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
33521         if emitting debug information and it is either a function
33522         or a namespace decl.
33523
33524 2010-04-26  Ira Rosen  <irar@il.ibm.com>
33525
33526         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
33527         determine if the statement is vectorizable, and a macro to access it.
33528         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
33529         Skip statements that can't be vectorized. If the analysis fails,
33530         mark the statement as unvectorizable if vectorizing basic block.
33531         (vect_compute_data_refs_alignment): Likewise.
33532         (vect_verify_datarefs_alignment): Skip statements marked as
33533         unvectorizable. Add print.
33534         (vect_analyze_group_access): Skip statements that can't be
33535         vectorized. If the analysis fails, mark the statement as
33536         unvectorizable if vectorizing basic block.
33537         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
33538         * tree-vect-stmts.c (vectorizable_store): Fix the number of
33539         generated stmts for SLP.
33540         (new_stmt_vec_info): Initialize the new field.
33541         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
33542         statements marked as unvectorizable.
33543
33544 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
33545
33546         * c-common.c (flag_isoc1x): New.
33547         (flag_isoc99): Update comment.
33548         * c-common.h (flag_isoc1x): New.
33549         (flag_isoc99): Update comment.
33550         * c-cppbuiltin.c (builtin_define_float_constants): Also define
33551         __<type>_DECIMAL_DIG__.
33552         * c-opts.c (set_std_c1x): New.
33553         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
33554         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
33555         * c.opt (-std=c1x, -std=gnu1x): New options.
33556         * doc/cpp.texi: Mention -std=c1x.
33557         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
33558         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
33559         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
33560         * doc/standards.texi: Mention C1X.
33561         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
33562         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
33563         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
33564         Define for C1X.
33565
33566 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
33567
33568         * config/i386/gmon-sol2.c (_mcleanup): Change format string
33569         placeholder from 0x%x to %#x.
33570         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
33571         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
33572         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
33573         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
33574         * config/i386/i386.c (ix86_target_string): Ditto.
33575         (output_pic_addr_const): Ditto.
33576         (print_operand): Ditto.
33577
33578 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
33579
33580         * combine.c (find_split_point): Add third argument.  Use it
33581         to find nested multiply-accumulate instructions.  Adjust calls.
33582         (try_combine): Adjust call to find_split_point.
33583
33584 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
33585
33586         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
33587
33588 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
33589
33590         PR tree-optimization/41442
33591         * fold-const.c (merge_truthop_with_opposite_arm): New function.
33592         (fold_binary_loc): Call it.
33593
33594 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33595
33596         * toplev.c (general_init): Set default for fdiagnostics-show-option.
33597         * opts.c (common_handle_option): Allow disabling it.
33598         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
33599
33600 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
33601
33602         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
33603         between modes if both types are integral.
33604
33605 2010-04-23  Richard Guenther  <rguenther@suse.de>
33606
33607         PR tree-optimization/43572
33608         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
33609
33610 2010-04-23  Richard Guenther  <rguenther@suse.de>
33611
33612         PR lto/43455
33613         * tree-inline.c (tree_can_inline_p): Also check compatibility
33614         of return types.
33615
33616 2010-04-23  Martin Jambor  <mjambor@suse.cz>
33617
33618         PR tree-optimization/43846
33619         * tree-sra.c (struct access): New flag grp_assignment_read.
33620         (build_accesses_from_assign): Set grp_assignment_read.
33621         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
33622         (enum mark_read_status): New type.
33623         (analyze_access_subtree): Propagate grp_assignment_read, create
33624         accesses also if both direct_read and root->grp_assignment_read.
33625
33626 2010-04-23  Martin Jambor  <mjambor@suse.cz>
33627
33628         PR middle-end/43835
33629         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
33630         function does not have type attributes.
33631
33632 2010-04-23  Richard Guenther  <rguenther@suse.de>
33633
33634         PR lto/42653
33635         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
33636         of FUNCTION_DECLs.
33637
33638 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
33639
33640         * sese.h (create_if_region_on_edge): Remove.
33641
33642         * sese.c (create_if_region_on_edge): Make static.
33643
33644         * tree-inline.c: Do not include ggc.h.
33645
33646         * expr.c: Do not include ggc.h.
33647
33648         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
33649         dependencies.
33650
33651 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
33652
33653         PR target/43744
33654         * config/sh/sh.c (find_barrier): Don't emit a constant pool
33655         in the middle of insns for casesi_worker_2.
33656
33657 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
33658
33659         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
33660
33661 2010-04-22  Ira Rosen  <irar@il.ibm.com>
33662
33663         PR tree-optimization/43842
33664         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
33665         loop unrolling in update of exit phis. Fix comment.
33666         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
33667         least two reduction statements in the loop before starting SLP
33668         analysis.
33669
33670 2010-04-22  Nick Clifton  <nickc@redhat.com>
33671
33672         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
33673
33674 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
33675
33676         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
33677         to simplify a + ~a.
33678
33679 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
33680
33681         * tree-parloops.c (loop_parallel_p): New argument
33682         parloop_obstack.  Pass it down.
33683         (parallelize_loops): New variable parloop_obstack.  Initialize it,
33684         pass it down, free it.
33685
33686         * tree-loop-linear.c (linear_transform_loops): Pass down
33687         lambda_obstack.
33688
33689         * tree-data-ref.h (lambda_compute_access_matrices): New argument
33690         of type struct obstack *.
33691
33692         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
33693         scratch_obstack.  Initialize it, pass down, free it.
33694
33695         * lambda.h (lambda_loop_new): Remove.
33696         (lambda_matrix_new, lambda_matrix_inverse)
33697         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
33698         argument of type struct obstack *.
33699
33700         * lambda-trans.c (lambda_trans_matrix_new): New argument
33701         lambda_obstack.  Pass it down, use obstack allocation for ret.
33702         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
33703         it down.
33704
33705         * lambda-mat.c (lambda_matrix_get_column)
33706         (lambda_matrix_project_to_null): Remove.
33707         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
33708         allocation for mat.
33709         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
33710         lambda_obstack.
33711
33712         * lambda-code.c (lambda_loop_new): New function.
33713         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
33714         (lambda_compute_auxillary_space, lambda_compute_target_space)
33715         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
33716         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
33717         (build_access_matrix): New argument lambda_obstack.  Use obstack
33718         allocation for am.
33719         (lambda_compute_step_signs, lambda_compute_access_matrices): New
33720         argument lambda_obstack.  Pass it down.
33721
33722 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
33723
33724         * optabs.h (expand_widening_mult): Declare.
33725
33726 2010-04-22  Richard Guenther  <rguenther@suse.de>
33727
33728         PR tree-optimization/43845
33729         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
33730         lookup the CALL_EXPR function and arguments.
33731
33732 2010-04-22  Nick Clifton  <nickc@redhat.com>
33733
33734         * config/stormy16/stormy16.c
33735         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
33736         * config/stormy16/stormy16.h: Tidy up formatting.
33737         (DONT_USE_BUILTIN_SETJMP): Remove definition.
33738         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
33739         (ineqbranchsi): Delete pattern.
33740         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
33741         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
33742         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
33743         stormy16-lib2-ucmpsi2.c.
33744
33745 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
33746
33747         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
33748         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
33749         extra set merge_set_noclobber, and use it to relax the final test
33750         slightly.
33751         * df.h (df_simulate_find_noclobber_defs): Declare.
33752         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
33753         conditional defs.
33754         (df_simulate_find_noclobber_defs): New function.
33755
33756 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
33757
33758         * config/i386/i386.md: Use {} around multi-line preparation statements.
33759
33760 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
33761
33762         * c-tree.h (push_init_level, pop_init_level, set_init_index)
33763         (process_init_element): New argument of type struct obstack *.
33764
33765         * c-typeck.c (push_init_level, pop_init_level, set_designator)
33766         (set_init_index, set_init_label, set_nonincremental_init)
33767         (set_nonincremental_init_from_string, find_init_member)
33768         (output_init_element, output_pending_init_elements)
33769         (process_init_element): New argument braced_init_obstack.  Pass it
33770         down.
33771         (push_range_stack, add_pending_init): New argument
33772         braced_init_obstack.  Use obstack allocation.
33773
33774         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
33775         braced_init_obstack.  Pass it down.
33776         (c_parser_braced_init): New variables ret, braced_init_obstack.
33777         Initialize obstack, pass it down and finally free it.
33778
33779 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
33780
33781         PR middle-end/29274
33782         * tree-pass.h (pass_optimize_widening_mul): Declare.
33783         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
33784         gate_optimize_widening_mul): New static functions.
33785         (pass_optimize_widening_mul): New.
33786         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
33787         <case MULT_EXPR>: Remove support for widening multiplies.
33788         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
33789         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
33790         simplify_gen_unary rather than directly building extensions.
33791         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
33792         WIDEN_MULT_EXPR.
33793         * expmed.c (expand_widening_mult): New function.
33794         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
33795
33796 2010-04-21  Jan Hubicka  <jh@suse.cz>
33797
33798         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
33799         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
33800         * lto-wpa-fixup.c: Remove.
33801         * Makefile.in (lto-wpa-fixup.o): Remove.
33802         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
33803         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
33804         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
33805
33806 2010-04-21  Jan Hubicka  <jh@suse.cz>
33807
33808         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
33809         add write_optimization_summary, read_optimization_summary.
33810         (ipa_write_summaries_of_cgraph_node_set): Remove.
33811         (ipa_write_optimization_summaries): Declare.
33812         (ipa_read_optimization_summaries): Declare.
33813         * ipa-cp.c (pass_ipa_cp): Update.
33814         * ipa-reference.c (pass_ipa_reference): Update.
33815         * ipa-pure-const.c (pass_ipa_pure_const): Update.
33816         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
33817         Update.
33818         * ipa-inline.c (pass_ipa_inline): Update.
33819         * ipa.c (pass_ipa_whole_program): Update.
33820         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
33821         * passes.c (ipa_write_summaries_1): Do not test wpa.
33822         (ipa_write_optimization_summaries_1): New.
33823         (ipa_write_optimization_summaries): New.
33824         (ipa_read_summaries): Do not test ltrans.
33825         (ipa_read_optimization_summaries_1): New.
33826         (ipa_read_optimization_summaries): New.
33827
33828 2010-04-21  Jan Hubicka  <jh@suse.cz>
33829
33830         * lto-cgraph.c (lto_output_node): Do not output comdat groups
33831         for boundary nodes.
33832         (output_cgraph): Do not arrange comdat groups for boundary nodes.
33833
33834 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
33835
33836         PR debug/40040
33837         * dwarf2out.c (add_name_and_src_coords_attributes): Add
33838         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
33839
33840 2010-04-21  Jan Hubicka  <jh@suse.cz>
33841
33842         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
33843
33844 2010-04-21  Jan Hubicka  <jh@suse.cz>
33845
33846         * varpool.c (decide_is_variable_needed): Variable is always needed
33847         during ltrans.
33848
33849 2010-04-21  Jan Hubicka  <jh@suse.cz>
33850
33851         * opts.c (decode_options): Enable pure-const pass for whopr.
33852
33853 2010-04-21  Jan Hubicka  <jh@suse.cz>
33854
33855         * cgraph.c (dump_cgraph_node): Dump also assembler name.
33856         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
33857         at WPA dumping.
33858         (cgraph_decide_inlining): Do not expect callee to be removed in all
33859         cases.
33860
33861 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
33862
33863         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
33864
33865 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
33866
33867         * config/i386/i386.md (x86_shrd): Add athlon_decode and
33868         amdfam10_decode attributes.
33869
33870 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
33871
33872         PR middle-end/43570
33873         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
33874         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
33875         (lower_copyprivate_clauses): Use private var in outer
33876         context instead of original var.  Make sure the types
33877         are correct for VLAs.
33878
33879 2010-04-21  Richard Guenther  <rguenther@suse.de>
33880
33881         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
33882         to non-pointer objects.
33883
33884 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
33885
33886         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
33887         last chain entry if it starts with the still current label.
33888         (add_location_or_const_value_attribute): Check that
33889         loc_list->first->next is NULL instead of comparing ->first with ->last.
33890         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
33891         to add_var_loc_to_decl.
33892
33893         * dwarf2out.c (output_call_frame_info): For dw_cie_version
33894         >= 4 add also address size and segment size fields into CIE header.
33895
33896         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
33897         long as address size is the same as sizeof (void *) and
33898         segment size is 0.
33899         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
33900         address size or segment size is unexpected, return DW_EH_PE_omit.
33901         (classify_object_over_fdes): If get_cie_encoding returned
33902         DW_EH_PE_omit, return -1.
33903         (init_object): If classify_object_over_fdes returned -1,
33904         pretend there were no FDEs at all.
33905
33906 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
33907
33908         * config/i386/i386.md (bswap<mode>2): Macroize expander from
33909         bswap{si,di}2 using SWI48 mode iterator.
33910         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
33911         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
33912         set modrm attribute of bswap insn to 0 and remove length attribute.
33913         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
33914         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
33915         set mode attribute to <MODE> and remove length attribute.
33916
33917 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
33918
33919         PR rtl-optimization/43520
33920         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
33921         zero available registers.
33922
33923 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33924
33925         * builtins.c (fold_builtin_cproj): Fold more cases.
33926
33927 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33928
33929         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
33930         (fold_builtin_1): Fold builtin cproj.
33931         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
33932         Use ATTR_CONST_NOTHROW_LIST.
33933
33934 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
33935
33936         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
33937         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
33938         ffsi2_no_cmove for !TARGET_CMOVE.
33939         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
33940         (ffssi2): Remove expander.
33941         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
33942         mode iterator.
33943         (ctz<mode>2): Ditto from ctz{si,di}2.
33944         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
33945         mode iterator.
33946         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
33947         mode iterator.
33948
33949 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
33950
33951         * dwarf2out.c (AT_linkage_name): Define.
33952         (clone_as_declaration): Handle DW_AT_linkage_name.
33953         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
33954         of DW_AT_MIPS_linkage_name.
33955         (move_linkage_attr): Likewise.
33956         (dwarf2out_finish): Likewise.
33957
33958 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
33959
33960         PR middle-end/41952
33961         * fold-const.c (fold_comparison): New folding rule.
33962
33963 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
33964
33965         * double-int.h (double_int_setbit): Declare.
33966         * double-int.c (double_int_setbit): New function.
33967         * rtl.h (immed_double_int_const): Declare.
33968         * emit-rtl.c (immed_double_int_const): New function.
33969         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
33970         and immed_double_int_const functions.
33971         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
33972         expand_copysign_bit): (Ditto.).
33973         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
33974         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
33975         * dojump.c (prefer_and_bit_test): (Ditto.).
33976         * expr.c (convert_modes, reduce_to_bit_field_precision,
33977         const_vector_from_tree): (Ditto.).
33978         * expmed.c (mask_rtx, lshift_value): (Ditto.).
33979
33980 2010-04-20  Jan Hubicka  <jh@suse.cz>
33981
33982         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
33983         (dump_cgraph_node): Dump new flags.
33984         * cgraph.h (struct cgraph_node): Add flags
33985         reachable_from_other_partition and in_other_partition.
33986         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
33987         other partition can not be removed.
33988         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
33989         the other partition must be output; silence sanity checking on
33990         leaking functions bodies from other paritition.
33991         * lto-cgraph.c (reachable_from_other_partition_p): New function.
33992         (lto_output_node): Output new flags; do not sanity check that inline
33993         clones are output; drop lto_forced_extern_inline_p code; do not mock
33994         visibility flags at partition boundaries.
33995         (add_node_to): New function.
33996         (output_cgraph): Use it to sort functions so masters appear before
33997         clones.
33998         (input_overwrite_node): Input new flags.
33999         * passes.c (ipa_write_summaries): Do not call
34000         lto_new_extern_inline_states.
34001         * lto-section-out.c (forced_extern_inline,
34002         lto_new_extern_inline_states lto_delete_extern_inline_states,
34003         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
34004         * lto-streamer.h (lto_new_extern_inline_states,
34005         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
34006         lto_forced_extern_inline_p): Kill.
34007
34008 2010-04-20  Richard Guenther  <rguenther@suse.de>
34009
34010         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
34011         from vars that can have pointers.
34012         (process_constraint): Dump useless constraints.
34013
34014 2010-04-20  Richard Guenther  <rguenther@suse.de>
34015
34016         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
34017         (dump_sa_points_to_info): Remove asserts.
34018         (init_base_vars): nothing_id isn't an escape point nor does it
34019         have pointers.
34020
34021 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
34022
34023         * tree.h (TYPE_REF_IS_RVALUE): Define.
34024         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
34025         should_move_die_to_comdat, prune_unused_types_walk): Handle
34026         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
34027         (modified_type_die, gen_reference_type_die): Emit
34028         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
34029         if TYPE_REF_IS_RVALUE and -gdwarf-4.
34030
34031 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34032
34033         PR target/43635
34034         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
34035         calls for -fpic -m31 if they have been sibcall optimized.
34036
34037 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
34038
34039         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
34040         ar.lc fixed and call-used.
34041
34042         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
34043
34044 2010-04-19  Jan Hubicka  <jh@suse.cz>
34045
34046         * opts.c (decode_options): Disable whpr incompatible passes.
34047         * lto/lto.c (lto_1_to_1_map): Skip clones.
34048         (read_cgraph_and_symbols): Do not mark everything as needed.
34049         (do_whole_program_analysis): Do map only after optimizing;
34050         set proper cgraph_state; use passmanager.
34051
34052 2010-04-19  DJ Delorie  <dj@redhat.com>
34053
34054         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
34055         POINTER_PLUS_EXPR and fix them.
34056
34057 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
34058
34059         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
34060         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
34061         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
34062         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
34063         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
34064         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
34065         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
34066         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
34067         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
34068         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
34069         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
34070
34071 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
34072
34073         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
34074         (check_cond_move_block): Likewise.
34075         (cond_move_process_if_block): Likewise.
34076         (noce_find_if_block): Improve formatting.
34077         (find_if_header): Pass 0 to memset and tweak conditions.
34078         (cond_exec_find_if_block): Fix long lines and tweak conditions.
34079
34080 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
34081
34082         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
34083         for -gdwarf-4.
34084
34085         PR middle-end/43337
34086         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
34087         with non-local decl doesn't need chain.
34088
34089 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
34090
34091         * ira-color.c (allocno_reload_assign): Avoid accumulating
34092         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
34093
34094 2010-04-19  Martin Jambor  <mjambor@suse.cz>
34095
34096         * gimple.h (create_tmp_reg): Declare.
34097         * gimplify.c (create_tmp_reg): New function.
34098         (gimplify_return_expr): Use create_tmp_reg.
34099         (gimplify_omp_atomic): Likewise.
34100         (gimple_regimplify_operands): Likewise.
34101         * tree-dfa.c (make_rename_temp): Likewise.
34102         * tree-predcom.c (predcom_tmp_var): Likewise.
34103         (reassociate_to_the_same_stmt): Likewise.
34104         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
34105         (get_replaced_param_substitute): Likewise.
34106         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
34107         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
34108         * tree-ssa-pre.c (get_representative_for): Likewise.
34109         (create_expression_by_pieces): Likewise.
34110         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
34111         (create_tailcall_accumulator): Likewise.
34112
34113 2010-04-19  Martin Jambor  <mjambor@suse.cz>
34114
34115         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
34116         new_stmt.
34117         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
34118
34119 2010-04-19  Richard Guenther  <rguenther@suse.de>
34120
34121         PR tree-optimization/43796
34122         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
34123         from SCEV in the lattice.
34124         (vrp_visit_phi_node): Dump change.
34125
34126 2010-04-19  Richard Guenther  <rguenther@suse.de>
34127
34128         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
34129         * configure: Re-generated.
34130
34131 2010-04-19  Richard Guenther  <rguenther@suse.de>
34132
34133         PR tree-optimization/43783
34134         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
34135         constant ARRAY_REF operands two and three if possible.
34136
34137 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
34138
34139         PR target/43766
34140         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
34141
34142 2010-04-19  Jie Zhang  <jie@codesourcery.com>
34143
34144         PR target/43662
34145         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
34146
34147 2010-04-19  Ira Rosen  <irar@il.ibm.com>
34148
34149         PR tree-optimization/37027
34150         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
34151         and macro to access it.
34152         (vectorizable_reduction): Add argument.
34153         (vect_get_slp_defs): Likewise.
34154         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
34155         statements for possible use in SLP.
34156         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
34157         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
34158         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
34159         add new argument.
34160         (vectorizable_reduction): Likewise.
34161         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
34162         vect_get_slp_defs.
34163         (vectorizable_type_demotion, vectorizable_type_promotion,
34164         vectorizable_store): Likewise.
34165         (vect_analyze_stmt): Update call to vectorizable_reduction.
34166         (vect_transform_stmt): Likewise.
34167         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
34168         (vect_build_slp_tree): Fix indentation. Check that there are no loads
34169         from different interleaving chains in same node.
34170         (vect_slp_rearrange_stmts): New function.
34171         (vect_supported_load_permutation_p): Allow load permutations for
34172         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
34173         inside SLP nodes if necessary.
34174         (vect_analyze_slp_instance): Handle reductions.
34175         (vect_analyze_slp): Try to build SLP instances originating from groups
34176         of reductions.
34177         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
34178         (vect_get_constant_vectors): Create initial vectors for reductions
34179         according to reduction code. Add new argument.
34180         (vect_get_slp_defs): Add new argument, pass it to
34181         vect_get_constant_vectors.
34182         (vect_schedule_slp_instance): Remove SLP tree root statements.
34183
34184 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
34185
34186         * tree.h (ENUM_IS_SCOPED): Define.
34187         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
34188         for ENUM_IS_SCOPED enums.
34189
34190 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
34191
34192         * fold-const.c (fold_comparison): Use ssizetype.
34193         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
34194         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
34195         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
34196         * tree-object-size.c (compute_object_sizes): Use size_type_node.
34197
34198         * tree.h (initialize_sizetypes): Remove parameter.
34199         (build_common_tree_nodes): Remove second parameter.
34200         * stor-layout.c (initialize_sizetypes): Remove parameter.
34201         Always create an unsigned type.
34202         (set_sizetype): Assert that the passed type is unsigned and simplify.
34203         * tree.c (build_common_tree_nodes): Remove second parameter.
34204         Adjust call to initialize_sizetypes.
34205         * c-decl.c (c_init_decl_processing): Remove second argument in call to
34206         build_common_tree_nodes.
34207
34208 2010-04-18  Matthias Klose  <doko@ubuntu.com>
34209
34210         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
34211
34212 2010-04-18  Ira Rosen  <irar@il.ibm.com>
34213
34214         PR tree-optimization/43771
34215         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
34216         load permutation doesn't have gaps.
34217
34218 2010-04-18  Jan Hubicka  <jh@suse.cz>
34219
34220         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
34221         (sse_prologue_save_insn expander): Use new pattern.
34222         (sse_prologue_save_insn1): New pattern and splitter.
34223         (sse_prologue_save_insn): Update to deal also with 64bit aligned
34224         blocks.
34225         * i386.c (setup_incoming_varargs_64): Do not compute jump
34226         destination here.
34227         (ix86_gimplify_va_arg): Update alignment needed.
34228         (ix86_local_alignment): Do not align all local arrays to 128bit.
34229
34230 2010-04-17  Jan Hubicka  <jh@suse.cz>
34231
34232         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
34233
34234 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
34235
34236         * arm.md (negdi2): Remove redundant code to force values into a
34237         register.
34238
34239 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
34240
34241         * arm/bpabi.S: Add EABI alignment attributes to objects.
34242         * arm/bpabi-v6m.S: Likewise.
34243         * arm/crti.asm: Likewise.
34244         * arm/crtn.asm: Likewise.
34245         * arm/lib1funcs.asm: Likewise.
34246         * arm/libunwind.S: Likewise.
34247
34248 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
34249
34250         * arm-protos.h (tune_params): New structure.
34251         * arm.c (current_tune): New variable.
34252         (arm_constant_limit): Delete.
34253         (struct processors): Add pointer to the tune parameters.
34254         (arm_slowmul_tune): New tuning option.
34255         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
34256         (all_cores): Adjust to pick up the tuning model.
34257         (arm_constant_limit): New function.
34258         (arm_override_options): Select the appropriate tuning model.  Delete
34259         initialization of arm_const_limit.
34260         (arm_split_constant): Use the new constant-limit model.
34261         (arm_rtx_costs): Pick up the current tuning model.
34262         * arm.md (is_strongarm, is_xscale): Delete.
34263         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
34264         for Xscale variant architectures.
34265         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
34266
34267 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34268
34269         * config/arm/arm.c (arm_gen_constant): Remove unused variable
34270         can_shift.
34271         (arm_rtx_costs_1): Remove unused variable extra_cost.
34272         (arm_unwind_emit_set): Use variable offset.
34273         (thumb1_output_casesi): Remove unused variable flags.
34274
34275 2010-04-16  Jeff Law  <law@redhat.com>
34276
34277         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
34278         needing assignment rather than doing a two-phase assignment.  Remove
34279         unused variable 'm'.
34280
34281 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
34282
34283         PR bootstrap/43767
34284         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
34285
34286 2010-04-16  Doug Kwan  <dougkwan@google.com>
34287
34288         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
34289         (next_operand_entry_id): New static variable.
34290         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
34291         (add_to_ops_vec): Assigned unique ID to operand entry.
34292         (struct oecount_s): New field ID.
34293         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
34294         (undistribute_ops_list): Assign unique IDs to oecounts.
34295         (init_reassoc): reset next_operand_entry_id.
34296
34297 2010-04-16  Doug Kwan  <dougkwan@google.com>
34298
34299         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
34300         missing left parenthesis.
34301
34302 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
34303
34304         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
34305         *btdi_rex64 using SWI48 mode iterator.
34306         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
34307         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
34308         *jcc_btdi_mask_rex64.
34309
34310 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
34311
34312         * double-int.h (tree_to_double_int): Convert to macro.
34313         * double-int.c (tree_to_double_int): Remove.
34314
34315 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
34316
34317         PR debug/43762
34318         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
34319         with want_address 2 and in case a single element list might be
34320         possible, call it again with want_address 0.
34321
34322 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
34323
34324         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
34325         case 'W' print operands for HI mode.
34326         * config/h8300/h8300.h (Y0, Y2) : New constraints.
34327         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
34328         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
34329         * config/h8300/predicate.md (bit_register_indirect_operand): New.
34330
34331         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
34332
34333         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
34334         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
34335         #xx:3 and #xx:4 mode.
34336
34337         * config/h8300/h8300.md (inverted load with HImode dest): Add
34338         support for H8300SX.
34339
34340         * config/h8300/predicate.md (bit_operand): Allow immediate values that
34341         satisfy 'U' constraint.
34342
34343 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34344
34345         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
34346         * configure: Regenerate.
34347         * config.in: Regenerate.
34348         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
34349         works.
34350
34351 2010-04-16  Richard Guenther  <rguenther@suse.de>
34352
34353         * tree.h (struct tree_decl_minimal): Move pt_uid ...
34354         (struct tree_decl_common): ... here.
34355         (DECL_PT_UID): Adjust.
34356         (SET_DECL_PT_UID): Likewise.
34357         (DECL_PT_UID_SET_P): Likewise.
34358
34359 2010-04-16  Richard Guenther  <rguenther@suse.de>
34360
34361         PR tree-optimization/43572
34362         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
34363         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
34364         * tree-flow.h (is_call_clobbered): Remove.
34365         * tree-flow-inline.h (is_call_clobbered): Likewise.
34366         * tree-dfa.c (dump_variable): Do not dump call clobber state.
34367         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
34368         (execute_return_slot_opt): Adjust.
34369         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
34370         check for call clobbered vars here.
34371         (find_tail_calls): Move tailcall verification to the
34372         proper place.
34373
34374 2010-04-16  Diego Novillo  <dnovillo@google.com>
34375
34376         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
34377
34378 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
34379
34380         PR target/40603
34381         * config/arm/arm.md (cbranchqi4): New pattern.
34382         * config/arm/predicates.md (const0_operand,
34383         cbranchqi4_comparison_operator): New predicates.
34384
34385 2010-04-16  Richard Guenther  <rguenther@suse.de>
34386
34387         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
34388         (dump_gimple_stmt): Likewise.
34389
34390 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
34391
34392         * recog.h (struct recog_data): New field is_operator.
34393         (struct insn_operand_data): New field is_operator.
34394         * recog.c (extract_insn): Set recog_data.is_operator.
34395         * genoutput.c (output_operand_data): Emit code to set the
34396         is_operator field.
34397         * reload.c (find_reloads): Use it rather than testing for an
34398         empty constraint string.
34399
34400         PR target/41514
34401         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
34402         If the previous insn is a cbranchsi4_insn with the same arguments,
34403         omit the compare instruction.
34404
34405         * config/arm/arm.md (addsi3_cbranch): If destination is a high
34406         register, inputs must be low registers and we need a low register
34407         scratch.  Handle alternative 2 like alternative 3.
34408
34409 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
34410
34411         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
34412         don't call get_addr on both.  If one expression is a VALUE and
34413         the other a REG, check VALUE's locs if the REG isn't among them.
34414
34415 2010-04-16  Christian Bruel  <christian.bruel@st.com>
34416
34417         * config/sh/sh.h (sh_frame_pointer_required): New function.
34418         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
34419         (flag_omit_frame_pointer) Set.
34420         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
34421         (rounded_frame_size): Adjust size with outgoing_args_size.
34422         (sh_set_return_address): Must return from stack pointer.
34423         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
34424         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
34425         (ACCUMULATE_OUTGOING_ARGS): Define.
34426         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
34427         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
34428
34429 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
34430
34431         PR target/43471
34432         * config/sh/sh.c (sh_legitimize_reload_address): Use
34433         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
34434         Remove a unneeded check for offset_base.
34435
34436 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
34437
34438         * configure: Regenerated.
34439
34440 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34441
34442         * config/s390/s390.c (s390_call_save_register_used): Switch back
34443         to HARD_REGNO_NREGS.
34444
34445 2010-04-15  Richard Guenther  <rguenther@suse.de>
34446
34447         * alias.c (alias_set_subset_of): Handle alias-set zero
34448         child properly.
34449
34450 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
34451             Julian Brown  <julian@codesourcery.com>
34452
34453         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
34454         alternatives according to use of high and low regs.
34455         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
34456         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
34457         optimizing for size on Thumb-2.
34458
34459 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
34460
34461         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
34462
34463 2010-04-15  Richard Guenther  <rguenther@suse.de>
34464
34465         * tree-ssa-structalias.c (struct variable_info): Add
34466         is_fn_info flag.
34467         (new_var_info): Initialize it.
34468         (dump_constraints): Support printing last added constraints.
34469         (debug_constraints): Adjust.
34470         (dump_constraint_graph): Likewise.
34471         (make_heapvar_for): Check for NULL cfun.
34472         (get_function_part_constraint): New function.
34473         (get_fi_for_callee): Likewise.
34474         (find_func_aliases): Properly implement IPA PTA constraints.
34475         (process_ipa_clobber): New function.
34476         (find_func_clobbers): Likewise.
34477         (insert_into_field_list_sorted): Remove.
34478         (create_function_info_for): Properly allocate vars for IPA mode.
34479         Do not use insert_into_field_list_sorted.
34480         (create_variable_info_for): Properly generate constraints for
34481         global vars in IPA mode.
34482         (dump_solution_for_var): Always dump the solution.
34483         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
34484         (find_what_var_points_to): Adjust.
34485         (pt_solution_set): Change.
34486         (pt_solution_ior_into): New function.
34487         (pt_solution_empty_p): Export.
34488         (pt_solution_includes_global): Adjust.
34489         (pt_solution_includes_1): Likewise.
34490         (pt_solutions_intersect_1): Likewise.
34491         (dump_sa_points_to_info): Check some invariants.
34492         (solve_constraints): Move constraint dumping ...
34493         (compute_points_to_sets): ... here.
34494         (ipa_pta_execute): ... and here.
34495         (compute_may_aliases): Do not re-compute points-to info
34496         locally if IPA info is available.
34497         (ipa_escaped_pt): New global var.
34498         (ipa_pta_execute): Properly implement IPA PTA.
34499         * tree-into-ssa.c (dump_decl_set): Support dumping
34500         decls not in referenced-vars.
34501         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
34502         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
34503         (dump_points_to_solution): Likewise.
34504         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
34505         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
34506         (remap_gimple_stmt): Reset call clobber/use information if necessary.
34507         (copy_decl_to_var): Copy DECL_PT_UID.
34508         (copy_result_decl_to_var): Likewise.
34509         * tree.c (make_node_stat): Initialize DECL_PT_UID.
34510         (copy_node_stat): Copy it.
34511         * tree.h (DECL_PT_UID): New macro.
34512         (SET_DECL_PT_UID): Likewise.
34513         (DECL_PT_UID_SET_P): Likewise.
34514         (struct tree_decl_minimal): Add pt_uid member.
34515         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
34516         (pt_solution_empty_p): Declare.
34517         (pt_solution_set): Adjust.
34518         (ipa_escaped_pt): Declare.
34519         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
34520         * gimple-pretty-print.c (pp_points_to_solution): New function.
34521         (dump_gimple_call): Dump call clobber/use information.
34522         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
34523         * tree-pass.h (TDF_ALIAS): New dump option.
34524         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
34525         * doc/invoke.texi (-fipa-pta): Update documentation.
34526
34527 2010-04-15  Richard Guenther  <rguenther@suse.de>
34528
34529         * Makefile.in (OBJS-common): Add gimple-fold.o.
34530         (gimple-fold.o): New rule.
34531         * tree.h (maybe_fold_offset_to_reference,
34532         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
34533         prototypes ...
34534         * gimple.h: ... here.
34535         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
34536         may_propagate_address_into_dereference): Move prototypes ...
34537         * gimple.h: ... here.
34538         * tree-ssa-ccp.c (get_symbol_constant_value,
34539         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
34540         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
34541         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
34542         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
34543         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
34544         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
34545         gimplify_and_update_call_from_tree): Move ...
34546         * gimple-fold.c: ... here.  New file.
34547         (ccp_fold_builtin): Rename to ...
34548         (gimple_fold_builtin): ... this.
34549         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
34550
34551 2010-04-15  Richard Guenther  <rguenther@suse.de>
34552
34553         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
34554         fit_double_type, force_fit_type_double, add_double_with_sign,
34555         neg_double, mul_double_with_sign, lshift_double, rshift_double,
34556         lrotate_double, rrotate_double, div_and_round_double): Move ...
34557         * double-int.c: ... here.
34558         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
34559         add_double, neg_double, mul_double_with_sign, mul_double,
34560         lshift_double, rshift_double, lrotate_double, rrotate_double,
34561         div_and_round_double): Move prototypes ...
34562         * double-int.h: ... here.
34563
34564 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
34565
34566         PR target/43742
34567         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
34568         matching constraints to ensure inputs match the output.
34569
34570 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
34571
34572         PR target/43742
34573         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
34574         in an input-only operand.
34575
34576 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
34577
34578         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
34579         (double_int_not, double_int_lshift, double_int_rshift): Declare.
34580         (double_int_negative_p): Convert to static inline function.
34581         * double-int.c (double_int_lshift, double_int_lshift): New functions.
34582         (double_int_negative_p): Remove.
34583         * tree.h (lshift_double, rshift_double):
34584         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
34585         * fold-const.c (fold_convert_const_int_from_real,
34586         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
34587         (lshift_double): Change type of arith argument to bool.
34588         (rshift_double): Change type of arith argument to bool. Correct
34589         comment.
34590         * expmed.c (mask_rtx, lshift_value): (Ditto.).
34591
34592 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
34593
34594         PR target/21803
34595         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
34596         at the start and end of the then/else blocks, and omit them from the
34597         conversion.
34598         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
34599         argument; all callers changed.  Pass zero to old_insns_match_p instead.
34600         (flow_find_head_matching_sequence): New function.
34601         (old_insns_match_p): Check REG_EH_REGION notes for calls.
34602         * basic-block.h (flow_find_cross_jump,
34603         flow_find_head_matching_sequence): Declare functions.
34604
34605 2010-04-14  Jason Merrill  <jason@redhat.com>
34606
34607         PR c++/36625
34608         * c-common.c (attribute_takes_identifier_p): New fn.
34609         * c-common.h: Declare it.
34610
34611 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34612
34613         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
34614         splitter condition.
34615         (*udivmod<mode>4): Ditto.
34616
34617 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34618
34619         * config/i386/i386.md (maxmin_int): Rename code attribute from
34620         maxminiprefix and update all users.
34621         (maxmin_float): Ditto from maxminfprefix.
34622         (logic): Ditto from logicprefix.
34623         (absneg_mnemonic): Ditto from absnegprefix.
34624         * config/i386/mmx.md: Update all users of maxminiprefix,
34625         maxminfprefix and logicprefix for rename.
34626         * config/i386/sse.md: Ditto.
34627         * config/i386/sync.md (sync_<code><mode>): Update for
34628         logicprefix rename.
34629
34630 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34631
34632         PR 42966
34633         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
34634         warnings converted to errors.
34635
34636 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34637
34638         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
34639         used insn_type variable.
34640         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
34641         to avoid set-but-not-used warning.
34642
34643 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34644
34645         * df-core.c (df_ref_debug): Change format string placeholder
34646         from 0x%x to %#x.
34647         * dwarf2asm.c (dw2_asm_output_data_raw,
34648         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
34649         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
34650         * dwarf2out.c (output_cfi, output_cfi_directive,
34651         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
34652         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
34653         Ditto.
34654         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
34655         * print-rtl.c (print_rtx): Ditto.
34656
34657 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
34658
34659         PR middle-end/42694
34660         * builtins.c (expand_builtin_pow_root): New function to expand pow
34661         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
34662         series of sqrt and cbrt calls under -ffast-math.
34663         (expand_builtin_pow): Call it.
34664
34665 2010-04-14  Michael Matz  <matz@suse.de>
34666
34667         PR tree-optimization/42963
34668         * tree-cfg.c (touched_switch_bbs): New static variable.
34669         (group_case_labels_stmt): New function broken out from ...
34670         (group_case_labels): ... here, use the above.
34671         (start_recording_case_labels): Allocate touched_switch_bbs.
34672         (end_recording_case_labels): Deallocate it, call
34673         group_case_labels_stmt.
34674         (gimple_redirect_edge_and_branch): Remember index of affected BB.
34675
34676 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34677
34678         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
34679         from insn template.
34680
34681 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
34682
34683         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
34684
34685 2010-04-13  Jan Hubicka  <jh@suse.cz>
34686
34687         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
34688         of optimized out static functions.
34689         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
34690         cost computation.  Also sanity check for overflows.
34691         (update_caller_keys): Update cgraph_edge_badness call; properly
34692         update fibheap and sanity check that it is up to date.
34693         (add_new_edges_to_heap): Update cgraph_edge_badness.
34694         (cgraph_decide_inlining_of_small_function): Likewise;
34695         add sanity checking that badness in heap is up to date;
34696         improve dumping of reason; Update badness of calls to the
34697         offline copy of function currently inlined; dump badness
34698         of functions not inlined because of unit growth limits.
34699
34700 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
34701
34702         PR middle-end/32628
34703         * c-common.c (pointer_int_sum): Disregard overflow that occured only
34704         because of sign-extension change when converting to sizetype here...
34705         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
34706
34707         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
34708         the folding to constants.  Remove redundant final conversion.
34709         (fold_binary) <associate>: Do not associate if the re-association of
34710         constants alone overflows.
34711         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
34712         to the end of the list.
34713         (multiple_of_p) <COND_EXPR>: New case.
34714
34715 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
34716
34717         * opt-functions.awk (opt_sanitized_name): New.
34718         (opt_enum): New.
34719         * optc-gen.awk: Use it
34720         * opth-gen.awk: Use it.
34721
34722 2010-04-13  Martin Jambor  <mjambor@suse.cz>
34723
34724         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
34725         (sra_modify_assign): Delete stmts loading dead data even if racc has no
34726         children.  Call replace_uses_with_default_def_ssa_name to handle
34727         SSA_NAES on lhs.
34728
34729 2010-04-13  Michael Matz  <matz@suse.de>
34730
34731         PR middle-end/43730
34732         * builtins.c (expand_builtin_interclass_mathfn): Also create
34733         a register if the predicate doesn't match.
34734
34735 2010-04-13  Diego Novillo  <dnovillo@google.com>
34736
34737         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
34738         * c-pch.c: Include timevar.h.
34739         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
34740         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
34741         * ggc-common.c: Include timevar.h.
34742         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
34743         * timevar.def (TV_PCH_SAVE): Define.
34744         (TV_PCH_CPP_SAVE): Define.
34745         (TV_PCH_PTR_REALLOC): Define.
34746         (TV_PCH_PTR_SORT): Define.
34747         (TV_PCH_RESTORE): Define.
34748         (TV_PCH_CPP_RESTORE): Define.
34749
34750 2010-04-13  Michael Matz  <matz@suse.de>
34751
34752         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
34753         into MINUS_EXPRs.
34754         (can_reassociate_p): New function.
34755         (break_up_subtract_bb, reassociate_bb): Use it.
34756
34757 2010-04-13  Richard Guenther  <rguenther@suse.de>
34758
34759         PR bootstrap/43737
34760         * builtins.c (c_readstr): Fix assert.
34761
34762 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
34763
34764         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
34765         when generating cltd insn.
34766
34767         (*ashl<mode>3_1): Remove special handling for register operand 2.
34768         (*ashlsi3_1_zext): Ditto.
34769         (*ashlhi3_1): Ditto.
34770         (*ashlhi3_1_lea): Ditto.
34771         (*ashlqi3_1): Ditto.
34772         (*ashlqi3_1_lea): Ditto.
34773         (*<shiftrt_insn><mode>3_1): Ditto.
34774         (*<shiftrt_insn>si3_1_zext): Ditto.
34775         (*<shiftrt_insn>qi3_1_slp): Ditto.
34776         (*<rotate_insn><mode>3_1): Ditto.
34777         (*<rotate_insn>si3_1_zext): Ditto.
34778         (*<rotate_insn>qi3_1_slp): Ditto.
34779
34780 2010-04-13  Richard Guenther  <rguenther@suse.de>
34781
34782         * tree-ssa-structalias.c (callused_id): Remove.
34783         (call_stmt_vars): New.
34784         (get_call_vi): Likewise.
34785         (lookup_call_use_vi): Likewise.
34786         (lookup_call_clobber_vi): Likewise.
34787         (get_call_use_vi): Likewise.
34788         (get_call_clobber_vi): Likewise.
34789         (make_transitive_closure_constraints): Likewise.
34790         (handle_const_call): Adjust to do per-call call-used handling.
34791         (handle_pure_call): Likewise.
34792         (find_what_var_points_to): Remove general callused handling.
34793         (init_base_vars): Likewise.
34794         (init_alias_vars): Initialize call_stmt_vars.
34795         (compute_points_to_sets): Process call-used and call-clobbered
34796         vars for call statements.
34797         (delete_points_to_sets): Free call_stmt_vars.
34798
34799 2010-04-13  Richard Guenther  <rguenther@suse.de>
34800
34801         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
34802         Only add RW dependence for dependence distance zero.
34803         Adjust maximal vectorization factor according to dependences.
34804         Move alignment handling ...
34805         (vect_find_same_alignment_drs): ... here.  New function.
34806         (vect_analyze_data_ref_dependences): Adjust.
34807         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
34808         (vect_analyze_data_refs): Adjust minimal vectorization factor
34809         according to data references.
34810         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
34811         dependences before determining the vectorization factor.
34812         Analyze alignment after determining the vectorization factor.
34813         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
34814         dependences before alignment.
34815         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
34816         Adjust prototype.
34817         (vect_analyze_data_refs): Likewise.
34818         (MAX_VECTORIZATION_FACTOR): New define.
34819
34820 2010-04-13  Duncan Sands  <baldrick@free.fr>
34821
34822         * except.h (lang_eh_type_covers): Remove.
34823         * except.c (lang_eh_type_covers): Likewise.
34824
34825 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34826             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
34827
34828         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
34829         * config/s390/s390.c: Replace UNTIS_PER_WORD with
34830         UNITS_PER_LONG where it is ABI relevant.
34831         (s390_return_addr_rtx): Likewise.
34832         (s390_back_chain_rtx): Likewise.
34833         (s390_frame_area): Likewise.
34834         (s390_frame_info): Likewise.
34835         (s390_initial_elimination_offset): Likewise.
34836         (save_gprs): Likewise.
34837         (s390_emit_prologue): Likewise.
34838         (s390_emit_epilogue): Likewise.
34839         (s390_function_arg_advance): Likewise.
34840         (s390_function_arg): Likewise.
34841         (s390_va_start): Likewise.
34842         (s390_gimplify_va_arg): Likewise.
34843         (s390_function_profiler): Likewise.
34844         (s390_optimize_prologue): Likewise.
34845         (s390_rtx_costs): Likewise.
34846         (s390_secondary_reload): Likewise.
34847         (s390_promote_function_mode): Likewise.
34848         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
34849         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
34850         registers available.
34851         (s390_unwind_word_mode): New function.
34852         (s390_function_value): Split 64 bit values into register pair if
34853         used as return value.
34854         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
34855         function call parameters.  Handle parallels.
34856         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
34857         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
34858         (DWARF_CIE_DATA_ALIGNMENT): New macro.
34859         (s390_expand_setmem): Remove unused variable src_addr.
34860         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
34861         deal with 64 bit registers.
34862         * config/s390/s390.h: Define __zarch__ predefined macro.
34863         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
34864         (UNITS_PER_LONG): New macro.
34865         * libjava/include/s390-signal.h: Define extended ucontext
34866         structure containing the upper halfs of the 64 bit registers.
34867
34868 2010-04-13  Simon Baldwin  <simonb@google.com>
34869
34870         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
34871
34872 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
34873
34874         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
34875         rvalue on the RHS if the LHS is of a non-renamable type.
34876         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
34877
34878 2010-04-13  Matthias Klose  <doko@ubuntu.com>
34879
34880         * gcc.c (cc1_options): Handle -iplugindir before processing
34881         the cc1 spec. Only add -iplugindir once.
34882         (cpp_unique_options): Add -iplugindir option if -fplugin* options
34883         found.
34884         * common.opt (iplugindir): Remove `Separate' property, initialize.
34885         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
34886         option.
34887         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
34888         (distclean): Remove plugin dir.
34889         * doc/invoke.texi: Document -iplugindir.
34890
34891 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
34892
34893         * doc/plugins.texi (Loading Plugins): Document short
34894         -fplugin=foo option.
34895         (Plugin API): Mention default_plugin_dir_name function.
34896
34897         * gcc.c (find_file_spec_function): Add new declaration.
34898         (static_spec_func): Use it for "find-file".
34899         (find_file_spec_function): Add new function.
34900         (cc1_options): Add -iplugindir option if -fplugin* options found.
34901
34902         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
34903
34904         * plugin.c (add_new_plugin): Updated comment, and handle short
34905         plugin name.
34906         (default_plugin_dir_name): Added new function.
34907
34908         * common.opt (iplugindir): New option to set the plugin directory.
34909
34910 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
34911
34912         * config/i386/i386.md (any_rotate): New code iterator.
34913         (rotate_insn): New code attribute.
34914         (rotate): Ditto.
34915         (SWIM124): New mode iterator.
34916         (<rotate_insn>ti3): New expander.
34917         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
34918         any_rotate code iterator.
34919         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
34920         using any_rotate code iterator and SWIM124 mode iterator.
34921         (ix86_rotlti3): New insn_and_split pattern.
34922         (ix86_rotrti3): Ditto.
34923         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
34924         ix86_rotl{di,ti}3 patterns.
34925         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
34926         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
34927         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
34928         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
34929         code iterator and SWI mode iterator.
34930         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
34931         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
34932         code iterator.
34933         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
34934         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
34935         (bswap rotatert splitter): Add splitter.
34936         (bswap splitter): Macroize splitter using any_rotate code iterator.
34937         Add insn predicate to split only for TARGET_USE_XCHGB or when
34938         optimizing function for size.
34939
34940 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
34941
34942         * config/pa/pa.c (emit_move_sequence): Remove use of
34943         deleted variable flag_argument_noalias.
34944
34945 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34946
34947         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
34948         configurations.
34949         Add to unsupported targets list.
34950         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
34951         sparc*-sun-solaris2.[567]* from target lists.
34952         * configure: Regenerate.
34953         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
34954         removal.
34955         Remove Solaris 7 patch references.
34956         (Specific, sparc-sun-solaris2.7): Removed.
34957         (sparc-sun-solaris2*): Update Solaris 7 example.
34958         (sparc64-*-solaris2*): Likewise.
34959
34960 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34961
34962         * config.build (alpha*-dec-osf4*): Remove.
34963         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
34964         of obsolete configurations.
34965         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
34966         support.
34967         * config/alpha/t-osf4: Renamed to ...
34968         * config/alpha/t-osf5: ... this.
34969         * config/alpha/osf.h: Renamed to ...
34970         * config/alpha/osf5.h: ... this.
34971         Merged old osf5.h contents.
34972         Update comments.
34973         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
34974         (EXTRA_SPECS): Removed.
34975         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
34976         reflect removal of Tru64 UNIX V4.0/V5.0 support.
34977         Document that.
34978
34979 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34980
34981         * doc/contrib.texi (Contributors, Rainer Orth): Update.
34982
34983 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
34984
34985         PR/43702
34986         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
34987         __thiscall convention.
34988
34989 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
34990
34991         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
34992         orig_base.
34993         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
34994
34995 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
34996
34997         * function.c (assign_parms_initialize_all): Add unused attribute
34998         to fntype.
34999
35000 2010-04-12  Richard Guenther  <rguenther@suse.de>
35001
35002         * gsstruct.def (GSS_CALL): New.
35003         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
35004         * gimple.h: Include tree-ssa-alias.h.
35005         (struct gimple_statement_call): New.
35006         (union gimple_statement_struct_d): Add gimple_call member.
35007         (gimple_call_reset_alias_info): Declare.
35008         (gimple_call_use_set): New function.
35009         (gimple_call_clobber_set): Likewise.
35010         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
35011         * gimple.c (gimple_call_reset_alias_info): New function.
35012         (gimple_build_call_1): Call it.
35013         * lto-streamer-in.c (input_gimple_stmt): Likewise.
35014         * tree-inline.c (remap_gimple_stmt): Likewise.
35015         (expand_call_inline): Remove callused handling.
35016         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
35017         * tree-dfa.c (dump_variable): Likewise.
35018         * tree-parloops.c (parallelize_loops): Likewise.
35019         * tree-ssa.c (init_tree_ssa): Likewise.
35020         (delete_tree_ssa): Likewise.
35021         * tree-flow-inline.h (is_call_used): Remove.
35022         * tree-flow.h (struct gimple_df): Remove callused member.
35023         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
35024         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
35025         (ref_maybe_used_by_call_p_1): Simplify.
35026         (call_may_clobber_ref_p_1): Likewise.
35027         * tree-ssa-structalias.c (compute_points_to_sets): Set
35028         the call stmt used and clobbered sets.
35029         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
35030         (find_tail_calls): Verify the tail call.
35031
35032 2010-04-12  Richard Guenther  <rguenther@suse.de>
35033
35034         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
35035         single-iteration always-inline inlining.
35036         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
35037         (cgraph_decide_inlining): Do not handle always-inline specially.
35038         (try_inline): Remove always-inline cycle detection special case.
35039         Do not recurse on always-inlines.
35040         (cgraph_early_inlining): Do not iterate if not optimizing.
35041         (cgraph_gate_early_inlining): remove.
35042         (pass_early_inline): Run unconditionally.
35043         (gate_cgraph_decide_inlining): New function.
35044         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
35045         not inlining or optimizing.
35046         (cgraph_decide_inlining_of_small_functions): Also consider
35047         always-inline functions.
35048         (cgraph_default_inline_p): Return true for nodes which should
35049         disregard inline limits.
35050         (estimate_function_body_sizes): Assume zero size and time for
35051         nodes which are marked as disregarding inline limits.
35052         (cgraph_decide_recursive_inlining): Do not perform recursive
35053         inlining on always-inline nodes.
35054
35055 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
35056
35057         PR bootstrap/43699
35058         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
35059         for exprs satisfying handled_component_p.
35060
35061 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
35062
35063         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
35064         non-constant aggregate elements.
35065
35066         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
35067         is a real initialization.
35068
35069 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
35070
35071         PR c/36774
35072         * c-decl.c (start_function): Move forward check for nested function.
35073
35074 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
35075
35076         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
35077         * config/sh/sh.c: Include reload.h.
35078         (sh_legitimize_reload_address): New.
35079         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
35080         sh_legitimize_reload_address.
35081
35082 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
35083
35084         * config/sh/sh.md (*movqi_pop): New insn pattern.
35085         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
35086
35087 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
35088
35089         * config/i386/i386.md (any_shiftrt): New code iterator.
35090         (shiftrt_insn): New code attribute.
35091         (shiftrt): Ditto.
35092         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
35093         using any_shiftrt code iterator.
35094         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
35095         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
35096         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
35097         pattern from corresponding peephole2 patterns.
35098         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
35099         using any_shiftrt code iterator.
35100         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
35101         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
35102         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
35103         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
35104         *{ashr,lshr}<mode>3_cmp_zext.
35105         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
35106
35107 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
35108
35109         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
35110         scratch register.
35111         (*lshr<mode>3_cconly): Ditto.
35112
35113 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
35114
35115         * config/i386/i386.md (lshr<mode>3): Macroize expander from
35116         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
35117         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
35118         pattern from *lshr{di,ti}3_1 and corresponding splitters using
35119         DWI mode iterator.
35120         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
35121         from corresponding peephole2 patterns.
35122         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
35123         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
35124         and *lshrdi3_1_rex64 using SWI mode iterator.
35125         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
35126         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
35127         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
35128         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
35129         and *lshrdi3_cmp_rex64 using SWI mode iterator.
35130         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
35131         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
35132         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
35133         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
35134         SWI mode iterator.
35135
35136 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
35137
35138         * config/i386/i386.md (ashr<mode>3): Macroize expander from
35139         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
35140         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
35141         pattern from *ashr{di,ti}3_1 and corresponding splitters using
35142         DWI mode iterator.
35143         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
35144         from corresponding peephole2 patterns.
35145         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
35146         (ashrsi3_cvt): Rename from ashrsi3_31.
35147         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
35148         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
35149         and x86_64_shift_adj_3 using SWI48 mode iterator.
35150         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
35151         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
35152         and *ashrdi3_1_rex64 using SWI mode iterator.
35153         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
35154         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
35155         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
35156         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
35157         and *ashrdi3_cmp_rex64 using SWI mode iterator.
35158         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
35159         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
35160         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
35161         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
35162         SWI mode iterator.
35163         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
35164         * config/i386/i386.c (ix86_split_ashr): Update for renamed
35165         x86_shift<mode>_adj_3 expanders.
35166
35167 2010-04-10  Wei Guozhi  <carrot@google.com>
35168
35169         PR target/42601
35170         * config/arm/arm.c (arm_pic_static_addr): New function.
35171         (legitimize_pic_address): Call arm_pic_static_addr when it detects
35172         a static symbol.
35173         (arm_output_addr_const_extra): Output expression for new pattern.
35174         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
35175
35176 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
35177
35178         * ira-costs.c (record_reg_classes): Ignore alternatives that are
35179         not enabled.
35180
35181         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
35182         * web.c: Include "insn-config.h" and "recog.h".
35183         (union_match_dups): New function.
35184         (web_main): Call it.
35185         (union_defs): Don't try to recognize match_dups.
35186
35187         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
35188         if doing so would replace the entire pattern.
35189
35190 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
35191
35192         PR target/43707
35193         PR target/43709
35194         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
35195         and splitter pattern.  Change splitter operand 1 predicate to
35196         nonmemory_operand.
35197
35198 2010-04-09  Martin Jambor  <mjambor@suse.cz>
35199
35200         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
35201         lattices are addresses of CONST_DECLs with the same initial value.
35202         (ipcp_print_all_lattices): Print values of CONST_DECLs.
35203         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
35204
35205 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
35206             Bernd Schmidt  <bernds@codesourcery.com>
35207
35208         * loop-invariant.c (replace_uses): New static function.
35209         (move_invariant_reg): Use it to ensure we can replace the uses.
35210
35211 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
35212
35213         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
35214         function template.
35215         (picochip_override_options): Enable section anchors only above -O1.
35216         (picochip_reorg): Fixed a couple of build warnings.
35217
35218 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35219
35220         * configure.ac (plugin -rdynamic test): Log result.
35221         * configure: Regenerate.
35222         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
35223         (RDYNAMIC_SPEC): Define.
35224         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
35225
35226 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35227
35228         * configure.ac: Determine Sun ld version numbers.
35229         (comdat_group): Restrict GNU ld version checks to gld.
35230         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
35231         (enable_comdat): Support --enable-comdat.
35232         * configure: Regenerate.
35233         * doc/install.texi (Configuration): Document --enable-comdat.
35234
35235 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35236
35237         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
35238         * config/sol2-gld.h: ... here.
35239         * config.gcc (sparc*-*-solaris2*): Reflect this.
35240         (i[34567]86-*-solaris2*): Use it.
35241
35242 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
35243
35244         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
35245         setup_clocks_p.
35246         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
35247
35248 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35249
35250         PR 42965
35251         * diagnostic.c (diagnostic_initialize): Initialize
35252         some_warnings_are_errors.
35253         (diagnostic_finish): New.
35254         (diagnostic_action_after_output): Call it before exiting.
35255         (diagnostic_report_diagnostic): Do not print message here. Set
35256         some_warnings_are_errors.
35257         * diagnostic.h (diagnostic_context): Delete
35258         issue_warnings_are_errors_message. Add some_warnings_are_errors.
35259         (diagnostic_finish): Declare.
35260         * toplev.c (toplev_main): Call it before exit.
35261
35262 2010-04-09  Jason Merrill  <jason@redhat.com>
35263
35264         PR c++/42623
35265         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
35266         for incomplete type.
35267
35268         PR c++/41788
35269         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
35270         based on a warning flag.
35271
35272 2010-04-09  Richard Guenther  <rguenther@suse.de>
35273
35274         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
35275
35276 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
35277
35278         PR bootstrap/43684
35279         * varasm.c (default_assemble_visibility): Wrap vars that are
35280         set, but unused, by targets without GAS.
35281         * config/rs6000/rs6000.c (paired_emit_vector_compare):
35282         Remove set, but unused, vars.
35283         (rs6000_legitimize_tls_address): Likewise.
35284         (altivec_expand_dst_builtin): Likewise.
35285         * config/darwin.c (machopic_classify_symbol): Likewise.
35286         (machopic_indirection_name): Likewise.
35287
35288 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
35289
35290         * config/i386/i386.md (DWI): New mode iterator.
35291         (S): New mode attribute.
35292         (shift_operand): Ditto.
35293         (shift_immediate_operand): Ditto.
35294         (ashl_input_operand): Ditto.
35295         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
35296         using SDWIM mode iterator.
35297         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
35298         pattern from *ashl{di,ti}3_1 and corresponding splitters using
35299         DWI mode iterator.
35300         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
35301         from corresponding peephole2 patterns.
35302         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
35303         and x86_64_shift_adj_1 using SWI48 mode iterator.
35304         (x86_shift<mode>_adj_2): Ditto.
35305         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
35306         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
35307         using SWI48 mode iterator.
35308         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
35309         *ashldi3_cmp_rex64 using SWI mode iterator.
35310         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
35311         *ashldi3_cconly_rex64 using SWI mode iterator.
35312         * config/i386/i386.c (ix86_split_ashl): Update for renamed
35313         x86_shift<mode>_adj_{1,2}.
35314         (ix86_split_ashr): Ditto.
35315         (ix86_split_lshr): Ditto.
35316
35317 2010-04-09  Richard Guenther  <rguenther@suse.de>
35318
35319         * target.h (builtin_conversion): Pass in input and output types.
35320         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
35321         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
35322         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
35323         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
35324
35325         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
35326         Handle AVX modes.
35327         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
35328
35329 2010-04-09  Richard Guenther  <rguenther@suse.de>
35330
35331         PR target/43152
35332         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
35333
35334 2010-04-09  Richard Guenther  <rguenther@suse.de>
35335
35336         * tree-vectorizer.h (struct _stmt_vec_info): Document
35337         that vectype is the type of the LHS.
35338         (supportable_widening_operation, supportable_narrowing_operation):
35339         Get both input and output vector types as arguments.
35340         (vect_is_simple_use_1): Declare.
35341         (get_same_sized_vectype): Likewise.
35342         * tree-vect-loop.c (vect_determine_vectorization_factor):
35343         Set STMT_VINFO_VECTYPE to the vector type of the def.
35344         (vectorizable_reduction): Adjust.
35345         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
35346         Adjust.  Specify the output vector type.
35347         (vect_pattern_recog_1): Adjust.
35348         * tree-vect-stmts.c (get_same_sized_vectype): New function.
35349         (vectorizable_call): Adjust.
35350         (vectorizable_conversion): Likewise.
35351         (vectorizable_operation): Likewise.
35352         (vectorizable_type_demotion): Likewise.
35353         (vectorizable_type_promotion): Likewise.
35354         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
35355         the def.
35356         (vect_is_simple_use_1): New function.
35357         (supportable_widening_operation): Get both input and output
35358         vector types.
35359         (supportable_narrowing_operation): Likewise.
35360         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
35361
35362 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
35363
35364         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
35365         __thiscall and _thiscall as predefined macros.
35366         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
35367         thiscall attribute handling.
35368         (ix86_comp_type_attributes): Likewise.
35369         (ix86_function_regparm): Likewise.
35370         (ix86_return_pops_args): Likewise.
35371         (init_cumulative_args): Likewise.
35372         (find_drap_reg): Likewise.
35373         (ix86_static_chain): Likewise.
35374         (x86_this_parameter): Likewise.
35375         (x86_output_mi_thunk): Likewise.
35376         (ix86_attribute_table): Add description for thiscall attribute.
35377         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
35378         * doc/extend.texi: Add documentation for thiscall.
35379
35380 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35381
35382         PR c++/28584
35383         * c.opt (Wint-to-pointer-cast): Available in C++.
35384         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
35385
35386 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
35387
35388         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
35389         * calls.c (expand_call): Pass the function type to aggregate_value_p.
35390         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
35391         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
35392         function type instead.  Reorder and simplify checks.
35393
35394         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
35395
35396 2010-04-08  Jing Yu  <jingyu@google.com>
35397             Zdenek Dvorak  <ook@ucw.cz>
35398
35399         PR tree-optimization/42720
35400         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
35401         loop unswitch conditions here from ...
35402         (tree_unswitch_single_loop): ... here.
35403
35404 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
35405
35406         * tree-if-conv.c: Fix comments and simplify logic.
35407
35408 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
35409
35410         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
35411         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
35412         (main_tree_if_conversion): Update call to tree_if_conversion.
35413
35414 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35415
35416         PR 42485
35417         * doc/invoke.texi (-b,-V): Delete.
35418         * doc/tm.texi: Do not mention -b.
35419         * gcc.c (display_help): Delete -b and -V.
35420         (process_command): Delete -b and -V.
35421         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
35422
35423 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
35424             Wolfgang Gellerich  <gellerich@de.ibm.com>
35425
35426         Implement target hook for loop unrolling
35427         * target.h (loop_unroll_adjust): Add a new target hook function.
35428         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
35429         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
35430         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
35431         (s390_loop_unroll_adjust): Implement the new target hook for s390.
35432         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
35433         target hook.
35434         (decide_unroll_stupid): Likewise.
35435
35436 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35437
35438         PR target/43643
35439         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
35440
35441 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35442
35443         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
35444         (Specific, *-*-solaris2*): Likewise.
35445         Don't prefer Sun as over GNU as.
35446
35447 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
35448
35449         * config/s390/s390.c (override_options): Adjust the z10 defaults
35450         for max-unroll-times, max-completely-peeled-insns
35451         and max-completely-peel-times.
35452
35453 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35454
35455         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
35456         instructions for z10.
35457         (s390_expand_setmem): Likewise.
35458         (s390_expand_cmpmem): Likewise.
35459
35460 2010-04-08  Richard Guenther  <rguenther@suse.de>
35461
35462         PR tree-optimization/43679
35463         * tree-ssa-pre.c (eliminate): Only propagate copies.
35464
35465 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
35466
35467         PR bootstrap/43681
35468         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
35469         set but not used variable warning.
35470
35471 2010-04-08  Wei Guozhi  <carrot@google.com>
35472
35473         PR target/41653
35474         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
35475         (arm_size_rtx_costs): Call the new function when optimized for size.
35476
35477 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
35478
35479         PR debug/43670
35480         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
35481         op0 is not a MEM, just return NULL instead of assertion
35482         failure.
35483         (discover_nonconstant_array_refs): Don't walk debug stmts.
35484
35485 2010-04-08  Doug Kwan  <dougkwan@google.com>
35486
35487         * configure.ac: Recognize gold and do not use its version number
35488         to test ld features.
35489         * configure: Regenerate.
35490
35491 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
35492
35493         PR middle-end/40815
35494         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
35495         (negate_value): Move code to push elements to broken_up_substracts ...
35496         (eliminate_plus_minus_pair): ... here.  Push operands that have no
35497         negative pair to plus_negates.
35498         (repropagate_negates, init_reassoc, fini_reassoc): Update.
35499
35500 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35501
35502         * doc/install.texi (Configuration): Move description of
35503         --enable-lto, --with-libelf*, --enable-gold from Java section to
35504         general section.
35505
35506         * doc/generic.texi (Working with declarations)
35507         (Function Properties, C and C++ Trees): Fix typos.
35508         * doc/sourcebuild.texi (Top Level): Likewise.
35509
35510 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
35511
35512         PR c/18624
35513         * tree.h (DECL_READ_P): Define.
35514         (struct tree_decl_common): Add decl_read_flag.
35515         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
35516         a set but not used warning.
35517         (merge_decls): Merge DECL_READ_P flag.
35518         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
35519         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
35520         * c-common.c (handle_used_attribute, handle_unused_attribute):
35521         Likewise.
35522         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
35523         New prototypes.
35524         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
35525         New functions.
35526         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
35527         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
35528         c_parser_binary_expression, c_parser_cast_expression,
35529         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
35530         Call default_function_array_read_conversion instead of
35531         default_function_array_conversion where needed.
35532         (c_parser_unary_expression, c_parser_conditional_expression,
35533         c_parser_postfix_expression_after_primary, c_parser_initelt):
35534         Likewise.  Call mark_exp_read where needed.
35535         (c_parser_statement_after_labels, c_parser_asm_operands,
35536         c_parser_typeof_specifier, c_parser_sizeof_expression,
35537         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
35538         where needed.
35539         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
35540         New.
35541         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
35542         (warn_unused_but_set_parameter): Default to warn_unused
35543         && extra_warnings.
35544         * doc/invoke.texi: Document -Wunused-but-set-variable and
35545         -Wunused-but-set-parameter.
35546
35547         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
35548         used count variable.
35549         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
35550         when operandN variables aren't used in the body of the expander
35551         or splitter.
35552         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
35553         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
35554         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
35555         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
35556         FOR_EACH_IMM_USE_ON_STMT): Likewise.
35557         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
35558         * tree.c (PROCESS_ARG): Likewise.
35559
35560 2010-04-07  Simon Baldwin  <simonb@google.com>
35561
35562         * diagnostic.h (diagnostic_override_option_index): New macro to
35563         set a diagnostic's option_index.
35564         * c-tree.h (c_cpp_error): Add warning reason argument.
35565         * opts.c (_warning_as_error_callback): New.
35566         (register_warning_as_error_callback): Store callback for
35567         warnings enabled via enable_warning_as_error.
35568         (enable_warning_as_error): Call callback, minor code tidy.
35569         * opts.h (register_warning_as_error_callback): Declare.
35570         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
35571         response to -Werror=.
35572         (c_common_init_options): Register warning_as_error_callback in opts.c.
35573         * common.opt: Add -Wno-cpp option.
35574         * c-common.c (struct reason_option_codes_t): Map cpp warning
35575         reason codes to gcc option indexes.
35576         * (c_option_controlling_cpp_error): New function, lookup the gcc
35577         option index for a cpp warning reason code.
35578         * (c_cpp_error): Add warning reason argument, call
35579         c_option_controlling_cpp_error for diagnostic_override_option_index.
35580         * doc/invoke.texi: Document -Wno-cpp.
35581
35582 2010-04-07  Richard Guenther  <rguenther@suse.de>
35583
35584         * ipa-reference.c (mark_load): Use get_base_address.
35585         (mark_store): Likewise.
35586
35587         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
35588         inserting GIMPLE_NOPs into the IL.
35589         * tree-ssa-structalias.c (get_constraint_for_component_ref):
35590         Explicitly strip handled components and indirect references.
35591
35592         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
35593         folding address expressions.
35594         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
35595         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
35596         operand_equal_p to compare decls.
35597         (ptr_deref_may_alias_decl_p): Likewise.
35598         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
35599         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
35600         Handle reversed comparison ops.
35601         * tree-sra.c (asm_visit_addr): Use get_base_address.
35602         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
35603         * ipa-reference.c (mark_address): Use get_base_address.
35604
35605 2010-04-07  Richard Guenther  <rguenther@suse.de>
35606
35607         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
35608         Propagate constants everywhere.
35609
35610 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
35611
35612         PR debug/43516
35613         * tree.c (MAX_INT_CACHED_PREC): Define.
35614         (nonstandard_integer_type_cache): New array.
35615         (build_nonstandard_integer_type): Cache results for precision
35616         <= MAX_INT_CACHED_PREC.
35617
35618 2010-04-07  Richard Guenther  <rguenther@suse.de>
35619
35620         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
35621         -fargument-noalias-global, -fargument-noalias-anything): Remove.
35622         * common.opt: Likewise.
35623         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
35624         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
35625         (nonoverlapping_memrefs_p): Likewise.
35626         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
35627         * opts.c (common_handle_option): Handle OPT_fargument_alias,
35628         OPT_fargument_noalias, OPT_fargument_noalias_anything and
35629         OPT_fargument_noalias_global for backward compatibility.
35630
35631 2010-04-07  Richard Guenther  <rguenther@suse.de>
35632
35633         PR tree-optimization/43270
35634         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
35635         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
35636         * tree-ssa-pre.c (phi_translate_1): Adjust.
35637         (fully_constant_expression): Split out vn_reference handling to ...
35638         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
35639         Fold reads from constant strings.
35640         (vn_reference_lookup): Handle fully constant references.
35641         (vn_reference_lookup_pieces): Likewise.
35642         * Makefile.in (expmed.o-warn): Add -Wno-error.
35643
35644 2010-04-07  Martin Jambor  <mjambor@suse.cz>
35645
35646         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
35647
35648 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
35649
35650         PR driver/41594
35651         * gcc.c: Add -static-libstdc++ to list of recognized options.
35652
35653 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35654
35655         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
35656
35657 2010-04-07  Richard Guenther  <rguenther@suse.de>
35658
35659         PR middle-end/42617
35660         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
35661         bases build simple mem attributes to retain points-to information.
35662
35663 2010-04-07  Richard Guenther  <rguenther@suse.de>
35664
35665         PR middle-end/42617
35666         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
35667         preserve points-to related information.
35668
35669 2010-04-07  Richard Guenther  <rguenther@suse.de>
35670
35671         PR middle-end/42617
35672         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
35673         discard plain indirect references.
35674         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
35675         * tree.c (tree_nop_conversion): Likewise.
35676
35677 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
35678
35679         PR debug/43628
35680         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
35681
35682 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
35683
35684         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
35685         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
35686
35687 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
35688
35689         * tree-if-conv.c: Fix indentation and comments.
35690
35691 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
35692
35693         * tree-if-conv.c: Sort static functions in topological order.
35694
35695 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
35696
35697         * tree-if-conv.c: Fix indentation and comments.
35698
35699 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35700
35701         PR middle-end/43519
35702         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
35703         lang_hooks.types.type_for_size instead of
35704         build_nonstandard_integer_type.
35705         When converting an unsigned type to signed, double its precision.
35706         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
35707         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
35708         (graphite_create_new_loop_guard): When ub + 1 wraps around,
35709         use lb <= ub.
35710
35711 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35712
35713         PR middle-end/43519
35714         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
35715         POINTER_PLUS_EXPR for pointer types.
35716
35717 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35718
35719         PR middle-end/43519
35720         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
35721         * graphite-clast-to-gimple.c: Include langhooks.h.
35722         (max_signed_precision_type): New.
35723         (max_precision_type): Takes two types as arguments.
35724         (precision_for_value): New.
35725         (precision_for_interval): New.
35726         (gcc_type_for_interval): New.
35727         (gcc_type_for_value): New.
35728         (gcc_type_for_clast_term): New.
35729         (gcc_type_for_clast_red): New.
35730         (gcc_type_for_clast_bin): New.
35731         (gcc_type_for_clast_expr): Split up into several functions.
35732         (gcc_type_for_clast_eq): Rewritten.
35733         (compute_bounds_for_level): New.
35734         (compute_type_for_level_1): New.
35735         (compute_type_for_level): New.
35736         (gcc_type_for_cloog_iv): Removed.
35737         (gcc_type_for_iv_of_clast_loop): Rewritten.
35738         (graphite_create_new_loop): Compute the lower and upper bound types
35739         with gcc_type_for_clast_expr.
35740         (graphite_create_new_loop_guard): Same.
35741         (find_cloog_iv_in_expr): Removed.
35742         (compute_cloog_iv_types_1): Removed.
35743         (compute_cloog_iv_types): Removed.
35744         (gloog): Do not call compute_cloog_iv_types.
35745         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
35746         GBB_CLOOG_IV_TYPES.
35747         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
35748         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
35749         (GBB_CLOOG_IV_TYPES): Removed.
35750
35751 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35752
35753         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
35754         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
35755         (detect_commutative_reduction): Same.
35756
35757 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35758
35759         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
35760         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
35761         argument.
35762         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
35763         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
35764         (rewrite_commutative_reductions_out_of_ssa): Same.
35765         * passes.c (execute_function_todo): Call verify_ssa for every pass
35766         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
35767         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
35768         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
35769         with an extra argument.
35770         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
35771         verify_ssa only when the extra argument is true.
35772         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
35773         with an extra argument.
35774         (tree_transform_and_unroll_loop): Same.
35775
35776 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
35777
35778         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
35779         for all the passes of the LNO having LOOP_CLOSED_SSA.
35780         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
35781         * tree-loop-distribution.c (pass_loop_distribution): Same.
35782         * tree-pass.h (TODO_verify_loops): Removed.
35783         * tree-ssa-loop.c (pass_tree_loop_init): Same.
35784         (pass_lim): Same.
35785         (pass_tree_unswitch): Same.
35786         (pass_predcom): Same.
35787         (pass_vectorize): Same.
35788         (pass_linear_transform): Same.
35789         (pass_graphite_transforms): Same.
35790         (pass_iv_canon): Same.
35791         (pass_complete_unroll): Same.
35792         (pass_complete_unrolli): Same.
35793         (pass_parallelize_loops): Same.
35794         (pass_loop_prefetch): Same.
35795         (pass_iv_optimize): Same.
35796
35797 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
35798
35799         PR middle-end/32824
35800         * passes.c (init_optimization_passes): Move pass_lim before
35801         pass_copy_prop and pass_dce_loop.
35802
35803 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
35804
35805         PR target/43667
35806         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
35807         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
35808         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
35809         MULTI_* defines for 4 argument vpermil2p* builtins.
35810
35811 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
35812
35813         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
35814         * config/i386/i386.c (x86_maybe_negate_const_int): New.
35815         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
35816         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
35817         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
35818         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
35819         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
35820         Use x86_maybe_negate_const_int to output insn mnemonic.
35821         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
35822         check from instruction predicate.  Update comments.
35823         * config/i386/sync.md (sync_add<mode>): Use
35824         x86_maybe_negate_const_int to output insn mnemonic.
35825
35826 2010-04-06  Jan Hubicka  <jh@suse.cz>
35827
35828         PR tree-optimization/42906
35829         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
35830         IGNORE_SELF argument.  Set visited_control_parents for fully
35831         processed BBs.
35832         (find_obviously_necessary_stmts): Update call of
35833         mark_control_dependent_edges_necessary.
35834         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
35835
35836 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
35837
35838         * config/i386/i386.md: Remove comment about 'e' and 'E'
35839         operand modifier.
35840
35841 2010-04-06  Richard Guenther  <rguenther@suse.de>
35842
35843         PR tree-optimization/43627
35844         * tree-vrp.c (extract_range_from_unary_expr): Widenings
35845         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
35846         not varying.
35847
35848 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
35849
35850         * BASE-VER: Change to 4.6.0.
35851
35852         PR target/43638
35853         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
35854         handling.
35855
35856 2010-04-06  Richard Guenther  <rguenther@suse.de>
35857
35858         PR middle-end/43661
35859         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
35860
35861 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35862
35863         * doc/invoke.texi (Optimize Options): Document that LTO
35864         won't remove object access purely due to incompatible
35865         declarations.
35866
35867 2010-04-04  Matthias Klose  <doko@ubuntu.com>
35868
35869         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
35870         Initialize variable.
35871
35872 2010-04-03  Richard Guenther  <rguenther@suse.de>
35873
35874         PR middle-end/42509
35875         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
35876         require a non-NULL MEM_OFFSET.
35877
35878 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
35879
35880         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
35881         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
35882         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
35883         config/alpha/predicates.md, config/arm/arm.md,
35884         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
35885         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
35886         config/darwin9.h, config/darwin.c, config/darwin.h,
35887         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
35888         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
35889         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
35890         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
35891         config/mips/mips.md, config/mn10300/mn10300.c,
35892         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
35893         config/rs6000/aix.h, config/rs6000/dfp.md,
35894         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
35895         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
35896         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
35897         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
35898         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
35899         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
35900         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
35901         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
35902         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
35903         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
35904         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
35905         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
35906         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
35907         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
35908         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
35909         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
35910         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
35911         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
35912         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
35913         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
35914         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
35915         opt-functions.awk, opth-gen.awk, params.def, passes.c,
35916         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
35917         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
35918         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
35919         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
35920         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
35921         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
35922         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
35923         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
35924         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
35925         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
35926         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
35927         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
35928         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
35929         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
35930
35931 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35932
35933         PR other/43620
35934         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
35935         * aclocal.m4: Regenerate.
35936
35937 2010-04-02  Richard Guenther  <rguenther@suse.de>
35938
35939         PR tree-optimization/43629
35940         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
35941         if we have seen a constant value.
35942
35943 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
35944
35945         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
35946
35947 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
35948
35949         PR target/43469
35950         * arm.c (legitimize_tls_address): Adjust call to
35951         gen_tls_load_dot_plus_four.
35952         (arm_note_pic_base): New function.
35953         (arm_cannot_copy_insn_p): Use it.
35954         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
35955         constraint.
35956
35957 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35958
35959         PR bootstrap/43531
35960
35961         Revert:
35962         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35963
35964         * Makefile.in ($(out_object_file)): Depend on
35965         gt-$(basename $(notdir $(out_file))).h.
35966
35967 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
35968
35969         * config.gcc (lm32-*-rtems*): Add t-lm32.
35970
35971 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
35972
35973         * config.gcc: Add lm32-*-rtems*.
35974         * config/lm32/rtems.h: New file.
35975
35976 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
35977
35978         PR target/42609
35979         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
35980
35981 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
35982
35983         * dwarf2out.c (output_compilation_unit_header): For
35984         -gdwarf-4 use version 4 instead of version 3.
35985         (output_line_info): For version 4 and above emit additional
35986         maximum ops per insn header field.
35987         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
35988
35989         * dwarf2out.c (is_c_family, is_java): Remove.
35990         (lower_bound_default): New function.
35991         (add_bound_info, gen_descr_array_type_die): Use it.
35992
35993 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
35994
35995         PR debug/43325
35996         * dwarf2out.c (gen_variable_die): Allow debug info for variable
35997         re-declaration when it happens in a function.
35998
35999 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
36000
36001         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
36002         (cgraph_remove_function_insertion_hook): Same.
36003         (cgraph_call_function_insertion_hooks): Same.
36004
36005 2010-04-01  Richard Guenther  <rguenther@suse.de>
36006
36007         PR middle-end/43614
36008         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
36009         and TREE_THIS_VOLATILE.
36010         (copy_ref_info): Likewise.
36011         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
36012         * tree.c (build6_stat): Ignore side-effects of all but arg5
36013         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
36014         TARGET_MEM_REF.
36015
36016 2010-04-01  Richard Guenther  <rguenther@suse.de>
36017
36018         PR tree-optimization/43607
36019         * ipa-type-escape.c (check_call): Do not access non-existing
36020         arguments.
36021
36022 2010-04-01  Richard Guenther  <rguenther@suse.de>
36023
36024         PR middle-end/43602
36025         Revert
36026         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
36027                     Jack Howarth  <howarth@bromo.med.uc.edu>
36028
36029         * tree-profile.c (tree_init_ic_make_global_vars): Make static
36030         variables TLS.
36031
36032 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36033
36034         * doc/install.texi (Prerequisites): Document libelf usability on
36035         IRIX 5/6 and Solaris 2.
36036         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
36037         Update GNU as, GNU ld requirements.
36038         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
36039         Document Sun Studio compiler download.
36040         Update and simplify as, ld recommendations.
36041         (Specific, *-*-solaris2.7): Note obsoletion, removal.
36042
36043 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36044
36045         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
36046         with_tune_32 to pentium4.
36047
36048 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
36049
36050         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
36051
36052 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36053
36054         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
36055         obsoletion, removal.
36056         Update IDO URL.
36057         Document GNU as requirement.
36058         Update configure requirements.
36059         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
36060         Recomment IRIX 6.5.18+.
36061         Document IDF/IDL requirement.
36062         Document GNU as requirement.
36063         Document GNU ld bootstrap failure.
36064         Remove freeware.sgi.com reference.
36065
36066 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36067
36068         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
36069         UNIX V4.0, V5.0 obsoletion, removal.
36070         Remove --with-gc=simple reference.
36071         Update VM requirements during bootstrap.
36072         Remove -oldas bootstrap description.
36073         Update binutils reference.
36074         Remove comparison failure note.
36075
36076 2010-03-31  Richard Guenther  <rguenther@suse.de>
36077             Zdenek Dvorak  <ook@ucw.cz>
36078             Sebastian Pop  <sebastian.pop@amd.com>
36079
36080         PR middle-end/43464
36081         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
36082         with multiple arguments.
36083         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
36084
36085 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
36086
36087         * graphite-dependences.c (print_pddr): Call print_pdr with an
36088         extra argument.
36089         * graphite-poly.c (debug_pdr): Add an extra argument for the
36090         verbosity level.
36091         (print_pdr): Same.
36092         (print_pbb_domain): Same.
36093         (print_pbb): Same.
36094         (print_scop_context): Same.
36095         (print_scop): Same.
36096         (print_cloog): Same.
36097         (debug_pbb_domain): Same.
36098         (debug_pbb): Same.
36099         (print_pdrs): Same.
36100         (debug_pdrs): Same.
36101         (debug_scop_context): Same.
36102         (debug_scop): Same.
36103         (debug_cloog): Same.
36104         (print_scop_params): Same.
36105         (debug_scop_params): Same.
36106         (print_iteration_domain): Same.
36107         (print_iteration_domains): Same.
36108         (debug_iteration_domain): Same.
36109         (debug_iteration_domains): Same.
36110         (print_scattering_function): Same.
36111         (print_scattering_functions): Same.
36112         (debug_scattering_function): Same.
36113         (debug_scattering_functions): Same.
36114         * graphite-poly.h (debug_pdr): Update declaration.
36115         (print_pdr): Same.
36116         (print_pbb_domain): Same.
36117         (print_pbb): Same.
36118         (print_scop_context): Same.
36119         (print_scop): Same.
36120         (print_cloog): Same.
36121         (debug_pbb_domain): Same.
36122         (debug_pbb): Same.
36123         (print_pdrs): Same.
36124         (debug_pdrs): Same.
36125         (debug_scop_context): Same.
36126         (debug_scop): Same.
36127         (debug_cloog): Same.
36128         (print_scop_params): Same.
36129         (debug_scop_params): Same.
36130         (print_iteration_domain): Same.
36131         (print_iteration_domains): Same.
36132         (debug_iteration_domain): Same.
36133         (debug_iteration_domains): Same.
36134         (print_scattering_function): Same.
36135         (print_scattering_functions): Same.
36136         (debug_scattering_function): Same.
36137         (debug_scattering_functions): Same.
36138
36139 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
36140
36141         * graphite-poly.c (print_scattering_function_1): New.
36142         (print_scattering_function): Call it.
36143         (print_scop_params): Remove spaces at the end of lines.
36144         (print_cloog): New.
36145         (debug_cloog): New.
36146         * graphite-poly.h (print_cloog): Declared.
36147         (debug_cloog): Declared.
36148
36149 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
36150
36151         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
36152         in loop->header.
36153         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
36154         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
36155         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
36156         to switch between adding the IV bump in loop->latch or in loop->header.
36157
36158 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
36159
36160         * graphite-poly.c (print_scattering_function): Pretty print following
36161         the scoplib format.
36162         (print_pdr): Same.
36163         (print_pbb_domain): Same.
36164         (dump_gbb_cases): Same.
36165         (dump_gbb_conditions): Same.
36166         (print_pdrs): Same.
36167         (print_pbb): Same.
36168         (print_scop_params): Same.
36169         (print_scop_context): Same.
36170         (print_scop): Same.
36171         (print_pbb_body): New.
36172         (lst_indent_to): New.
36173         (print_lst): Start new lines with a #.
36174         * graphite-poly.h (pbb_bb): New.
36175         (pbb_index): Use pbb_bb.
36176         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
36177         disjuncts.
36178         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
36179
36180 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
36181
36182         * dwarf2out.c (size_of_die): For -gdwarf-4 use
36183         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
36184         and 0 instead of 1 for dw_val_class_flag.
36185         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
36186         dw_val_class_range_list, dw_val_class_loc_list,
36187         dw_val_class_lineptr and dw_val_class_macptr, use
36188         DW_FORM_flag_present for dw_val_class_flag and
36189         DW_FORM_exprloc for dw_val_class_loc.
36190         (output_die): For -gdwarf-4 print dw_val_class_loc
36191         size as uleb128 instead of 1 or 2 bytes and don't print
36192         anything for dw_val_class_flag.
36193
36194         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
36195         instead of cselib_lookup following by tweaking locs->setting_insn.
36196
36197         PR bootstrap/43596
36198         * cselib.c (cselib_process_insn): Clear cselib_current_insn
36199         even before returning from label, setjmp call or volatile asm
36200         handling.
36201
36202 2010-03-31  Richard Guenther  <rguenther@suse.de>
36203
36204         PR middle-end/43600
36205         * cgraphunit.c (cgraph_output_in_order): Do not allocate
36206         temporary data on stack.
36207
36208 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36209
36210         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
36211         (PUSHSECTION_ASM_OP): Remove.
36212         (POPSECTION_ASM_OP): Remove.
36213         (PUSHSECTION_FORMAT): Remove.
36214         * config/sol2.h (PUSHSECTION_FORMAT): Define.
36215         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
36216         * config/sol2.c (solaris_output_init_fini): Use it.
36217
36218 2010-03-31  Jie Zhang  <jie@codesourcery.com>
36219
36220         PR 43574
36221         * opt-functions.awk (var_type_struct): Use signed char type
36222         for simple variables.
36223
36224 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36225
36226         * config/sol2.c: Include output.h.
36227         (solaris_assemble_visibility): New function.
36228         * config/t-sol2 (sol2.o): Add output.h dependency.
36229         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
36230         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
36231         Redefine.
36232
36233 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
36234
36235         PR target/43580
36236         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
36237         V2SImode or XFmode on PRE_DEC.
36238
36239         PR debug/43557
36240         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
36241         BLKmode.
36242
36243 2010-03-31  Jie Zhang  <jie@codesourcery.com>
36244
36245         PR 43562
36246         * reload.h (caller_save_initialized_p): Declare.
36247         * toplev.c (backend_init_target): Don't call
36248         init_caller_save but set caller_save_initialized_p to false.
36249         * caller-save.c (caller_save_initialized_p): Define.
36250         (init_caller_save): Check caller_save_initialized_p.
36251         * ira.c (ira): Call init_caller_save if flag_caller_saves.
36252
36253 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36254
36255         PR target/39048
36256         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
36257         and soft-fp/t-softfp to tmake_file.
36258         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
36259         (LIBGCC2_TF_CEXT): Define.
36260         (TF_SIZE): Define.
36261
36262 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
36263
36264         PR debug/42977
36265         * cselib.c (n_useless_values): Document handling of debug locs.
36266         (n_useless_debug_values, n_debug_values): New variables.
36267         (new_elt_loc_list): Don't add to debug values, keep count.
36268         (promote_debug_loc): New.
36269         (cselib_reset_table): Zero new variables.
36270         (entry_and_rtx_equal_p): Promote debug locs.
36271         (discard_useless_locs): Increment n_useless_debug_values for
36272         debug values.
36273         (remove_useless_values): Adjust n_useless_values and n_debug_values
36274         with n_useless_debug_values.
36275         (add_mem_for_addr): Promote debug locs.
36276         (cselib_lookup_mem): Likewise.
36277         (cselib_lookup_addr): Renamed to...
36278         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
36279         (cselib_log_lookup): ... this.  Turn into...
36280         (cselib_lookup_addr): ... new wrapper.
36281         (cselib_lookup_from_insn): New.
36282         (cselib_invalidate_regno): Increment n_useless_debug_values for
36283         debug values.
36284         (cselib_invalidate_mem): Likewise.
36285         (cselib_process_insn): Take n_deleted and n_debug_values into
36286         account to guard remove_useless_value call.
36287         (cselib_finish): Zero n_useless_debug_values.
36288         * cselib.h (cselib_lookup_from_insn): Declare.
36289         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
36290         (sched_analyze_2): Likewise.
36291
36292 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
36293
36294         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
36295         functions.
36296         (adjust_mems): Replace narrowing SUBREG of expression containing
36297         just PLUS, MINUS, MULT and ASHIFT of registers and constants
36298         with operations in the narrower mode.
36299
36300         PR debug/43593
36301         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
36302         regs_invalidated_by_call instead all call_used_reg_set registers.
36303
36304 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
36305
36306         PR middle-end/43430
36307         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
36308         pointer comparisons with types_compatible_p.
36309         * tree-vect-stmts.c (vectorizable_call): Same.
36310         (vectorizable_condition): Same.
36311
36312 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36313
36314         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
36315         stack check if the mask would be zero.
36316
36317 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
36318             Jack Howarth  <howarth@bromo.med.uc.edu>
36319
36320         * tree-profile.c (tree_init_ic_make_global_vars): Make static
36321         variables TLS.
36322
36323 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
36324
36325         PR other/25232
36326         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
36327         and __unordtf2.
36328         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
36329         Include ___unordxf2 and ___unordtf2.
36330         * config/i386/libgcc-glibc.ver: Do not define inheritance from
36331         GCC_4.4.0 here.
36332
36333 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
36334
36335         * config/lm32/t-lm32: New file.
36336         * config.gcc: Use the above file when targetting lm32.
36337
36338 2010-03-28  Duncan Sands  <baldrick@free.fr>
36339
36340         * Makefile.in (PLUGIN_HEADERS): Add except.h.
36341
36342 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
36343
36344         PR middle-end/43431
36345         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
36346         Improve vectorization cost model diagnostic.
36347
36348 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
36349
36350         PR middle-end/43436
36351         * tree-vect-data-refs.c (vect_analyze_data_refs): When
36352         compute_data_dependences_for_loop returns false, early exit
36353         and output an extra diagnostic for the failed data reference
36354         analysis.
36355
36356 2010-03-29  Richard Guenther  <rguenther@suse.de>
36357
36358         PR tree-optimization/43560
36359         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
36360         (can_sm_ref_p): Treat stores to readonly locations as trapping.
36361
36362 2010-03-29  Jie Zhang  <jie@codesourcery.com>
36363
36364         PR 43564
36365         * toplev.c (process_options): Set optimization_default_node
36366         and optimization_current_node.
36367         * opts.c (decode_options): Don't set optimization_default_node
36368         and optimization_current_node.
36369
36370 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
36371
36372         * config/rtems.h: Abandon -qrtems_debug.
36373
36374 2010-03-28  Jan Hubicka  <jh@suse.cz>
36375
36376         PR tree-optimization/43505
36377         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
36378         map should not be copied.
36379
36380 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36381
36382         PR middle-end/41674
36383         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
36384         cdtors, set DECL_PRESERVE_P.
36385         * ipa.c (cgraph_externally_visible_p): Return true if declaration
36386         should be preseved.
36387
36388 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
36389
36390         PR tree-optimization/43528
36391         * stor-layout.c (place_field): Check that constant fits into
36392         unsigned HWI when skipping calculation of MS bitfield layout.
36393
36394 2010-03-27  Jan Hubicka  <jh@suse.cz>
36395
36396         PR middle-end/43391
36397         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
36398         notice_global_symbol work.
36399
36400 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
36401
36402         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
36403         instead of dwarf2out_decl.
36404         (struct var_loc_node): Remove section_label field.
36405         (dwarf2out_function_decl): New function.
36406         (dwarf2out_var_location): Don't set section_label field.
36407         (dwarf2out_begin_function): Don't empty decl_loc_table here.
36408
36409 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
36410
36411         PR tree-optimization/43544
36412         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
36413         First argument for builtin vectorized function hook is now a
36414         tree to be able to distinguish between machine specific and
36415         standard builtins.
36416         * targhooks.c (default_builtin_vectorized_function): Ditto.
36417         * targhooks.h (default_builtin_vectorized_function): Ditto.
36418         * target.h (struct gcc_target): Ditto.
36419         * tree-vect-stmts.c (vectorizable_function): Ditto.
36420         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
36421         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
36422         Ditto.
36423
36424 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
36425
36426         PR c/43381
36427         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
36428         nested binding iff it is a FUNCTION_DECL.
36429         (store_parm_decls_newstyle): Pass nested=true to bind for
36430         FUNCTION_DECLs amongst parameters.
36431
36432 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
36433
36434         * var-tracking.c (vt_expand_loc_callback): Don't run
36435         cselib_expand_value_rtx_cb in dummy mode if
36436         cselib_dummy_expand_value_rtx_cb returned false.
36437
36438         * var-tracking.c (emit_note_insn_var_location): For one part
36439         notes with offset 0, don't add EXPR_LIST around the location.
36440         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
36441         add_location_or_const_value_attribute): Adjust for that change.
36442
36443         PR debug/43540
36444         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
36445         into first operand and location into second.
36446         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
36447         dw_cfi_oprnd_loc for DW_CFA_expression.
36448         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
36449         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
36450         assume first argument is regnum and second argument is location.
36451
36452 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
36453
36454         PR target/42113
36455         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
36456         of scratch register to DImode.  Split to DImode comparison operator.
36457         Use SImode subreg of scratch register in the multiplication.
36458         (*cmp_sadd_sidi): Ditto.
36459         (*cmp_ssub_si): Ditto.
36460         (*cmp_ssub_sidi): Ditto.
36461
36462 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
36463
36464         PR target/43524
36465         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
36466         Remove invalid assert and wrong comment.
36467
36468 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
36469
36470         PR debug/43516
36471         * flags.h (final_insns_dump_p): New extern.
36472         * final.c (final_insns_dump_p): New variable.
36473         (rest_of_clean_state): Set it before -fdump-final-insns=
36474         dumping, clear afterwards.
36475         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
36476         MEM_ALIAS_SET on MEMs.
36477
36478 2010-03-26  David S. Miller  <davem@davemloft.net>
36479
36480         * configure.ac: Fix sparc GOTDATA_OP bug check.
36481         * configure: Rebuild.
36482
36483 2010-03-26  Alan Modra  <amodra@gmail.com>
36484
36485         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
36486
36487 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36488
36489         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
36490         TLS_SECTION_ASM_FLAG.
36491
36492 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
36493
36494         PR bootstrap/43511
36495         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
36496         Clear first_function_block_is_cold.
36497
36498         PR c/43385
36499         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
36500         argument if the argument is truth_value_p.
36501
36502 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
36503
36504         * config/rs6000/constraints.md: Update copyright year for my changes.
36505
36506         PR target/43484
36507         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
36508         used in reg+reg addressing, swap registers.
36509
36510 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
36511
36512         PR debug/43293
36513         * target.h (struct gcc_target): Add code_end hook.
36514         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
36515         if not yet defined.
36516         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
36517         * toplev.c (compile_file): Call targetm.asm_out.code_end
36518         hook before unwind info/debug info output.
36519         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
36520         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
36521         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
36522         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
36523         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
36524         * config/i386/i386.c (ix86_file_end): Renamed to...
36525         (ix86_code_end): ... this.  Make static.  Don't call
36526         file_end_indicate_exec_stack.  Emit unwind info using
36527         final_start_function/final_end_function.
36528         (darwin_x86_file_end): Remove.
36529         (TARGET_ASM_CODE_END): Define.
36530         * config/i386/i386.h (TARGET_ASM_FILE_END,
36531         NEED_INDICATE_EXEC_STACK): Don't define.
36532         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
36533         (TARGET_ASM_FILE_END): Define to darwin_file_end.
36534         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
36535         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
36536
36537         PR target/43498
36538         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
36539         at the beginning and final_end_function at the end.
36540         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
36541
36542 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36543
36544         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
36545         and Sun as TLS syntax.
36546         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
36547         * configure: Regenerate.
36548         * config.in: Regenerate.
36549         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
36550         (default_elf_asm_named_section): Use it.
36551         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
36552         (i386_output_dwarf_dtprel): Likewise.
36553         (output_addr_const_extra): Likewise.
36554         (output_pic_addr_const): Lowercase @GOTTPOFF.
36555         (output_addr_const_extra): Likewise.
36556         (output_pic_addr_const): Lowercase @GOTNTPOFF.
36557         (output_addr_const_extra): Likewise.
36558         (output_pic_addr_const): Lowercase @INDNTPOFF.
36559         (output_addr_const_extra): Likewise.
36560         (output_pic_addr_const): Lowercase @NTPOFF.
36561         (output_addr_const_extra): Likewise.
36562         (output_pic_addr_const): Lowercase @TPOFF.
36563         (output_addr_const_extra): Likewise.
36564         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
36565         (*tls_global_dynamic_64): Likewise.
36566         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
36567         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
36568
36569         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
36570         (ASM_OUTPUT_TLS_COMMON): Use it.
36571         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
36572
36573         PR target/38118
36574         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
36575         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
36576         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
36577         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
36578         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36579         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
36580
36581 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36582
36583         * config/i386/i386.c (override_options): Don't accept
36584         -mtls-dialect=sun any longer.
36585         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
36586         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
36587         (*tls_local_dynamic_base_32_sun): Likewise.
36588         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
36589
36590 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
36591
36592         PR debug/43508
36593         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36594         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
36595
36596         PR debug/43479
36597         * ira.c (adjust_cleared_regs): New function.
36598         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
36599
36600         PR debug/19192
36601         PR debug/43479
36602         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
36603         from gimple_block.
36604         * expr.c (expand_expr_real): Restore previous
36605         curr_insn_source_location and curr_insn_block after
36606         expand_expr_real_1 call.
36607         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
36608         instead of expand_expr_real_1.
36609
36610 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
36611
36612         PR rtl-optimization/43413
36613         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
36614         hard regs too.
36615
36616 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
36617
36618         PR target/43348
36619         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
36620         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
36621
36622 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
36623
36624         * config/i386/i386.c (ix86_target_string): Add -mfma.
36625         Fix a typo in comment.
36626
36627 2010-03-22  Mike Stump  <mikestump@comcast.net>
36628
36629         PR target/23071
36630         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
36631         Don't overly align based upon packed packed fields.
36632
36633 2010-03-22  Jason Merrill  <jason@redhat.com>
36634
36635         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
36636         Use () rather than [], and move before the element type.
36637
36638 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36639
36640         * doc/configfiles.texi (Configuration Files): Removed
36641         fixinc/Makefile*, intl/Makefile.*.
36642         * doc/makefile.texi: Fixed markup. Abstract from version
36643         control system used.
36644         (Makefile): Removed obsolete java/parse.y example.
36645         * doc/sourcebuild.texi: Likewise.
36646         (Top Level): Added config, gnattools, libdecnumber, libgcc,
36647         libgomp, libssp.  Removed fastjar.
36648         (Miscellaneous Docs): Clarify location.
36649         Added COPYING3, COPYING3.LIB.
36650         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
36651
36652 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36653
36654         PR target/38085
36655         * config/i386/i386.c (x86_function_profiler)
36656         [!NO_PROFILE_COUNTERS]: Fix typo.
36657         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
36658         instead of callq.
36659
36660 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
36661             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36662
36663         * doc/sourcebuild.texi (Test Directives): Split into six
36664         subsections, with most of the current text in new subsections
36665         Directives, Selectors, and Final Actions.
36666         (Directives): Split list of test directives into multiple
36667         subsubsections.
36668         (Selectors): Describe use and syntax of selectors.
36669         (Effective-Target Keywords): Describe all existing keywords.
36670         (Add Options): Describe features for dg-add-options.
36671         (Require Support): Describe variants of dg-require-support.
36672         (Final Actions): Describe commands to use in dg-final.
36673
36674 2010-03-22  Michael Matz  <matz@suse.de>
36675
36676         PR middle-end/43475
36677         * recog.c (validate_replace_rtx_group): Replace also in
36678         REG_EQUAL and REG_EQUIV notes.
36679
36680 2010-03-22  Richard Guenther  <rguenther@suse.de>
36681
36682         PR tree-optimization/43390
36683         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
36684         sure vector extracts are type correct.
36685
36686 2010-03-22  Richard Guenther  <rguenther@suse.de>
36687
36688         PR middle-end/40106
36689         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
36690         x * sqrt (x) even when optimizing for size if the target
36691         has native support for sqrt.
36692
36693 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
36694
36695         * varasm.c (make_decl_rtl_for_debug): Also clear
36696         flag_mudflap for the duration of make_decl_rtl call.
36697
36698         PR debug/43443
36699         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
36700         locs from preserved VALUEs.
36701
36702 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36703
36704         PR middle-end/42718
36705         * pa.md (movmemsi): Set align to one if zero.
36706         (movmemdi): Likewise.
36707
36708 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
36709
36710         PR target/42321
36711         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
36712         with their corresponding prologue pushes.
36713
36714 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
36715
36716         PR target/43156
36717         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
36718         at the begining or end.
36719         (spu_expand_epilogue): Likewise.
36720
36721 2010-03-20  Richard Guenther  <rguenther@suse.de>
36722
36723         PR rtl-optimization/43438
36724         * combine.c (make_extraction): Properly zero-/sign-extend an
36725         extraction of the low part of a CONST_INT.  Also handle
36726         CONST_DOUBLE.
36727
36728 2010-03-19  Mike Stump  <mikestump@comcast.net>
36729
36730         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
36731         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
36732         (override_options): Use SUBTARGET32_DEFAULT_CPU.
36733
36734 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
36735
36736         PR c/43211
36737         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
36738         an error.
36739
36740 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
36741
36742         PR rtl-optimization/42258
36743         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
36744         use that may match DEF.
36745
36746         PR target/40697
36747         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
36748         the cost of loading the constant rather than assuming
36749         COSTS_N_INSNS (1).
36750         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
36751         outer code is AND, do the same tests as the andsi3 expander and
36752         return COSTS_N_INSNS (1) if and is cheap.
36753
36754         * optabs.c (avoid_expensive_constant): Fix formatting.
36755
36756 2010-03-19  Michael Matz  <matz@suse.de>
36757
36758         PR c++/43116
36759         * attribs.c (decl_attributes): When rebuilding a function pointer
36760         type use the same qualifiers as the original pointer type.
36761
36762 2010-03-19  Martin Jambor  <mjambor@suse.cz>
36763
36764         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
36765         and is_gimple_ip_invariant_address.
36766
36767 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36768
36769         Revert
36770         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36771
36772         * config/arm/arm.c (arm_override_options): Turn off
36773         flag_dwarf2_cfi_asm for AAPCS variants.
36774
36775 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36776
36777         PR target/43399
36778         * config/arm/arm.c (emit_multi_reg_push): Update comments.
36779         Use PRE_MODIFY instead of PRE_DEC.
36780         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
36781         (vfp_emit_fstmd): Likewise.
36782
36783 2010-03-19  Michael Matz  <matz@suse.de>
36784
36785         PR target/43305
36786         * builtins.c (expand_builtin_interclass_mathfn,
36787         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
36788         if that fails.
36789
36790 2010-03-19  Richard Guenther  <rguenther@suse.de>
36791
36792         PR tree-optimization/43415
36793         * tree-ssa-pre.c (phi_translate): Split out worker to ...
36794         (phi_translate_1): ... this.
36795         (phi_translate): Move all caching here.  Cache all NARY
36796         and REFERENCE translations.
36797
36798 2010-03-19  David S. Miller  <davem@davemloft.net>
36799
36800         With help from Eric Botcazou.
36801         * config/sparc/sparc.c: Include dwarf2out.h.
36802         (emit_pic_helper): Delete.
36803         (pic_helper_symbol_name): Delete.
36804         (pic_helper_emitted_p): Delete.
36805         (pic_helper_needed): New.
36806         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
36807         (get_pc_thunk_name): New.
36808         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
36809         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
36810         Set pic_helper_needed to true.  Don't call emit_pic_helper.
36811         (sparc_expand_prologue): Update load_pic_register call.
36812         (sparc_output_mi_thunk): Likewise.
36813         (sparc_file_end): Emit a hidden comdat symbol for the PIC
36814         thunk if possible.  Output CFI information as needed.
36815
36816 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
36817             Jack Howarth  <howarth@bromo.med.uc.edu>
36818
36819         PR target/36399
36820         * config/i386/i386.h: Fix ABI on darwin x86-32.
36821
36822 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
36823
36824         * tree.h: Declare make_decl_rtl_for_debug.
36825         * varasm.c (make_decl_rtl_for_debug): New.
36826         * dwarf2out.c (rtl_for_decl_location): Call it.
36827         * cfgexpand.c (expand_debug_expr): Call it.
36828
36829 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
36830
36831         PR bootstrap/43399
36832         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
36833         mem_mode.
36834
36835         PR bootstrap/43403
36836         * var-tracking.c (vt_init_cfa_base): Do nothing if
36837         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
36838
36839 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
36840
36841         PR debug/42873
36842         * var-tracking.c (canonicalize_vars_star): New.
36843         (dataflow_post_merge_adjust): Use it.
36844
36845 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
36846
36847         PR debug/43058
36848         * var-tracking.c (non_suitable_const): New function.
36849         (add_uses): For DEBUG_INSNs with constants, don't record any
36850         value, instead just the constant value itself.
36851         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
36852         is not VAR_LOC_UNKNOWN_P, set var to the constant.
36853         (emit_notes_in_bb): Likewise.
36854         (emit_note_insn_var_location): For onepart variables if
36855         cur_loc is a VOIDmode constant, use DECL_MODE.
36856
36857 2010-03-18  Martin Jambor  <mjambor@suse.cz>
36858
36859         PR middle-end/42450
36860         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
36861         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
36862         all non-clones.  Moved call redirection...
36863         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
36864         (cgraph_materialize_all_clones): Dispose of all
36865         combined_args_to_skip bitmaps.
36866         (verify_cgraph_node): Do not check for edges pointing to wrong
36867         nodes in inline clones.
36868         * tree-inline.c (copy_bb): Call
36869         cgraph_redirect_edge_call_stmt_to_callee.
36870         * ipa.c (cgraph_remove_unreachable_nodes): Call
36871         cgraph_node_remove_callees even when there are used clones.
36872
36873 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
36874
36875         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
36876
36877 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
36878
36879         PR target/43383
36880         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
36881         for 32bit.
36882
36883 2010-03-18  Michael Matz  <matz@suse.de>
36884
36885         PR middle-end/43419
36886         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
36887         into sqrt(x) if we need to preserve signed zeros.
36888
36889 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
36890             Eric Botcazou  <ebotcazou@adacore.com>
36891
36892         PR rtl-optimization/43360
36893         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
36894         note if we don't know its invariant status.
36895
36896 2010-03-18  Michael Matz  <matz@suse.de>
36897
36898         PR tree-optimization/43402
36899         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
36900         PHI chains of ssa names registered for update.
36901
36902 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
36903
36904         PR target/42427
36905         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
36906         non-offsettable and pre_modify update addressing.
36907         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
36908         and "2" alternatives "#".
36909         (*movdd_softfloat32): Make all alternatives "#";
36910         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
36911         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
36912         (*movdf_softfloat32): Make all alternatives "#";
36913         (movdi): Use the new DIFD mode iterator to create a common splitter
36914         for movdi, movdf and movdd patterns.
36915
36916 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
36917
36918         * common.opt (dumpdir): Remove redundant tab.
36919
36920 2010-03-17  Martin Jambor  <mjambor@suse.cz>
36921
36922         PR tree-optimization/43347
36923         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
36924         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
36925
36926 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
36927
36928         PR rtl-optimization/42216
36929         * regrename.c (create_new_chain): New function, broken out from...
36930         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
36931         appending a use to an empty chain.
36932         (build_def_use): Remove previous changes that convert OP_INOUT to
36933         OP_OUT operands; instead detect the case where an OP_INOUT operand
36934         uses a previously untracked register and create an empty chain for it.
36935
36936 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36937
36938         * doc/extend.texi (Function Attributes): Rewrite unfinished
36939         sentence in ms_abi documentation.
36940
36941 2010-03-17  Alan Modra  <amodra@gmail.com>
36942
36943         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
36944         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
36945         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
36946         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
36947
36948 2010-03-16  Richard Henderson  <rth@redhat.com>
36949
36950         PR middle-end/43365
36951         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
36952         (lower_try_finally): Save and restore eh_seq around the expansion
36953         of the try-finally.
36954
36955 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
36956
36957         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
36958         statements before splitting block.
36959
36960 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36961
36962         * doc/sourcebuild.texi (Testsuites): Fix markup.
36963         Use pathnames relative to gcc/testsuite.
36964         (Test Directives): Move description of how timeout is determined.
36965         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
36966         (C Tests): Correct gcc.misc-tests directory.
36967         Framework tests now live in gcc.test-framework.
36968
36969 2010-03-16  Richard Guenther  <rguenther@suse.de>
36970
36971         PR middle-end/43379
36972         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
36973         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
36974
36975 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
36976             Alexandre Oliva  <aoliva@redhat.com>
36977
36978         PR tree-optimization/42917
36979         * lambda-code.c (remove_iv): Skip debug statements.
36980         (lambda_loopnest_to_gcc_loopnest): Likewise.
36981         (not_interesting_stmt): Debug statements are not interesting.
36982
36983 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
36984
36985         PR debug/43051
36986         PR debug/43092
36987         * cselib.c (cselib_preserve_constants,
36988         cfa_base_preserved_val): New static variables.
36989         (preserve_only_constants): New function.
36990         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
36991         clear its REG_VALUES.  If cselib_preserve_constants, don't
36992         empty the whole hash table, but preserve there VALUEs with constants,
36993         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
36994         (cselib_preserve_cfa_base_value): New function.
36995         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
36996         (cselib_init): Change argument to int bitfield.  Set
36997         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
36998         is in it.
36999         (cselib_finish): Clear cselib_preserve_constants and
37000         cfa_base_preserved_val.
37001         * cselib.h (enum cselib_record_what): New enum.
37002         (cselib_init): Change argument to int.
37003         (cselib_preserve_cfa_base_value): New prototype.
37004         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
37005         * dse.c (dse_step1): Likewise.
37006         * cfgcleanup.c (thread_jump): Likewise.
37007         * sched-deps.c (sched_analyze): Likewise.
37008         * gcse.c (local_cprop_pass): Likewise.
37009         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
37010         If FN is non-NULL, call the callback always and whenever it returns
37011         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
37012         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
37013         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
37014         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
37015         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
37016         * var-tracking.c: Include recog.h.
37017         (bb_stack_adjust_offset): Remove.
37018         (vt_stack_adjustments): Don't call it, instead just gather the
37019         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
37020         (adjust_stack_reference): Remove.
37021         (compute_cfa_pointer): New function.
37022         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
37023         (struct adjust_mem_data): New type.
37024         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
37025         functions.
37026         (get_address_mode): New function.
37027         (replace_expr_with_values): Use it.
37028         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
37029         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
37030         (adjust_sets): Remove.
37031         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
37032         Use get_address_mode.
37033         (get_adjusted_src): Remove.
37034         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
37035         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
37036         (add_with_sets): Don't call adjust_sets.
37037         (fp_setter, vt_init_cfa_base): New functions.
37038         (vt_initialize): Change return type to bool.  Move most of pool etc.
37039         initialization to the beginning of the function from end.  Pass
37040         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
37041         If !frame_pointer_needed, call vt_stack_adjustment before mos
37042         vector is filled, call vt_init_cfa_base if argp/framep has been
37043         eliminated to sp.  If frame_pointer_needed and argp/framep has
37044         been eliminated to hard frame pointer, set
37045         hard_frame_pointer_adjustment and call vt_init_cfa_base after
37046         encountering fp setter in the prologue.  For MO_ADJUST, call
37047         log_op_type before pusing the op into mos vector, not afterwards.
37048         Call adjust_insn before cselib_process_insn/add_with_sets,
37049         call cancel_changes (0) afterwards.
37050         (variable_tracking_main_1): Adjust for vt_initialize calling
37051         vt_stack_adjustments and returning whether it succeeded or not.
37052
37053 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
37054
37055         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
37056         debug statements.
37057
37058 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
37059
37060         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
37061         has been set.
37062         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
37063         drap_reg has not been set.
37064
37065 2010-03-15  Michael Matz  <matz@suse.de>
37066
37067         PR middle-end/43300
37068         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
37069         use it to expand block copies.
37070         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
37071         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
37072         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
37073
37074 2010-03-15  Richard Guenther  <rguenther@suse.de>
37075
37076         PR tree-optimization/43367
37077         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
37078         elimination check.
37079
37080 2010-03-15  Richard Guenther  <rguenther@suse.de>
37081
37082         PR tree-optimization/43317
37083         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
37084
37085 2010-03-15  Martin Jambor  <mjambor@suse.cz>
37086
37087         PR tree-optimization/43141
37088         * tree-sra.c (create_abstract_origin): New function.
37089         (modify_function): Call create_abstract_origin.
37090
37091 2010-03-15  Chris Demetriou  <cgd@google.com>
37092
37093         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
37094         wasn't copied.
37095
37096 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37097
37098         PR middle-end/43354
37099         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
37100         call insert_out_of_ssa_copy for default definitions.
37101
37102 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37103
37104         * graphite-clast-to-gimple.c (my_long_long): Defined.
37105         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
37106         * graphite-sese-to-poly.c (my_long_long): Defined.
37107         (scop_ivs_can_be_represented): Use it.
37108
37109 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37110
37111         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
37112         graphite-max-bbs-per-function, and loop-block-tile-size.
37113         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
37114         with "maximum".
37115         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
37116
37117 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37118
37119         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
37120         forward declaration.
37121         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
37122         (add_upper_bounds_from_estimated_nit): New.
37123         (build_loop_iteration_domains): Use it.
37124
37125 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37126
37127         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
37128
37129 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37130
37131         PR middle-end/43306
37132         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
37133         should be an INTEGER_CST.  Also handle CASE_CONVERT.
37134
37135 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37136
37137         * graphite.c (graphite_initialize): To bound the number of bbs per
37138         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
37139         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
37140         * doc/invoke.texi: Document it.
37141
37142 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37143
37144         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
37145         * graphite-sese-to-poly.h (build_poly_scop): Same.
37146
37147 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
37148
37149         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
37150         the number of parameters in the scop.  Use as an upper bound
37151         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
37152         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
37153         * doc/invoke.texi: Document it.
37154
37155 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
37156
37157         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
37158         * doc/c-tree.texi: Remove.
37159         * doc/generic.texi: Merge c-tree.texi here.
37160         * doc/gccint.texi (Trees): Remove menu entry.
37161         (c-tree.texi): Remove @include.
37162         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
37163         * doc/languages.texi (Reading RTL): Ditto.
37164
37165 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
37166
37167         PR target/42869
37168         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
37169
37170 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
37171
37172         PR middle-end/42431
37173         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
37174         code added to work around reload clobbering CONST insns.
37175
37176 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
37177
37178         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
37179         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
37180         (cselib_preserve_only_values): Remove retain argument, don't
37181         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
37182         * cselib.h (cselib_preserve_only_values): Remove retain argument.
37183         * var-tracking.c (micro_operation): Move insn field before union.
37184         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
37185         (struct variable_tracking_info_def): Remove n_mos field, change
37186         mos into a vector of micro_operations.
37187         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
37188         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
37189         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
37190         changing into a vector.
37191         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
37192         come before all other uops generated by add_stores.
37193         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
37194         argument removal.
37195         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
37196         a vector.  Run just one pass over the bbs instead of separate counting
37197         and computation phase.
37198         (vt_finalize): Free VTI (bb)->mos vector instead of array.
37199
37200         PR debug/43329
37201         * tree-inline.c (remap_decls): Put old_var rather than origin_var
37202         into *nonlocalized_list vector.
37203         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
37204         even if origin is non-NULL.
37205         (gen_variable_die): Likewise.
37206         (process_scope_var): Don't change origin.
37207         (gen_decl_die): Likewise.
37208         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
37209         before adding new edges instead of after it, fix moving over
37210         debug stmts.
37211
37212 2010-03-11  David S. Miller  <davem@davemloft.net>
37213
37214         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
37215         of four.
37216         * configure: Rebuild.
37217
37218 2010-03-11  Martin Jambor  <mjambor@suse.cz>
37219
37220         PR tree-optimization/43257
37221         * tree.c (assign_assembler_name_if_neeeded): New function.
37222         (free_lang_data_in_cgraph): Assembler name assignment moved to the
37223         above new function.
37224         * tree.h (assign_assembler_name_if_neeeded): Declare.
37225         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
37226         the function if needed.
37227
37228 2010-03-11  Chris Demetriou  <cgd@google.com>
37229
37230         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
37231         include/stdint-gcc.h, and include/stdint.h world-readable.
37232
37233 2010-03-11  Richard Guenther  <rguenther@suse.de>
37234
37235         PR tree-optimization/43255
37236         * tree-vrp.c (process_assert_insertions_for): Do not insert
37237         asserts for trivial conditions.
37238
37239 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37240
37241         PR tree-optimization/43280
37242         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
37243         generation.  Move calculation of size out of the if branch.
37244         (find_bswap): Modify compare number generation.
37245
37246 2010-03-11  Richard Guenther  <rguenther@suse.de>
37247
37248         PR lto/43200
37249         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
37250         (input_gimple_stmt): Fixup handled component types during
37251         operand read.  Also fix up decls in ADDR_EXPRs.
37252
37253 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
37254
37255         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
37256         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
37257
37258 2010-03-10  Jan Hubicka  <jh@suse.cz>
37259
37260         PR c/43288
37261         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
37262         * varasm.c (get_variable_section): Don't do that here...
37263         (make_decl_rtl): ... and here.
37264         (do_assemble_alias): Produce decl RTL.
37265         (assemble_alias): Likewise.
37266
37267 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
37268
37269         PR debug/43290
37270         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
37271         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
37272         of fde->vdrap_reg.
37273         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
37274         (based_loc_descr): Only express drap or vdrap regno based expressions
37275         using DW_OP_fbreg when not optimizing.
37276         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
37277         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
37278         REG_CFA_SET_VDRAP note.
37279
37280 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
37281
37282         PR tree-optimization/43236
37283         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
37284         error in calculation of base address in reverse iteration case.
37285         (generate_builtin): Take number of latch executions if the statement
37286         is in the latch.
37287
37288 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
37289
37290         PR middle-end/42859
37291         * tree-eh.c: Include pointer-set.h.
37292         (lower_eh_dispatch): Filter out duplicate case labels and
37293         remove the unneeded edge when the label is unused.  Return
37294         true when some edges are removed.
37295         (execute_lower_eh_dispatch): When any lowering resulted in
37296         removing an edge, also delete unreachable blocks.
37297
37298 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
37299
37300         PR bootstrap/43287
37301         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
37302         UNSPEC_MACHOPIC_OFFSET.
37303
37304 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
37305
37306         PR target/43294
37307         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
37308         (m68k_delegitimize_address): New function.
37309
37310 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
37311
37312         PR debug/43299
37313         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
37314
37315         PR debug/43299
37316         * var-tracking.c (adjust_sets): New function.
37317         (count_with_sets, add_with_sets): Use it.
37318         (get_adjusted_src): New inline function.
37319         (add_stores): Use it.
37320
37321         PR debug/43304
37322         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
37323         call cselib_dummy_expand_value_rtx_cb instead of
37324         cselib_expand_value_rtx_cb.
37325
37326         PR debug/43293
37327         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
37328         * config/i386/i386.c: Include debug.h and dwarf2out.h.
37329         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
37330         and .cfi_endproc around the pic thunks.
37331         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
37332         all queued unwind info register saves are saved before the call.
37333         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
37334         considered as sp-=4 for unwind info and the pop as sp+=4 which
37335         also clobbers dest, but doesn't actually restore it.
37336
37337         PR debug/43290
37338         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
37339         RTX_FRAME_RELATED_P.
37340
37341 2010-03-09  Jie Zhang  <jie@codesourcery.com>
37342
37343         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
37344         whitespaces in output template.
37345
37346 2010-03-09  Jie Zhang  <jie@codesourcery.com>
37347
37348         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
37349         out array boundary.
37350
37351 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
37352
37353         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
37354         builtins.exp in a separate job.
37355
37356 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37357
37358         * graphite-sese-to-poly.c (add_param_constraints): Use
37359         lower_bound_in_type and upper_bound_in_type.
37360
37361 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37362
37363         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
37364         instead of unsigned_type_node.
37365
37366 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37367             Reza Yazdani  <reza.yazdani@amd.com>
37368
37369         PR middle-end/43065
37370         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
37371         on pointer type parameters.
37372
37373 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
37374
37375         PR middle-end/42644
37376         PR middle-end/42130
37377         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
37378         handle conversions from pointer to integers.
37379         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
37380         induction variable, to be able to work with code generated by CLooG.
37381         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
37382         (build_poly_scop): Bail out if we cannot codegen a loop.
37383
37384 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
37385
37386         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
37387         code generation with gloog_error.
37388
37389 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37390
37391         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
37392         Call fold_convert on all the returned values.
37393         (expand_scalar_variables_expr): Pass to
37394         expand_scalar_variables_ssa_name the type of the resulting expression.
37395
37396 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37397
37398         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
37399         ppl_min_for_le_pointset.
37400         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
37401         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
37402
37403 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37404
37405         * graphite-dependences.c (map_into_dep_poly): Removed.
37406         (dependence_polyhedron_1): Use combine_context_id_scat.
37407
37408 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37409
37410         * graphite-poly.h (struct poly_scattering): Add layout documentation.
37411         (struct poly_bb): Same.
37412         (combine_context_id_scat): New.
37413
37414 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37415
37416         PR middle-end/42326
37417         * sese.c (name_defined_in_loop_p): Return false for default
37418         definitions.
37419
37420 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37421
37422         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
37423         and clean up the logic.
37424
37425 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
37426
37427         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
37428         early return.
37429
37430 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
37431
37432         * var-tracking.c (remove_cselib_value_chains): Define only for
37433         ENABLE_CHECKING.
37434         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
37435         delete_slot_part, emit_notes_for_differences_1): Don't call
37436         remove_cselib_value_chains here.
37437         (set_slot_part, emit_notes_for_differences_2): Don't call
37438         add_cselib_value_chains here.
37439         (preserved_values): New vector.
37440         (preserve_value): New function.
37441         (add_uses, add_stores, vt_add_function_parameters): Use it
37442         instead of cselib_preserve_value.
37443         (changed_values_stack): New vector.
37444         (check_changed_vars_0): New function.
37445         (check_changed_vars_1, check_changed_vars_2): Use it.
37446         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
37447         changed_values_stack VALUEs.
37448         (vt_emit_notes): For all preserved_values call
37449         add_cselib_value_chains.  If ENABLE_CHECKING call
37450         remove_cselib_value_chains before verifying value_chains is empty.
37451         Initialize and free changed_values_stack.
37452         (vt_initialize): Initialize preserved_values.
37453         (vt_finalize): Free preserved_values.
37454
37455 2010-03-08  Richard Guenther  <rguenther@suse.de>
37456
37457         PR tree-optimization/43269
37458         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
37459         region detection.
37460
37461 2010-03-08  Martin Jambor  <mjambor@suse.cz>
37462
37463         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
37464         (ipa_is_param_called): Removed.
37465         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
37466         (ipa_print_node_params): Do not print the called flag.
37467         (ipa_write_node_info): Do not stream the called flag.
37468         (ipa_read_node_info): Likewise.
37469
37470 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
37471
37472         PR debug/43176
37473         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
37474         * cselib.c (struct expand_value_data): Add dummy field.
37475         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
37476         dummy to false.
37477         (cselib_dummy_expand_value_rtx_cb): New function.
37478         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
37479         any rtl.
37480         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
37481         * var-tracking.c: Include pointer-set.h.
37482         (variable): Change n_var_parts to char from int.  Add
37483         cur_loc_changed and in_changed_variables fields.
37484         (variable_canonicalize): Remove.
37485         (shared_var_p): New inline function.
37486         (unshare_variable): Maintain cur_loc_changed and
37487         in_changed_variables fields.  If var was in changed_variables,
37488         replace it there with new_var.  Just copy cur_loc instead of
37489         resetting it to something else.
37490         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
37491         (dataflow_set_union): Don't call variable_canonicalize.
37492         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
37493         of their DEBUG_EXPR_TREE_DECLs.
37494         (canonicalize_loc_order_check): Verify that cur_loc is NULL
37495         and in_changed_variables and cur_loc_changed is false.
37496         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
37497         and cur_loc_changed.  Don't update cur_loc here.
37498         (variable_merge_over_src): Don't call variable_canonicalize.
37499         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
37500         removing loc that is equal to cur_loc, clear cur_loc,
37501         set cur_loc_changed and ensure variable_was_changed is called.
37502         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
37503         compare pointers in cur_loc check, if it is equal to loc,
37504         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
37505         (variable_different_p): Remove compare_current_location argument,
37506         don't compare cur_loc.
37507         (dataflow_set_different_1): Adjust variable_different_p caller.
37508         (variable_was_changed): If dv had some var in changed_variables
37509         already, reset in_changed_variables flag for it and propagate
37510         cur_loc_changed over to the new variable.  On empty var
37511         always set cur_loc_changed.  Set in_changed_variables on whatever
37512         var is added to changed_variables.
37513         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
37514         Use shared_var_p.  When removing loc that is equal to cur_loc,
37515         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
37516         end, don't set it to something else, just call variable_was_changed.
37517         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
37518         loc being removed, clear cur_loc and set cur_loc_changed.
37519         Set cur_loc_changed if all locations have been removed.
37520         (struct expand_loc_callback_data): New type.
37521         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
37522         allocated.  Always create SUBREGs if simplify_subreg failed.
37523         Prefer to use cur_loc, when that fails and still in
37524         changed_variables (and seen first time) recompute it.  Set
37525         cur_loc_changed of variables which had to change cur_loc and
37526         compute elcd->cur_loc_changed if any of the subexpressions used
37527         had to change cur_loc.
37528         (vt_expand_loc): Adjust to pass arguments in
37529         expand_loc_callback_data structure.
37530         (vt_expand_loc_dummy): New function.
37531         (emitted_notes): New variable.
37532         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
37533         that weren't used for any other decl in current
37534         emit_notes_for_changes call call vt_expand_loc_dummy to update
37535         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
37536         first loc_chain location if NULL before.  Always use just
37537         cur_loc instead of first loc_chain location.  When cur_loc_changed
37538         is false, when not --enable-checking=rtl just don't emit any note.
37539         When rtl checking, compute the note and assert it is the same
37540         as previous note.  Clear cur_loc_changed and in_changed_variables
37541         at the end before removing from changed_variables.
37542         (check_changed_vars_3): New function.
37543         (emit_notes_for_changes): Traverse changed_vars to call
37544         check_changed_vars_3 on each changed var.
37545         (emit_notes_for_differences_1): Clear cur_loc_changed and
37546         in_changed_variables.  Recompute cur_loc of new_var.
37547         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
37548         (vt_emit_notes): Initialize and destroy emitted_notes.
37549
37550 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
37551
37552         PR rtl-optimization/42220
37553         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
37554         Use verify_reg_tracked to determine if we should use OP_OUT rather
37555         than OP_INOUT.
37556         (build_def_use): If we see an in-out operand for a register that we
37557         know nothing about, treat is an output if possible, fail the block if
37558         not.
37559
37560 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
37561
37562         PR debug/42897
37563         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
37564         permanently.
37565
37566 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
37567
37568         PR debug/42897
37569         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
37570         uses of relevant DEFs that are dead outside the loop too.
37571
37572 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
37573
37574         * var-tracking.c (dataflow_set_merge): Swap src and src2.
37575         Reverted:
37576         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
37577         PR debug/41371
37578         * var-tracking.c (values_to_unmark): New variable.
37579         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37580         values_to_unmark vector.  Moved body to...
37581         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
37582         instead queue it into values_to_unmark vector.
37583         (vt_find_locations): Free values_to_unmark vector.
37584
37585 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
37586
37587         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
37588         (site.exp): Export them when plugins are enabled.
37589
37590 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
37591
37592         PR middle-end/42326
37593         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
37594         that contain scevs.
37595         (chrec_fold_multiply): Same.
37596
37597 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
37598
37599         PR c/43248
37600         * c-decl.c (build_compound_literal): Return early if init is
37601         an error_mark_node.
37602
37603 2010-03-04  Martin Jambor  <mjambor@suse.cz>
37604
37605         PR tree-optimization/43164
37606         PR tree-optimization/43191
37607         * tree-sra.c (type_consists_of_records_p): Reject records with
37608         zero-size bit-fields at the end.
37609
37610 2010-03-04  Mike Stump  <mikestump@comcast.net>
37611
37612         * Makefile.in (TAGS): Remove *.y.
37613
37614 2010-03-04  Richard Guenther  <rguenther@suse.de>
37615
37616         PR tree-optimization/40761
37617         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
37618         in reverse order.
37619         (my_rev_post_order_compute): New function.
37620         (init_pre): Call it.
37621
37622 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
37623
37624         PR middle-end/43209
37625         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
37626         decrease the cost of an IV candidate when the cost is infinite.
37627
37628 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37629
37630         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
37631         Use '3DNow!' for the extension of that name, ensure normal space
37632         after the string.
37633         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
37634
37635 2010-03-03  Jeff Law  <law@redhat.com>
37636
37637         * PR middle-end/32693
37638         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
37639         than gen_rtx_SUBREG.
37640         (extract_bit_field_1): Likewise.
37641
37642 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
37643
37644         * doc/sourcebuild.texi (Test directives): Document that arguments
37645         include-opts and exclude-opts are now optional for dg-skip-if,
37646         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
37647
37648 2010-03-03  Jason Merrill  <jason@redhat.com>
37649
37650         PR c++/12909
37651         * cgraph.h (varpool_node): Add extra_name field.
37652         * varpool.c (varpool_extra_name_alias): New.
37653         (varpool_assemble_decl): Emit extra name aliases.
37654         (varpool_mark_needed_node): Look past an extra name alias.
37655         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
37656         * lto-streamer-in.c (lto_input_tree): Read it.
37657         * lto-streamer-out.c (output_unreferenced_globals): Write it.
37658
37659 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37660
37661         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
37662         (sparc*-*-solaris2*): ...this.
37663
37664 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
37665
37666         PR debug/43229
37667         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
37668         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
37669         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
37670         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
37671
37672         PR debug/43237
37673         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
37674         fallthrough to default handling, just with want_address 0 instead of 2.
37675         For single element lists, add_AT_loc directly, otherwise create an
37676         artificial variable DIE and stick location list to it.
37677
37678         PR debug/43177
37679         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
37680         (VAL_EXPR_HAS_REVERSE): Define.
37681         (reverse_op): New function.
37682         (add_stores): For reversible operations add an extra MO_VAL_USE.
37683
37684 2010-03-02  Jason Merrill  <jason@redhat.com>
37685
37686         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
37687
37688 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
37689
37690         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
37691         (sparc64-*-linux*): Likewise.
37692         (sparc64-*-solaris2*): Include assembler files before linker ones.
37693         (sparc-*-solaris2*): Simplify and reorder to match previous case.
37694         * config/sparc/gas.h: Delete.
37695         * config/sparc/sol2-64.h: Add copyright notice.
37696         * config/sparc/sol2-gas-bi.h: Likewise.
37697         * config/sparc/sol2-gld.h: Likewise.
37698         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
37699         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
37700         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
37701         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
37702         (sparc_elf_asm_named_section): Rename into...
37703         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
37704
37705 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
37706
37707         * config/alpha/alpha.c (override_options): Fix -mtune error message.
37708
37709 2010-03-02  Jeff Law  <law@redhat.com>
37710
37711         PR middle-end/42431
37712         * reload1.c (rtx_p, substitute_stack): Declare.
37713         (substitute): Record addresses of changed rtxs.
37714         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
37715         Restore the original rtx when complete.
37716         (reload): Free subsitute_stack when complete.
37717
37718 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
37719
37720         * doc/gccint.texi (menu): Add Testsuites as a chapter.
37721         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
37722         new chapter.
37723         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
37724         LTO Testing, gcov Testing, profopt Testing, compat Testing,
37725         Torture Tests): Change from subsection to section.
37726
37727 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
37728             Steven Bosscher  <steven@gcc.gnu.org>
37729
37730         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
37731         instead of bb.
37732
37733 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
37734
37735         PR middle-end/42640
37736         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
37737         the assignment from the new induction variable to the assignment
37738         of the value from the original loop PHI function.
37739
37740 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
37741             Daniel Jacobowitz  <dan@codesourcery.com>
37742
37743         * doc/sourcebuild.texi (Test directives): Clarify options to
37744         dg-skip-if.
37745
37746 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37747
37748         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
37749         Disable cfi directives unless GCC and gas agree on using read-only
37750         .eh_frame sections for 64-bit.
37751         * configure: Regenerate.
37752
37753 2010-03-01  Richard Guenther  <rguenther@suse.de>
37754
37755         PR tree-optimization/43220
37756         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
37757         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
37758
37759 2010-03-01  Richard Guenther  <rguenther@suse.de>
37760             Martin Jambor  <mjambor@suse.cz>
37761
37762         PR middle-end/41250
37763         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
37764         gimplified parameters.
37765
37766 2010-03-01  Christian Bruel  <christian.bruel@st.com>
37767
37768         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
37769
37770 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
37771
37772         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
37773
37774 2010-03-01  Richard Guenther  <rguenther@suse.de>
37775
37776         PR middle-end/43213
37777         * expr.c (expand_assignment): Use the alias-oracle to tell
37778         if the rhs aliases the result decl.
37779
37780 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37781
37782         PR pch/14940
37783         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
37784         to sol_gt_pch_get_address.
37785         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
37786         64-bit, SPARC and x86.
37787         (sol_gt_pch_get_address): New function.
37788
37789 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
37790
37791         * toplev.h (inform_n, error_n): Declare.
37792         * diagnostic.c (inform_n, error_n): New function.
37793
37794 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
37795
37796         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
37797         has no rtl yet when processing local_decls, queue it and recheck
37798         if deferred stack allocation hasn't assigned it rtl.
37799
37800 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
37801
37802         * config/sh/sh.c (unspec_bbr_uid): New.
37803         (gen_block_redirect): Use it instead of INSN_UID.
37804         (gen_far_branch): Likewise.
37805
37806 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
37807
37808         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
37809         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
37810
37811 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37812
37813         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
37814         (Warning Options): -Wno-conversion-null is valid for
37815         Objective-C++ as well.
37816         * doc/tm.texi (Named Address Spaces): Likewise.
37817         * doc/plugins.texi (Plugins): Replace TABs with spaces.
37818         * doc/tree-ssa.texi (Tree SSA): Likewise.
37819
37820 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
37821
37822         PR bootstrap/43202
37823         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
37824         by default.  Don't set the default arch for
37825         i[34567]86-*-darwin*|x86_64-*-darwin*.
37826
37827 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
37828
37829         PR bootstrap/43202
37830         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
37831         default.  Set the default 32bit/64bit archs with $with_arch
37832         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
37833
37834 2010-02-27  Richard Guenther  <rguenther@suse.de>
37835
37836         PR tree-optimization/43186
37837         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
37838         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
37839         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
37840         unroller iterations.
37841
37842 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
37843
37844         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
37845         required and i[34567]86-*-* targets don't support 64bit ISA.
37846
37847 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
37848
37849         PR ada/43096
37850         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37851         the same alias set.
37852
37853 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
37854
37855         * config.gcc: Set the default arch at least to Prescott for
37856         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
37857         if SSE math is enabled.
37858
37859 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37860
37861         * diagnostic.c (diagnostic_initialize): Update.
37862         (diagnostic_report_diagnostic): Test inhibit_notes_p for
37863         informative notes.
37864         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
37865         (diagnostic_inhibit_notes): New.
37866         * toplev.c (process_options): inhibit notes with -fcompare-debug.
37867
37868 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37869
37870         PR c/20631
37871         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
37872         * doc/standards.texi: Likewise.
37873         * doc/extend.texi: Likewise.
37874         * doc/trouble.texi: Likewise.
37875         * doc/cppopts.texi: Likewise.
37876         * doc/install.texi: Likewise.
37877         * c.opt (std=c90,std=gnu90): New options.
37878         * c-opts.c (c_common_handle_option): Handle them.
37879
37880 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
37881
37882         PR c/24577
37883         * c-decl.c (undeclared_variable): Use an informative note.
37884
37885 2010-02-26  Richard Guenther  <rguenther@suse.de>
37886
37887         PR tree-optimization/43186
37888         * gimple.h (gimple_fold): Remove.
37889         * gimple.c (gimple_fold): Remove.  Inline into single user ...
37890         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
37891         Try harder for conditions.
37892
37893 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
37894
37895         PR debug/43190
37896         * function.c (used_types_insert): Don't skip through named pointer
37897         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
37898         and it is different from the main variant's type.
37899
37900 2010-02-26  Nick Clifton  <nickc@redhat.com>
37901
37902         * config/rx/rx.md (sminsi3): Remove bogus alternative.
37903
37904 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
37905
37906         * config.gcc: Support --with-fpmath=sse for x86.
37907
37908         * config/i386/ssemath.h: New.
37909
37910         * doc/install.texi (--with-fpmath=sse): Documented.
37911
37912 2010-02-26  Richard Guenther  <rguenther@suse.de>
37913
37914         PR tree-optimization/43188
37915         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
37916         vector types of over-aligned element type.
37917
37918 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
37919
37920         PR target/43175
37921         * config/i386/i386.c (expand_vec_perm_blend): Use correct
37922         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
37923
37924 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
37925
37926         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
37927
37928 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
37929
37930         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
37931         * var-tracking.c: Include diagnostic.h.
37932         (debug_dv): New function.
37933         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
37934
37935         PR debug/43160
37936         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
37937         (add_value_chain, add_value_chains, remove_value_chain,
37938         remove_value_chains): Handle DEBUG_EXPRs.
37939         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
37940
37941         PR debug/43161
37942         * regcprop.c (struct queued_debug_insn_change): New type.
37943         (struct value_data_entry): Add debug_insn_changes field.
37944         (struct value_data): Add n_debug_insn_changes field.
37945         (debug_insn_changes_pool): New variable.
37946         (free_debug_insn_changes, apply_debug_insn_changes,
37947         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
37948         (kill_value_one_regno): Call free_debug_insn_changes if needed.
37949         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
37950         fields.
37951         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
37952         changes for them.
37953         (copyprop_hardreg_forward_1): Don't call apply_change_group for
37954         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
37955         changes, call cprop_find_used_regs via note_stores.
37956         (copyprop_hardreg_forward): When copying vd from predecessor
37957         which has any queued DEBUG_INSN changes, make sure the pointers are
37958         cleared.  At the end call df_analyze and then if there are any
37959         DEBUG_INSN changes queued at the end of some basic block for still
37960         live registers, apply them.
37961         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
37962
37963 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
37964
37965         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
37966         (arm*-*-*): Ditto.
37967
37968 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
37969
37970         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
37971         targets.  Set the default with_cpu/with_arch from arch/cpu.
37972         Allow x86-64 and native for with_cpu/with_arch.
37973
37974 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
37975
37976         * ebitmap.c: Change calls to verify_popcount with calls to
37977         sbitmap_verify_popcount.
37978         (ebitmap_clear_bit): Fixed map->cacheindex test and
37979         map>cache update when bit clearing results in an empty
37980         element.
37981
37982 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
37983
37984         PR target/43154
37985         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
37986         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
37987         and support both V2DF and V2DI modes.
37988         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
37989         support both V2DF and V2DI modes.
37990         (general): Delete trailing whitespace from a few patterns.
37991
37992         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
37993         V2DF/V2DI interleave high/low builtins.
37994
37995         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
37996         new VSX builtins.
37997
37998         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
37999         interleave high/low functions.
38000
38001 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
38002
38003         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
38004         #pragma extern_prefix.
38005
38006 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
38007
38008         PR debug/43166
38009         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
38010         BLKmode, assert op0 is a MEM and just adjust its mode.
38011
38012         PR debug/43165
38013         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
38014         if bitpos isn't multiple of mode's bitsize.
38015
38016 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38017
38018         * c.opt (-ftemplate-depth=): New.
38019         (-ftemplate-depth-): Deprecate.
38020         * optc-gen.awk: Handle -ftemplate-depth=.
38021         * opth-gen.awk: Likewise.
38022         * c-opts.c (c_common_handle_option): Likewise.
38023         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
38024
38025 2010-02-24  Jason Merrill  <jason@redhat.com>
38026
38027         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
38028
38029 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38030
38031         * cfg.c (alloc_aux_for_block): Remove inline.
38032         (alloc_aux_for_edge): Likewise.
38033
38034 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38035
38036         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
38037
38038 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38039
38040         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
38041         * config/i386/sol2-gas.h: New file.
38042         * config.gcc (i[34567]86-*-solaris2*): Use it.
38043
38044 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38045
38046         PR c/43128
38047         * c-typeck.c (ep_convert_and_check): New.
38048         (build_conditional_expr): Use it.
38049         (build_binary_op): Likewise.
38050
38051 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
38052
38053         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
38054
38055         PR debug/43150
38056         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
38057         bounds even for -O+.
38058         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
38059         expr needs to have DECL_NAME set.
38060
38061 2010-02-24  Nick Clifton  <nickc@redhat.com>
38062
38063         * config/mep/mep.c: Include gimple.h.
38064         (mep_function_uses_sp): Delete unused function.
38065         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
38066         parameters.  Use unsigned integers to count args.  Return a
38067         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
38068
38069 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
38070
38071         PR target/43107
38072         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
38073         greater or equal to nelt instead of 2 * nelt.
38074         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
38075         with nelt - 1.
38076
38077 2010-02-23  Jason Merrill  <jason@redhat.com>
38078
38079         PR debug/42800
38080         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
38081         in cfun->local_decls even if they have register types.
38082
38083         PR c++/42837
38084         * stor-layout.c (place_field): Don't warn about unnecessary
38085         DECL_PACKED if the type is packed.
38086
38087 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
38088
38089         PR target/43139
38090         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
38091         GOTOFF relocs, even when the base reg isn't pic pointer.
38092
38093 2010-02-23  Michael Matz  <matz@suse.de>
38094
38095         PR debug/43077
38096         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
38097         (expand_gimple_basic_block): Generate and use debug temps if there
38098         are debug uses left after the last real use of TERed ssa names.
38099         Unlink debug immediate uses when they are expanded.
38100
38101 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38102
38103         PR 43123
38104         * config/i386/i386.c (override_options): Reorganise to provide
38105         better error messages.
38106
38107 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
38108
38109         PR middle-end/43083
38110         * graphite-scop-detection.c (create_single_exit_edge): Move
38111         the call to find_single_exit_edge to....
38112         (create_sese_edges): ...here.  Don't handle multiple edges
38113         exiting the function.
38114         (build_graphite_scops): Don't handle multiple edges
38115         exiting the function.
38116
38117 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
38118
38119         PR middle-end/43097
38120         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
38121         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
38122
38123 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
38124
38125         PR middle-end/43026
38126         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
38127
38128 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38129
38130         PR c++/43126
38131         * c-typeck.c (convert_arguments): Print declaration location.
38132         * c-common.c (validate_nargs): Rename as
38133         builtin_function_validate_nargs.
38134         (check_builtin_function_arguments): Update.
38135
38136 2010-02-22  Richard Guenther  <rguenther@suse.de>
38137
38138         PR lto/43045
38139         * tree-inline.c (declare_return_variable): Use the type of
38140         the call stmt lhs if available.
38141
38142 2010-02-22  Duncan Sands  <baldrick@free.fr>
38143
38144         * passes.c (register_pass): Always consider all pass lists when
38145         ref_pass_instance_number is zero.
38146
38147 2010-02-22  Richard Guenther  <rguenther@suse.de>
38148
38149         PR tree-optimization/42749
38150         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
38151         parameter.  Do arithmetic in the original type.
38152         (update_accumulator_with_ops): Likewise.
38153         (adjust_accumulator_values): Adjust.
38154
38155 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38156
38157         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
38158         (QI to BLKmode splitter): New splitter.
38159
38160 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
38161
38162         * config/i386/i386.c (initial_ix86_tune_features): Turn on
38163         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
38164
38165 2010-02-22  Richard Guenther  <rguenther@suse.de>
38166
38167         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
38168
38169 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
38170
38171         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
38172         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
38173         ($(T)crti.o, $(T)crtn.o): Remove rules.
38174
38175 2010-02-21  Tobias Burnus  <burnus@net-b.de>
38176
38177         PR fortran/35259
38178         * doc/invoke.texi (-fassociative-math): Document that this
38179         option is automatically enabled for Fortran.
38180
38181 2010-02-20  David S. Miller  <davem@davemloft.net>
38182
38183         * configure.ac: Test if linker and assembler properly support
38184         GOTDATA_OP relocations.
38185         * configure: Rebuild.
38186         * config.in: Likewise.
38187         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
38188         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
38189         (movsi_high_pic): Likewise.
38190         (movdi_lo_sum_pic): Likewise.
38191         (movdi_high_pic): Likewise.
38192         (movsi_pic_gotdata_op): New pattern.
38193         (movdi_pic_gotdata_op): Likewise.
38194         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
38195         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
38196
38197 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
38198
38199         PR target/43067
38200         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
38201         attribute to ssemul.
38202         (xop_mulv2div2di3_high): Ditto.
38203
38204 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38205
38206         PR c++/35669
38207         * c.opt (Wconversion-null): New option.
38208         * doc/invoke.texi (Wconversion-null): Document.
38209
38210 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38211
38212         * common.opt (Wlarger-than-): Add Undocumented.
38213
38214 2010-02-19  Mike Stump  <mikestump@comcast.net>
38215
38216         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
38217
38218 2010-02-19  Jason Merrill  <jason@redhat.com>
38219
38220         PR target/40332
38221         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
38222         * configure: Likewise.
38223
38224 2010-02-20  Alan Modra  <amodra@gmail.com>
38225
38226         PR middle-end/42344
38227         * cgraph.h (cgraph_make_decl_local): Declare.
38228         * cgraph.c (cgraph_make_decl_local): New function.
38229         (cgraph_make_node_local): Use it.
38230         * cgraphunit.c (cgraph_function_versioning): Likewise.
38231         * ipa.c (function_and_variable_visibility): Likewise.
38232
38233 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
38234
38235         PR bootstrap/43121
38236         * except.c (sjlj_emit_function_enter): Don't call
38237         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
38238         directly.
38239         * rtl.h (add_reg_br_prob_note): Remove prototype.
38240
38241 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
38242
38243         PR 41779
38244         * c-common.c (conversion_warning): Remove widening conversions
38245         before checking the conversion of integers to reals.
38246
38247 2010-02-19  Mike Stump  <mikestump@comcast.net>
38248
38249         PR middle-end/43125
38250         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
38251
38252         PR objc/43061
38253         * cgraphunit.c (process_function_and_variable_attributes): Check
38254         DECL_PRESERVE_P instead of looking up attribute "used".
38255         * ipa-pure-const.c (check_decl): Likewise.
38256         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
38257         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
38258         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
38259         instead of attribute "used".
38260         * config/sol2-c.c (solaris_pragma_init): Likewise.
38261         (solaris_pragma_fini): Likewise.
38262
38263 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
38264
38265         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
38266         Use XCNEW instead of xcalloc.
38267         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
38268         XNEW instead of xmalloc.
38269         (get_fields): Use XNEWVEC instead of xmalloc.
38270
38271         PR debug/43084
38272         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
38273         populate vars array.
38274         (create_new_general_access): For debug stmts just reset value.
38275         (get_stmt_accesses): For accesses within debug stmts just record them
38276         using add_access_to_acc_sites instead of preventing the peeling or
38277         counting them as accesses.
38278
38279         PR middle-end/42233
38280         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
38281
38282 2010-02-19  Richard Guenther  <rguenther@suse.de>
38283
38284         PR tree-optimization/42916
38285         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
38286         instructions.
38287
38288 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38289
38290         * configure.ac: Replace all uses of changequote in macro arguments
38291         with proper quoting.
38292
38293 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
38294
38295         PR middle-end/42233
38296         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
38297
38298 2010-02-19  Richard Guenther  <rguenther@suse.de>
38299
38300         PR tree-optimization/42944
38301         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
38302         test for aliasing with errno.
38303
38304 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
38305
38306         PR middle-end/42233
38307         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
38308         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
38309         * dojump.c: Include output.h.
38310         (inv): New inline function.
38311         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
38312         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
38313         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
38314         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
38315         argument, pass it down to other calls.
38316         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
38317         add REG_BR_PROB note to the conditional jump.
38318         * cfgexpand.c (add_reg_br_prob_note): Removed.
38319         (expand_gimple_cond): Don't call it, add the probability
38320         as last argument to jumpif_1/jumpifnot_1.
38321         * Makefile.in (dojump.o): Depend on output.h.
38322         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
38323         callers.
38324         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
38325         * stmt.c (do_jump_if_equal): Likewise.
38326         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
38327         * loop-unswitch.c (compare_and_jump_seq): Likewise.
38328         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
38329         Likewise.
38330         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
38331         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
38332         jumpifnot_1 callers.
38333         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
38334         callers.
38335         (store_expr): Adjust jumpifnot caller.
38336         (store_constructor): Adjust jumpif caller.
38337
38338         PR middle-end/42233
38339         * gimplify.c (gimple_boolify): For __builtin_expect call
38340         gimple_boolify also on its first argument.
38341
38342 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
38343
38344         * configure.ac (gnu-unique-object): Wrap regexps using [] in
38345         changequote block.
38346         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
38347         * configure: Regenerated.
38348
38349 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
38350
38351         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
38352         lang_hooks.types_compatible_p instead of comptypes.
38353
38354 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
38355
38356         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
38357         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
38358         if __prefer_thumb__ is defined.
38359
38360 2010-02-18  Martin Jambor  <mjambor@suse.cz>
38361
38362         PR tree-optimization/43066
38363         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
38364         array with zero-sized element type.
38365
38366 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
38367
38368         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
38369         rtx, allocate struct var_loc_node here and return it to the
38370         caller, and only if it is actually needed.
38371         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
38372         move it earlier and return immediately if it returns NULL.
38373
38374 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
38375
38376         * config/sparc/gas.h: New file.  Restore
38377         TARGET_ASM_NAMED_SECTION to its ELF default.
38378         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
38379         check !HAVE_GNU_AS.
38380         * config/sparc/sparc.c (sparc_elf_asm_named_section):
38381         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
38382         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
38383         after sparc/sysv4.h.
38384
38385 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
38386
38387         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
38388
38389 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
38390
38391         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
38392         patterns from predicated pattern.
38393
38394 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
38395
38396         PR target/43103
38397         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
38398         for insn mnemonic suffix.
38399
38400 2010-02-17  Richard Guenther  <rguenther@suse.de>
38401
38402         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
38403         to loop PHI nodes.
38404
38405 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
38406
38407         PR debug/42918
38408         * caller-save.c (save_call_clobbered_regs): If BB ends with
38409         a DEBUG_INSN, move any notes in between last real insn and the last
38410         DEBUG_INSN after the last DEBUG_INSN.
38411
38412 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
38413
38414         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
38415         Fix return type.  Fix argument type.  Explain meaning of return value.
38416
38417 2010-02-16  Richard Guenther  <rguenther@suse.de>
38418
38419         PR tree-optimization/41043
38420         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
38421         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
38422         statements ...
38423         (vrp_visit_phi_node): ... but only for loop PHI nodes.
38424
38425 2010-02-16  Ira Rosen  <irar@il.ibm.com>
38426
38427         PR tree-optimization/43074
38428         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
38429         * tree-vect-loop.c (vect_analyze_loop_operations): Add
38430         vectorizable cycles in hybrid SLP check.
38431         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
38432
38433 2010-02-16  Richard Guenther  <rguenther@suse.de>
38434
38435         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
38436         (true_dependence): If memrefs_conflict_p computes must-alias
38437         trust it.  Move TBAA check after offset-based disambiguation.
38438         (canon_true_dependence): Likewise.
38439
38440 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
38441
38442         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
38443         * doc/invoke.texi: Document it.
38444         * var-tracking.c: Include toplev.h and params.h.
38445         (vt_find_locations): Return bool indicating success.  Compute
38446         hash sizes unconditionally.  Check new parameter, report.
38447         (variable_tracking_main_1): Check vt_find_locations results and
38448         retry.  Renamed from...
38449         (variable_tracking_main): ... this.  New wrapper to preserve
38450         flag_var_tracking_assignments.
38451         * Makefile.in (var-tracking.o): Adjust dependencies.
38452
38453 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
38454             Jakub Jelinek  <jakub@redhat.com>
38455
38456         PR target/42854
38457         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
38458         if weak_import attribute is present.
38459         * config/darwin.c (machopic_select_section): Likewise.
38460
38461 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
38462
38463         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
38464         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
38465         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
38466         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
38467
38468         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
38469         types.
38470
38471         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
38472         Fix argument types.
38473
38474         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
38475         Rewrite text to refer to the names.
38476
38477 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
38478
38479         * config/i386/i386-builtin-types.def
38480         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
38481         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
38482         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
38483         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
38484         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
38485         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
38486         IX86_BUILTIN_VPERMIL2PS256.
38487         (MULTI_ARG_4_DF2_DI_I): Defined.
38488         (MULTI_ARG_4_DF2_DI_I1): Defined.
38489         (MULTI_ARG_4_SF2_SI_I): Defined.
38490         (MULTI_ARG_4_SF2_SI_I1): Defined.
38491         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
38492         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
38493         __builtin_ia32_vpermil2ps256.
38494         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
38495         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
38496         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
38497         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
38498         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
38499         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
38500         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
38501         CODE_FOR_xop_vpermil2v8sf3.
38502         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
38503         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
38504         * config/i386/xopintrin.h (_mm_permute2_pd): New.
38505         (_mm256_permute2_pd): New.
38506         (_mm_permute2_ps): New.
38507         (_mm256_permute2_ps): New.
38508
38509 2010-02-15  Nick Clifton  <nickc@redhat.com>
38510
38511         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
38512         boolean parameters.  Use emit_jump_insn when emitting a pop
38513         instruction containing a return insn.
38514         (push): Use 'true' rather than '1' as second parameter to F.
38515         (h8300_expand_prologue): Likewise.
38516         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
38517         (h8300_expand_epilogue): Likewise.
38518
38519 2010-02-15  Richard Guenther  <rguenther@suse.de>
38520
38521         PR middle-end/43068
38522         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
38523         if that is zero.
38524
38525 2010-02-15  Nick Clifton  <nickc@redhat.com>
38526
38527         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
38528         delta.
38529
38530 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
38531
38532         * intl.c (fake_ngettext): New function.
38533         * intl.h (fake_ngettext): Declare.
38534         (ngettext): Define macro.
38535         * collect2.c (notice_translated): New function.
38536         (main): Use notice_translated and ngettext.
38537         * collect2.h (notice_translated): Declare.
38538
38539 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
38540
38541         * reorg.c (delete_computation): Comment fixes.
38542         * caller-save.c (setup_save_areas): Idem.
38543         * sel-sched-dump.c (dump_lv_set): Idem.
38544         * rtl.def: Idem.
38545
38546 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38547
38548         * config/s390/s390.c (s390_sched_init): New function.
38549         (TARGET_SCHED_INIT): Target hook defined.
38550
38551 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
38552             Jack Howarth  <howarth@bromo.med.uc.edu>
38553             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
38554
38555         PR target/42982
38556         Partial revert of unintended change in fix for PR41605.
38557         * config/darwin.h: Fix typo.
38558         * config/darwin9.h: Same.
38559
38560 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
38561
38562         * c-pch.c (pch_init): Clear v.
38563
38564 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
38565
38566         PR middle-end/42930
38567         * graphite-scop-detection.c (graphite_can_represent_scev): Call
38568         graphite_can_represent_init for MULT_EXPR.
38569
38570 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
38571
38572         PR middle-end/42914
38573         PR middle-end/42530
38574         * graphite-sese-to-poly.c (remove_phi): New.
38575         (translate_scalar_reduction_to_array): Call remove_phi.
38576
38577 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
38578
38579         PR middle-end/42771
38580         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
38581         * graphite-clast-to-gimple.h (gloog): Update declaration.
38582         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
38583         * graphite-poly.h (struct poly_bb): Add missing comments.
38584         (struct scop): Add poly_scop_p field.
38585         (POLY_SCOP_P): New.
38586         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
38587         * graphite.c (graphite_transform_loops): Build the polyhedral
38588         representation for each scop before code generation.
38589         * sese.c (rename_variables_in_operand): Removed.
38590         (rename_variables_in_expr): Return the renamed expression.
38591         (rename_sese_parameters): New.
38592         * sese.h (rename_sese_parameters): Declared.
38593
38594 2010-02-11  Richard Guenther  <rguenther@suse.de>
38595
38596         PR tree-optimization/42998
38597         * tree-ssa-pre.c (create_expression_by_pieces): Treat
38598         POINTER_PLUS_EXPR properly.
38599
38600 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
38601             Changpeng Fang  <changpeng.fang@amd.com>
38602
38603         PR middle-end/40886
38604         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
38605         the cost of an IV candidate when the IV is used in a test against zero.
38606
38607         * gcc.dg/tree-ssa/ivopts-3.c: New.
38608
38609 2010-02-11  Richard Guenther  <rguenther@suse.de>
38610
38611         PR lto/41664
38612         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
38613         pointer-vs-decl case by swapping refs.  Handle some cases
38614         of pointer-vs-decl disambiguations more conservatively.
38615         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
38616         to false after expanding.
38617
38618 2010-02-11  Richard Guenther  <rguenther@suse.de>
38619
38620         PR driver/43021
38621         * gcc.c (process_command): Handle LTO file@offset case more
38622         appropriately.
38623
38624 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
38625
38626         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
38627         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
38628         of DEBUG_INSNs.
38629         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
38630
38631         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
38632         if MEM's mode size isn't DWARF2_ADDR_SIZE.
38633         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
38634         Optimize eq/ne comparisons when both arguments are known to be
38635         zero-extended.
38636         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
38637         Don't mask operands unnecessarily if they are known to be already
38638         zero-extended.
38639
38640 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
38641
38642         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
38643         instead of loop.
38644
38645 2010-02-10  Richard Guenther  <rguenther@suse.de>
38646
38647         PR tree-optimization/43017
38648         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
38649         for wrapping signed arithmetic.
38650
38651 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
38652
38653         PR debug/43010
38654         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
38655         if no debug info should be emitted for it.
38656
38657 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
38658
38659         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
38660         note when flag_exceptions is set.
38661
38662 2010-02-10  Duncan Sands  <baldrick@free.fr>
38663
38664         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
38665
38666 2010-02-10  Richard Guenther  <rguenther@suse.de>
38667
38668         PR c/43007
38669         * tree.c (get_unwidened): Handle constants.
38670         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
38671
38672 2010-02-10  Martin Jambor  <mjambor@suse.cz>
38673
38674         PR lto/42985
38675         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
38676         check for variable argument counts independently.
38677
38678 2010-02-10  Christian Bruel  <christian.bruel@st.com>
38679
38680         PR target/42841
38681         * config/sh/sh.c (find_barrier): Increase length for non delayed
38682         conditional branches.
38683
38684 2010-02-10  Christian Bruel  <christian.bruel@st.com>
38685
38686         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
38687
38688 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
38689
38690         * builtins.c (set_builtin_user_assembler_name): Also handle
38691         ffs if int is smaller than word.
38692
38693 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
38694
38695         PR middle-end/42973
38696         * ira-conflicts.c (get_dup): Remove.
38697         (process_reg_shuffles): Add new parameter.  Use it as an
38698         additional guard for copy generation.
38699         (add_insn_allocno_copies): Rewrite.
38700
38701 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
38702
38703         * common.opt (fsched2-use-traces): Preserved for backward
38704         compatibility.
38705         * doc/invoke.texi: Remove the documentation about option
38706         -fsched2-use-traces.
38707         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
38708         flag_sched2_use_traces.
38709         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
38710         the backward compatibility flag section.
38711
38712 2010-02-09  Richard Guenther  <rguenther@suse.de>
38713
38714         PR tree-optimization/43008
38715         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
38716         make HEAP variables initialized from global memory if they
38717         are not known builtin functions.
38718         (find_func_aliases): Adjust.
38719
38720 2010-02-09  Richard Guenther  <rguenther@suse.de>
38721
38722         PR tree-optimization/43000
38723         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
38724         arithmetic manually.
38725
38726 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
38727
38728         PR tree-optimization/42931
38729         * tree-loop-linear.c (try_interchange_loops): Don't call
38730         double_int_mul if estimated_loop_iterations failed.
38731
38732 2010-02-08  Martin Jambor  <mjambor@suse.cz>
38733
38734         PR middle-end/42898
38735         * tree-sra.c (build_accesses_from_assign): Do not mark in
38736         should_scalarize_away_bitmap if stmt has volatile ops.
38737         (sra_modify_assign): Do not process assigns piecemeal if if stmt
38738         has volatile ops.
38739
38740 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
38741
38742         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
38743
38744 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
38745
38746         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
38747         before the pattern.
38748
38749 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
38750
38751         PR middle-end/42946
38752         * df-core.c (df_finish_pass): Change type of saved_flags to int.
38753
38754 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
38755
38756         PR middle-end/42988
38757         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
38758         to unknown_dependence.
38759         (graphite_legal_transform_dr): Handle the unknown_dependence.
38760         (graphite_carried_dependence_level_k): Same.
38761
38762 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
38763
38764         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
38765
38766 2010-02-07  Richard Guenther  <rguenther@suse.de>
38767
38768         PR middle-end/42991
38769         * expr.c (get_inner_reference): Always initialize *pbitsize.
38770
38771 2010-02-07  Richard Guenther  <rguenther@suse.de>
38772
38773         PR middle-end/42956
38774         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
38775         new ARRAY_REFs on variable size element or minimal index arrays.
38776         Complete.
38777         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
38778         gimple_fold_indirect_ref.
38779
38780 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
38781
38782         PR target/42957
38783         * arm.c (arm_override_options): Just return if the user has specified
38784         an invalid fpu name.
38785
38786 2010-02-03  Jason Merrill  <jason@redhat.com>
38787
38788         PR c++/42870
38789         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
38790         i386_pe_maybe_record_exported_symbol.
38791
38792 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
38793
38794         PR target/42924
38795         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
38796         (pa_delegitimize_address): New function.
38797
38798 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
38799
38800         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
38801         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
38802
38803 2010-02-05  Richard Guenther  <rguenther@suse.de>
38804
38805         PR lto/42762
38806         * lto-streamer-in.c (get_resolution): Deal with references
38807         to undefined functions.
38808
38809 2010-02-05  Richard Guenther  <rguenther@suse.de>
38810
38811         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
38812         (fold_const_aggregate_ref): Likewise.
38813         (ccp_fold_stmt): Substitute loads.
38814         (maybe_fold_reference): Verify types before substituting.
38815         Unshare properly.
38816         (fold_gimple_assign): Unshare properly.
38817         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
38818
38819 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
38820
38821         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
38822         for rs6000_gen_cell_microcode.
38823
38824 2010-02-04  Richard Guenther  <rguenther@suse.de>
38825
38826         PR rtl-optimization/42952
38827         * dse.c (const_or_frame_p): Remove MEM handling.
38828
38829 2010-02-04  Nick Clifton  <nickc@redhat.com>
38830
38831         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
38832         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
38833         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
38834         (mn10300_asm_output_mi_thunk): New function.
38835         (mn10300_can_output_mu_thunk): New function.
38836         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
38837         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
38838         (FUNCTION_ARG): Delete incorrect comment.
38839
38840 2010-02-03  Jason Merrill  <jason@redhat.com>
38841
38842         PR c++/40138
38843         * fold-const.c (operand_equal_p): Handle erroneous types.
38844
38845 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
38846
38847         * config/h8300/h8300.md (can_delay): Fix attibute condition.
38848
38849 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
38850
38851         PR rtl-optimization/42941
38852         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
38853         of xmalloc.
38854
38855 2010-02-03  Jason Merrill  <jason@redhat.com>
38856
38857         PR c++/35652
38858         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
38859
38860 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
38861
38862         PR debug/42896
38863         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
38864         (cselib_reset_table): Renamed from...
38865         (cselib_reset_table_with_next_value): ... this.
38866         (cselib_get_next_uid): Renamed from...
38867         (cselib_get_next_unknown_value): ... this.
38868         * cselib.c (next_uid): Renamed from...
38869         (next_unknown_value): ... this.
38870         (cselib_clear_table): Adjust.
38871         (cselib_reset_table): Adjust.  Renamed from...
38872         (cselib_reset_table_with_next_value): ... this.
38873         (cselib_get_next_uid): Adjust.  Renamed from...
38874         (cselib_get_next_unknown_value): ... this.
38875         (get_value_hash): Use hash.
38876         (cselib_hash_rtx): Likewise.
38877         (new_cselib_val): Adjust.  Set and dump uid.
38878         (cselib_lookup_mem): Pass next_uid as hash.
38879         (cselib_subst_to_values): Likewise.
38880         (cselib_log_lookup): Dump uid.
38881         (cselib_lookup): Pass next_uid as hash.  Adjust.
38882         (cselib_process_insn): Adjust.
38883         (cselib_init): Initialize next_uid.
38884         (cselib_finish): Adjust.
38885         (dump_cselib_table): Likewise.
38886         * dse.c (canon_address): Dump value uid.
38887         * print-rtl.c (print_rtx): Print value uid.
38888         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
38889         (dvuid): New type.
38890         (dv_uid): New function, sort of renamed from...
38891         (dv_htab_hash): ... this, reimplemented in terms of it and...
38892         (dv_uid2hash): ... this.  New.
38893         (variable_htab_eq): Drop excess assertions.
38894         (tie_break_pointers): Removed.
38895         (canon_value_cmp): Compare uids.
38896         (variable_post_merge_New_vals): Print uids.
38897         (vt_add_function_parameters): Adjust.
38898         (vt_initialize): Reset table.  Adjust.
38899
38900 2010-02-03  Richard Guenther  <rguenther@suse.de>
38901
38902         PR tree-optimization/42944
38903         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
38904         (call_may_clobber_ref_p_1): Likewise.  Properly handle
38905         malloc and calloc clobbering errno.
38906
38907 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
38908
38909         * doc/invoke.texi: Fix name of sched1 dump.
38910
38911         * opts.c (decode_options): Set flag_tree_switch_conversion
38912         only conditionally on optimize >= 2.
38913
38914         * gcse.c: Assorted comment fixes in pass description.
38915
38916 2010-02-03  Anthony Green  <green@moxielogic.com>
38917
38918         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
38919         nop padding in order to maintain alignment of storage location of
38920         target function address.
38921         (moxie_trampoline_init): Store target function address at newly
38922         aligned location.
38923         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
38924         to 32.
38925         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
38926
38927 2010-02-03  Richard Guenther  <rguenther@suse.de>
38928
38929         PR middle-end/42927
38930         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
38931
38932 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38933
38934         * config.gcc: Reenable check for obsolete targets.
38935         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
38936         mips-sgi-irix6.[0-4]*.
38937
38938 2010-02-02  Nick Clifton  <nickc@redhat.com>
38939
38940         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
38941         constant size of 4 as being the same as 0.
38942         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
38943         can take values in the range 0..4.
38944
38945 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
38946
38947         PR java/41991
38948         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
38949         as _darwin10_Unwind_FindEnclosingFunction().
38950         * libgcc-libsystem.ver: New.
38951
38952 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
38953
38954         PR target/41399
38955         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
38956         implicitly set registers.
38957
38958 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
38959
38960         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
38961         (arm_override_options): Allow automatic selection of the thread
38962         pointer register if thumb2.
38963         (legitimize_pic_address): Improve code sequences for Thumb2.
38964         (arm_call_tls_get_addr): Likewise.
38965         (legitimize_tls_address): Likewise.
38966         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
38967         (pic_load_addr_32bit): ... this.  New named pattern.
38968         * thumb2.md (pic_load_addr_thumb2): Delete.
38969         (pic_load_dot_plus_four): Delete.
38970         (tls_load_dot_plus_four): New named pattern.
38971
38972 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38973
38974         PR libgomp/29986
38975         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
38976         Document fix for TLS bug.
38977
38978 2010-01-31  Richard Guenther  <rguenther@suse.de>
38979
38980         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
38981         conservatively correct.
38982
38983 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38984
38985         PR target/42850
38986         Revert:
38987         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38988
38989         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38990
38991 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38992
38993         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
38994
38995 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
38996
38997         * config.gcc: Adjust order of makefile fragments for mingw targets.
38998
38999 2010-01-31  Richard Guenther  <rguenther@suse.de>
39000
39001         PR middle-end/42898
39002         * gimplify.c (gimplify_init_constructor): For volatile LHS
39003         initialize a temporary.
39004
39005 2010-01-31  Matthias Klose  <doko@ubuntu.com>
39006
39007         * configure.ac: Fix __stack_chk_fail check for cross builds configured
39008         --with-headers
39009         * configure: Regenerate.
39010
39011 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
39012
39013         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
39014         the same alias set and their sizes different constantness.
39015         (aliasing_component_refs_p): Revert 2009-10-24 change.
39016
39017 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39018
39019         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
39020         unused.
39021
39022 2010-01-29  Richard Guenther  <rguenther@suse.de>
39023
39024         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
39025         Assert we successfully updated the call.
39026
39027 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
39028
39029         PR rtl-optimization/42889
39030         * df.h (df_set_bb_dirty_nonlr): New prototype.
39031         * df-core.c (df_set_bb_dirty_nonlr): New function.
39032         * df-scan.c (df_insn_rescan): Call it instead of
39033         df_set_bb_dirty for DEBUG_INSNs.
39034
39035 2010-01-29  Richard Guenther  <rguenther@suse.de>
39036
39037         PR middle-end/37448
39038         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
39039         quadratic behavior in most cases.
39040
39041 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
39042
39043         PR target/42891
39044         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
39045         in the call to gen_x86_movsicc_0_m1.
39046
39047 2010-01-28  Richard Guenther  <rguenther@suse.de>
39048
39049         PR tree-optimization/42871
39050         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
39051
39052 2010-01-28  Richard Guenther  <rguenther@suse.de>
39053
39054         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
39055         into call arguments.
39056
39057 2010-01-28  Richard Guenther  <rguenther@suse.de>
39058
39059         PR middle-end/42883
39060         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
39061         the forwarder if the destination is an EH landing pad.
39062
39063 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
39064
39065         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
39066         block list passed to gimple_duplicate_sese_tail.
39067         (parallelize_loops): Avoid parallelization when the function
39068         has_nonlocal_label.
39069         Avoid parallelization when the preheader is IRREDUCIBLE.
39070         Try to optimize when estimated_loop_iterations_int is unresolved.
39071         Add the loop's location to the dump file.
39072         * tree-cfg.c (add_phi_args_after_redirect): Remove.
39073         (gimple_duplicate_sese_tail): Remove the check for the latch.
39074         Redirect nexits to the exit block.
39075         Remove handling of the incoming edges to the latch.
39076         Redirect the backedge from the copied latch to the exit bb.
39077
39078 2010-01-28  Michael Matz  <matz@suse.de>
39079
39080         PR target/42881
39081         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
39082         Wrap force_reg into a sequence, emit it before user.
39083
39084 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
39085
39086         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
39087         (arm_rev): New.
39088         (arm_legacy_rev): Likewise.
39089         (thumb_legacy_rev): Likewise.
39090
39091 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
39092
39093         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
39094         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
39095         on MEM's address failed, try avoid_constant_pool_reference and
39096         recurse if it returned something different.
39097         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
39098         address, try avoid_constant_pool_reference and recurse if it
39099         returned something different.
39100         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
39101         address and avoid_constant_pool_reference returned something
39102         different, don't set have_address.
39103
39104 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
39105
39106         PR debug/42861
39107         * var-tracking.c (val_store): Add modified argument, obey it.
39108         Adjust callers.
39109         (count_uses): Move down logging of main.
39110         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
39111         don't need resolution.
39112         (emit_notes_in_bb): Likewise.
39113
39114 2010-01-27  Richard Guenther  <rguenther@suse.de>
39115
39116         PR middle-end/42878
39117         * tree-inline.c (remap_decl): Delay remapping of SSA name
39118         default definitions until we need them.
39119
39120 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
39121
39122         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
39123         (rs6000_delegitimize_address): New function.
39124
39125         * config/s390/s390.c (s390_delegitimize_address): Call
39126         delegitimize_mem_from_attrs.
39127
39128         PR middle-end/42874
39129         * tree-inline.c (cannot_copy_type_1): Removed.
39130         (copy_forbidden): Don't forbid copying of functions containing
39131         records/unions with variable length fields.
39132
39133 2010-01-27  Christian Bruel  <christian.bruel@st.com>
39134
39135         Revert:
39136         PR target/42841
39137         * config/sh/sh.c (find_barrier): Increase length for non delayed
39138         conditional branches.
39139
39140 2010-01-27  Matthias Klose  <doko@ubuntu.com>
39141
39142         * configure.ac (gnu-unique-object): Fix ldd version check.
39143         * configure: Regenerate.
39144
39145 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39146
39147         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
39148         HAVE_GNU_AS value.
39149         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
39150         Test for HAVE_GNU_AS value.
39151
39152 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
39153
39154         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
39155         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
39156         INT64_TYPE): Define.
39157         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
39158         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
39159         INT_LEAST64_TYPE): Define.
39160         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
39161         UINT_LEAST64_TYPE): Define.
39162         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
39163         INT_FAST64_TYPE): Define.
39164         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
39165         UINT_FAST64_TYPE): Define.
39166         (INTMAX_TYPE, UINTMAX_TYPE): Define.
39167         (INTPTR_TYPE, UINTPTR_TYPE): Define.
39168         (SIG_ATOMIC_TYPE): Define.
39169
39170 2010-01-26  Richard Guenther  <rguenther@suse.de>
39171
39172         * df-scan.c (df_scan_set_bb_info): Remove assert.
39173         (df_insn_rescan_debug_internal): Merge asserts.
39174         (df_install_ref): Likewise.
39175         (df_mark_reg): Use bitmap_set_range.
39176         (df_hard_reg_used_p): Remove assert.
39177         (df_hard_reg_used_count): Likewise.
39178
39179 2010-01-26  Richard Guenther  <rguenther@suse.de>
39180
39181         PR rtl-optimization/42685
39182         * web.c (web_main): Ignore DEBUG_INSNs.
39183
39184 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
39185
39186         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
39187
39188         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
39189         Fix types of fndecl and arglist parameters.
39190
39191 2010-01-26  Richard Guenther  <rguenther@suse.de>
39192
39193         PR middle-end/42806
39194         * tree-eh.c (unsplit_eh): Skip debug insns.
39195
39196 2010-01-26  Richard Guenther  <rguenther@suse.de>
39197
39198         PR tree-optimization/42250
39199         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
39200
39201 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
39202
39203         PR fortran/42866
39204         * omp-low.c (expand_omp_sections): Only use single_pred if
39205         l2_bb is single_pred_p.
39206
39207 2010-01-25  Christian Bruel  <christian.bruel@st.com>
39208
39209         PR target/42841
39210         * config/sh/sh.c (find_barrier): Increase length for non delayed
39211         conditional branches.
39212         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
39213
39214 2010-01-24  David S. Miller  <davem@davemloft.net>
39215
39216         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
39217         define if not using GAS.
39218         * config/sparc/sparc.c (sparc_elf_asm_named_section):
39219         Likewise.  Delete SECTION_MERGE code, which is only applicable
39220         when using GAS.
39221
39222 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
39223
39224         PR c++/42748
39225         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
39226         mangling of va_list in system headers.
39227
39228 2010-01-23  Toon Moene  <toon@moene.org>
39229
39230         * tree-predcom.c (combine_chains): Return NULL, not false.
39231
39232 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
39233
39234         * tree-loop-distribution.c (distribute_loop): Fix declaration and
39235         initialization of variable res to agree with return type.
39236
39237 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
39238
39239         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
39240         * tree-sra.c: Add include of expr.h.
39241
39242 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
39243
39244         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
39245         insert the debug stmt on the single non-EH edge from the stmt.
39246
39247 2010-01-22  Richard Henderson  <rth@redhat.com>
39248
39249         PR tree-opt/42833
39250         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
39251         the RHS until after generate_subtree_copies has insertted its
39252         code before the current statement.
39253
39254 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
39255
39256         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
39257
39258         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
39259
39260 2010-01-21  Martin Jambor  <mjambor@suse.cz>
39261
39262         PR tree-optimization/42585
39263         * tree-sra.c (struct access): New field grp_total_scalarization.
39264         (dump_access): Dump the new field.
39265         (should_scalarize_away_bitmap): New variable.
39266         (cannot_scalarize_away_bitmap): Likewise.
39267         (sra_initialize): Allocate new bitmaps.
39268         (sra_deinitialize): Free new bitmaps.
39269         (create_access_1): New function.
39270         (create_access): Parts moved to create_access_1.
39271         (type_consists_of_records_p): New function.
39272         (completely_scalarize_record): Likewise.
39273         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
39274         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
39275         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
39276         access.
39277         (analyze_all_variable_accesses): Completely scalarize small eligible
39278         records.
39279
39280 2010-01-21  Martin Jambor  <mjambor@suse.cz>
39281
39282         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
39283
39284 2010-01-21  Andrew Haley  <aph@redhat.com>
39285
39286         * gcc.c (process_command): Move lang_specific_driver before
39287         setting cc_libexec_prefix.
39288
39289 2010-01-21  Richard Guenther  <rguenther@suse.de>
39290
39291         PR middle-end/19988
39292         * fold-const.c (negate_expr_p): Pretend only negative
39293         real constants are easily negatable.
39294
39295 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
39296             Jason Merrill  <jason@redhat.com>
39297
39298         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
39299         (TYPE_TRANSPARENT_AGGR): this, for union and record.
39300         * calls.c (initialize argument_information): Handle it.
39301         * c-common.c (handle_transparent_union_attribute): Use new name.
39302         * c-decl.c (finish_struct): Ditto.
39303         * c-typeck.c (type_lists_compatible_p): Ditto.
39304         (convert_for_assignment): Use new name and also handle record.
39305         * function.c (aggregate_value_p): Handle it.
39306         (pass_by_reference): Ditto.
39307         (assign_parm_data_types): Ditto.
39308         * print-tree.c (print_node): Ditto.
39309         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
39310         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
39311         * tree.c (first_field): New fn.
39312
39313 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
39314
39315         PR target/42818
39316         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
39317         even when linking statically, for now.
39318
39319 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
39320
39321         PR debug/42715
39322         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
39323         without a cselib val.
39324         (count_uses): Accept MO_VAL_SET with no val on stores.
39325         (add_stores): Likewise.
39326
39327 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
39328
39329         * var-tracking.c (check_value_val): Add a compile time assertion.
39330         (dv_is_decl_p): Simplify.
39331         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
39332         gcc_assert if ENABLE_CHECKING.
39333
39334 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
39335
39336         PR debug/42782
39337         * var-tracking.c: Include tree-flow.h.
39338         (mem_dies_at_call): New.
39339         (dataflow_set_preserve_mem_locs): Use it.
39340         (dataflow_set_remove_mem_locs): Likewise.
39341         (dump_var): Renamed from dump_variable.  Adjust all callers.
39342         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
39343         * Makefile.in (var-tracking.o): Adjust deps.
39344
39345 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
39346
39347         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
39348
39349 2010-01-20  Richard Guenther  <rguenther@suse.de>
39350
39351         PR tree-optimization/42717
39352         * tree-ssa-dce.c (get_live_post_dom): Remove.
39353         (forward_edge_to_pdom): Take an arbitrary edge to copy
39354         degenerate PHI args from.
39355         (remove_dead_stmt): Use the first post-dominator even if it
39356         does not contain live statements as redirection destination.
39357
39358 2010-01-20  Richard Guenther  <rguenther@suse.de>
39359
39360         * tree-inline.c (estimate_num_insns): Handle EH builtins.
39361
39362 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
39363
39364         * sel-sched.c (create_speculation_check): Remove set but not used
39365         variable twin.
39366         (try_transformation_cache): Remove set but not used variable ds.
39367         (calculate_privileged_insns): Remove set but not used variables
39368         cur_insn and min_spec_insn.
39369         (find_best_expr): Remove set but not used variable avail_n.
39370         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
39371         variable e.
39372         * cgraphunit.c (assemble_thunk): Remove set but not used variable
39373         false_label.
39374         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
39375         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
39376         new_scop_exit_edge.
39377
39378 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
39379
39380         PR bootstrap/42786
39381         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
39382         cpu types.  Add support for *-sse3 cpu types.
39383         (x86_64-*-*): Ditto.
39384
39385 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
39386
39387         PR middle-end/42803
39388         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
39389         argument, call initializer_constant_valid_p_1 instead of
39390         initializer_constant_valid_p, pass CACHE to it, return NULL
39391         immediately if first call returns NULL.
39392         (initializer_constant_valid_p_1): New function.
39393         (initializer_constant_valid_p): Use it.
39394
39395 2010-01-20  Thomas Quinot  <quinot@adacore.com>
39396
39397         * tree.def (PLACEHOLDER_EXPR): Fix comment.
39398
39399 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
39400
39401         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
39402         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
39403         (loc_list_from_tree): Don't handle unsigned division.  Handle
39404         signed modulo using DW_OP_{over,over,div,mul,minus}.
39405         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
39406         modulo instead of signed.
39407
39408 2010-01-20  DJ Delorie  <dj@redhat.com>
39409
39410         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
39411         (Fpa): Pass it
39412         (h8300_emit_stack_adjustment): Propogate it.
39413         (push): Pass it.
39414         (h8300_expand_prologue): Likewise.
39415         (h8300_expand_epilogue): Likewise.
39416
39417 2010-01-19  Michael Matz  <matz@suse.de>
39418
39419         PR tree-optimization/41783
39420         * tree-data-ref.c (toplevel): Include flags.h.
39421         (dump_data_dependence_relation):  Also dump the inputs if the
39422         result will be unknown.
39423         (split_constant_offset_1): Look through some conversions.
39424         * tree-predcom.c (determine_roots_comp): Restart a new chain if
39425         the offset from last element is too large.
39426         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
39427         (reassociate_to_the_same_stmt): Handle vector registers.
39428         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
39429         (e.g. conversions).
39430         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
39431         wide_prolog_niters argument, emit widening instructions.
39432         (vect_do_peeling_for_alignment): Adjust caller, use widened
39433         variant of the iteration cound.
39434         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
39435
39436 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
39437
39438         PR target/38697
39439         * config/arm/neon-testgen.m (emit_automatics): New parameter
39440         features. Adjust for Fixed_return_reg feature.
39441         (test_intrinsic): Call emit_automatics with new feature.
39442         * config/arm/neon.ml: Update copyright years.
39443         (features): New Fixed_return_reg feature.
39444         (ops): Update feature for Vget_low.
39445
39446 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
39447
39448         PR tree-optimization/42719
39449         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
39450         stmt uses.
39451
39452         PR debug/42728
39453         * fwprop.c (all_uses_available_at): Return false if def_set dest
39454         is a REG that is used in def_insn.
39455
39456 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
39457
39458         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
39459
39460         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
39461         Add argument names.
39462
39463         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
39464
39465         * target.h (struct gcc_target) <secondary_reload>: Change type
39466         of last argument to secondary_reload_info *.
39467
39468 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
39469
39470         PR target/42774
39471         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
39472         memory references with unaligned offsets.  Remove CQImode handling.
39473         (unaligned_memory_operand): Return 1 for memory references with
39474         unaligned offsets.  Remove CQImode handling.
39475
39476 2010-01-18  Richard Guenther  <rguenther@suse.de>
39477
39478         PR middle-end/39954
39479         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
39480         builtin calls.
39481
39482 2010-01-18  Richard Guenther  <rguenther@suse.de>
39483
39484         PR tree-optimization/42781
39485         * tree-ssa-structalias.c (find_what_var_points_to): Skip
39486         restrict processing only if the original variable was artificial.
39487
39488 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
39489
39490         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
39491         find number of popped argument bytes.
39492
39493         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
39494         Fix the text that describes the return value for invalid insns.
39495
39496         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
39497
39498         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
39499         Clarify what 'cost of the -dependence' is.  Fix quoting.
39500
39501         * toplev.c (default_get_pch_validity): Rename argument to "sz".
39502         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
39503
39504 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
39505
39506         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
39507         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
39508
39509 2010-01-17  Richard Guenther  <rguenther@suse.de>
39510
39511         PR middle-end/42248
39512         * function.c (split_complex_args): Take a VEC to modify.
39513         (assign_parms_augmented_arg_list): Build a VEC instead of
39514         a chain of PARM_DECLs.
39515         (assign_parms_unsplit_complex): Take a VEC of arguments.
39516         Do not fixup unmodified parms.
39517         (assign_parms): Deal with the VEC.
39518         (gimplify_parameters): Likewise.
39519
39520 2010-01-17  Richard Guenther  <rguenther@suse.de>
39521
39522         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
39523         node existence check.
39524         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
39525         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
39526         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
39527         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
39528         (gimple_execute_on_growing_pred): Likewise.
39529
39530 2010-01-17  Richard Guenther  <rguenther@suse.de>
39531
39532         PR tree-optimization/42773
39533         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
39534         (compute_antic_aux): Likewise.
39535         (compute_partial_antic_aux): Likewise.
39536
39537 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
39538
39539         PR debug/42767
39540         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
39541         and US_TRUNCATE.
39542
39543 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
39544
39545         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
39546         appearance.
39547
39548         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
39549         Fix markup for strict argument.
39550
39551         (TARGET_SCHED_REORDER2): Fix argument types.
39552
39553         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
39554         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
39555
39556         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
39557         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
39558
39559         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
39560         Add argument name.
39561
39562         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
39563         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
39564         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
39565         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
39566         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
39567
39568         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
39569
39570         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
39571
39572         (TARGET_ASM_RELOC_RW_MASK): Add return type.
39573         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
39574
39575         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
39576
39577         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
39578         Use prototype.
39579
39580         (TARGET_ASM_NAMED_SECTION): Fix argument list.
39581
39582         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
39583         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
39584
39585         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
39586
39587         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
39588
39589         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
39590         referring to it.  Fix language.
39591
39592         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
39593
39594         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
39595
39596         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
39597
39598         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
39599
39600         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
39601         '@var{stream}.  Remove stray 'and'.
39602
39603         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
39604
39605         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
39606
39607         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
39608
39609         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
39610         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
39611
39612         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
39613         Fix description of return value.
39614         Rename argument "sz" to "len."
39615
39616         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
39617         Clarify meaning of 'true' return value.
39618
39619         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
39620
39621         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
39622         rep_mode versus mode_rep.
39623
39624         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
39625
39626         (TARGET_BUILTIN_DECL): Fix name.
39627
39628         (TARGET_COMMUTATIVE_P): Fix type of first argument.
39629
39630         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
39631
39632         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
39633
39634         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
39635
39636         (TARGET_RELAXED_ORDERING): Use @deftypevr.
39637
39638         (TARGET_GET_DRAP_RTX): Note that this is a hook.
39639         Clarify language.
39640
39641         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
39642         Rename argument tm_fn to md_fn.
39643
39644         (TARGET_OPTION_PRINT): Fix argument list.
39645
39646 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
39647
39648         PR target/42664
39649         * config/i386/i386.c (ix86_fixup_binary_operands):
39650         Revert FMA4 fixup of operands.
39651
39652 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39653
39654         PR other/42525
39655         * Makefile.in (write_entries_to_file, install-plugin):
39656         Use \012 instead of \n with tr.
39657
39658 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
39659
39660         * configure.ac (HAVE_AS_REF): New C macro.
39661         * configure: Regenerate.
39662         * config.in: Likewise.
39663         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
39664         if HAVE_AS_REF.
39665         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
39666         if HAVE_AS_REF.
39667
39668 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
39669
39670         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
39671
39672         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
39673
39674         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
39675
39676         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
39677
39678         (TARGET_IN_SMALL_DATA_P): Fix argument type.
39679
39680         (TARGET_BINDS_LOCAL_P): Fix argument type.
39681
39682         (TARGET_ASM_FILE_END): Use prototype.
39683
39684         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
39685
39686         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
39687
39688         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
39689
39690         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
39691
39692         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
39693         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
39694
39695         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
39696         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
39697
39698         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
39699         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
39700         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
39701         (TARGET_ADDR_SPACE_CONVERT): Likewise.
39702
39703         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
39704
39705         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
39706
39707         (TARGET_INIT_BUILTINS): Use prototype.
39708
39709         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
39710         Put 'const char *' in braces.  Fix parameter types.
39711         (TARGET_INVALID_CONVERSION): Fix parameter types.
39712         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
39713         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
39714
39715         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
39716         Fix argument type.
39717
39718         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
39719
39720         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
39721
39722 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
39723
39724         * doc/tm.texi (TARGET_HELP): Fix return type.
39725
39726         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
39727         in braces.  Fix argument types.
39728
39729         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
39730
39731         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
39732
39733         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
39734
39735         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
39736         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
39737
39738         (TARGET_MANGLE_TYPE): Fix argument types.
39739
39740         (TARGET_IRA_COVER_CLASSES): Use prototype.
39741
39742         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
39743
39744         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
39745
39746         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
39747
39748         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
39749
39750         (TARGET_CALLEE_COPIES): Fix argument types.
39751
39752         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
39753
39754         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
39755
39756         (TARGET_FUNCTION_VALUE): Fix argument types.
39757
39758         (TARGET_RETURN_IN_MSB): Fix argument type.
39759
39760         (TARGET_RETURN_IN_MEMORY): Fix argument types.
39761
39762         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
39763
39764         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
39765
39766         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
39767         agree with return type.
39768
39769         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
39770
39771 2010-01-15  Jing Yu  <jingyu@google.com>
39772
39773         PR rtl-optimization/42691
39774         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
39775         a pseudo to a constant and are merged, and adjust comments.
39776
39777 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
39778
39779         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
39780
39781 2010-01-15  Richard Guenther  <rguenther@suse.de>
39782
39783         PR middle-end/42739
39784         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
39785         labels of computed or non-local gotos to the destination.
39786         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
39787         landing pad label is the first label.
39788
39789 2010-01-15  Richard Guenther  <rguenther@suse.de>
39790
39791         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
39792
39793 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
39794
39795         PR target/42747
39796         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
39797         to allow generation of the xssqrtdp instruction on power7.
39798         (sqrtdf2_fpr): Ditto.
39799
39800 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
39801
39802         PR middle-end/42674
39803         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
39804         functions with noreturn attribute.
39805
39806         PR c++/42608
39807         * varasm.c (declare_weak): Add weak attribute to decl if it
39808         doesn't have one already.
39809         (assemble_external): Only add decls to weak_decls if they also
39810         have weak attribute.
39811
39812 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
39813
39814         * var-tracking.c (var_reg_delete): Don't delete the association
39815         between REGs and values or one-part variables if the register
39816         isn't clobbered.
39817
39818 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
39819
39820         PR debug/42657
39821         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
39822         because its first operand is a non-localized variable.
39823
39824 2010-01-14  Martin Jambor  <mjambor@suse.cz>
39825
39826         PR tree-optimization/42706
39827         * tree-sra.c (encountered_recursive_call): New variable.
39828         (encountered_unchangable_recursive_call): Likewise.
39829         (sra_initialize): Initialize both new variables.
39830         (callsite_has_enough_arguments_p): New function.
39831         (scan_function): Call decl and flags check only for IPA-SRA, check
39832         whether there is a recursive call and whether it has enough arguments.
39833         (all_callers_have_enough_arguments_p): New function.
39834         (convert_callers): Look for recursive calls only when
39835         encountered_recursive_call is set.
39836         (ipa_early_sra): Bail out either if
39837         !all_callers_have_enough_arguments_p or
39838         encountered_unchangable_recursive_call.
39839
39840 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39841
39842         * sel-sched.c: Add 2010 to copyright years.
39843         * sel-sched-ir.c: Likewise.
39844         * sel-sched-ir.h: Likewise.
39845
39846 2010-01-14  Martin Jambor  <mjambor@suse.cz>
39847
39848         PR tree-optimization/42714
39849         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
39850         constructors specially.
39851
39852 2010-01-14  Andi Kleen  <ak@linux.intel.com>
39853
39854         * config/i386/drivers-i386.c (detect_caches_intel):
39855         Add l2sizekb parameter and fill in.
39856         (host_detect_local_cpu): Add l2sizekb, fill in.
39857         Add Atom small cache heuristic.
39858
39859 2010-01-14  Andi Kleen  <ak@linux.intel.com>
39860
39861         * config/i386/drivers-i386.c (detect_caches_cpuid4):
39862         Add level3 parameter and fill in.
39863         (detect_caches_intel): Handle level3 cache.
39864
39865 2010-01-14  Andi Kleen  <ak@linux.intel.com>
39866
39867         * config/i386/drivers-i386.c (host_detect_local_cpu):
39868         Fix core duo detection.
39869
39870 2010-01-14  Andi Kleen  <ak@linux.intel.com>
39871
39872         * config/i386/drivers-i386.c (host_detect_local_cpu):
39873         Fix Atom detection.
39874
39875 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39876
39877         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
39878         (rs6000_variable_issue_1): this.  Use...
39879         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
39880
39881 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39882
39883         * sel-sched-ir.c (sel_restore_other_notes): Rename to
39884         sel_restore_notes.  Update all callers.  Call reemit_notes
39885         for all insns.
39886
39887 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39888
39889         PR rtl-optimization/42246
39890         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
39891         loops.
39892
39893 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39894
39895         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
39896         all successors is the same as number of successors in current region.
39897
39898 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39899
39900         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
39901         to rename is not separable.  Otherwise check that its LHS is not NULL.
39902
39903 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39904
39905         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
39906
39907 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39908
39909         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
39910         available registers when failed to discover LHS register class.
39911         Fix indentation.  Update comment.
39912
39913 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39914             Alexander Monakov  <amonakov@ispras.ru>
39915
39916         PR rtl-optimization/42389
39917         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
39918         to can_issue_more.
39919         (advance_state_on_fence): Likewise.
39920         (sel_target_adjust_priority): Print debug output only when
39921         sched_verbose >= 4, not 2.
39922         (get_expr_cost): Do not issue all unique insns on the next cycle.
39923         (fill_insns): Initialize can_issue_more from the value saved
39924         with the fence.
39925         * sel-sched-ir.c (flist_add): New parameter issue_more.
39926         Init FENCE_ISSUE_MORE with it.
39927         (merge_fences): Likewise.
39928         (init_fences): Update call to flist_add.
39929         (add_to_fences, add_clean_fence_to_fences)
39930         (add_dirty_fence_to_fences): Likewise.
39931         (move_fence_to_fences): Update call to merge_fences.
39932         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
39933         sched groups.
39934         * sel-sched-ir.h (struct _fence): New field issue_more.
39935         (FENCE_ISSUE_MORE): New accessor macro.
39936
39937 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39938
39939         PR rtl-optimization/42388
39940         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
39941         that have no predecessors nor successors.  Do not call move_bb_info
39942         for empty blocks outside of current region.
39943
39944 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39945
39946         PR rtl-optimization/42294
39947         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
39948         * sel-sched.c (move_exprs_to_boundary): Transitively add all
39949         originators' originators.
39950
39951 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
39952
39953         PR rtl-optimization/39453
39954         PR rtl-optimization/42246
39955         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
39956         for pipelining_p.
39957         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
39958
39959 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39960             Alexander Monakov  <amonakov@ispras.ru>
39961
39962         PR middle-end/42245
39963         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
39964         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
39965         argument.  Update all callers.
39966         (tidy_control_flow): ... and here.  Recompute topological order
39967         of basic blocks in region if necessary.
39968         (sel_redirect_edge_and_branch): Change return type.  Return true
39969         if topological order might have been invalidated.
39970         (purge_empty_blocks): Export and move from...
39971         * sel-sched.c (purge_empty_blocks): ... here.
39972         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
39973         (maybe_tidy_empty_bb): Delete prototype.
39974         (purge_empty_blocks): Declare.
39975
39976 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
39977
39978         PR rtl-optimization/42249
39979         * sel-sched.c (try_replace_dest_reg): When chosen register
39980         and original register is the same, do not bail out early, but
39981         still check all original insns for validity of replacing destination
39982         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
39983         in this case.
39984
39985 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
39986
39987         PR c/42721
39988         Port from no-undefined-overflow branch:
39989         2009-03-09  Richard Guenther  <rguenther@suse.de>
39990
39991         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
39992
39993 2010-01-14  Richard Guenther  <rguenther@suse.de>
39994
39995         PR lto/42665
39996         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
39997
39998 2010-01-14  Ira Rosen  <irar@il.ibm.com>
39999
40000         PR tree-optimization/42709
40001         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
40002         as scalar type in creation of constant vector operand.
40003
40004 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40005
40006         PR testsuite/42414
40007         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
40008         (check-parallel-%): Match `testsuite' directory component only
40009         at the end.
40010
40011 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
40012
40013         PR translation/39521
40014         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
40015         strings with _().
40016
40017 2010-01-13  Richard Guenther  <rguenther@suse.de>
40018
40019         PR tree-optimization/42730
40020         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
40021         offset zero.
40022
40023 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
40024
40025         PR target/pr42542
40026         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
40027         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
40028         them signed.
40029
40030 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
40031
40032         * config/bfin/libgcc-bfin.ver: Regenerate based on current
40033         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
40034         ___umulsi3_highpart.
40035
40036         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
40037         rather than schedule_insns if the pass is enabled.
40038
40039 2010-01-13  Martin Jambor  <mjambor@suse.cz>
40040
40041         PR tree-optimization/42704
40042         * tree-sra.c (sra_modify_assign): Do not delete assignments to
40043         SSA_NAMEs.
40044
40045 2010-01-13  Martin Jambor  <mjambor@suse.cz>
40046
40047         PR tree-optimization/42703
40048         * tree-sra.c (analyze_access_subtree): Check that we can build a
40049         reference to the original data within the aggregate.
40050
40051 2010-01-13  Richard Guenther  <rguenther@suse.de>
40052
40053         PR tree-optimization/42705
40054         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
40055
40056 2010-01-13  Richard Guenther  <rguenther@suse.de>
40057
40058         PR middle-end/42716
40059         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
40060
40061 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
40062
40063         PR debug/41371
40064         * var-tracking.c (values_to_unmark): New variable.
40065         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
40066         values_to_unmark vector.  Moved body to...
40067         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
40068         instead queue it into values_to_unmark vector.
40069         (vt_find_locations): Free values_to_unmark vector.
40070
40071 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
40072
40073         * config/s390/s390.c (override_options): Set
40074         default of max-pending-list-length to 256
40075
40076 2010-01-13  Richard Guenther  <rguenther@suse.de>
40077
40078         PR lto/42678
40079         * tree-pass.h (PROP_gimple_lcx): New.
40080         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
40081         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
40082         before the final cleanup_eh.
40083         (dump_properties): Dump PROP_gimple_lcx.
40084         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
40085         (tree_lower_complex_O0): Remove.
40086         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
40087         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
40088         tree_lower_complex, schedule TODO_update_ssa.
40089         * lto-streamer-out.c (output_function): Stream the functions
40090         properties.
40091         * lto-streamer-in.c (input_function): Likewise.
40092         (lto_read_body): Do not override them here.
40093
40094 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
40095
40096         PR c/42708
40097         * c-typeck.c (build_c_cast): Fold value cast to union type before
40098         wrapping it in a CONSTRUCTOR.
40099
40100 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
40101
40102         PR rtl-optimization/42699
40103         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
40104         involved.
40105
40106 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40107
40108         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
40109         SUBTARGET_WARN_UNUSED_SPEC): Move ...
40110         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
40111         SUBTARGET_WARN_UNUSED_SPEC): ... here
40112         * config/mips/iris5.h (LIBGCC_SPEC): Define.
40113
40114 2010-01-12  Julian Brown  <julian@codesourcery.com>
40115
40116         * config/arm/neon-schedgen.ml (Utils): Don't try to
40117         open missing module.
40118         (find_with_result): New.
40119
40120 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
40121
40122         PR debug/42662
40123         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
40124         sharing when canonicalizing ({lt,ge}u (plus a b) b).
40125
40126         PR tree-optimization/42645
40127         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
40128         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
40129         decl_map, set processing_debug_stmt to -1 and return name without
40130         any remapping.
40131
40132 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
40133
40134         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
40135         binutils version, and reword target configuration description.
40136
40137 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
40138
40139         * config/avr/avr.h (LINKER_NAME): Remove.
40140
40141 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
40142
40143         PR target/42416
40144         * config/rs6000/rs6000.c (rs6000_override_options): On targets
40145         that support VSX, warn for -mno-altivec if vsx is not disabled,
40146         and disable vsx.
40147
40148 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
40149             Shujing Zhao  <pearly.zhao@oracle.com>
40150
40151         PR translation/42469
40152         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
40153         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
40154         character between option name and help text.
40155         * c.opt (imultilib): Likewise.
40156
40157 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
40158
40159         * lto-streamer-out.c (output_unreferenced_globals): Output static
40160         variables.
40161
40162 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
40163
40164         PR rtl-optimization/42621
40165         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
40166         optimizing for size.
40167         (duplicate_computed_gotos): Remove now-redundant check.
40168
40169 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
40170
40171         PR target/37454
40172         * configure.ac: Save and restore LDFLAGS and LIBS
40173         * configure: Regenerate.
40174
40175 2010-01-10  Richard Guenther  <rguenther@suse.de>
40176
40177         PR middle-end/42667
40178         * builtins.c (fold_builtin_strlen): Add type argument and
40179         convert the resulting length to it.
40180         (fold_builtin_1): Adjust.
40181
40182 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
40183
40184         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
40185         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
40186         1 insn.
40187         (num_insns_constant_wide): Adjust for that change.
40188
40189 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40190
40191         PR debug/42631
40192         * web.c (union_defs): Add used argument, to combine uses of
40193         uninitialized regs.
40194         (entry_register): Adjust type and tests of used argument.
40195         (web_main): Widen used for new use.  Pass it to union_defs.
40196         * df.h (union_defs): Adjust prototype.
40197
40198 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40199
40200         PR debug/42630
40201         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
40202         uses in new incoming argument.  Free body.
40203         (reset_debug_uses_in_loop): New.
40204         (analyze_insn_to_expand_var): Call the latter if the former found
40205         anything.  Fix whitespace.  Reject invalid dest overlaps before
40206         going through all insns in the loop.
40207
40208 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40209
40210         PR debug/42629
40211         * haifa-sched.c (dying_use_p): Debug insns don't count.
40212
40213 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40214
40215         PR middle-end/42363
40216         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
40217         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
40218         (verify_gimple_call): Reject LHS in noreturn calls.
40219
40220 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40221
40222         PR debug/42604
40223         PR debug/42395
40224         * tree-vect-loop-manip.c (adjust_info): New type.
40225         (adjust_vec): New pointer to vector.
40226         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
40227         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
40228         (slpeel_update_phis_for_duplicate_loop): Use them.
40229         (slpeel_update_phi_nodes_for_guard1): Likewise.
40230         (slpeel_update_phi_nodes_for_guard2): Likewise.
40231         (slpeel_tree_peel_loop_to_edge): Likewise.
40232         (vect_update_ivs_after_vectorizer): Likewise.
40233
40234 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40235
40236         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
40237         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
40238
40239 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
40240
40241         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
40242         bogus uninitialized warning.
40243
40244 2010-01-09  Richard Guenther  <rguenther@suse.de>
40245
40246         PR middle-end/42512
40247         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
40248         the evolution is compatible with the initial condition.
40249
40250 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
40251
40252         * gcc.c (process_command): Update copyright notice dates.
40253         * gcov.c (print_version): Likewise.
40254         * gcov-dump.c (print_version): Likewise.
40255         * mips-tfile.c (main): Likewise.
40256         * mips-tdump.c (main): Likewise.
40257
40258 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
40259
40260         PR target/41885
40261         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
40262         (rotlhi3): Delete.
40263         (rotlhi3_8): Delete.
40264         (rotlsi3): Delete.
40265         (rotlsi3_8): Delete.
40266         (rotlsi3_16): Delete.
40267         (rotlsi3_24): Delete.
40268         (rotl<mode>3): New.
40269         (*rotw<mode>3): New.
40270         (*rotb<mode>3): New.
40271         * config/avr/avr.c (avr_rotate_bytes): New function.
40272         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
40273
40274 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
40275
40276         PR target/37454
40277         * configure.ac: Modify -rdynamic check.
40278         * configure: Regenerate.
40279
40280 2010-01-08  DJ Delorie  <dj@redhat.com>
40281
40282         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
40283         register popping order.
40284
40285 2010-01-08  Richard Guenther  <rguenther@suse.de>
40286
40287         PR lto/42528
40288         * c.opt (fsigned-char): Also let LTO handle this option.
40289         (funsigned-char): Likewise.
40290
40291 2010-01-07  Richard Guenther  <rguenther@suse.de>
40292
40293         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
40294         (gimple_op): Likewise.
40295         (gimple_op_ptr): Likewise.
40296         (gimple_assign_set_lhs): Remove gcc_assert.
40297         (gimple_assign_set_rhs1): Likewise.
40298         (gimple_assign_set_rhs2): Likewise.
40299         (gimple_call_set_lhs): Likewise.
40300         (gimple_call_set_fn): Likewise.
40301         (gimple_call_set_fndecl): Likewise.
40302         (gimple_call_fndecl): Likewise.
40303         (gimple_call_return_type): Likewise.
40304         (gimple_call_set_chain): Likewise.
40305         (gimple_call_num_args): Likewise.
40306         (gimple_call_set_arg): Likewise.
40307         (gimple_cond_set_code): Likewise.
40308         (gimple_cond_set_lhs): Likewise.
40309         (gimple_cond_set_rhs): Likewise.
40310         (gimple_cond_set_true_label): Likewise.
40311         (gimple_cond_set_false_label): Likewise.
40312         (gimple_label_set_label): Likewise.
40313         (gimple_goto_set_dest): Likewise.
40314         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
40315         (gimple_debug_bind_get_value): Likewise.
40316         (gimple_debug_bind_get_value_ptr): Likewise.
40317         (gimple_debug_bind_set_var): Likewise.
40318         (gimple_debug_bind_set_value): Likewise.
40319         (gimple_debug_bind_reset_value): Likewise.
40320         (gimple_debug_bind_has_value_p): Likewise.
40321         (gimple_return_retval_ptr): Remove gcc_assert.
40322         (gimple_return_retval): Likewise.
40323         (gimple_return_set_retval): Likewise.
40324         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
40325         (safe_referenced_var_iterator): Remove.
40326         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
40327         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
40328         (fill_referenced_var_vec): Remove.
40329         (first_readonly_imm_use): Remove redundant gcc_assert.
40330         (phi_arg_index_from_use): Combine gcc_asserts.
40331         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
40332         (first_imm_use_stmt): Remove redundant gcc_assert.
40333         * tree-cfg.c (verify_gimple_call): Verify function and chain
40334         operands.  Verify arguments.
40335         (verify_types_in_gimple_stmt): Verify condition code and labels.
40336
40337 2010-01-07  Richard Guenther  <rguenther@suse.de>
40338
40339         PR tree-optimization/42641
40340         * sese.c (rename_map_elt_info): Use the SSA name version, do
40341         not hash pointers.
40342
40343 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
40344
40345         PR tree-optimization/42625
40346         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
40347         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
40348
40349 2010-01-07  Duncan Sands  <baldrick@free.fr>
40350
40351         * Makefile.in (PLUGIN_HEADERS): Add version.h.
40352
40353 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
40354
40355         PR target/42511
40356         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
40357         note itself is not function_invariant_p.
40358
40359 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
40360
40361         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
40362         Do not add the DF_NOTE problem.
40363         * store-motion.c (execute_rtl_store_motion): Likewise.
40364
40365 2010-01-07  Martin Jambor  <mjambor@suse.cz>
40366
40367         PR tree-optimization/42157
40368         * tree-sra.c (compare_access_positions): Stabilize sort if both
40369         accesses have integer types, return zero immediately if they are the
40370         same.
40371
40372 2010-01-06  Richard Henderson  <rth@redhat.com>
40373
40374         PR middle-end/41883
40375         * haifa-sched.c (add_to_note_list): Merge into ...
40376         (concat_note_lists): ... here, and ...
40377         (unlink_other_notes, rm_other_notes): Merge into...
40378         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
40379         NOTE_INSN_EPILOGUE_BEG.
40380
40381 2010-01-06  Richard Guenther  <rguenther@suse.de>
40382
40383         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
40384         not inline regular functions into always-inline functions.
40385
40386 2010-01-06  Nick Clifton  <nickc@redhat.com>
40387
40388         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
40389         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
40390         used together.
40391         (OVERRIDE_OPTIONS): Delete.
40392         (OPTIMIZATION_OPTIONS): Define.
40393         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
40394         * config/rx/rx.c (rx_handle_option): Issue an error message if
40395         -mcpu=rx200 and -fpu are used together.
40396         (rx_set_optimization_options): New function.  Issue an error
40397         message if an optimization attribute attempts to reset the FPU/
40398         math optimization pairing.
40399         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
40400         * config/rx/rx.opt: Set the default to 32-bit doubles.
40401         * config/rx/t-rx: Add multilibs for -nofpu option.
40402         * doc/invoke.texi: Update documentation of RX options.
40403
40404 2010-01-06  Richard Guenther  <rguenther@suse.de>
40405
40406         * tree-ssa-pre.c (name_to_id): New global.
40407         (alloc_expression_id): Simplify SSA name handling.
40408         (lookup_expression_id): Likewise.
40409         (init_pre): Zero name_to_id.
40410         (fini_pre): Free it.
40411
40412 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
40413
40414         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
40415
40416 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
40417
40418         PR target/42542
40419         * config/i386/sse.md (smaxv2di3): New.
40420         (umaxv2di3): Likewise.
40421         (sminv2di3): Likewise.
40422         (uminv2di3): Likewise.
40423
40424 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
40425
40426         PR target/42564
40427         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
40428         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
40429         (legitimize_tls_address): Likewise.
40430         (sparc_tls_referenced_p): Likewise.
40431         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
40432         and adjust calls to legitimize_pic_address.
40433         (legitimate_constant_p) Use sparc_tls_referenced_p.
40434         (legitimate_pic_operand_p): Likewise.
40435         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
40436         (sparc_tls_symbol_ref_1): Delete.
40437         (sparc_tls_referenced_p): Make static, recognize specific patterns.
40438         (legitimize_tls_address): Make static, handle CONST patterns.
40439         (legitimize_pic_address): Make static, remove unused parameter and
40440         adjust recursive calls.
40441         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
40442         and adjust call to legitimize_pic_address.
40443         (sparc_output_mi_thunk): Likewise.
40444
40445 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
40446             H.J. Lu  <hongjiu.lu@intel.com>
40447
40448         PR target/42542
40449         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
40450         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
40451         operands to make them signed.
40452
40453         Revert:
40454         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
40455
40456         PR target/42542
40457         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
40458         GTU to GT for V4SI and V2DI.
40459
40460         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
40461         (umin<mode>3): Removed.
40462         (uminv8hi3): New.
40463         (uminv4si3): Likewise.
40464
40465 2010-01-05  Martin Jambor  <mjambor@suse.cz>
40466
40467         PR tree-optimization/42462
40468         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
40469         current_function_decl to helper functions and macros.
40470
40471 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40472
40473         PR bootstrap/41771
40474         * flags.h: Don't include real.h.
40475         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
40476         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
40477         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
40478         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
40479         * dominance.c: Update copyright.
40480         * gimple.c (walk_gimple_op): Remove inline.
40481         * tree-ssa-reassoc.c: Include real.h.
40482         * Makefile.in (FLAGS_H): Remove $(REAL_H).
40483         (tree-ssa-reassoc.o): Depend on $(REAL_H).
40484
40485 2010-01-05  Nick Clifton  <nickc@redhat.com>
40486
40487         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
40488         register to push into the stack frame when the accumulator has to
40489         be saved during interrupts.
40490
40491 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
40492
40493         * doc/invoke.texi: Remove the documentation about option
40494         -Wunreachable-code.
40495         * common.opt (Wunreachable-code):  Preserved for backward
40496         compatibility.
40497         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
40498         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
40499         the backward compatibility flag section.
40500
40501 2010-01-05  Richard Guenther  <rguenther@suse.de>
40502
40503         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
40504
40505 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
40506
40507         PR other/42611
40508         * cfgexpand.c (expand_one_var): Diagnose too large variables.
40509
40510         PR tree-optimization/42508
40511         * tree-sra.c (convert_callers): Check for recursive call
40512         by comparing cgraph nodes instead of decls.
40513         (modify_function): Call ipa_modify_formal_parameters also
40514         on all same_body aliases.
40515
40516         * cgraphunit.c (cgraph_materialize_all_clones): Compare
40517         cgraph nodes when checking for same_body aliases.
40518
40519 2010-01-05  Richard Guenther  <rguenther@suse.de>
40520
40521         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
40522         allocation and lookup.
40523         (get_or_alloc_expr_for_constant): Likewise.
40524         (phi_translate): Sink allocation.
40525
40526 2010-01-04  Richard Guenther  <rguenther@suse.de>
40527
40528         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
40529         a new entry only if needed.
40530         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
40531         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
40532         hashtable lookup.
40533         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
40534         the result array.
40535         (phi_translate): Handle CONSTANTs early.
40536
40537 2010-01-04  Martin Jambor  <mjambor@suse.cz>
40538
40539         PR tree-optimization/42398
40540         * tree-sra.c (struct access): Removed flag grp_different_types.
40541         (dump_access): Do not dump the removed flag.
40542         (sort_and_splice_var_accesses): Do not set the removed flag.
40543         (sra_modify_expr): Check for type compatibility directly.
40544
40545 2010-01-04  Martin Jambor  <mjambor@suse.cz>
40546
40547         PR tree-optimization/42366
40548         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
40549         edges with variable number of parameters.
40550         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
40551         flag instead of asserting it.
40552         (ipa_read_node_info): Read uses_analysis_done flag.
40553
40554 2010-01-04  Richard Guenther  <rguenther@suse.de>
40555
40556         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
40557         iterative_hash_* as intended.
40558         (vn_reference_compute_hash): Likewise.  Simplify hashing
40559         SSA names.
40560         (vn_reference_lookup_2): Likewise.
40561         (vn_nary_op_compute_hash): Likewise.
40562         (vn_phi_compute_hash): Likewise.
40563         (expressions_equal_p): Remove strange code.
40564         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
40565         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
40566         (bitmap_insert_into_set_1): Take value-id as parameter.
40567         (add_to_value): Pass it.
40568         (bitmap_insert_into_set): Likewise.
40569         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
40570
40571 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
40572
40573         PR driver/42442
40574         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
40575         (do_self_spec): For switches with SWITCH_IGNORE set set also
40576         SWITCH_IGNORE_PERMANENTLY.
40577         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
40578         of SWITCH_IGNORE.
40579
40580 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
40581
40582         * lto-streamer-out.c (output_unreferenced_globals): Output the full
40583         tree of an unreferenced global var.
40584
40585 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
40586
40587         PR target/42542
40588         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
40589         GTU to GT for V4SI and V2DI.
40590
40591         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
40592         (umin<mode>3): Removed.
40593         (uminv8hi3): New.
40594         (uminv4si3): Likewise.
40595
40596 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
40597
40598         PR lto/42581
40599         * collect2.c (main): Turn on trace in collect2 if -v is passed
40600         to gcc with LTO.
40601
40602 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
40603
40604         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
40605         description of expression operand.
40606
40607 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
40608
40609         * configure.ac: Add install-html to target_list for Make-hooks.
40610         * configure: Regenerate.
40611         * fortran/Make-lang.in (F95_HTMLFILES): New.
40612         (fortran.html): Use it.
40613         (fortran.install-html): New.
40614         * Makefile.in (install-html): Add lang.install-html.
40615         * java/Make-lang.in (JAVA_HTMLFILES): New.
40616         (java.html): Use it.
40617         (java.install-html): New.
40618         * objc/Make-lang.in (objc.install-html): New.
40619         * objcp/Make-lang.in (obj-c++.install-html): New.
40620         * cp/Make-lang.in (c++.install-html): New.
40621         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
40622         * lto/Make-lang.in (lto.install-html): New.
40623
40624 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
40625
40626         PR lto/42520
40627         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
40628
40629 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
40630
40631         PR rtl-optimization/41862
40632         * store-motion.c (store_killed_in_insn, compute_store_table,
40633         remove_reachable_equiv_notes, replace_store_insn,
40634         build_store_vectors): Ignore all DEBUG_INSNs.
40635
40636 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
40637
40638         PR lto/41564
40639         * common.opt: Add dumpdir.
40640
40641         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
40642         isn't specified.
40643         (option_map): Add --dumpdir.
40644
40645         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
40646
40647         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
40648
40649         * opts.c (decode_options): Try dump_dir_name first if
40650         dump_base_name isn't an absolute path.
40651         (common_handle_option): Handle OPT_dumpdir.
40652
40653         * toplev.c (dump_dir_name): New.
40654         (print_switch_values): Also ignore -dumpdir.
40655
40656         * toplev.h (dump_dir_name): New.
40657
40658 2010-01-03  Richard Guenther  <rguenther@suse.de>
40659
40660         PR tree-optimization/42589
40661         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
40662         double-word expansion of bswap32.
40663
40664 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
40665
40666         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
40667         with BLOCK_FOR_INSN.
40668         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
40669         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
40670         noce_process_if_block): Likewise.
40671         * gcse.c (compute_local_properties, insert_expr_in_table,
40672         insert_set_in_table, canon_list_insert, find_avail_set,
40673         pre_insert_copy_insn): Likewise.
40674
40675         * basic-block.h (BLOCK_NUM): Move from here...
40676         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
40677
40678 2010-01-03  Richard Guenther  <rguenther@suse.de>
40679
40680         PR tree-optimization/42438
40681         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
40682         contains_may_not_return_call flag.
40683         (BB_MAY_NOTRETURN): New.
40684         (valid_in_sets): Trapping nary operations are not valid
40685         in blocks that may not return.
40686         (insert_into_preds_of_block): Remove check for trapping expressions.
40687         (compute_avail): Compute also BB_MAY_NOTRETURN.
40688
40689 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
40690
40691         * doc/invoke.texi: Add 2010 to copyright years.
40692
40693 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
40694
40695         * config/sparc/sparc.c: Fix formatting nits.
40696
40697 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
40698             Alexander Monakov  <amonakov@ispras.ru>
40699
40700         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
40701
40702 2010-01-02  Richard Guenther  <rguenther@suse.de>
40703
40704         PR middle-end/42577
40705         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
40706         (simplify_switch_using_ranges): Mark to be removed edges
40707         as non-executable.
40708
40709 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
40710
40711         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
40712
40713         * collect2.c (scan_libraries): Add missing argument in call to
40714         scan_prog_file.
40715
40716 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
40717
40718         PR target/42448
40719         * config/alpha/predicates.md (aligned_memory_operand): Return false
40720         for CQImode.
40721         (unaligned_memory_operand): Return true for CQImode.
40722         * config/alpha/alpha.c (get_aligned_mem): Assert that location
40723         doesn not cross aligned SImode word boundary.
40724
40725 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
40726
40727         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
40728         Remove.
40729         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
40730         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
40731
40732 2010-01-02  Richard Guenther  <rguenther@suse.de>
40733
40734         PR lto/41597
40735         * toplev.c (compile_file): Emit LTO marker properly.  Change
40736         it to __gnu_lto_v1.
40737         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
40738
40739 2010-01-01  Richard Guenther  <rguenther@suse.de>
40740
40741         PR debug/42455
40742         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
40743
40744 2010-01-01  Richard Guenther  <rguenther@suse.de>
40745
40746         PR c/42570
40747         * c-decl.c (grokdeclarator): For zero-size arrays force
40748         structural equality checks as layout_type does.
40749
40750 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
40751
40752         * builtins.c: Update copyright to 2010.
40753
40754 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
40755
40756         PR lto/42531
40757         * lto-streamer-out.c (produce_asm): Revert the last change.
40758         (copy_function): Likewise.
40759
40760         * lto-streamer.c (lto_get_section_name): Skip any leading
40761         asterisk in name.
40762
40763 2010-01-01  Richard Guenther  <rguenther@suse.de>
40764
40765         PR middle-end/42559
40766         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
40767         for LABEL_DECLs.
40768
40769 \f
40770 Copyright (C) 2010 Free Software Foundation, Inc.
40771
40772 Copying and distribution of this file, with or without modification,
40773 are permitted in any medium without royalty provided the copyright
40774 notice and this notice are preserved.